We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf1fe9 commit 2aeab3bCopy full SHA for 2aeab3b
tests/tetests.cpp
@@ -788,6 +788,13 @@ TEST_CASE("Logic & Operators", "[main]")
788
CHECK(tep.evaluate("NOT(0)") == 1);
789
CHECK_FALSE(tep.evaluate("NOT(5)"));
790
CHECK(std::isnan(tep.evaluate("NOT(NAN)")));
791
+ CHECK(tep.evaluate("NOT(FALSE)"));
792
+ CHECK_FALSE(tep.evaluate("NOT(TRUE)"));
793
+ CHECK_FALSE(tep.evaluate("NOT(1+1=2)"));
794
+ CHECK(tep.evaluate("NOT(2+2=5)"));
795
+ CHECK(tep.evaluate("NOT(50>100)"));
796
+ CHECK(-1 == tep.evaluate("IF(AND(NOT(50>1),NOT(50<100)),50,-1)"));
797
+ CHECK(100 == tep.evaluate("=IF(OR(NOT(100<0),NOT(100>50)),100,-1)"));
798
799
// garbage values
800
#ifndef TE_BITWISE_OPERATORS
0 commit comments