| 
									
										
										
										
											2008-06-12 04:49:29 -04:00
										 |  |  | USING: io.encodings.string io.encodings.8-bit | 
					
						
							| 
									
										
										
										
											2009-11-12 19:36:20 -05:00
										 |  |  | io.encodings.8-bit.private tools.test strings arrays | 
					
						
							|  |  |  | io.encodings.8-bit.latin1 io.encodings.8-bit.windows-1252 ;
 | 
					
						
							| 
									
										
										
										
											2008-03-21 12:30:13 -04:00
										 |  |  | IN: io.encodings.8-bit.tests | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-23 00:43:43 -04:00
										 |  |  | [ B{ CHAR: f CHAR: o CHAR: o } ] [ "foo" latin1 encode ] unit-test | 
					
						
							|  |  |  | [ { 256 } >string latin1 encode ] must-fail | 
					
						
							| 
									
										
										
										
											2009-04-20 21:05:17 -04:00
										 |  |  | [ B{ 255 } ] [ { 255 } >string latin1 encode ] unit-test | 
					
						
							| 
									
										
										
										
											2008-03-21 12:30:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-23 00:43:43 -04:00
										 |  |  | [ "bar" ] [ "bar" latin1 decode ] unit-test | 
					
						
							| 
									
										
										
										
											2009-04-20 21:05:17 -04:00
										 |  |  | [ { CHAR: b 233 CHAR: r } ] [ B{ CHAR: b 233 CHAR: r } latin1 decode >array ] unit-test | 
					
						
							|  |  |  | [ { HEX: fffd HEX: 20AC } ] [ B{ HEX: 81 HEX: 80 } windows-1252 decode >array ] unit-test | 
					
						
							| 
									
										
										
										
											2008-06-12 04:49:29 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ \ latin1 8-bit-encoding? ] unit-test | 
					
						
							|  |  |  | [ "bar" ] [ "bar" \ latin1 decode ] unit-test |