1 Check stepMismatch results for type=week.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS stepMismatchFor("", null, null) is false
8 PASS stepMismatchFor("", "2", "1970-W02") is false
10 PASS stepMismatchFor("2010-W03", "2", "2010-W02") is true
11 PASS stepMismatchFor("2010-W02", "2", "2010-W02") is false
12 PASS stepMismatchFor("2010-W04", "2", "2010-W02") is false
13 PASS stepMismatchFor("1800-W11", "3", "1800-W09") is true
14 PASS stepMismatchFor("1800-W09", "3", "1800-W09") is false
15 PASS stepMismatchFor("1800-W12", "3", "1800-W09") is false
16 PASS stepMismatchFor("275760-W35", "3", "275760-W33") is true
17 PASS stepMismatchFor("275760-W35", "2", "275760-W33") is false
19 PASS stepMismatchFor("1970-W01", "2", null) is false
20 PASS stepMismatchFor("1970-W02", "2", null) is true
21 PASS stepMismatchFor("1970-W03", "2", null) is false
22 PASS stepMismatchFor("1970-W04", "2", null) is true
23 Fractional step values
24 PASS stepMismatchFor("2010-W03", "0.1", "2010-W02") is false
25 PASS stepMismatchFor("2010-W03", "1.1", "2010-W02") is false
26 PASS stepMismatchFor("2010-W03", "1.9", "2010-W02") is true
27 Invalid or no step values
28 PASS stepMismatchFor("2010-W03", null, "2010-W02") is false
29 PASS stepMismatchFor("2010-W03", "-1", "2010-W02") is false
30 PASS stepMismatchFor("2010-W03", "foo", "2010-W02") is false
32 PASS stepMismatchFor("2010-W03", "any", "2010-W02") is false
34 PASS stepMismatchFor("2010-W03", "2", "2010-W02", true) is false
35 PASS successfullyParsed is true