mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@6cf8ebe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c7c6763f6
commit
75334db3c6
111 changed files with 1031 additions and 231 deletions
|
|
@ -41,16 +41,9 @@ describe :array_pack_float_le, shared: true do
|
|||
[-infinity_value].pack(pack_format).should == "\x00\x00\x80\xff"
|
||||
end
|
||||
|
||||
platform_is "86" do # x86 / x86_64
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x00\x00\xc0\xff"
|
||||
end
|
||||
end
|
||||
|
||||
platform_is "powerpc64" do
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x00\x00\xc0\x7f"
|
||||
end
|
||||
it "encodes NaN" do
|
||||
nans = ["\x00\x00\xc0\xff", "\x00\x00\xc0\x7f"]
|
||||
nans.should include([nan_value].pack(pack_format))
|
||||
end
|
||||
|
||||
it "encodes a positive Float outside the range of a single precision float" do
|
||||
|
|
@ -103,16 +96,9 @@ describe :array_pack_float_be, shared: true do
|
|||
[-infinity_value].pack(pack_format).should == "\xff\x80\x00\x00"
|
||||
end
|
||||
|
||||
platform_is "86" do # x86 / x86_64
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\xff\xc0\x00\x00"
|
||||
end
|
||||
end
|
||||
|
||||
platform_is "powerpc64" do
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x7f\xc0\x00\x00"
|
||||
end
|
||||
it "encodes NaN" do
|
||||
nans = ["\xff\xc0\x00\x00", "\x7f\xc0\x00\x00"]
|
||||
nans.should include([nan_value].pack(pack_format))
|
||||
end
|
||||
|
||||
it "encodes a positive Float outside the range of a single precision float" do
|
||||
|
|
@ -165,16 +151,9 @@ describe :array_pack_double_le, shared: true do
|
|||
[-infinity_value].pack(pack_format).should == "\x00\x00\x00\x00\x00\x00\xf0\xff"
|
||||
end
|
||||
|
||||
platform_is "86" do # x86 / x86_64
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x00\x00\x00\x00\x00\x00\xf8\xff"
|
||||
end
|
||||
end
|
||||
|
||||
platform_is "powerpc64" do
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x00\x00\x00\x00\x00\x00\xf8\x7f"
|
||||
end
|
||||
it "encodes NaN" do
|
||||
nans = ["\x00\x00\x00\x00\x00\x00\xf8\xff", "\x00\x00\x00\x00\x00\x00\xf8\x7f"]
|
||||
nans.should include([nan_value].pack(pack_format))
|
||||
end
|
||||
|
||||
it "encodes a positive Float outside the range of a single precision float" do
|
||||
|
|
@ -227,16 +206,9 @@ describe :array_pack_double_be, shared: true do
|
|||
[-infinity_value].pack(pack_format).should == "\xff\xf0\x00\x00\x00\x00\x00\x00"
|
||||
end
|
||||
|
||||
platform_is "86" do # x86 / x86_64
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\xff\xf8\x00\x00\x00\x00\x00\x00"
|
||||
end
|
||||
end
|
||||
|
||||
platform_is "powerpc64" do
|
||||
it "encodes NaN" do
|
||||
[nan_value].pack(pack_format).should == "\x7f\xf8\x00\x00\x00\x00\x00\x00"
|
||||
end
|
||||
it "encodes NaN" do
|
||||
nans = ["\xff\xf8\x00\x00\x00\x00\x00\x00", "\x7f\xf8\x00\x00\x00\x00\x00\x00"]
|
||||
nans.should include([nan_value].pack(pack_format))
|
||||
end
|
||||
|
||||
it "encodes a positive Float outside the range of a single precision float" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue