diff --git a/spec/std/struct_spec.cr b/spec/std/struct_spec.cr index c8745a48285c..124345c18bd3 100644 --- a/spec/std/struct_spec.cr +++ b/spec/std/struct_spec.cr @@ -1,5 +1,7 @@ -require "spec" -require "big" +require "./spec_helper" +{% unless flag?(:win32) %} + require "big" +{% end %} private module StructSpec struct TestClass @@ -10,12 +12,14 @@ private module StructSpec end end - struct BigIntWrapper - @value : BigInt + {% unless flag?(:win32) %} + struct BigIntWrapper + @value : BigInt - def initialize(@value : BigInt) + def initialize(@value : BigInt) + end end - end + {% end %} struct DupCloneStruct property x, y @@ -54,7 +58,7 @@ describe "Struct" do s.hash.should eq(s.dup.hash) end - it "does hash for struct wrapper (#1940)" do + pending_win32 "does hash for struct wrapper (#1940)" do s = StructSpec::BigIntWrapper.new(BigInt.new(0)) s.hash.should eq(s.dup.hash) end diff --git a/spec/win32_std_spec.cr b/spec/win32_std_spec.cr index 1a738c398633..14b66ef2b408 100644 --- a/spec/win32_std_spec.cr +++ b/spec/win32_std_spec.cr @@ -187,7 +187,7 @@ require "./std/string_pool_spec.cr" require "./std/string_scanner_spec.cr" require "./std/string_spec.cr" require "./std/string/utf16_spec.cr" -# require "./std/struct_spec.cr" (failed linking) +require "./std/struct_spec.cr" require "./std/symbol_spec.cr" # require "./std/system/group_spec.cr" (failed codegen) # require "./std/system_spec.cr" (failed codegen)