]> gitweb.factorcode.org Git - factor.git/commitdiff
fix unit test failures
authorSlava Pestov <slava@factorcode.org>
Thu, 1 Sep 2005 06:15:29 +0000 (06:15 +0000)
committerSlava Pestov <slava@factorcode.org>
Thu, 1 Sep 2005 06:15:29 +0000 (06:15 +0000)
library/syntax/prettyprint.factor
library/test/benchmark/image.factor
library/test/benchmark/prettyprint.factor
library/test/gadgets/frames.factor
library/test/generic.factor
library/test/inference.factor

index 1cb55d880d6e16b8750b865aaa5267025f6acc05..4cc8ac91956738ce92dd2d14b578fc05fe3b1566 100644 (file)
@@ -118,7 +118,11 @@ M: newline pprint-section* ( newline -- )
     section-start fresh-line ;
 
 : advance ( section -- )
-    section-start last-newline get = [ " " write ] unless ;
+    dup newline? [
+        drop
+    ] [
+        section-start last-newline get = [ " " write ] unless
+    ] ifte ;
 
 M: block pprint-section* ( block -- )
     f swap block-sections [
index 2a06f3a2e42e6c6677ebe9b73703fa9d66c4249e..b4812ec96b8c0997da9dcd76bfc88c84e07aab61 100644 (file)
@@ -2,7 +2,6 @@ IN: temporary
 USING: generic image kernel math namespaces parser test ;
 
 [
-    boot-quot off
     "/library/bootstrap/boot-stage1.factor" run-resource
 ] with-image drop
 
index 58f5a0b74df2e6911272a1cf93f7958fd2e9a765..fa2f583b01c4eb5ad9d7a5d02680a3a2d610f162 100644 (file)
@@ -6,6 +6,4 @@ USE: words
 USE: kernel
 USE: sequences
 
-[ ] [ gensym dup [ ] define-compound . ] unit-test
 [ ] [ vocabs [ words [ see ] each ] each ] unit-test
-[ ] [ classes [ methods. ] each ] unit-test
index 3bda1358f59a97bd57cc31859e73dd4bcd5aa7a0..496acb09d507e1014f7ad2cc4be18e86bfccd5c3 100644 (file)
@@ -1,5 +1,6 @@
 IN: temporary
-USING: gadgets kernel namespaces test ;
+USING: gadgets gadgets-labels gadgets-layouts kernel namespaces
+test ;
 
 [ "Hello world" ]
 [
index 05a93d5c12158c1a6ae2b6f5933e408a8e89bf74..a4fbdfd8d1c1a30f3c9a01664ca900423924717f 100644 (file)
@@ -142,12 +142,12 @@ TUPLE: another-one ;
 [ << another-one f >> ] [ <another-one> empty-method-test ] unit-test
 
 ! Test generic see and parsing
-[ "IN: temporary\nSYMBOL: bah \nUNION: bah fixnum alien ;\n" ]
+[ "IN: temporary\nSYMBOL: bah\nUNION: bah fixnum alien ;\n" ]
 [ [ \ bah see ] string-out ] unit-test
 
 [ t ] [
     DEFER: not-fixnum
-    "IN: temporary\nSYMBOL: not-fixnum \nCOMPLEMENT: not-fixnum fixnum\n"
+    "IN: temporary\nSYMBOL: not-fixnum\nCOMPLEMENT: not-fixnum fixnum\n"
     dup eval
     [ \ not-fixnum see ] string-out =
 ] unit-test
index 1573a6ea01428879c345036d9f36d7cac2941a82..7ac12ae91e39c4783582c482247e425b87221c81 100644 (file)
@@ -155,8 +155,8 @@ DEFER: agent
 [ [ [ ] [ object object ] ] ]
 [ [ [ drop ] 0 agent ] infer ] unit-test
 
-: no-base-case-1 dup [ no-base-case-1 ] [ no-base-case-1 ] ifte ;
-[ [ no-base-case-1 ] infer ] unit-test-fails
+: no-base-case-1 dup [ no-base-case-1 ] [ no-base-case-1 ] ifte ;
+[ [ no-base-case-1 ] infer ] unit-test-fails
 
 : no-base-case-2 no-base-case-2 ;
 [ [ no-base-case-2 ] infer ] unit-test-fails