nus-cs2113-AY2223S2 / forum

10 stars 0 forks source link

text-ui-test script does not work as intended #19

Open mitchmalvin1 opened 1 year ago

mitchmalvin1 commented 1 year ago

My ACTUAL.TXT and my EXPECTED.TXT are exactly identical and I have made sure that the spacing is also identical, however it still fails the test, I read from the tutorial page that it is because the ending line of the two files are different and that the solution is

Solution: You can use the dos2unix utility (available in git-bash and *nix operating systems) to convert a file to Unix format.

I am not sure how I am supposed to implement this, do I change the script?

okkhoy commented 1 year ago

Are you using GitBash or command prompt/powershell? If you use GitBash, dos2unix is a part of the script, you don't need to do anything. Use meld to check what difference you see. (e.g., there could be an additional new line at the end of the file).