Hello I had a question about test cases. I currently have a main program that stores data in a BST tree and when I call a void print function that I have in a separate file it prints the correct results.
However what I want to do is compare these results that I have printed to the results in a separate file that I have created that contains the correct results. How would I approach this without any < diff commands on the linux shell.
I need to strictly have this comparison in my program code so that if any user decides to use my main program to test his program, he can just run my main program and it will say if the output is correct (automatically).
Thanks, Ronald