commit dab649317e79a5ace118e56255c7324be605c10c Author: Amr Keleg Date: Sat Jun 8 18:41:55 2019 +0200 Add a unit test for disjuncting multiple fsts in at&t files diff --git a/tests/data/cat-multiple-fst.att b/tests/data/cat-multiple-fst.att new file mode 100644 index 0000000..d843acd --- /dev/null +++ b/tests/data/cat-multiple-fst.att @@ -0,0 +1,16 @@ +0 1 c c +1 2 a a +2 3 t t +3 4 @0@ + +4 5 @0@ n +5 +4 5 @0@ v +-- +0 1 c c +1 2 a a +2 3 t t +3 4 @0@ + +4 5 @0@ n +5 6 @0@ + +6 7 s +7 \ No newline at end of file diff --git a/tests/lt_proc/__init__.py b/tests/lt_proc/__init__.py index 09590b0..ba77a21 100644 --- a/tests/lt_proc/__init__.py +++ b/tests/lt_proc/__init__.py @@ -125,5 +125,10 @@ class GardenPathMweNewlines(unittest.TestCase, ProcTest): ]""" ] +class CatMultipleFstsTransducer(unittest.TestCase, ProcTest): + procdix = "data/cat-multiple-fst.att" + inputs = ["cat", "cats"] + expectedOutputs = ["^cat/cat+n/cat+v$", "^cats/cat+n+$"] + # These fail on some systems: #from null_flush_invalid_stream_format import *