1 Check stepMismatch results for number type
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
8 PASS stepMismatchFor("", null, null) is false
9 PASS stepMismatchFor("", "1.0", "0.1") is false
11 PASS stepMismatchFor("1", "2", "0") is true
12 PASS stepMismatchFor("-3", "2", "-4") is true
13 PASS input.max = "5"; stepMismatchFor("5", "3", "0") is true
14 PASS input.value is "5"
16 PASS stepMismatchFor("-3", "-2", "-4") is false
17 PASS stepMismatchFor("-3", null, "-4") is false
18 PASS stepMismatchFor("-3", undefined, "-4") is false
19 Huge numbers and small step; uncomparable
20 PASS stepMismatchFor("3.40282347e+38", "3", "") is false
21 PASS stepMismatchFor("3.40282346e+38", "3", "") is false
22 PASS stepMismatchFor("3.40282345e+38", "3", "") is false
23 Huge numbers and huge step
24 PASS stepMismatchFor("3.20e+38", "0.20e+38", "") is false
25 PASS stepMismatchFor("3.20e+38", "0.22e+38", "") is true
27 PASS stepMismatchFor("0.9", "0.1", "") is false
28 PASS stepMismatchFor("0.9", "0.1000001", "") is true
29 PASS stepMismatchFor("0.9", "0.1000000000000001", "") is false
30 PASS stepMismatchFor("1.0", "0.3333333333333333", "") is false
32 PASS stepMismatchFor("5.005", "0.005", "4") is false
34 PASS stepMismatchFor("1", "2", "0", true) is false
35 PASS successfullyParsed is true