Missing whitespace in #TG6 answer

there should be a whitespace between the example and test in the expected answer.

➜ codecrafters test
Initiating test run...

⚡ This is a turbo test run. https://codecrafters.io/turbo

Running tests. Logs should appear shortly...

[compile]    Compiling codecrafters-shell v0.1.0 (/app)
[compile]     Finished `release` profile [optimized] target(s) in 1.47s
[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

Debug = true

[tester::#TG6] Running tests for Stage #TG6 (Quoting - Double quotes)
[tester::#TG6] [setup] export PATH=/tmp/banana/apple/apple:$PATH
[tester::#TG6] Running ./your_program.sh
[tester::#TG6] [setup] echo -n "pear pineapple." > "/tmp/bar/f 42"
[tester::#TG6] [setup] echo -n "strawberry banana." > "/tmp/bar/f   89"
[tester::#TG6] [setup] echo -n "pineapple mango." > "/tmp/bar/f's68"
[your-program] $ echo "test hello"
[your-program] test hello
[tester::#TG6] ✓ Received expected response
[your-program] $ echo "hello  world"  "example""test"
[your-program] hello  world example test
[tester::#TG6] Output does not match expected value.
[tester::#TG6] Expected: "hello  world exampletest"
[tester::#TG6] Received: "hello  world example test"
[your-program] $ 
[tester::#TG6] Assertion failed.
[tester::#TG6] Test failed

Hi, thanks for your post!

I’m currently out of the office and will return on Feb 3. I’ll get back to you as soon as possible after I’m back.

so did you take a look at it already? @andy1li

Hi @adibfarrasy, thanks for highlighting the issue!

It seems that there might be some misunderstanding. When two strings are placed directly next to each other, they will be automatically concatenated.

For example, here’s the output from zsh on my machine:

1 Like

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