/* Test file for minus operator spacing functionality */ /* This tests the new spacing-based ambiguity resolution for minus operator */ ..out "=== Minus Operator Spacing Tests ==="; /* Basic unary minus tests */ test1 : -5; test2 : -3.14; test3 : -10; test4 : -42; /* Basic binary minus tests */ test5 : 5 - 3; test6 : 10 - 5; test7 : 15 - 7; test8 : 10 - 2.5; /* Legacy syntax tests (should continue to work) */ test9 : (-5); test10 : (-3.14); test11 : (-10); test12 : 5-3; test13 : 15-7; /* Complex negative expressions */ test14 : -10 - -100; test15 : -5 - -3; test16 : -20 - -30; /* Assertions to validate behavior */ ..assert test1 = -5; /* Unary minus: -5 */ ..assert test2 = -3.14; /* Unary minus: -3.14 */ ..assert test3 = -10; /* Unary minus: -10 */ ..assert test4 = -42; /* Unary minus: -42 */ ..assert test5 = 2; /* Binary minus: 5 - 3 = 2 */ ..assert test6 = 5; /* Binary minus: 10 - 5 = 5 */ ..assert test7 = 8; /* Binary minus: 15 - 7 = 8 */ ..assert test8 = 7.5; /* Binary minus: 10 - 2.5 = 7.5 */ ..assert test9 = -5; /* Legacy: (-5) = -5 */ ..assert test10 = -3.14; /* Legacy: (-3.14) = -3.14 */ ..assert test11 = -10; /* Legacy: (-10) = -10 */ ..assert test12 = 2; /* Legacy: 5-3 = 2 */ ..assert test13 = 8; /* Legacy: 15-7 = 8 */ ..assert test14 = 90; /* Complex: -10 - -100 = 90 */ ..assert test15 = -2; /* Complex: -5 - -3 = -2 */ ..assert test16 = 10; /* Complex: -20 - -30 = 10 */ ..out "=== Basic Minus Operator Spacing Tests Passed ===";