mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@944ea57
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
548defb608
commit
2076c2c3c4
34 changed files with 759 additions and 328 deletions
|
@ -84,6 +84,11 @@ describe "String#scan" do
|
|||
a = "hello".taint.scan(/./)
|
||||
a.each { |m| m.tainted?.should be_true }
|
||||
end
|
||||
|
||||
# jruby/jruby#5513
|
||||
it "does not raise any errors when passed a multi-byte string" do
|
||||
"あああaaaあああ".scan("あああ").should == ["あああ", "あああ"]
|
||||
end
|
||||
end
|
||||
|
||||
describe "String#scan with pattern and block" do
|
||||
|
|
|
@ -14,7 +14,7 @@ describe "String#unpack with format 'L'" do
|
|||
it_behaves_like :string_unpack_32bit_be_unsigned, 'L>'
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 32 or platform_is :mingw32 } do
|
||||
platform_is wordsize: 32 do
|
||||
describe "with modifier '<' and '_'" do
|
||||
it_behaves_like :string_unpack_32bit_le, 'L<_'
|
||||
it_behaves_like :string_unpack_32bit_le, 'L_<'
|
||||
|
@ -44,7 +44,7 @@ describe "String#unpack with format 'L'" do
|
|||
end
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 64 and platform_is_not :mingw32 } do
|
||||
platform_is wordsize: 64 do
|
||||
describe "with modifier '<' and '_'" do
|
||||
it_behaves_like :string_unpack_64bit_le, 'L<_'
|
||||
it_behaves_like :string_unpack_64bit_le, 'L_<'
|
||||
|
@ -86,7 +86,7 @@ describe "String#unpack with format 'l'" do
|
|||
it_behaves_like :string_unpack_32bit_be_signed, 'l>'
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 32 or platform_is :mingw32 } do
|
||||
platform_is wordsize: 32 do
|
||||
describe "with modifier '<' and '_'" do
|
||||
it_behaves_like :string_unpack_32bit_le, 'l<_'
|
||||
it_behaves_like :string_unpack_32bit_le, 'l_<'
|
||||
|
@ -116,7 +116,7 @@ describe "String#unpack with format 'l'" do
|
|||
end
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 64 and platform_is_not :mingw32 } do
|
||||
platform_is wordsize: 64 do
|
||||
describe "with modifier '<' and '_'" do
|
||||
it_behaves_like :string_unpack_64bit_le, 'l<_'
|
||||
it_behaves_like :string_unpack_64bit_le, 'l_<'
|
||||
|
@ -160,7 +160,7 @@ little_endian do
|
|||
it_behaves_like :string_unpack_32bit_le_signed, 'l'
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 32 or platform_is :mingw32 } do
|
||||
platform_is wordsize: 32 do
|
||||
describe "String#unpack with format 'L' with modifier '_'" do
|
||||
it_behaves_like :string_unpack_32bit_le, 'L_'
|
||||
it_behaves_like :string_unpack_32bit_le_unsigned, 'L_'
|
||||
|
@ -182,7 +182,7 @@ little_endian do
|
|||
end
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 64 and platform_is_not :mingw32 } do
|
||||
platform_is wordsize: 64 do
|
||||
describe "String#unpack with format 'L' with modifier '_'" do
|
||||
it_behaves_like :string_unpack_64bit_le, 'L_'
|
||||
it_behaves_like :string_unpack_64bit_le_unsigned, 'L_'
|
||||
|
@ -218,7 +218,7 @@ big_endian do
|
|||
it_behaves_like :string_unpack_32bit_be_signed, 'l'
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 32 or platform_is :mingw32 } do
|
||||
platform_is wordsize: 32 do
|
||||
describe "String#unpack with format 'L' with modifier '_'" do
|
||||
it_behaves_like :string_unpack_32bit_be, 'L_'
|
||||
it_behaves_like :string_unpack_32bit_be_unsigned, 'L_'
|
||||
|
@ -240,7 +240,7 @@ big_endian do
|
|||
end
|
||||
end
|
||||
|
||||
guard -> { platform_is wordsize: 64 and platform_is_not :mingw32 } do
|
||||
platform_is wordsize: 64 do
|
||||
describe "String#unpack with format 'L' with modifier '_'" do
|
||||
it_behaves_like :string_unpack_64bit_be, 'L_'
|
||||
it_behaves_like :string_unpack_64bit_be_unsigned, 'L_'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue