blob: 2f635056e586bf3afcaaf81d28c84b41536379d3 [file] [log] [blame]
import LowLevelBinary from '../LowLevelBinary.js';
const values = [
"",
"0",
"Hello, World!",
"Il dit non avec la tête, mais il dit oui avec le cœur",
"焼きたて!! ジャぱん",
"(╯°□°)╯︵ ┻━┻",
"$¢€𐍈�",
"👨‍❤️‍💋‍👨",
];
for (const i of values) {
let b = new LowLevelBinary();
b.string(i);
const v = b.getString(0);
if (v !== i)
throw new Error(`Wrote "${i}" and read back "${v}"`);
}