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

Add RotMatrix2, RotMatrix3 type aliases. #36

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

tkoolen
Copy link
Contributor

@tkoolen tkoolen commented Jun 28, 2017

I've found these come in handy.

@tkoolen
Copy link
Contributor Author

tkoolen commented Jun 28, 2017

Unrelated failure on OSX nightly, I believe.

@tkoolen tkoolen requested a review from c42f June 28, 2017 19:14
Copy link
Member

@c42f c42f left a comment

Choose a reason for hiding this comment

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

Looks good to me. Test could be a tiny bit cleaner with a tweak (not a big deal :-) )


@testset "Testing type aliases" begin
@test typeof(eye(RotMatrix{2, Float64})) == RotMatrix2{Float64}
@test typeof(eye(RotMatrix{3, Float64})) == RotMatrix3{Float64}
Copy link
Member

Choose a reason for hiding this comment

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

This can be a nice place to use isa:

@test eye(RotMatrix{2, Float64}) isa RotMatrix2{Float64}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@c42f
Copy link
Member

c42f commented Jun 30, 2017

The latest OSX failure is unrelated for sure. Restarted it for good measure, and now it seems to have gone through.

@c42f c42f merged commit b89d455 into JuliaGeometry:master Jun 30, 2017
@tkoolen tkoolen mentioned this pull request Aug 3, 2017
Closed
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.

2 participants