Files
sausage/userland/qjs/source/tests/bug1571.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

14 lines
346 B
JavaScript

import { assert } from "./assert.js";
function check(unit, halfCount) {
const rope = unit.repeat(halfCount) + unit.repeat(halfCount);
const flat = unit.repeat(halfCount * 2);
assert(rope.length, flat.length);
assert(RegExp.escape(rope), RegExp.escape(flat));
}
check("a", 50000);
check("a.b-c|d", 4000);
check("€☃", 4000);