| 
									
										
										
										
											2009-01-29 02:44:09 -05:00
										 |  |  | IN: xmode.code2html.tests | 
					
						
							|  |  |  | USING: xmode.code2html xmode.catalog | 
					
						
							|  |  |  | tools.test multiline splitting memoize | 
					
						
							| 
									
										
										
										
											2009-01-30 20:34:31 -05:00
										 |  |  | kernel io.streams.string xml.writer ;
 | 
					
						
							| 
									
										
										
										
											2009-01-29 02:44:09 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ ] [ \ (load-mode) reset-memoized ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ ] [ | 
					
						
							| 
									
										
										
										
											2009-09-20 23:42:40 -04:00
										 |  |  |     """<style type="text/css" media="screen" >
 | 
					
						
							|  |  |  |     *        {margin:0; padding:0; border:0;}""" | 
					
						
							| 
									
										
										
										
											2009-01-29 02:44:09 -05:00
										 |  |  |     string-lines "html" htmlize-lines drop
 | 
					
						
							| 
									
										
										
										
											2009-01-30 20:34:31 -05:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ ] [ | 
					
						
							|  |  |  |     "test.c" | 
					
						
							| 
									
										
										
										
											2009-09-20 23:42:40 -04:00
										 |  |  |     """int x = "hi"; | 
					
						
							|  |  |  | /* a comment */""" <string-reader> htmlize-stream | 
					
						
							| 
									
										
										
										
											2009-01-30 20:34:31 -05:00
										 |  |  |     write-xml | 
					
						
							| 
									
										
										
										
											2009-03-28 23:13:58 -04:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [ | 
					
						
							|  |  |  |     { ": foo ;" } "factor" htmlize-lines xml>string | 
					
						
							| 
									
										
										
										
											2009-03-28 23:19:55 -04:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ ":foo" ] [ | 
					
						
							|  |  |  |     { ":foo" } "factor" htmlize-lines xml>string | 
					
						
							| 
									
										
										
										
											2009-09-20 23:42:40 -04:00
										 |  |  | ] unit-test |