loosen computational complexty check for printing fill (#16708)

This commit is contained in:
Seiya authored and GitHub committed 2024-09-30 15:37:36 +08:00
1 parent e3b8a16c7f
commit 94fa86e164
1 file changed
+2 -2
+2 -2
View File
@@ -46,9 +46,9 @@ test("`printDocToString` should not manipulate docs", () => {
describe("`printDocToString` has linear time complexity at most to print fill()", () => {
const baseSize = 3_000;
const relativeMargin = 0.4;
const relativeMargin = 0.6;
const baseTime = time(makeFill(baseSize));
test.each([10_000, 20_000, 40_000])("numWords=%d", (numWords) => {
test.each([20_000, 40_000, 60_000])("numWords=%d", (numWords) => {
const doc = makeFill(numWords);
const ellapsed = time(doc);
const ratio = numWords / baseSize;