| 
									
										
										
										
											2009-02-06 01:42:46 -05:00
										 |  |  | ! Copyright (C) 2008, 2009 Daniel Ehrenberg. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2009-03-18 22:04:36 -04:00
										 |  |  | USING: unicode.case tools.test namespaces strings unicode.normalize | 
					
						
							|  |  |  | unicode.case.private ;
 | 
					
						
							| 
									
										
										
										
											2009-02-06 01:42:46 -05:00
										 |  |  | IN: unicode.case.tests | 
					
						
							| 
									
										
										
										
											2008-01-09 18:13:26 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-08 00:54:19 -05:00
										 |  |  | [ "Hello How Are You? I'm Good" ] [ "hEllo how ARE yOU? I'm good" >title ] unit-test | 
					
						
							| 
									
										
										
										
											2008-02-01 16:00:02 -05:00
										 |  |  | [ "FUSS" ] [ "Fu\u0000DF" >upper ] unit-test | 
					
						
							| 
									
										
										
										
											2009-01-08 16:00:59 -05:00
										 |  |  | [ "\u0003C3a\u0003C2 \u0003C3\u0003C2 \u0003C3a\u0003C2" ] [ "\u0003A3A\u0003A3 \u0003A3\u0003A3 \u0003A3A\u0003A3" >lower ] unit-test | 
					
						
							| 
									
										
										
										
											2008-01-09 18:13:26 -05:00
										 |  |  | [ t ] [ "hello how are you?" lower? ] unit-test | 
					
						
							|  |  |  | [ | 
					
						
							| 
									
										
										
										
											2009-02-06 01:42:46 -05:00
										 |  |  |     [ f ] [ i-dot? ] unit-test | 
					
						
							|  |  |  |     [ f ] [ lt? ] unit-test | 
					
						
							| 
									
										
										
										
											2008-01-09 18:13:26 -05:00
										 |  |  |     "tr" locale set
 | 
					
						
							| 
									
										
										
										
											2009-02-06 01:42:46 -05:00
										 |  |  |     [ t ] [ i-dot? ] unit-test | 
					
						
							|  |  |  |     [ f ] [ lt? ] unit-test | 
					
						
							| 
									
										
										
										
											2008-02-01 16:00:02 -05:00
										 |  |  |     [ "i\u000131i \u000131jj" ] [ "i\u000131I\u000307 IJj" >lower ] unit-test | 
					
						
							| 
									
										
										
										
											2009-01-08 16:00:59 -05:00
										 |  |  |     [ "I\u000307\u000131i Ijj" ] [ "i\u000131I\u000307 IJj" >title ] unit-test | 
					
						
							| 
									
										
										
										
											2008-02-01 16:00:02 -05:00
										 |  |  |     [ "I\u000307II\u000307 IJJ" ] [ "i\u000131I\u000307 IJj" >upper ] unit-test | 
					
						
							| 
									
										
										
										
											2008-01-09 18:13:26 -05:00
										 |  |  |     "lt" locale set
 | 
					
						
							| 
									
										
										
										
											2009-02-06 01:42:46 -05:00
										 |  |  |     [ f ] [ i-dot? ] unit-test | 
					
						
							|  |  |  |     [ t ] [ lt? ] unit-test | 
					
						
							|  |  |  |     [ "i\u000307\u000300" ] [ HEX: CC 1string nfd >lower ] unit-test | 
					
						
							|  |  |  |     [ "\u00012f\u000307" ] [ HEX: 12E 1string nfd >lower nfc ] unit-test | 
					
						
							|  |  |  |     [ "I\u000300" ] [ "i\u000307\u000300" >upper ] unit-test | 
					
						
							|  |  |  | !    [ "I\u000300" ] [ "i\u000307\u000300" >title ] unit-test | 
					
						
							| 
									
										
										
										
											2008-01-09 18:13:26 -05:00
										 |  |  | ] with-scope
 | 
					
						
							| 
									
										
										
										
											2008-12-07 02:36:10 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ "asdf" lower? ] unit-test | 
					
						
							|  |  |  | [ f ] [ "asdF" lower? ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ "ASDF" upper? ] unit-test | 
					
						
							|  |  |  | [ f ] [ "ASDf" upper? ] unit-test |