Added equality tests

This commit is contained in:
cschreib
2017-06-30 13:35:49 +02:00
parent c1b01d879e
commit 4cdeb9150e
2 changed files with 31 additions and 6 deletions

9
test.c
View File

@@ -694,6 +694,15 @@ void test_logic() {
{"2 > -2", 1},
{"-2 < 2", 1},
{"0 == 0", 1},
{"0 != 0", 0},
{"2 == 2", 1},
{"2 != 2", 0},
{"2 == 3", 0},
{"2 != 3", 1},
{"2 == 2.0001", 0},
{"2 != 2.0001", 1},
{"1 < 2 && 2 < 3", 1},
{"1 < 2 && 3 < 2", 0},
{"2 < 1 && 2 < 3", 0},