{"draft":null,"from":71,"to":318,"files":[{"path":"src/engine/test/gen.ts","added":3,"removed":3,"diff":"--- a/src/engine/test/gen.ts\n+++ b/src/engine/test/gen.ts\n@@ -21,13 +21,13 @@\n \tconst out: Record<string, string> = {};\n \tfor (const path of [...files.keys()].sort()) {\n \t\tconst lines = files.get(path)!;\n-\t\tif (lines.length > 0) out[path] = lines.join(\"\\n\") + \"\\n\";\n+\t\tif (lines.length > 0) out[path] = `${lines.join(\"\\n\")}\\n`;\n \t}\n \treturn out;\n }\n \n function textOf(lines: readonly string[]): string {\n-\treturn lines.length === 0 ? \"\" : lines.join(\"\\n\") + \"\\n\";\n+\treturn lines.length === 0 ? \"\" : `${lines.join(\"\\n\")}\\n`;\n }\n \n function occurrences(text: string, needle: string): number {\n@@ -247,7 +247,7 @@\n \t\tlet old = t.slice(c1, this.rng.range(c1 + 1, t.length));\n \t\tif (this.rng.chance(0.3) && i + 1 < lines.length) {\n \t\t\tconst next = lines[i + 1]!;\n-\t\t\told = t.slice(c1) + \"\\n\" + next.slice(0, this.rng.int(next.length + 1));\n+\t\t\told = `${t.slice(c1)}\\n${next.slice(0, this.rng.int(next.length + 1))}`;\n \t\t}\n \t\tconst replacement = this.rng.pick([\"\", \"Z\", \"q\\nr\", \"\\n\", \"w\\n\", \"yy\", \"Z\\nZ\", this.fresh()]);\n \t\tconst text = textOf(lines);"}],"unmatched":[]}