OL4 test fails although the output seems correct

My program outputs the exact line including the 2 spaces but does not pass the test. I have no idea what’s wrong.

remote: [tester::#OL4] Running tests for Stage #OL4 (Scanning: Parentheses)
remote: [tester::#OL4] [test-1] Running test case: 1
remote: [tester::#OL4] [test-1] Writing contents to ./test.lox:
remote: [tester::#OL4] [test-1.lox] (
remote: [tester::#OL4] [test-1] $ ./your_program.sh tokenize test.lox
remote: [your_program] LEFT_PAREN ( null
remote: [tester::#OL4] [test-1] ✓ LEFT_PAREN ( null
remote: [tester::#OL4] [test-1] ? EOF null
remote: [tester::#OL4] [test-1] Expected line #2 on stdout to be “EOF null”, but didn’t find line
remote: [tester::#OL4] [test-1] Test failed (try setting ‘debug: true’ in your codecrafters.yml to see more details)

Hey @z4nsh1n, it looks the output is missing the expected EOF null.

If you’d like me to take closer look, please upload your code to GitHub and share the link.

Hello andy1li,

I’ve created this repository:

Hope you can help solve this problem.

Hey @andy1li,

I’ve fixed it. It dit output EOF null, but for the wrong reasons :smile: . anyway thanks for the offer.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.