I already have the default case in my switch statement designed to print out what they’re asking for in this stage, I’m really not clear on why I’m not detecting these characters at all.
Here are my logs:
remote: [tester::#TZ7] Running tests for Stage #TZ7 (Scanning: Multi-line errors)
remote: [tester::#TZ7] [test-1] Running test case: 1
remote: [tester::#TZ7] [test-1] Writing contents to ./test.lox:
remote: [tester::#TZ7] [test-1] [test.lox] ()<|SPACE|><|TAB|>@
remote: [tester::#TZ7] [test-1] $ ./your_program.sh tokenize test.lox
remote: [your_program] Logs from your program will appear here!
remote: [your_program] LEFT_PAREN ( null
remote: [your_program] RIGHT_PAREN ) null
remote: [your_program] EOF null
And here’s a snippet of my code in my scanner.go class:
@apmsabee hmm, if you run this against a file locally, do you see the errors printed?
Also, could you publish your code to GitHub please? Here’s how you can do this: Publish to GitHub - CodeCrafters. Without seeing the rest of your code it’s difficult to figure out what’s going on.
I also have similar issue, I am not sure but it seems like the remote test case is not correct. I created an identical test case on my local machine and it passed successfully, but running remote test cases give following error. Note that according to test case the file does not contain @ character