compiler.tests: remove some tests that can't work now.
check-combination-effect raises an error at parse-time.db4
parent
46021e4d77
commit
136d793c6e
|
@ -1,11 +0,0 @@
|
||||||
USING: tools.test math kernel compiler.units definitions ;
|
|
||||||
IN: compiler.tests.generic
|
|
||||||
|
|
||||||
GENERIC: bad ( -- )
|
|
||||||
M: integer bad ;
|
|
||||||
M: object bad ;
|
|
||||||
|
|
||||||
[ 0 bad ] must-fail
|
|
||||||
[ "" bad ] must-fail
|
|
||||||
|
|
||||||
[ ] [ [ \ bad forget ] with-compilation-unit ] unit-test
|
|
|
@ -385,22 +385,6 @@ DEFER: loop-bbb
|
||||||
[ 1 ] [ 257 modular-arithmetic-bug ] unit-test
|
[ 1 ] [ 257 modular-arithmetic-bug ] unit-test
|
||||||
[ -10 ] [ -10 modular-arithmetic-bug ] unit-test
|
[ -10 ] [ -10 modular-arithmetic-bug ] unit-test
|
||||||
|
|
||||||
! Optimizer needs to ignore invalid generics
|
|
||||||
GENERIC# bad-dispatch-position-test* 3 ( -- )
|
|
||||||
|
|
||||||
M: object bad-dispatch-position-test* ;
|
|
||||||
|
|
||||||
: bad-dispatch-position-test ( -- ) bad-dispatch-position-test* ;
|
|
||||||
|
|
||||||
[ 1 2 3 4 bad-dispatch-position-test ] must-fail
|
|
||||||
|
|
||||||
[ ] [
|
|
||||||
[
|
|
||||||
\ bad-dispatch-position-test forget
|
|
||||||
\ bad-dispatch-position-test* forget
|
|
||||||
] with-compilation-unit
|
|
||||||
] unit-test
|
|
||||||
|
|
||||||
[ 16 ] [
|
[ 16 ] [
|
||||||
[
|
[
|
||||||
0 2
|
0 2
|
||||||
|
|
Loading…
Reference in New Issue