Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | const { assert } = require("chai");
|
---|
| 2 |
|
---|
| 3 | const { decode, encode } = require("../lib");
|
---|
| 4 |
|
---|
| 5 | describe("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.