Add failing unit test

db4
Slava Pestov 2008-05-23 22:37:55 -05:00
parent 53857fdfee
commit 6a1f385816
1 changed files with 11 additions and 0 deletions

View File

@ -254,3 +254,14 @@ M:: fixnum next-method-test ( a -- b ) a call-next-method 1 + ;
[ 3 ] [ 1 [let | a [ ] | 3 ] ] unit-test
[ ] [ 1 2 [let | a [ ] b [ ] | ] ] unit-test
:: a-word-with-locals ( a b -- ) ;
: new-definition "IN: locals.tests\nUSING: math ;\n: a-word-with-locals ( -- x ) 2 3 + ;\n" ;
[ ] [ new-definition eval ] unit-test
[ t ] [
[ \ a-word-with-locals see ] with-string-writer
new-definition =
] unit-test