-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create testing suite of cases for main computation loop #22
Comments
One that comes to mind to add to the Input section is:
If you don't mind, in the future if something comes up I'll just add it to the list directly within your initial comment rather than have a long thread. I'm happy to help in writing some of these tests. |
That's a good one...yes please feel free to just add to the list. |
@spencerkclark how much of the above cases |
@spencerahill thanks reminding me about this; I agree this needs to be updated. Our operations involving time are pretty well tested at the moment -- all the methods in
I feel pretty confident that those cases will be handled correctly (just because nearly all the
That said, I much prefer the way things are tested for instance in |
I agree. I'd say we can add tests of specific Calc cases if/when bugs arise, but otherwise we should focus our testing efforts on more granular unit tests. So I'll close this. |
Unit tests are badly needed pretty much everywhere. But in particular, a suite of test-cases should be implemented for the main
Calc.compute
that span all of the possible permutations of input and ouput specifications. Reason being: frequently when modifying the Calc class, out of laziness I just do an ad-hoc test using a single permutation of the myriad data input/output options...and then when I need to use a different combination, I come to find that the changes I implemented broke the code for this particular case.A few in particular that come to mind (additions are welcome; I will update this as they come up):
Input
Output
The text was updated successfully, but these errors were encountered: