Fixing unit tests
parent
5bc73cc5af
commit
43c83bb4e0
|
@ -1,4 +1,4 @@
|
|||
USING: asn1 asn1.ldap io.streams.string tools.test ;
|
||||
USING: asn1 asn1.ldap io io.streams.string tools.test ;
|
||||
|
||||
[ 6 ] [
|
||||
"\u0002\u0001\u0006" <string-reader> [ asn-syntax read-ber ] with-stream
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
! See http://factorcode.org/license.txt for BSD license.
|
||||
!
|
||||
USING: kernel tools.test math channels channels.private
|
||||
sequences threads ;
|
||||
sequences threads sorting ;
|
||||
IN: temporary
|
||||
|
||||
{ 3 t } [
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
! Copyright (C) 2005 Chris Double. All Rights Reserved.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
!
|
||||
USING: kernel tools.test math assocs channels channels.remote ;
|
||||
USING: kernel tools.test math assocs channels channels.remote
|
||||
channels.remote.private ;
|
||||
IN: temporary
|
||||
|
||||
{ t } [
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
!
|
||||
USING: kernel concurrency threads vectors arrays sequences
|
||||
namespaces tools.test continuations dlists strings math words
|
||||
match quotations ;
|
||||
match quotations concurrency.private ;
|
||||
IN: temporary
|
||||
|
||||
[ V{ 1 2 3 } ] [
|
||||
|
|
|
@ -40,5 +40,5 @@ TUPLE: coroutine resumecc exitcc ;
|
|||
|
||||
: coterminate ( v -- )
|
||||
current-coro get
|
||||
f over set-coroutine-resumecc
|
||||
[ ] over set-coroutine-resumecc
|
||||
coroutine-exitcc continue-with ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: crypto.timing kernel tools.test ;
|
||||
USING: crypto.timing kernel tools.test system math ;
|
||||
IN: temporary
|
||||
|
||||
[ t ] [ millis [ ] 1000 with-timing millis swap - 1000 >= ] unit-test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: destructors kernel tools.test ;
|
||||
USING: destructors kernel tools.test continuations ;
|
||||
IN: temporary
|
||||
|
||||
TUPLE: dummy-obj destroyed? ;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: inverse tools.test arrays math kernel sequences ;
|
||||
USING: inverse tools.test arrays math kernel sequences
|
||||
math.functions ;
|
||||
|
||||
[ 2 ] [ { 3 2 } [ 3 swap 2array ] undo ] unit-test
|
||||
[ { 3 4 } [ dup 2array ] undo ] unit-test-fails
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: io io.mmap kernel tools.test ;
|
||||
USING: io io.mmap io.files kernel tools.test continuations
|
||||
sequences ;
|
||||
IN: temporary
|
||||
|
||||
[ "mmap-test-file.txt" resource-path delete-file ] catch drop
|
||||
|
|
|
@ -7,7 +7,7 @@ IN: temporary
|
|||
{ { 1 } { 2 3 } { 4 5 6 } { 7 8 } { } } graded
|
||||
] unit-test
|
||||
|
||||
SYMBOLS: x1 x2 x3 x4 z1 z2 ;
|
||||
SYMBOLS: x1 x2 x3 x4 x5 x6 z1 z2 ;
|
||||
|
||||
[ H{ { { x1 } 3 } } ] [ x1 3 wedge ] unit-test
|
||||
|
||||
|
@ -23,7 +23,7 @@ x3 x4 wedge z2 d=
|
|||
! Unimodular example
|
||||
boundaries get clear-assoc
|
||||
|
||||
SYMBOLS: x y z ;
|
||||
SYMBOLS: x y w z ;
|
||||
|
||||
x y wedge z d=
|
||||
y z wedge x d=
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel math math.functions tools.test ;
|
||||
USING: kernel math math.functions tools.test math.analysis
|
||||
math.constants ;
|
||||
IN: temporary
|
||||
|
||||
: eps
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
IN: temporary
|
||||
USING: kernel math.matrices math.matrices.elimination
|
||||
tools.test ;
|
||||
tools.test sequences ;
|
||||
|
||||
[
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel math.numerical-integration ;
|
||||
USING: kernel math.numerical-integration tools.test math
|
||||
math.constants math.functions ;
|
||||
IN: temporary
|
||||
|
||||
[ 50 ] [ 0 10 [ ] integrate-simpson ] unit-test
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
IN: temporary
|
||||
USING: kernel math tools.test ;
|
||||
USING: kernel math math.polynomials tools.test ;
|
||||
|
||||
! Tests
|
||||
[ { 0 1 } ] [ { 0 1 0 0 } ptrim ] unit-test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: kernel sequences.lib ;
|
||||
USING: kernel sequences.lib math math.functions tools.test ;
|
||||
|
||||
[ 4 ] [ { 1 2 } [ sq ] [ * ] map-reduce ] unit-test
|
||||
[ 36 ] [ { 2 3 } [ sq ] [ * ] map-reduce ] unit-test
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
! See http://factorcode.org/license.txt for BSD license.
|
||||
!
|
||||
USING: tools.test kernel serialize io io.streams.string math
|
||||
alien arrays byte-arrays sequences math prettyprint ;
|
||||
alien arrays byte-arrays sequences math prettyprint parser
|
||||
classes math.constants ;
|
||||
IN: temporary
|
||||
|
||||
TUPLE: serialize-test a b ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
USING: kernel math tools.test units.imperial ;
|
||||
USING: kernel math tools.test units.imperial inverse ;
|
||||
IN: temporary
|
||||
|
||||
[ 1 ] [ 12 inches [ feet ] undo ] unit-test
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: kernel tools.test units.si inverse ;
|
||||
USING: kernel tools.test units.si inverse math.constants
|
||||
math.functions units.imperial ;
|
||||
IN: temporary
|
||||
|
||||
[ t ] [ 1 m 100 cm = ] unit-test
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
USING: arrays kernel math sequences tools.test units.si units ;
|
||||
USING: arrays kernel math sequences tools.test units.si
|
||||
units.imperial units inverse ;
|
||||
IN: temporary
|
||||
|
||||
[ T{ dimensioned f 3 { m } { } } ] [ 3 m ] unit-test
|
||||
|
|
Loading…
Reference in New Issue