Add some failing tests
parent
8346554b07
commit
ea2d02f248
|
@ -0,0 +1,12 @@
|
|||
IN: compiler.tests
|
||||
USING: io.streams.string kernel tools.test eval ;
|
||||
|
||||
: declaration-test-1 ( -- a ) 3 ; flushable
|
||||
|
||||
: declaration-test ( -- ) declaration-test-1 drop ;
|
||||
|
||||
[ "" ] [ [ declaration-test ] with-string-writer ] unit-test
|
||||
|
||||
[ ] [ "IN: compiler.tests USE: io : declaration-test-1 ( -- a ) \"X\" print f ;" eval ] unit-test
|
||||
|
||||
[ "X" ] [ [ declaration-test ] with-string-writer ] unit-test
|
|
@ -565,6 +565,12 @@ M: integer infinite-loop infinite-loop ;
|
|||
|
||||
[ ] [ [ too-deep ] final-info drop ] unit-test
|
||||
|
||||
[ ] [ [ reversed boa slice boa nth-unsafe * ] final-info drop ] unit-test
|
||||
|
||||
MIXIN: empty-mixin
|
||||
|
||||
[ ] [ [ { empty-mixin } declare empty-mixin? ] final-info drop ] unit-test
|
||||
|
||||
! [ V{ string } ] [
|
||||
! [ dup string? t xor [ "A" throw ] [ ] if ] final-classes
|
||||
! ] unit-test
|
||||
|
|
Loading…
Reference in New Issue