summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-05-09 15:16:44 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-05-09 15:16:44 +0200
commitb58c6adee700a96280915998b352e0ce5bb07f7a (patch)
tree3dc35ffab87f56f1edd7e327756acb1279bcd536
parent399c4acad3e4fc0306edfcd3320c61031fa90555 (diff)
downloadcompilertests-b58c6adee700a96280915998b352e0ce5bb07f7a.tar.gz
compilertests-b58c6adee700a96280915998b352e0ce5bb07f7a.tar.bz2
fixed comparision of types test
-rw-r--r--ecomp-c/test1.e2
-rw-r--r--ecomp-c/tests/type_check_comparision.e4
2 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index 2836091..88a6d26 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -47,7 +47,7 @@ begin
end;
i := 0;
- while ( i < 10 ) and ( not flag ) do
+ while ( i < 10 ) and not flag do
i := i + 1;
end;
end
diff --git a/ecomp-c/tests/type_check_comparision.e b/ecomp-c/tests/type_check_comparision.e
index ceaa9ef..f98a1a9 100644
--- a/ecomp-c/tests/type_check_comparision.e
+++ b/ecomp-c/tests/type_check_comparision.e
@@ -1,5 +1,5 @@
/*
- * make sure assignment from illegal types throws an error
+ * make sure illegal type comparisions throw an error
*/
module bool_conditions;
@@ -11,6 +11,6 @@ var
begin
i := 1;
b := false;
- if i = 2 and false do
+ if i > b do
end;
end