# NI6 Test not correct?

**URL:** <https://forum.codecrafters.io/t/ni6-test-not-correct/6035>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [March 4, 2025, 9:28pm UTC](https://forum.codecrafters.io/t/ni6-test-not-correct/6035 "2025-03-04T21:28:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-muldoon](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/j-muldoon/32/6224_2.png) [@j-muldoon](https://forum.codecrafters.io/u/j-muldoon)\
**Post date:** [March 4, 2025, 9:28pm UTC](https://forum.codecrafters.io/t/ni6-test-not-correct/6035/1 "2025-03-04T21:28:44Z")

</div>

![Screenshot 2025-03-04 at 21.26.22](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/5/5dc63d91b8fb0e42aa13524c3a3d367f17070e3b.png)

Why is the expected output different than required in the instructions? In the instructions the extra spaces are asked to be preserved.

---

<div class="post-metadata">

**Author:** ![Nicholas-EG](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/nicholas-eg/32/5194_2.png) [@Nicholas-EG](https://forum.codecrafters.io/u/Nicholas-EG)\
**Post date:** [March 4, 2025, 9:33pm UTC](https://forum.codecrafters.io/t/ni6-test-not-correct/6035/3 "2025-03-04T21:33:22Z")

</div>

The instructions say that extra space within single quotes should be preserved. This particular test doesn’t use single quotes, so echo should compress the whitespace.

---

<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:** [March 10, 2025, 2:11am UTC](https://forum.codecrafters.io/t/ni6-test-not-correct/6035/5 "2025-03-10T02:11:36Z")

</div>

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