Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c76eaf03a04ca7a74f973c3e0315d2768b073960 1 parent 6c52469
Manfred Stienstra authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  test/unichars_test.rb
2  test/unichars_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.