]> gitweb.factorcode.org Git - factor.git/blob - extra/unicode/case/case-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / unicode / case / case-tests.factor
1 USING: unicode.case tools.test namespaces ;
2
3 [ "Hello How Are You? I'M Good" ] [ "hEllo how ARE yOU? I'm good" >title ] unit-test
4 [ "FUSS" ] [ "Fu\u0000DF" >upper ] unit-test
5 [ "\u0003C3\u0003C2" ] [ "\u0003A3\u0003A3" >lower ] unit-test
6 [ t ] [ "hello how are you?" lower? ] unit-test
7 [
8     "tr" locale set
9     [ "i\u000131i \u000131jj" ] [ "i\u000131I\u000307 IJj" >lower ] unit-test
10 !    [ "I\u00307\u000131i Ijj" ] [ "i\u000131I\u000307 IJj" >title ] unit-test
11     [ "I\u000307II\u000307 IJJ" ] [ "i\u000131I\u000307 IJj" >upper ] unit-test
12     "lt" locale set
13     ! Lithuanian casing tests
14 ] with-scope