From 136d793c6ec34bf6651f33eac54d6894a2aa2785 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Wed, 5 Aug 2015 18:01:16 -0700 Subject: [PATCH] compiler.tests: remove some tests that can't work now. check-combination-effect raises an error at parse-time. --- basis/compiler/tests/generic.factor | 11 ----------- basis/compiler/tests/optimizer.factor | 16 ---------------- 2 files changed, 27 deletions(-) delete mode 100644 basis/compiler/tests/generic.factor diff --git a/basis/compiler/tests/generic.factor b/basis/compiler/tests/generic.factor deleted file mode 100644 index 30392f1598..0000000000 --- a/basis/compiler/tests/generic.factor +++ /dev/null @@ -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 diff --git a/basis/compiler/tests/optimizer.factor b/basis/compiler/tests/optimizer.factor index ae336a3689..ecc14d5edc 100644 --- a/basis/compiler/tests/optimizer.factor +++ b/basis/compiler/tests/optimizer.factor @@ -385,22 +385,6 @@ DEFER: loop-bbb [ 1 ] [ 257 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 ] [ [ 0 2