]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix test failures
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 16 Jul 2008 06:03:41 +0000 (01:03 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 16 Jul 2008 06:03:41 +0000 (01:03 -0500)
core/compiler/tests/stack-trace.factor
core/optimizer/optimizer-tests.factor
extra/channels/channels-tests.factor
extra/multi-methods/tests/canonicalize.factor

index 3b1a5c6c85081e77f430c1faed16ce6cd0da02fc..1085feb0c6c14a579a16c24390da62a2c4e4a622 100755 (executable)
@@ -30,10 +30,3 @@ words splitting grouping sorting ;
     \ + stack-trace-contains?
     \ > stack-trace-contains?
 ] unit-test
-
-: quux ( -- seq ) { 1 2 3 } [ "hi" throw ] sort ;
-
-[ t ] [
-    [ 10 quux ] ignore-errors
-    \ sort stack-trace-contains?
-] unit-test
index ab808d79142762a87b5f5673b7b32deafc8356d9..1e659f1b995410fe67b3eb5e736b8194dc57f255 100755 (executable)
@@ -219,7 +219,7 @@ M: number detect-number ;
 
 ! Regression
 USE: sorting
-USE: sorting.private
+USE: binary-search.private
 
 : old-binsearch ( elt quot seq -- elt quot i )
     dup length 1 <= [
@@ -227,7 +227,7 @@ USE: sorting.private
     ] [
         [ midpoint swap call ] 3keep roll dup zero?
         [ drop dup slice-from swap midpoint@ + ]
-        [ partition old-binsearch ] if
+        [ dup midpoint@ cut-slice old-binsearch ] if
     ] if ; inline
 
 [ 10 ] [
index df72572c67bda02536501e4beb2fe8e0738ed8fa..3300faa1255bcb86682c1e247b624f798c927836 100755 (executable)
@@ -17,7 +17,7 @@ IN: channels.tests
     from 
 ] unit-test
 
-{ V{ 1 2 3 4 } } [
+{ { 1 2 3 4 } } [
     V{ } clone <channel>
     [ from swap push ] in-thread
     [ from swap push ] in-thread
@@ -30,7 +30,7 @@ IN: channels.tests
     natural-sort
 ] unit-test
 
-{ V{ 1 2 4 9 } } [
+{ { 1 2 4 9 } } [
     V{ } clone <channel>
     [ 4 swap to ] in-thread
     [ 2 swap to ] in-thread
index d5baf4914c8da3e7b7294ccb4fb843142fde0a8d..991551c00959915cd37bd6c7dcda4167d7231e94 100644 (file)
@@ -49,7 +49,7 @@ kernel strings ;
         { { object ppc object } "b" }
         { { string object windows } "c" }
     }
-    V{ cpu os }
+    { cpu os }
 ] [
     example-1 canonicalize-specializers
 ] unit-test