USING: concurrency.count-downs threads kernel tools.test ;
-IN: concurrency.count-downs.tests`
+IN: concurrency.count-downs.tests
{ } [ 0 <count-down> await ] unit-test
USING: kernel namespaces interval-maps tools.test ;
-IN: interval-maps.test
+IN: interval-maps.tests
SYMBOL: test
! See http://factorcode.org/license.txt for BSD license.
USING: inverse tools.test arrays math kernel sequences
math.functions math.constants continuations combinators.smart ;
-IN: inverse-tests
+IN: inverse.tests
{ 2 } [ { 3 2 } [ 3 swap 2array ] undo ] unit-test
[ { 3 4 } [ dup 2array ] undo ] must-fail
USING: io.encodings.strict io.encodings.ascii tools.test
arrays io.encodings.string ;
-IN: io.encodings.strict.test
+IN: io.encodings.strict.tests
{ { 0xfffd } } [ { 128 } ascii decode >array ] unit-test
[ { 128 } ascii strict decode ] must-fail
! See http://factorcode.org/license.txt for BSD license.
USING: accessors assocs kernel linked-assocs math sequences
tools.test ;
-IN: linked-assocs.test
+IN: linked-assocs.tests
{ { 1 2 3 } } [
<linked-hash> 1 "b" pick set-at
USING: accessors compiler.units kernel locals.types tools.test words ;
-IN: locals.types.test
+IN: locals.types.tests
{ t } [
[ "hello" <local> ] with-compilation-unit "local?" word-prop
USING: arrays regexp tools.test kernel sequences regexp.parser
regexp.private eval strings multiline accessors ;
-IN: regexp-tests
+IN: regexp.tests
{ f } [ "b" "a*" <regexp> matches? ] unit-test
{ t } [ "" "a*" <regexp> matches? ] unit-test
USING: calendar calendar.elapsed kernel tools.test ;
-IN: calendar.elapsed.test
+IN: calendar.elapsed.tests
[ -1 elapsed-time ] [ "negative seconds" = ] must-fail-with
USING: jamshred.oint tools.test ;
-IN: jamshred.oint-tests
+IN: jamshred.oint.tests
{ { 0 -1 -1 } } [ { 0 1 -1 } { 0 -1 0 } reflect ] unit-test
{ { 0 1 0 } } [ { 1 1 0 } { 1 0 0 } proj-perp ] unit-test
USING: arrays kernel math math.extras math.ranges sequences
tools.test ;
-IN: math.extras.test
+IN: math.extras.tests
{ { 1 -1/2 1/6 0 -1/30 0 1/42 0 -1/30 0 } }
[ 10 <iota> [ bernoulli ] map ] unit-test