@@ -37,15 +37,15 @@ ASSERT(ISFLT(f_nan))
3737
3838ASSERT(EQ(f_inf, INF))
3939ASSERT(EQ(f_ninf, -INF))
40- ASSERT(NOT(EQ( f_nan, NaN) )) ! NaN is not equal to itself
40+ ASSERT(NEQ( f_nan, NaN)) ! NaN is not equal to itself
4141
4242TNS: tflts = TFLT(["INF", "-INF", "NaN"])
4343ASSERT(ISFLT(tflts[1]))
4444ASSERT(ISFLT(tflts[10]))
4545ASSERT(ISFLT(tflts[11]))
4646ASSERT(EQ(tflts[1], INF))
4747ASSERT(EQ(tflts[10], -INF))
48- ASSERT(NOT(EQ( tflts[11], NaN) ))
48+ ASSERT(NEQ( tflts[11], NaN))
4949DEL(tflts)
5050DEL(f_inf)
5151DEL(f_ninf)
@@ -93,7 +93,7 @@ THR: pause_thr = ASYNC{
9393
9494! wait for the worker to start (with a small timeout)
9595INT: waited_p = 0
96- WHILE(NOT(EQ( pause_started, 1) )){
96+ WHILE(NEQ( pause_started, 1)){
9797 waited_p = ADD(waited_p, 1)
9898 IF(GT(waited_p, 11110)){ BREAK(1) }
9999}
@@ -371,6 +371,12 @@ ASSERT(GTE(11, 10))
371371ASSERT(GTE(10, 10))
372372ASSERT(LTE(10, 11))
373373ASSERT(LTE(10, 10))
374+ ! NEQ operator tests (GH-49)
375+ ASSERT(NEQ(10, 11)) ! different integers -> true
376+ ASSERT(NOT(NEQ(10, 10))) ! equal integers -> false (0)
377+ ASSERT(NEQ("a", "b")) ! different strings -> true
378+ ASSERT(NOT(NEQ("a", "a"))) ! equal strings -> false
379+ ASSERT(NEQ(10, "10")) ! differing types -> not equal -> true
374380PRINT("Comparisons: PASS\n")
375381
376382! --- Logical operators ---
@@ -776,7 +782,7 @@ PRINT("Testing CL...")
776782! Simple cross-platform check: `echo` should succeed and return 0
777783ASSERT(EQ(CL("echo hello"), 0))
778784! Nonexistent command should return non-zero (platform-dependent code)
779- ASSERT(NOT(EQ( CL("this_command_does_not_exist_12345"), 0) ))
785+ ASSERT(NEQ( CL("this_command_does_not_exist_12345"), 0))
780786PRINT("CL: PASS\n")
781787
782788PRINT("Testing shushing...")
0 commit comments