Permalink
Browse files

Add test cases for titleize.

- Always test the empty string (0 byte size)
- Add my favorite Disney movie of the moment
  • Loading branch information...
1 parent 6c52469 commit c76eaf03a04ca7a74f973c3e0315d2768b073960 @Manfred committed Dec 19, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/unichars_test.rb
View
2 test/unichars_test.rb
@@ -50,8 +50,10 @@
end
it "should titleize strings" do
+ chars('').titleize.should == ''
chars('привет всем').titleize.should == 'Привет Всем'
chars('пока.всем').titleize.should == 'Пока.Всем'
+ chars("the sorcerors apprentice").titleize.should == 'The Sorcerors Apprentice'
end
it "should perform simple normalization" do

0 comments on commit c76eaf0

Please sign in to comment.