def test_initial_marker(self):
        self.assertEqual(("i", "i."), appendices.initial_marker("i. Hi"))
        self.assertEqual(("iv", "iv."), appendices.initial_marker("iv. Hi"))
        self.assertEqual(("A", "A."), appendices.initial_marker("A. Hi"))
        self.assertEqual(("3", "3."), appendices.initial_marker("3. Hi"))

        self.assertEqual(("i", "(i)"), appendices.initial_marker("(i) Hi"))
        self.assertEqual(("iv", "(iv)"), appendices.initial_marker("(iv) Hi"))
        self.assertEqual(("A", "(A)"), appendices.initial_marker("(A) Hi"))
        self.assertEqual(("3", "(3)"), appendices.initial_marker("(3) Hi"))
    def test_initial_marker(self):
        self.assertEqual(("i", "i."), appendices.initial_marker("i. Hi"))
        self.assertEqual(("iv", "iv."), appendices.initial_marker("iv. Hi"))
        self.assertEqual(("A", "A."), appendices.initial_marker("A. Hi"))
        self.assertEqual(("3", "3."), appendices.initial_marker("3. Hi"))

        self.assertEqual(("i", "(i)"), appendices.initial_marker("(i) Hi"))
        self.assertEqual(("iv", "(iv)"), appendices.initial_marker("(iv) Hi"))
        self.assertEqual(("A", "(A)"), appendices.initial_marker("(A) Hi"))
        self.assertEqual(("3", "(3)"), appendices.initial_marker("(3) Hi"))
예제 #3
0
def test_initial_marker(marker, plain):
    assert appendices.initial_marker(marker + ' Hi') == (plain, marker)