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

Test last convert method #279

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Test last convert method #279

merged 1 commit into from
Aug 10, 2017

Conversation

kshyatt
Copy link
Collaborator

@kshyatt kshyatt commented Aug 9, 2017

No description provided.

@kshyatt kshyatt requested a review from andyferris August 9, 2017 22:45
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 90.8% when pulling b1fc214 on ksh/convtest into f30509b on master.

@codecov-io
Copy link

codecov-io commented Aug 9, 2017

Codecov Report

Merging #279 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/eigen.jl 91.47% <0%> (-0.9%) ⬇️
src/convert.jl 100% <0%> (+7.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f30509b...350bdb2. Read the comment docs.

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,)
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great idea, updated!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 90.8% when pulling 350bdb2 on ksh/convtest into f30509b on master.

@kshyatt kshyatt merged commit bd09cd6 into master Aug 10, 2017
@kshyatt kshyatt deleted the ksh/convtest branch August 10, 2017 22:26
@@ -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,)
Copy link
Member

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Cue my comment ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants