Fixing unit tests
parent
3c98385c11
commit
b6b8ab32b5
|
@ -56,8 +56,8 @@ UNION: c a b ;
|
||||||
[ t ] [ \ c \ tuple class< ] unit-test
|
[ t ] [ \ c \ tuple class< ] unit-test
|
||||||
[ f ] [ \ tuple \ c class< ] unit-test
|
[ f ] [ \ tuple \ c class< ] unit-test
|
||||||
|
|
||||||
DEFER: bah
|
! DEFER: bah
|
||||||
FORGET: bah
|
! FORGET: bah
|
||||||
UNION: bah fixnum alien ;
|
UNION: bah fixnum alien ;
|
||||||
[ bah ] [ \ bah? "predicating" word-prop ] unit-test
|
[ bah ] [ \ bah? "predicating" word-prop ] unit-test
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,6 @@ GENERIC: make-default-method ( generic combination -- method )
|
||||||
|
|
||||||
PREDICATE: word generic "combination" word-prop >boolean ;
|
PREDICATE: word generic "combination" word-prop >boolean ;
|
||||||
|
|
||||||
M: generic definer drop f f ;
|
|
||||||
|
|
||||||
M: generic definition drop f ;
|
M: generic definition drop f ;
|
||||||
|
|
||||||
: make-generic ( word -- )
|
: make-generic ( word -- )
|
||||||
|
|
|
@ -141,7 +141,7 @@ SYMBOL: quot-uses-b
|
||||||
|
|
||||||
[ { + } ] [ \ quot-uses-b uses ] unit-test
|
[ { + } ] [ \ quot-uses-b uses ] unit-test
|
||||||
|
|
||||||
[ "IN: words.tests : undef-test ; << undef-test >>" eval ]
|
[ "IN: words.tests FORGET: undef-test : undef-test ; << undef-test >>" eval ]
|
||||||
[ [ undefined? ] is? ] must-fail-with
|
[ [ undefined? ] is? ] must-fail-with
|
||||||
|
|
||||||
[ ] [
|
[ ] [
|
||||||
|
|
|
@ -8,5 +8,5 @@ M: integer foo + ;
|
||||||
|
|
||||||
"resource:extra/tools/crossref/test/foo.factor" run-file
|
"resource:extra/tools/crossref/test/foo.factor" run-file
|
||||||
|
|
||||||
[ t ] [ integer \ foo method method-word \ + usage member? ] unit-test
|
[ t ] [ integer \ foo method \ + usage member? ] unit-test
|
||||||
[ t ] [ \ foo usage [ pathname? ] contains? ] unit-test
|
[ t ] [ \ foo usage [ pathname? ] contains? ] unit-test
|
||||||
|
|
Loading…
Reference in New Issue