]> gitweb.factorcode.org Git - factor.git/commitdiff
add missing test
authorSlava Pestov <slava@factorcode.org>
Thu, 4 Nov 2004 04:36:24 +0000 (04:36 +0000)
committerSlava Pestov <slava@factorcode.org>
Thu, 4 Nov 2004 04:36:24 +0000 (04:36 +0000)
library/test/x86-compiler/bail-out.factor [new file with mode: 0644]

diff --git a/library/test/x86-compiler/bail-out.factor b/library/test/x86-compiler/bail-out.factor
new file mode 100644 (file)
index 0000000..ed83db3
--- /dev/null
@@ -0,0 +1,15 @@
+IN: scratchpad
+USE: combinators
+USE: compiler
+USE: errors
+USE: logic
+USE: math
+USE: stack
+USE: test
+
+: cannot-compile call + ;
+
+[ f ] [ [ \ cannot-compile compile ] [ not ] catch ] unit-test
+[ f ] [ [ \ cannot-compile compile ] [ not ] catch ] unit-test
+
+[ 4 ] [ [ 2 2 ] cannot-compile ] unit-test