From 195beb37678c2cfe4c915f60eab509b1647d46ed Mon Sep 17 00:00:00 2001 From: Kevin Brubeck Unhammer Date: Thu, 28 Jan 2021 10:48:11 +0100 Subject: [PATCH] failing postgenerator test for https://github.com/apertium/lttoolbox/issues/107 --- tests/data/postgen.dix | 2 ++ tests/lt_proc/__init__.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/data/postgen.dix b/tests/data/postgen.dix index 1bea34b0..178aa6e3 100644 --- a/tests/data/postgen.dix +++ b/tests/data/postgen.dix @@ -92,6 +92,8 @@

+ + diff --git a/tests/lt_proc/__init__.py b/tests/lt_proc/__init__.py index ffc9236b..e46b8ad2 100644 --- a/tests/lt_proc/__init__.py +++ b/tests/lt_proc/__init__.py @@ -173,7 +173,9 @@ class PostgenerationWordboundBlankTest(ProcTest): "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456]]~les[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:Z9eiLA]]el[[/]] [[t:i:wSM6RQ]]testword[[/]]", "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456]]~les pes[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:Z9eiLA]]el[[/]] [[t:i:wSM6RQ]]testword[[/]]", "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456]]~les[[/]] [[t:b:12bsa23]]pes[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:Z9eiLA]]el[[/]] [[t:i:wSM6RQ]]testword[[/]]", - "[[t:b:Z9eiLA]]abc[[/]] ~les [[t:b:12bsa23]]pes[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:Z9eiLA]]el[[/]] [[t:i:wSM6RQ]]testword[[/]]"] + "[[t:b:Z9eiLA]]abc[[/]] ~les [[t:b:12bsa23]]pes[[/]] [[t:i:4_tPUA]]~de[[/]] [[t:b:Z9eiLA]]el[[/]] [[t:i:wSM6RQ]]testword[[/]]", + "[[t:text:NaNaNa]]pla~ssar[[/]]", + "[[t:text:NaNaNa]]pla~sssar[[/]]"] expectedOutputs = [ "xyz ejemplo [[t:i:123456; t:b:abc123; t:i:123456]]u ho[[/]] [[t:b:iopmnb]]nombre[[/]].", "xyz ejemplo [[t:b:poim230]]u ho[[/]] [[t:i:mnbj203]]nombre[[/]].", @@ -193,7 +195,9 @@ class PostgenerationWordboundBlankTest(ProcTest): "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456]]le pe test[[/]] [[t:i:4_tPUA; t:b:Z9eiLA]]del[[/]] [[t:i:wSM6RQ]]testword[[/]]", "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456]]les pes test[[/]] [[t:i:4_tPUA; t:b:Z9eiLA]]del[[/]] [[t:i:wSM6RQ]]testword[[/]]", "[[t:b:Z9eiLA]]abc[[/]] [[t:i:123456; t:b:12bsa23]]les pes test[[/]] [[t:i:4_tPUA; t:b:Z9eiLA]]del[[/]] [[t:i:wSM6RQ]]testword[[/]]", - "[[t:b:Z9eiLA]]abc[[/]] [[t:b:12bsa23]]les pes test[[/]] [[t:i:4_tPUA; t:b:Z9eiLA]]del[[/]] [[t:i:wSM6RQ]]testword[[/]]"] + "[[t:b:Z9eiLA]]abc[[/]] [[t:b:12bsa23]]les pes test[[/]] [[t:i:4_tPUA; t:b:Z9eiLA]]del[[/]] [[t:i:wSM6RQ]]testword[[/]]", + "[[t:text:NaNaNa]]plassar[[/]]", + "[[t:text:NaNaNa]]plassar[[/]]"] class PostgenerationWordboundBlankEscapingTest(ProcTest):