spec/collation_spec.rb in ffi-icu-0.0.1 vs spec/collation_spec.rb in ffi-icu-0.0.2
- old
+ new
@@ -4,11 +4,11 @@
module ICU
module Collation
describe Collator do
- before { @c = Collator.new("no") }
+ before { @c = Collator.new("nb") }
after { @c.close }
it "should collate an array of strings" do
@c.collate(%w[å ø æ]).should == %w[æ ø å]
end
@@ -41,10 +41,11 @@
@c.should be_greater_or_equal("z", "z")
@c.should_not be_greater_or_equal("a", "z")
end
it "should know if a string is equal to another" do
- @c.should be_same("a", "a")
+ @c.should be_equal("a", "a")
+ @c.should_not be_equal("a", "b")
end
end
end # Collate
end # ICU