diff options
Diffstat (limited to 'test/transpiler/macro-test.test.ts')
-rw-r--r-- | test/transpiler/macro-test.test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/transpiler/macro-test.test.ts b/test/transpiler/macro-test.test.ts new file mode 100644 index 000000000..2390fac64 --- /dev/null +++ b/test/transpiler/macro-test.test.ts @@ -0,0 +1,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"); +}); |