fix unit test failures

cvs
Slava Pestov 2005-09-01 06:15:29 +00:00
parent 1d168352f9
commit bdbd011470
6 changed files with 11 additions and 9 deletions

View 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 [

View 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

View 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

View File

@ -1,5 +1,6 @@
IN: temporary
USING: gadgets kernel namespaces test ;
USING: gadgets gadgets-labels gadgets-layouts kernel namespaces
test ;
[ "Hello world" ]
[

View 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

View 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