nushell / nufmt

MIT License
64 stars 8 forks source link

refactor the tests #22

Closed amtoine closed 1 year ago

amtoine commented 1 year ago

cc/ @AucaCoyan

i was having a look at the tests and wanted to give a go at

in this PR, i've

i hope you'll find that somewhat better :crossed_fingers:

:question: @AucaCoyan, i've got a question :smirk: in all the tests, the input string does not have a newline at the end, whereas the output of nufmt does. it is by design?

AucaCoyan commented 1 year ago

in all the tests, the input string does not have a newline at the end, whereas the output of nufmt does. it is by design?

Yes, this is intended. The nufmt should add a new line at the end of the script.

Thanks! It is clearer this way 😄 You can merge @fdncred 🚢