Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@webassemblyjs/utf8/test/index.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40webassemblyjs/utf8/test/index.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@webassemblyjs/utf8/test/index.js
-
curl -L -o index.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40webassemblyjs/utf8/test/index.js
363 Bytes
| const { assert } = require("chai"); | |
| const { decode, encode } = require("../lib"); | |
| describe("UTF8", () => { | |
| it("should f-1(f(x)) = x", () => { | |
| assert.equal(decode(encode("foo")), "foo"); | |
| assert.equal(decode(encode("éé")), "éé"); | |
| // TODO(sven): utf8 encoder fails here | |
| // assert.equal(decode(encode("🤣见見")), "🤣见見"); | |
| }); | |
| }); | |