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

Fix specs on win32 #8670

Merged
merged 10 commits into from
Jan 13, 2020
Merged

Fix specs on win32 #8670

merged 10 commits into from
Jan 13, 2020

Conversation

straight-shoota
Copy link
Member

This either fixes or disables specs that don't succeed on win32.

With this and #8668 win32_std_spec.cr should be all green 👍

Finished in 6.84 seconds
4920 examples, 1 failures, 5 errors, 13 pending

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform:windows Windows support based on the MSVC toolchain / Win32 API kind:specs labels Jan 10, 2020
spec/std/dir_spec.cr Show resolved Hide resolved
spec/std/dir_spec.cr Show resolved Hide resolved
spec/std/dir_spec.cr Show resolved Hide resolved
src/dir/glob.cr Outdated Show resolved Hide resolved
@@ -106,7 +106,7 @@ describe "#print Float64" do
test_pair 5.5626846462680035e-309, "5.562684646268003e-309"
end

it "falure case" do
pending_win32 "failure case" do
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this broken?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea. It returns a different result. Maybe that's expected? IDK. Needs investigation into the win32 libs.

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems there is something fundamentally broken with floating point numbers on win32:

"%f" % 1.0 # => "0.000000"

spec/std/raise_spec.cr Show resolved Hide resolved
spec/std/dir_spec.cr Outdated Show resolved Hide resolved
oprypin added a commit to oprypin/crystal that referenced this pull request Jan 11, 2020
src/dir/glob.cr Outdated Show resolved Hide resolved
@straight-shoota
Copy link
Member Author

Rebased to squash fixups.

src/dir/glob.cr Outdated Show resolved Hide resolved
@RX14 RX14 merged commit afc3292 into crystal-lang:master Jan 13, 2020
@RX14 RX14 added this to the 0.33.0 milestone Jan 13, 2020
@straight-shoota straight-shoota deleted the fix/win32-specs branch January 13, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs platform:windows Windows support based on the MSVC toolchain / Win32 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants