-
-
Notifications
You must be signed in to change notification settings - Fork 21
Test two combinations in triangular test sets #1294
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1294 +/- ##
=======================================
Coverage 92.12% 92.12%
=======================================
Files 34 34
Lines 15509 15509
=======================================
Hits 14287 14287
Misses 1222 1222 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that reduce the number of cases and hence test runtime?
Actually, this increases the number of cases. Currently, e.g. for (elty1, elty2) = (Float64, Float64)
(elty1, elty2) = (Float64, ComplexF32)
(elty1, elty2) = (Float64, Int64) This increases the runtime by quite a bit. Reading the comment above, the intent appears to be to test one combination of differing |
Change `elty1` to `elty2` within the `elty2` loop so that the condition isn't repeated.
b3aafe5
to
d8530d7
Compare
The current approach ensures that exactly two combinations are tested for each type. This changes the current behaviour of testing all combinations for |
@andreasnoack since you were involved in splitting the test sets, do you think this approach seems reasonable? In this PR, we test each type against itself, and another type that is chosen at random. |
Change
elty1
toelty2
to avoid repeating the condition.