MCPcopy Create free account
hub / github.com/denoland/std / testUnicode

Function testUnicode

text/unstable_reverse_test.ts:9–15  ·  view source on GitHub ↗
(expected: string, input: string)

Source from the content-addressed store, hash-verified

7 testUnicode(expected, input);
8}
9function 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}
16function testAscii(expected: string, input: string) {
17 assertEquals(expected, reverse(input, { handleUnicode: false }));
18 // check idempotency

Callers 2

testBothAsciiAndUnicodeFunction · 0.85

Calls 2

assertEqualsFunction · 0.90
reverseFunction · 0.90

Tested by

no test coverage detected