From e12d09448b6f9adecafebec6167be4960c72e543 Mon Sep 17 00:00:00 2001 From: ucrhh Date: Mon, 15 Feb 2021 16:07:43 +0100 Subject: [PATCH] remove bad tests --- .../LatexCreatorConstraintsTest.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/test/java/edu/kit/typicalc/view/content/typeinferencecontent/latexcreator/LatexCreatorConstraintsTest.java b/src/test/java/edu/kit/typicalc/view/content/typeinferencecontent/latexcreator/LatexCreatorConstraintsTest.java index 056b028..fabdb35 100644 --- a/src/test/java/edu/kit/typicalc/view/content/typeinferencecontent/latexcreator/LatexCreatorConstraintsTest.java +++ b/src/test/java/edu/kit/typicalc/view/content/typeinferencecontent/latexcreator/LatexCreatorConstraintsTest.java @@ -21,7 +21,6 @@ class LatexCreatorConstraintsTest { private final Model model = new ModelImpl(); private TypeInfererInterface typeInferer; - // todo tests should test all of getEverything, not only the first 2 parts @Test void singleVarDefaultConstraintTest() { typeInferer = model.getTypeInferer("x", new HashMap<>()).unwrap(); @@ -97,35 +96,4 @@ class LatexCreatorConstraintsTest { assertEquals(expected.get(i), actual.get(i)); } } - - - @Test - void singleAppConstraintTest() { - typeInferer = model.getTypeInferer("x y", new HashMap<>()).unwrap(); - List expected = new LatexCreatorConstraints(typeInferer, Enum::toString).getEverything(); - - List actual = List.of(EMPTY_CONSTRAINT_SET, - ALIGN_BEGIN + AMPERSAND + CONSTRAINT_SET + EQUALS + LATEX_CURLY_LEFT + TREE_VARIABLE + "_{2}" + EQUALS - + TREE_VARIABLE + "_{3}" + SPACE + RIGHT_ARROW + SPACE + TREE_VARIABLE + "_{1}" - + LATEX_CURLY_RIGHT + ALIGN_END); - - for (int i = 0; i < actual.size(); i++) { - assertEquals(actual.get(i), expected.get(i)); - } - } - - - @Test - void singleConstConstraintTest() { - typeInferer = model.getTypeInferer("5", new HashMap<>()).unwrap(); - List expected = new LatexCreatorConstraints(typeInferer, Enum::toString).getEverything(); - - List actual = List.of(EMPTY_CONSTRAINT_SET, - ALIGN_BEGIN + AMPERSAND + CONSTRAINT_SET + EQUALS + LATEX_CURLY_LEFT + TREE_VARIABLE + "_{1}" + EQUALS - + MONO_TEXT + "{int}" + LATEX_CURLY_RIGHT + ALIGN_END); - - for (int i = 0; i < actual.size(); i++) { - assertEquals(actual.get(i), expected.get(i)); - } - } }