2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								USING: accessors assocs definitions fry generic help
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								help.markup io.streams.string kernel math namespaces parser
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sequences strings tools.test words ;
							 | 
						
					
						
							
								
									
										
										
										
											2008-03-01 17:00:45 -05:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								IN: help.markup.tests
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								: with-markup-test ( quot -- )
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    '[ f last-element set _ with-string-writer ] with-scope ; inline
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								TUPLE: blahblah quux ;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ "int" ] [ [ { "int" } $instance ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-22 02:24:05 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ ] [ \ quux>> print-topic ] unit-test
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ ] [ \ >>quux print-topic ] unit-test
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ ] [ \ blahblah? print-topic ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2009-03-23 01:34:02 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								: fooey ( -- * ) "fooey" throw ;
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-22 02:24:05 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ ] [ \ fooey print-topic ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-22 02:24:05 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ ] [ gensym print-topic ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-01-22 23:30:43 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "a string" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { $or string } print-element ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-01-22 23:30:43 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "a string or an integer" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { $or string integer } print-element ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-01-22 23:30:43 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "a string, a fixnum, or an integer" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { $or string fixnum integer } print-element ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-02-09 02:47:31 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								! Layout
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span" } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span1span2" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span1" "span2" } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span1\n\nspan2" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span1" { $nl } "span2" } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "\nspan" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $nl } "span" } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "2 2 +\nspan" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $code "2 2 +" } "span" } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "2 2 +" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span\n2 2 +" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span" { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "\n2 2 +" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $nl } { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span\n\n2 2 +" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span" { $nl } { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "Heading" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $heading "Heading" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "Heading1\n\nHeading2" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $heading "Heading1" } { $heading "Heading2" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span\n\nHeading" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span" { $heading "Heading" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "\nHeading" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { { $nl } { $heading "Heading" } } print-content ] with-markup-test ] unit-test
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-01 13:12:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[ "span\n\nHeading" ]
							 | 
						
					
						
							
								
									
										
										
										
											2009-10-09 12:09:54 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								[ [ { "span" { $nl } { $heading "Heading" } } print-content ] with-markup-test ] unit-test
							 |