Jun-19-2019, 02:06 PM
I would agree with spreading it into multiple classes. When I'm building test code, I have one file of test code for each file in the program (and you may want to break your program up into more files). Each file has multiple test classes, each class typically for a different method or function. Each method of a test class tests a specific situation.
You might want to look at some of the test packages available. I use unittest, and it makes it easy to make the test classes and to share code between test cases. I can easily run all of the test cases in a file with one line, and easily make a program that runs all of the test files in a folder.
You might want to look at some of the test packages available. I use unittest, and it makes it easy to make the test classes and to share code between test cases. I can easily run all of the test cases in a file with one line, and easily make a program that runs all of the test files in a folder.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures