Move some unit tests from generic to generic.math
parent
3bbfc57de3
commit
9f4ac667dc
|
@ -96,15 +96,6 @@ M: shit big-generic-test "shit" ;
|
|||
|
||||
[ t ] [ \ + math-generic? ] unit-test
|
||||
|
||||
! Test math-combination
|
||||
[ [ [ >float ] dip ] ] [ \ real \ float math-upgrade ] unit-test
|
||||
[ [ >float ] ] [ \ float \ real math-upgrade ] unit-test
|
||||
[ [ [ >bignum ] dip ] ] [ \ fixnum \ bignum math-upgrade ] unit-test
|
||||
[ [ >float ] ] [ \ float \ integer math-upgrade ] unit-test
|
||||
[ number ] [ \ number \ float math-class-max ] unit-test
|
||||
[ float ] [ \ real \ float math-class-max ] unit-test
|
||||
[ fixnum ] [ \ fixnum \ null math-class-max ] unit-test
|
||||
|
||||
! Regression
|
||||
TUPLE: first-one ;
|
||||
TUPLE: second-one ;
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
IN: generic.math.tests
|
||||
USING: generic.math math tools.test ;
|
||||
|
||||
! Test math-combination
|
||||
[ [ [ >float ] dip ] ] [ \ real \ float math-upgrade ] unit-test
|
||||
[ [ >float ] ] [ \ float \ real math-upgrade ] unit-test
|
||||
[ [ [ >bignum ] dip ] ] [ \ fixnum \ bignum math-upgrade ] unit-test
|
||||
[ [ >float ] ] [ \ float \ integer math-upgrade ] unit-test
|
||||
|
||||
[ number ] [ \ number \ float math-class-max ] unit-test
|
||||
[ float ] [ \ real \ float math-class-max ] unit-test
|
||||
[ fixnum ] [ \ fixnum \ null math-class-max ] unit-test
|
||||
[ bignum ] [ \ fixnum \ bignum math-class-max ] unit-test
|
||||
[ number ] [ \ fixnum \ number math-class-max ] unit-test
|
||||
|
||||
|
Loading…
Reference in New Issue