blob: 2390fac64a31002b365005142d5a34a412bd19b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { identity } from "./macro.ts" assert { type: "macro" };
test("latin1 string", () => {
expect(identity("©")).toBe("©");
});
test("ascii string", () => {
expect(identity("abc")).toBe("abc");
});
test("utf16 string", () => {
expect(identity("😊 Smiling Face with Smiling Eyes Emoji")).toBe("😊 Smiling Face with Smiling Eyes Emoji");
});
|