-
Notifications
You must be signed in to change notification settings - Fork 149
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
Test last convert method #279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
==========================================
- Coverage 90.83% 90.79% -0.04%
==========================================
Files 36 36
Lines 2663 2663
==========================================
- Hits 2419 2418 -1
- Misses 244 245 +1
Continue to review full report at Codecov.
|
test/core.jl
Outdated
@@ -135,4 +135,6 @@ | |||
@test Tuple{2, 3, 5} != StaticArrays.Size{(2, 3, 4)} | |||
@test StaticArrays.Size{(2, 3, 4)} != Tuple{2, 3, 5} | |||
@test StaticArrays.check_length(2) == nothing | |||
|
|||
@test convert(Tuple, @SVector [1]) == (1,) |
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.
Better, @test convert(Tuple, @SVector [2]) === (2,)
because e.g.
julia> Size(@SVector [1]) == (1,)
true
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.
Great idea, updated!
@@ -135,4 +135,6 @@ | |||
@test Tuple{2, 3, 5} != StaticArrays.Size{(2, 3, 4)} | |||
@test StaticArrays.Size{(2, 3, 4)} != Tuple{2, 3, 5} | |||
@test StaticArrays.check_length(2) == nothing | |||
|
|||
@test convert(Tuple, @SVector [2]) == (2,) |
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.
I tend to use ===
for isbits immutables.
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.
Cue my comment ;-)
No description provided.