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

Yet more random tests #15794

Merged
merged 2 commits into from
Apr 8, 2016
Merged

Yet more random tests #15794

merged 2 commits into from
Apr 8, 2016

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Apr 7, 2016

No description provided.

@kshyatt kshyatt added the test This change adds or pertains to unit tests label Apr 7, 2016
@@ -68,3 +68,5 @@ for elty in (Float32,Float64)
@test round(elty2,A) == fill(round(elty2,x),(10,10,10))
end
end

@test float(Char) == Any
Copy link
Contributor

Choose a reason for hiding this comment

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

what needs this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, the function is defined here.

Copy link
Member

Choose a reason for hiding this comment

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

Jeez thats weird

Copy link
Contributor

Choose a reason for hiding this comment

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

what would break if we got rid of it?

Copy link
Member

Choose a reason for hiding this comment

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

That may be a vestige from when Char was a type of number. It isn't anymore, so we should delete this definition.

@kshyatt
Copy link
Contributor Author

kshyatt commented Apr 8, 2016

Hopefully I did the right thing here...

@tkelman
Copy link
Contributor

tkelman commented Apr 8, 2016

you'll also need to get rid of your test for it, I would assume

@kshyatt
Copy link
Contributor Author

kshyatt commented Apr 8, 2016

@tkelman better?

@tkelman tkelman merged commit ca3583e into master Apr 8, 2016
@tkelman tkelman deleted the ksh/grabbag4 branch April 8, 2016 23:48
@ivarne
Copy link
Member

ivarne commented Apr 11, 2016

The float method was introduced in #14413 (quite recently), and seems to still be in use (although untested).

cc @simonbyrne

PS: There seems to be some confusion in the comments here because @kshyatt tested float(Char), but the method definition applies to all non-Number types (float{T}(::Type{T})). This has nothing specifically to do with Char

@tkelman
Copy link
Contributor

tkelman commented Apr 11, 2016

whoops, should have checked blame. and there should've been a test that needed it? what does the Any result allow that to do though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants