From 94e2a91a286184c92ec84104d1062d2212d1f21d Mon Sep 17 00:00:00 2001 From: CarlHejlesen <113053807+CarlHejlesen@users.noreply.github.com> Date: Thu, 9 May 2024 16:40:06 +0200 Subject: [PATCH] =?UTF-8?q?slettet=20un=C3=B8dig=20prut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../carl/Semantic_A/TypeCheckerTest.java | 101 +----------------- 1 file changed, 2 insertions(+), 99 deletions(-) diff --git a/src/test/java/dk/aau/cs_24_sw_4_16/carl/Semantic_A/TypeCheckerTest.java b/src/test/java/dk/aau/cs_24_sw_4_16/carl/Semantic_A/TypeCheckerTest.java index 5a6c95f..bff0675 100644 --- a/src/test/java/dk/aau/cs_24_sw_4_16/carl/Semantic_A/TypeCheckerTest.java +++ b/src/test/java/dk/aau/cs_24_sw_4_16/carl/Semantic_A/TypeCheckerTest.java @@ -105,15 +105,7 @@ void testErrorHandler() { assertEquals(expectedOutput.trim(), normalizedActualOutput); } - @Test - void testGetType() { - - } - - @Test - void testGetVariable() { - - } + @Test void testRelationOperatorTypeCheck() { @@ -135,25 +127,7 @@ void testRelationOperatorTypeCheck() { assertEquals(Type.BOOLEAN, testfn3, "Should have Type bool"); } - @Test - void testVisitAssignNode() { - - } - - @Test - void testVisitBlockNode() { - - } - - @Test - void testVisitFunctionCall() { - - } - - @Test - void testVisitFunctionDefinition() { - - } + @Test void testVisitIfStatement() { @@ -197,31 +171,6 @@ void testVisitWhileLoop() { "While loop expresion must resolve to bool expresion, and this resolve to Type:" + errorType); } - @Test - void testVisitProgramNode() { - - } - - @Test - void testVisitReturnNode() { - - } - - @Test - void testVisitStatements() { - - } - - @Test - void testVisitStruct() { - - } - - @Test - void testVisitor() { - - } - @Test void testTypeCheker1() { @@ -273,52 +222,6 @@ void testTypeCheker2() { // assertTrue( terminal_Errors.contains(correct_error)); } - @Test - void testTypeCheker3() { - /* - * Tried to assign the type:" + assignType + " to the array:" + identifier - * + " that has the type:" + arrayType + ", and that is ilegal - */ - } - - @Test - void testTypeCheker4() { - /* - * Identifier:" + identifier + " is alredy used, rename it - */ - } - - @Test - void testTypeCheker5() { - /* - * Tried to declare the array:" + identifier + " but argument: " + - * arguementNumber - * + " is of type:" + sizeType + " and should be:" + arrayType - */ - } - - @Test - void testTypeCheker6() { - /* - * Identifier:" + identifier + " is alredy used, rename it - */ - } - - @Test - void testTypeCheker7() { - /* - * Type " + oldType + " does not match " + newType - * - */ - } - - @Test - void testTypeCheker8() { - /* - * "Wrong types for binary operation:" + leftType + ":" + left + " And:" + right - * + ":" + rightType - */ - } @Test void testTypeCheker9() {