| 
									
										
										
										
											2009-09-09 23:33:34 -04:00
										 |  |  | USING: tools.test math math.functions math.constants | 
					
						
							|  |  |  | generic.standard generic.single strings sequences arrays kernel | 
					
						
							|  |  |  | accessors words byte-arrays bit-arrays parser namespaces make | 
					
						
							|  |  |  | quotations stack-checker vectors growable hashtables sbufs | 
					
						
							|  |  |  | prettyprint byte-vectors bit-vectors specialized-vectors | 
					
						
							| 
									
										
										
										
											2009-04-28 18:56:15 -04:00
										 |  |  | definitions generic sets graphs assocs grouping see eval ;
 | 
					
						
							| 
									
										
										
										
											2009-10-19 20:18:08 -04:00
										 |  |  | QUALIFIED-WITH: alien.c-types c | 
					
						
							| 
									
										
										
										
											2010-02-26 17:17:40 -05:00
										 |  |  | FROM: namespaces => set ;
 | 
					
						
							| 
									
										
										
										
											2009-10-19 20:18:08 -04:00
										 |  |  | SPECIALIZED-VECTOR: c:double | 
					
						
							| 
									
										
										
										
											2009-08-13 20:21:44 -04:00
										 |  |  | IN: generic.single.tests | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: lo-tag-test ( obj -- obj' )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: integer lo-tag-test 3 + ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: float lo-tag-test 4 - ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: rational lo-tag-test 2 - ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: complex lo-tag-test sq ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ 8 ] [ 5 >bignum lo-tag-test ] unit-test | 
					
						
							|  |  |  | [ 0.0 ] [ 4.0 lo-tag-test ] unit-test | 
					
						
							|  |  |  | [ -1/2 ] [ 1+1/2 lo-tag-test ] unit-test | 
					
						
							|  |  |  | [ -16 ] [ C{ 0 4 } lo-tag-test ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: hi-tag-test ( obj -- obj' )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: string hi-tag-test ", in bed" append ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-02 03:44:10 -04:00
										 |  |  | M: integer hi-tag-test 3 + ;
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: array hi-tag-test [ hi-tag-test ] map ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: sequence hi-tag-test reverse ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ B{ 3 2 1 } ] [ B{ 1 2 3 } hi-tag-test ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ { 6 9 12 } ] [ { 3 6 9 } hi-tag-test ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "i like monkeys, in bed" ] [ "i like monkeys" hi-tag-test ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: shape ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: abstract-rectangle < shape width height ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: rectangle < abstract-rectangle ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C: <rectangle> rectangle | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: parallelogram < abstract-rectangle skew ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C: <parallelogram> parallelogram | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: circle < shape radius ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C: <circle> circle | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: area ( shape -- n )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: abstract-rectangle area [ width>> ] [ height>> ] bi * ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: circle area radius>> sq pi * ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ 12 ] [ 4 3 <rectangle> area ] unit-test | 
					
						
							|  |  |  | [ 12 ] [ 4 3 2 <parallelogram> area ] unit-test | 
					
						
							|  |  |  | [ t ] [ 2 <circle> area 4 pi * = ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: perimiter ( shape -- n )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-04-17 13:45:57 -04:00
										 |  |  | : rectangle-perimiter ( l w -- n ) + 2 * ;
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: rectangle perimiter | 
					
						
							|  |  |  |     [ width>> ] [ height>> ] bi
 | 
					
						
							|  |  |  |     rectangle-perimiter ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | : hypotenuse ( a b -- c ) [ sq ] bi@ + sqrt ;
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: parallelogram perimiter | 
					
						
							|  |  |  |     [ width>> ] | 
					
						
							|  |  |  |     [ [ height>> ] [ skew>> ] bi hypotenuse ] bi
 | 
					
						
							|  |  |  |     rectangle-perimiter ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: circle perimiter 2 * pi * ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ 14 ] [ 4 3 <rectangle> perimiter ] unit-test | 
					
						
							| 
									
										
										
										
											2008-09-02 03:02:05 -04:00
										 |  |  | [ 30.0 ] [ 10 4 3 <parallelogram> perimiter ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: big-mix-test ( obj -- obj' )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: object big-mix-test drop "object" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: tuple big-mix-test drop "tuple" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: integer big-mix-test drop "integer" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: float big-mix-test drop "float" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: complex big-mix-test drop "complex" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: string big-mix-test drop "string" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: array big-mix-test drop "array" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: sequence big-mix-test drop "sequence" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: rectangle big-mix-test drop "rectangle" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: parallelogram big-mix-test drop "parallelogram" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: circle big-mix-test drop "circle" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "integer" ] [ 3 big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "float" ] [ 5.0 big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "complex" ] [ -1 sqrt big-mix-test ] unit-test | 
					
						
							| 
									
										
										
										
											2008-12-03 04:44:08 -05:00
										 |  |  | [ "sequence" ] [ double-array{ 1.0 2.0 3.0 } big-mix-test ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | [ "sequence" ] [ B{ 1 2 3 } big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "sequence" ] [ ?{ t f t } big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "sequence" ] [ SBUF" hello world" big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "sequence" ] [ V{ "a" "b" } big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "sequence" ] [ BV{ 1 2 } big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "sequence" ] [ ?V{ t t f f } big-mix-test ] unit-test | 
					
						
							| 
									
										
										
										
											2008-12-03 04:44:08 -05:00
										 |  |  | [ "sequence" ] [ double-vector{ -0.3 4.6 } big-mix-test ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | [ "string" ] [ "hello" big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "rectangle" ] [ 1 2 <rectangle> big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "parallelogram" ] [ 10 4 3 <parallelogram> big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "circle" ] [ 100 <circle> big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "tuple" ] [ H{ } big-mix-test ] unit-test | 
					
						
							|  |  |  | [ "object" ] [ \ + big-mix-test ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | GENERIC: small-lo-tag ( obj -- obj )
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: fixnum small-lo-tag drop "fixnum" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: string small-lo-tag drop "string" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: array small-lo-tag drop "array" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-03 04:44:08 -05:00
										 |  |  | M: double-array small-lo-tag drop "double-array" ;
 | 
					
						
							| 
									
										
										
										
											2008-04-02 01:28:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: byte-array small-lo-tag drop "byte-array" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "fixnum" ] [ 3 small-lo-tag ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-03 04:44:08 -05:00
										 |  |  | [ "double-array" ] [ double-array{ 1.0 } small-lo-tag ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | ! Testing next-method | 
					
						
							|  |  |  | TUPLE: person ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: intern < person ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: employee < person ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: tape-monkey < employee ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: manager < employee ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: junior-manager < manager ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: middle-manager < manager ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: senior-manager < manager ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: executive < senior-manager ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | TUPLE: ceo < executive ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | GENERIC: salary ( person -- n )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: intern salary | 
					
						
							|  |  |  |     #! Intentional mistake. | 
					
						
							|  |  |  |     call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: employee salary drop 24000 ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: manager salary call-next-method 12000 + ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: middle-manager salary call-next-method 5000 + ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: senior-manager salary call-next-method 15000 + ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: executive salary call-next-method 2 * ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: ceo salary | 
					
						
							|  |  |  |     #! Intentional error. | 
					
						
							|  |  |  |     drop 5 call-next-method 3 * ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ salary ] must-infer | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 24000 ] [ employee boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 24000 ] [ tape-monkey boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 36000 ] [ junior-manager boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 41000 ] [ middle-manager boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 51000 ] [ senior-manager boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ 102000 ] [ executive boa salary ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ ceo boa salary ] | 
					
						
							| 
									
										
										
										
											2008-04-05 21:07:30 -04:00
										 |  |  | [ T{ inconsistent-next-method f ceo salary } = ] must-fail-with | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-13 16:06:09 -04:00
										 |  |  | [ intern boa salary ] | 
					
						
							| 
									
										
										
										
											2008-11-28 02:11:03 -05:00
										 |  |  | [ no-next-method? ] must-fail-with | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | ! Weird shit | 
					
						
							|  |  |  | TUPLE: a ;
 | 
					
						
							|  |  |  | TUPLE: b ;
 | 
					
						
							|  |  |  | TUPLE: c ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | UNION: x a b ;
 | 
					
						
							|  |  |  | UNION: y a c ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | UNION: z x y ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | GENERIC: funky* ( obj -- )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: z funky* "z" , drop ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: x funky* "x" , call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: y funky* "y" , call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: a funky* "a" , call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: b funky* "b" , call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: c funky* "c" , call-next-method ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-06-08 16:32:55 -04:00
										 |  |  | : funky ( obj -- seq ) [ funky* ] { } make ;
 | 
					
						
							| 
									
										
										
										
											2008-04-03 05:58:37 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ { "b" "x" "z" } ] [ T{ b } funky ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ { "c" "y" "z" } ] [ T{ c } funky ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ | 
					
						
							|  |  |  |     T{ a } funky | 
					
						
							|  |  |  |     { { "a" "x" "z" } { "a" "y" "z" } } member?
 | 
					
						
							|  |  |  | ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-05 21:07:30 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | ! Hooks | 
					
						
							|  |  |  | SYMBOL: my-var | 
					
						
							|  |  |  | HOOK: my-hook my-var ( -- x )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: integer my-hook "an integer" ;
 | 
					
						
							|  |  |  | M: string my-hook "a string" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "an integer" ] [ 3 my-var set my-hook ] unit-test | 
					
						
							|  |  |  | [ "a string" ] [ my-hook my-var set my-hook ] unit-test | 
					
						
							|  |  |  | [ 1.0 my-var set my-hook ] [ T{ no-method f 1.0 my-hook } = ] must-fail-with | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HOOK: call-next-hooker my-var ( -- x )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: sequence call-next-hooker "sequence" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: array call-next-hooker call-next-method "array " prepend ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: vector call-next-hooker call-next-method "vector " prepend ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: growable call-next-hooker call-next-method "growable " prepend ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ "vector growable sequence" ] [ | 
					
						
							|  |  |  |     V{ } my-var [ call-next-hooker ] with-variable
 | 
					
						
							|  |  |  | ] unit-test | 
					
						
							| 
									
										
										
										
											2008-04-12 20:05:06 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-05 01:59:28 -04:00
										 |  |  | [ t ] [ | 
					
						
							| 
									
										
										
										
											2009-04-25 20:41:27 -04:00
										 |  |  |     { } \ nth effective-method nip M\ sequence nth eq?
 | 
					
						
							| 
									
										
										
										
											2008-07-05 01:59:28 -04:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ t ] [ | 
					
						
							|  |  |  |     \ + \ nth effective-method nip dup \ nth "default-method" word-prop eq? and
 | 
					
						
							|  |  |  | ] unit-test | 
					
						
							| 
									
										
										
										
											2009-04-28 18:56:15 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ ] [ "IN: generic.single.tests GENERIC: xyz ( a -- b )" eval( -- ) ] unit-test | 
					
						
							|  |  |  | [ ] [ "IN: generic.single.tests MATH: xyz ( a b -- c )" eval( -- ) ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-06 20:22:22 -04:00
										 |  |  | [ f ] [ "xyz" "generic.single.tests" lookup pic-def>> ] unit-test | 
					
						
							| 
									
										
										
										
											2009-05-12 21:47:20 -04:00
										 |  |  | [ f ] [ "xyz" "generic.single.tests" lookup "decision-tree" word-prop ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ! Corner case | 
					
						
							|  |  |  | [ "IN: generic.single.tests GENERIC# broken-generic# -1 ( a -- b )" eval( -- ) ] | 
					
						
							|  |  |  | [ error>> bad-dispatch-position? ] | 
					
						
							| 
									
										
										
										
											2009-08-13 20:21:44 -04:00
										 |  |  | must-fail-with | 
					
						
							| 
									
										
										
										
											2010-01-27 03:00:10 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | [ ] [ "IN: generic.single.tests GENERIC: foo ( -- x )" eval( -- ) ] unit-test | 
					
						
							|  |  |  |     [ "IN: generic.single.tests GENERIC: foo ( -- x ) inline" eval( -- ) ] must-fail |