Skip to content
Permalink
Browse files
Wrap lines to < 80 chars
  • Loading branch information
jsyeo committed Nov 21, 2015
1 parent 9a96f1e commit 649739c34bcda5020fd0da52c8a3e60137f5da9e
Showing with 9 additions and 3 deletions.
  1. +9 −3 spec/ruby/core/string/unicode_normalize_spec.rb
@@ -23,7 +23,9 @@
end

it "raises an Encoding::CompatibilityError if the string is not in an unicode encoding" do
lambda { @angstrom.force_encoding("ISO-8859-1").unicode_normalize }.should raise_error(Encoding::CompatibilityError)
lambda do
@angstrom.force_encoding("ISO-8859-1").unicode_normalize
end.should raise_error(Encoding::CompatibilityError)
end

it "raises an ArgumentError if the specified form is invalid" do
@@ -44,7 +46,9 @@
end

it "raises an Encoding::CompatibilityError if the string is not in an unicode encoding" do
lambda { @ohm.force_encoding("ISO-8859-1").unicode_normalize! }.should raise_error(Encoding::CompatibilityError)
lambda do
@ohm.force_encoding("ISO-8859-1").unicode_normalize!
end.should raise_error(Encoding::CompatibilityError)
end

it "raises an ArgumentError if the specified form is invalid" do
@@ -88,7 +92,9 @@
end

it "raises an Encoding::CompatibilityError if the string is not in an unicode encoding" do
lambda { @nfc_normalized_str.force_encoding("ISO-8859-1").unicode_normalized? }.should raise_error(Encoding::CompatibilityError)
lambda do
@nfc_normalized_str.force_encoding("ISO-8859-1").unicode_normalized?
end.should raise_error(Encoding::CompatibilityError)
end

it "raises an ArgumentError if the specified form is invalid" do

0 comments on commit 649739c

Please sign in to comment.