-
-
Notifications
You must be signed in to change notification settings - Fork 116
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 Compat entries for #11140 & #11241 #90
Conversation
# isvalid | ||
let s = "abcdef", u8 = "abcdef\uff", u16 = utf16(u8), u32 = utf32(u8) | ||
@test !isvalid(UTF32String(UInt32[65,66,0x110000,0]) | ||
@test !isvalid(Char(0x110000)) |
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.
this test needs to be something like @test !isvalid(@compat Char(0x110000))
for 0.3
Thanks, I've been trying to figure out how to make it work in 0.3 |
Should be fixed now! |
Cool, I think this looks right. Thank you very much! |
@tkelman Can this be merged now? (so nobody has issues going back and forth between 0.4 and 0.3.x?) Thanks! |
Sure. |
Add Compat entries for #11140 & #11241
Not sure this was quite right as it failed travis https://travis-ci.org/JuliaLang/Compat.jl/jobs/64189228
Does isvalid etc need to be exported outside of the if-block? |
Hm, that failed on 0.4.0-dev+5023, so it's actually that the test is trying to use methods that don't exist on Julia master
|
That was the other possibility! It's annoying that this version number is not printed in the travis log, or available more cleanly from the commit without building (perhaps I'm missing a trick here?). |
I specifically made sure that the version number would be printed in the Travis log when we were implementing |
@tkelman sorry, I meant on the JuliaLang/julia travis log! |
I added a |
Hmmmmmmmmm, weirdly versioninfo does show the version number locally e.g. +5016... But on travis it just has
e.g. look for "versioninfo" on this build. |
Oh, that is odd. I think what might be going on there is the way travis clones from github is confusing our version_git script, note the warnings a little earlier
|
Did I do something wrong? :sad: |
Will need to fix the method error from #90 (comment) - not sure why Travis didn't catch this the first time around |
Travis didn't catch it cos it was |
OK, I figured it out... my tests were on v0.3.7, v0.3.8 and v0.4 before isvalid... and this breaks now that isvalid has been added to master, and the Compat code isn't being used, because although the Compat code handled the two argument case, the code in master missed a method for the 2-argument form... |
Should be fixed by #11482 when/if that is merged... |
This adds Compat entries for is_valid_utf32, and all of the isvalid changes.