(expected: string, input: string)
| 7 | testUnicode(expected, input); |
| 8 | } |
| 9 | function testUnicode(expected: string, input: string) { |
| 10 | assertEquals(expected, reverse(input)); |
| 11 | // check idempotency |
| 12 | assertEquals(input, reverse(reverse(input))); |
| 13 | // check empty object handling |
| 14 | assertEquals(expected, reverse(input, {})); |
| 15 | } |
| 16 | function testAscii(expected: string, input: string) { |
| 17 | assertEquals(expected, reverse(input, { handleUnicode: false })); |
| 18 | // check idempotency |
no test coverage detected