# \#TZ7 :case 1 test error,but i tested correctly locally

**URL:** <https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969>\
**Category:** Challenges\
**Tags:** challenge:interpreter\
**Created:** [November 16, 2024, 2:18pm UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969 "2024-11-16T14:18:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zilboe](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/zilboe/32/2963_2.png) [@zilboe](https://forum.codecrafters.io/u/zilboe)\
**Post date:** [November 16, 2024, 2:18pm UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969/1 "2024-11-16T14:18:37Z")

</div>

I tested locally correctly, but the upload test is wrong

```auto
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] LEFT_PAREN ( null
remote: [your_program] RIGHT_PAREN ) null
remote: [your_program] EOF null
remote: [tester::#TZ7] [test-1] expected exit code 65, got 0
remote: [tester::#TZ7] [test-1] Test failed

```

it is my test locally

```auto
LEFT_PAREN ( null
RIGHT_PAREN ) null
[line 1] Error: Unexpected character: @
EOF null

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 16, 2024, 3:31pm UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969/2 "2024-11-16T15:31:15Z")

</div>

Could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

And what error messages were you seeing?

---

<div class="post-metadata">

**Author:** ![zilboe](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/zilboe/32/2963_2.png) [@zilboe](https://forum.codecrafters.io/u/zilboe)\
**Post date:** [November 16, 2024, 3:58pm UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969/4 "2024-11-16T15:58:13Z")

</div>

Thank u,i upload the code to github，[https://github.com/zilboe/zilboe-codecrafters-interpreter-c](https://github.com/zilboe/zilboe-codecrafters-interpreter-c),and when i tested,it expected exit code 65, got 0.but i tested in ubuntu22.04,the exit code is 65

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 24, 2024, 4:10pm UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969/5 "2024-11-24T16:10:46Z")

</div>

Hi @zilboe, I tried running your code against the previous stages, but it’s no longer passing **Stage #ER2 (Scanning: Whitespace)**.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/b/befbb35a5f923b9e1f0c1e45cfd225d344584b17.jpeg)

Suggestions:

1. Use [our CLI](https://docs.codecrafters.io/cli/installation) to test against previous stages by running:

```auto
codecrafters test --previous

```

1. Focus on fixing the early stages first, as later stages depend on them.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [December 28, 2024, 12:29am UTC](https://forum.codecrafters.io/t/tz7-case-1-test-error-but-i-tested-correctly-locally/2969/7 "2024-12-28T00:29:38Z")

</div>

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