diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-05-12 17:29:29 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-05-12 17:29:29 +0200 |
commit | d4c2be0a9c7569996561eab85ac41bdc4eca2d8a (patch) | |
tree | 6f365f5eb8a8728ff20b1b12b345d6c035e12cd3 /tests/test_generate_reference.py | |
parent | 868db285d752309f53d0b7a261ce108576a41cd9 (diff) | |
download | generate_references-d4c2be0a9c7569996561eab85ac41bdc4eca2d8a.tar.gz |
Some more tests enabled.
Also, use re.VERBOSE. It *is* more readable.
Diffstat (limited to 'tests/test_generate_reference.py')
-rwxr-xr-x | tests/test_generate_reference.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/test_generate_reference.py b/tests/test_generate_reference.py index 4207db2..6037d73 100755 --- a/tests/test_generate_reference.py +++ b/tests/test_generate_reference.py @@ -30,8 +30,8 @@ class TestNotesParsing(unittest.TestCase): # IGNORE:C0111 raise def test_simple_reference(self): - instr = 'Ž 93,2' - exptuple = (('Ž', 93, 2),) + instr = 'Ž 93,28' + exptuple = (('Ž', 93, 28),) self.do_test_expected(instr, exptuple) def test_prvni_empty(self): @@ -166,17 +166,15 @@ class TestNotesParsing(unittest.TestCase): # IGNORE:C0111 ('Dt', 1, 10), ('Na', 3, 16)) self.do_test_expected(instr, exptuple) - @unittest.skip('Not implented yet') def test_p_suffix(self): # TODO what does 'p' suffix means? instr = 'v. 1p' - exptuple = (('', 0, 1)) + exptuple = (('', 0, 1),) self.do_test_expected(instr, exptuple) - @unittest.skip('Not implented yet') def test_unknown_28(self): - instr = 'v. 28; 2,3; 5,2; 12,2; [v h. je slsoḇ–r–ḵ vždyspojeno' - exptuple = () + instr = 'v. 28; 2,3; 5,2; 12,2; [v h. je slsoḇ–r–ḵ vždy spojeno' + exptuple = (('', 2, 3), ('', 5, 2), ('', 12, 2), ('', 0, 28)) self.do_test_expected(instr, exptuple) @unittest.skip('Not implented yet') |