Skip to content
Snippets Groups Projects
Commit 7ad18f3e authored by dgelessus's avatar dgelessus
Browse files

Test exact whitespace in compareLTLFormula and fix inconsistencies

parent 2e73d65c
No related branches found
No related tags found
No related merge requests found
...@@ -87,10 +87,7 @@ public class TestUtil { ...@@ -87,10 +87,7 @@ public class TestUtil {
public static void compareLTLFormula(String expected, String machine, String ltlFormula) throws BCompoundException { public static void compareLTLFormula(String expected, String machine, String ltlFormula) throws BCompoundException {
Translator b2tlaTranslator = new Translator(machine, ltlFormula); Translator b2tlaTranslator = new Translator(machine, ltlFormula);
b2tlaTranslator.translate(); b2tlaTranslator.translate();
String translatedLTLFormula = b2tlaTranslator.getTranslatedLTLFormula(); assertEquals(expected, b2tlaTranslator.getTranslatedLTLFormula());
translatedLTLFormula = translatedLTLFormula.replaceAll("\\s", "");
expected = expected.replaceAll("\\s", "");
assertEquals(expected, translatedLTLFormula);
} }
public static void checkMachine(String machine) throws Exception { public static void checkMachine(String machine) throws Exception {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment