(a)
| 24 | description("This page tests sorting of string values"); |
| 25 | |
| 26 | function shouldBeInThisOrder(a) |
| 27 | { |
| 28 | shouldBeTrue('"' + a[0] + '"' + " < " + '"' + a[1] + '"'); |
| 29 | shouldBe('[' + '"' + a[0] + '"' + ',' + '"' + a[1] + '"' + '].sort().toString()', '"' + a + '"'); |
| 30 | } |
| 31 | |
| 32 | shouldBeInThisOrder(["12", "123"]); |
| 33 | shouldBeInThisOrder(["123", "13"]); |
no test coverage detected