Skip to content

Commit 194f8e9

Browse files
committed
Run format
1 parent 425ced8 commit 194f8e9

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/cse-machine/__tests__/cse-machine-errors.test.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ test('Infinite recursion with a block bodied function', { timeout: 15_000 }, ()
180180
).toEqual(expect.stringMatching(/Maximum call stack size exceeded\n *(i\(\d*\)[^i]{2,4}){3}/))
181181
})
182182

183-
test('Infinite recursion with function calls in argument', { timeout: process.env.GITHUB_ACTIONS ? 35_000 : 20_000 }, () => {
184-
return expectParsedError(
185-
stripIndent`
183+
test(
184+
'Infinite recursion with function calls in argument',
185+
{ timeout: process.env.GITHUB_ACTIONS ? 35_000 : 20_000 },
186+
() => {
187+
return expectParsedError(
188+
stripIndent`
186189
function i(n, redundant) {
187190
return n === 0 ? 0 : 1 + i(n-1, r());
188191
}
@@ -191,11 +194,12 @@ test('Infinite recursion with function calls in argument', { timeout: process.en
191194
}
192195
i(300000, 1);
193196
`,
194-
optionEC4
195-
).toEqual(
196-
expect.stringMatching(/Maximum call stack size exceeded\n *(i\(\d*, 1\)[^i]{2,4}){2}[ir]/)
197-
)
198-
})
197+
optionEC4
198+
).toEqual(
199+
expect.stringMatching(/Maximum call stack size exceeded\n *(i\(\d*, 1\)[^i]{2,4}){2}[ir]/)
200+
)
201+
}
202+
)
199203

200204
test('Infinite recursion of mutually recursive functions', { timeout: 15_000 }, () => {
201205
return expectParsedError(

0 commit comments

Comments
 (0)