add unit tests to singleton
parent
1ceeac107b
commit
252f55d162
|
@ -0,0 +1,9 @@
|
||||||
|
USING: kernel singleton tools.test ;
|
||||||
|
IN: singleton.tests
|
||||||
|
|
||||||
|
[ ] [ SINGLETON: bzzt ] unit-test
|
||||||
|
[ t ] [ bzzt bzzt? ] unit-test
|
||||||
|
[ t ] [ bzzt bzzt eq? ] unit-test
|
||||||
|
GENERIC: zammo ( obj -- )
|
||||||
|
[ ] [ M: bzzt zammo drop "yes!" ; ] unit-test
|
||||||
|
[ "yes!" ] [ bzzt zammo ] unit-test
|
Loading…
Reference in New Issue