示例#1
0
class EndEllipsisCheckTest(CheckTestCase):
    check = EndEllipsisCheck()

    def setUp(self):
        super(EndEllipsisCheckTest, self).setUp()
        self.test_good_matching = ('string…', 'string…', '')
        self.test_failure_1 = ('string…', 'string...', '')
        self.test_failure_2 = ('string.', 'string…', '')
        self.test_failure_3 = ('string..', 'string…', '')

    def test_translate(self):
        self.do_test(False, ('string...', 'string…', ''))
示例#2
0
class EndEllipsisCheckTest(CheckTestCase):
    check = EndEllipsisCheck()

    def setUp(self):
        super().setUp()
        self.test_good_matching = ("string…", "string…", "")
        self.test_failure_1 = ("string…", "string...", "")
        self.test_failure_2 = ("string.", "string…", "")
        self.test_failure_3 = ("string..", "string…", "")

    def test_translate(self):
        self.do_test(False, ("string...", "string…", ""))