source: trip-planner-front/node_modules/@webassemblyjs/utf8/test/index.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 363 bytes
RevLine 
[6a3a178]1const { assert } = require("chai");
2
3const { decode, encode } = require("../lib");
4
5describe("UTF8", () => {
6 it("should f-1(f(x)) = x", () => {
7 assert.equal(decode(encode("foo")), "foo");
8 assert.equal(decode(encode("éé")), "éé");
9
10 // TODO(sven): utf8 encoder fails here
11 // assert.equal(decode(encode("🤣见見")), "🤣见見");
12 });
13});
Note: See TracBrowser for help on using the repository browser.