Since I struggled a lot with finally getting my custom tests to work I decided to post here with two examples. Here is the ref file of the first public test:
My code passed the test. Now the ref file from my own test:
The difference is that the public tests have this extra line and I thought they are the pattern which I should follow. Actually my custom tests worked out, but only if I deleted that extra line. So my question essentially is why is there a difference? (and why didn’t anyone tell me a few hours ago?)
Hey, there should be no difference between public and custom tests. In both cases the output of the test is checked against the ref file char by char. I assume your custom test simply does not print this newline character at the end. If you adjust your custom test such that it also outputs the newline character then it would work the way you had it previously, i.e. with the newline in the .ref file. Note that it might be the case that some public tests contain the newline in the ref file and some do not. Either way, the corresponding assembly file would respect this. So if you always copy both files from the same test and not e.g. the .asm file from test_check_win_1 and the .ref file from another test then you should not have any trouble.