Skip to content

Commit

Permalink
Execute 128bits Hasher specs that are now passing (crystal-lang#5380)
Browse files Browse the repository at this point in the history
Conditionally run this on 64bits platforms.
Ref crystal-lang#5276
  • Loading branch information
luislavena authored and chris-huxtable committed Jun 6, 2018
1 parent 1ea9db7 commit 07ff287
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spec/std/crystal/hasher_spec.cr
Expand Up @@ -56,10 +56,13 @@ describe "Crystal::Hasher" do
Int64::MAX.hash.should eq(Int64::MAX.hash)
end

pending "128bit types should be hashed ok" do
1.to_i128.hash.should eq(1_i8.hash)
1.to_u128.hash.should eq(1_u8.hash)
end
# TODO: remove fencing when 128bits support is added to non-native platforms
{% if flag?(:bits64) %}
it "128bit types should be hashed ok" do
1.to_i128.hash.should eq(1_i8.hash)
1.to_u128.hash.should eq(1_u8.hash)
end
{% end %}

it "#float should change state and differ" do
hasher = TestHasher.for_test
Expand Down

0 comments on commit 07ff287

Please sign in to comment.