Skip to content

Commit

Permalink
Revert failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-ag committed Mar 28, 2024
1 parent f7f9aaa commit 5a3c496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function testProgram(program: string, expectedValue: any) {
// print "Test failed" in red
console.log('\x1b[31m%s\x1b[0m', 'Test failed')
console.log(`Expected ${expectedValue} but got ${value}`)
console.log('--------------------------------------------')
throw new Error('Test failed')
} else {
// print "Test passed" in green
Expand All @@ -39,7 +40,7 @@ func foo(n) {
}
foo(5);
`,
6
5
)

// Testing recursive function
Expand Down

0 comments on commit 5a3c496

Please sign in to comment.