Skip to content
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

Fix incorrect operate test set #242

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Fix incorrect operate test set #242

merged 2 commits into from
Nov 27, 2023

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Nov 27, 2023

Currently the test set starts with the line
@testset "$(typeof(x))" for x in [2, big(3)], which points to the test not working as intended, because the array constructor ([2, big(3)]) promotes all elements to a common type, so naming the test set "$(typeof(x))" doesn't make sense.

Furthermore, after the above is fixed, the test fails because the !== check is performed independently of whether the type is mutable.

TODO: including Rational{BigInt} among the tested types reveals what
seems to be a bug: #240.

TODO: including abs among the tested operations reveals that it lacks
an operate method: #241.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6e6a854) 89.61% compared to head (b8e3d86) 89.65%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #242      +/-   ##
==========================================
+ Coverage   89.61%   89.65%   +0.04%     
==========================================
  Files          23       23              
  Lines        2156     2156              
==========================================
+ Hits         1932     1933       +1     
+ Misses        224      223       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

nsajko and others added 2 commits November 27, 2023 01:38
Currently the test set starts with the line
`@testset "$(typeof(x))" for x in [2, big(3)]`, which points to the
test not working as intended, because the array constructor
(`[2, big(3)]`) promotes all elements to a common type, so naming
the test set `"$(typeof(x))"` doesn't make sense.

Furthermore, after the above is fixed, the test fails because the `!==`
check is performed independently of whether the type is mutable.

TODO: including `Rational{BigInt}` among the tested types reveals what
seems to be a bug: #240.

TODO: including `abs` among the tested operations reveals that it lacks
an `operate` method: #241.
@odow odow changed the title fix nonsensical operate test set Fix incorrect operate test set Nov 27, 2023
Copy link
Member

@odow odow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I made a few minor changes

@odow odow merged commit ac7a8a9 into jump-dev:master Nov 27, 2023
11 checks passed
@nsajko nsajko deleted the fix_operate_test branch November 27, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants