1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Ensure that numeric strings followed by non-whitespace are treated as NaN. -- Testcase -- {% printf("%.J\n", [ "1" == 1, " 1" == 1, "1 " == 1, "1a" == 1, "1 a" == 1 ]); %} -- End -- -- Expect stdout -- [ true, true, true, false, false ] -- End --