You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you considered putting the expected test results in separate files and reading them in and comparing them to the output? This might be easier than writing concatenation code like this little ditty:
which is very easy to screw up, requires a lot of trial and error, and is hard to see being correct at a quick glance.
Something like assertTrue(runLint("test1before.txt").equals(readFile("test1after.txt"))); would making writing and verifying tests much faster and easier to maintain.