Fix test failures
parent
bb516f3a6f
commit
f64f55ba22
|
@ -30,10 +30,3 @@ words splitting grouping sorting ;
|
||||||
\ + stack-trace-contains?
|
\ + stack-trace-contains?
|
||||||
\ > stack-trace-contains?
|
\ > stack-trace-contains?
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
: quux ( -- seq ) { 1 2 3 } [ "hi" throw ] sort ;
|
|
||||||
|
|
||||||
[ t ] [
|
|
||||||
[ 10 quux ] ignore-errors
|
|
||||||
\ sort stack-trace-contains?
|
|
||||||
] unit-test
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ M: number detect-number ;
|
||||||
|
|
||||||
! Regression
|
! Regression
|
||||||
USE: sorting
|
USE: sorting
|
||||||
USE: sorting.private
|
USE: binary-search.private
|
||||||
|
|
||||||
: old-binsearch ( elt quot seq -- elt quot i )
|
: old-binsearch ( elt quot seq -- elt quot i )
|
||||||
dup length 1 <= [
|
dup length 1 <= [
|
||||||
|
@ -227,7 +227,7 @@ USE: sorting.private
|
||||||
] [
|
] [
|
||||||
[ midpoint swap call ] 3keep roll dup zero?
|
[ midpoint swap call ] 3keep roll dup zero?
|
||||||
[ drop dup slice-from swap midpoint@ + ]
|
[ drop dup slice-from swap midpoint@ + ]
|
||||||
[ partition old-binsearch ] if
|
[ dup midpoint@ cut-slice old-binsearch ] if
|
||||||
] if ; inline
|
] if ; inline
|
||||||
|
|
||||||
[ 10 ] [
|
[ 10 ] [
|
||||||
|
|
|
@ -17,7 +17,7 @@ IN: channels.tests
|
||||||
from
|
from
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{ V{ 1 2 3 4 } } [
|
{ { 1 2 3 4 } } [
|
||||||
V{ } clone <channel>
|
V{ } clone <channel>
|
||||||
[ from swap push ] in-thread
|
[ from swap push ] in-thread
|
||||||
[ from swap push ] in-thread
|
[ from swap push ] in-thread
|
||||||
|
@ -30,7 +30,7 @@ IN: channels.tests
|
||||||
natural-sort
|
natural-sort
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{ V{ 1 2 4 9 } } [
|
{ { 1 2 4 9 } } [
|
||||||
V{ } clone <channel>
|
V{ } clone <channel>
|
||||||
[ 4 swap to ] in-thread
|
[ 4 swap to ] in-thread
|
||||||
[ 2 swap to ] in-thread
|
[ 2 swap to ] in-thread
|
||||||
|
|
|
@ -49,7 +49,7 @@ kernel strings ;
|
||||||
{ { object ppc object } "b" }
|
{ { object ppc object } "b" }
|
||||||
{ { string object windows } "c" }
|
{ { string object windows } "c" }
|
||||||
}
|
}
|
||||||
V{ cpu os }
|
{ cpu os }
|
||||||
] [
|
] [
|
||||||
example-1 canonicalize-specializers
|
example-1 canonicalize-specializers
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
Loading…
Reference in New Issue