more test IN: cleanup.

windows-high-dpi
John Benediktsson 2018-02-15 09:20:01 -08:00
parent 4a144e5ea7
commit ca03896d74
117 changed files with 49 additions and 198 deletions

View File

@ -1,14 +1,23 @@
USING: accessors calendar calendar.format io io.streams.string USING: accessors calendar calendar.format sequences tools.test ;
kernel math.order sequences tools.test ;
IN: calendar.format.tests IN: calendar.format.tests
{ } [ now timestamp>rfc3339 drop ] unit-test CONSTANT: testtime T{ timestamp
{ } [ now timestamp>rfc822 drop ] unit-test { year 2018 }
{ month 2 }
{ day 15 }
{ hour 8 }
{ minute 51 }
{ second 44+423303/500000 }
{ gmt-offset T{ duration { hour -8 } } }
}
{ "2018-02-15T08:51:44.846606-08:00" } [ testtime timestamp>rfc3339 ] unit-test
{ "Thu, 15 Feb 2018 08:51:44 -0800" } [ testtime timestamp>rfc822 ] unit-test
{ } { }
[ { 2008 2009 } [ year. ] each ] unit-test [ { 2008 2009 } [ year. ] each ] unit-test
{ "03:01:59" } [ { "03:01:59" } [
3 hours 1 >>minute 59 >>second duration>hms 3 hours 1 >>minute 59 >>second duration>hms
] unit-test ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2016 Alexander Ilin. ! Copyright (C) 2016 Alexander Ilin.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test checksums checksums.crc16 ; USING: tools.test checksums checksums.crc16 ;
IN: checksums.crc16.tests
{ B{ 0xb8 0x80 } } [ { B{ 0xb8 0x80 } } [
B{ 0x01 0x04 0x02 0xFF 0xFF } crc16 checksum-bytes B{ 0x01 0x04 0x02 0xFF 0xFF } crc16 checksum-bytes

View File

@ -1,19 +1,17 @@
! Copyright (C) 2010 John Benediktsson ! Copyright (C) 2010 John Benediktsson
! See http://factorcode.org/license.txt for BSD license ! See http://factorcode.org/license.txt for BSD license
USING: checksums checksums.internet tools.test ; USING: checksums checksums.internet tools.test ;
IN: checksums.internet.tests
{ B{ 255 255 } } [ { } internet checksum-bytes ] unit-test { B{ 255 255 } } [ { } internet checksum-bytes ] unit-test
{ B{ 254 255 } } [ { 1 } internet checksum-bytes ] unit-test { B{ 254 255 } } [ { 1 } internet checksum-bytes ] unit-test
{ B{ 254 253 } } [ { 1 2 } internet checksum-bytes ] unit-test { B{ 254 253 } } [ { 1 2 } internet checksum-bytes ] unit-test
{ B{ 251 253 } } [ { 1 2 3 } internet checksum-bytes ] unit-test { B{ 251 253 } } [ { 1 2 3 } internet checksum-bytes ] unit-test
: test-data ( -- bytes ) { B{ 34 13 } } [
B{ B{
0x00 0x01 0x00 0x01
0xf2 0x03 0xf2 0x03
0xf4 0xf5 0xf4 0xf5
0xf6 0xf7 0xf6 0xf7
} ; } internet checksum-bytes
] unit-test
{ B{ 34 13 } } [ test-data internet checksum-bytes ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2017 Jon Harper. ! Copyright (C) 2017 Jon Harper.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: checksums checksums.ripemd strings tools.test ; USING: checksums checksums.ripemd strings tools.test ;
IN: checksums.ripemd.tests
{ B{ { B{
0x9c 0x11 0x85 0xa5 0xc5 0x9c 0x11 0x85 0xa5 0xc5

View File

@ -1,10 +1,6 @@
USING: arrays checksums checksums.common checksums.sha USING: arrays checksums checksums.common checksums.sha
checksums.sha.private io.encodings.binary io.streams.byte-array checksums.sha.private io.encodings.binary io.streams.byte-array
kernel math.parser sequences tools.test random ; kernel math.parser sequences tools.test random ;
IN: checksums.sha.tests
: test-checksum ( text identifier -- checksum )
checksum-bytes bytes>hex-string ;
{ "a9993e364706816aba3e25717850c26c9cd0d89d" } [ "abc" sha1 checksum-bytes bytes>hex-string ] unit-test { "a9993e364706816aba3e25717850c26c9cd0d89d" } [ "abc" sha1 checksum-bytes bytes>hex-string ] unit-test
{ "84983e441c3bd26ebaae4aa1f95129e5e54670f1" } [ "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" sha1 checksum-bytes bytes>hex-string ] unit-test { "84983e441c3bd26ebaae4aa1f95129e5e54670f1" } [ "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" sha1 checksum-bytes bytes>hex-string ] unit-test
@ -16,36 +12,36 @@ IN: checksums.sha.tests
{ "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525" } { "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525" }
[ [
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
sha-224 test-checksum sha-224 checksum-bytes bytes>hex-string
] unit-test ] unit-test
{ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" } { "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }
[ "" sha-256 test-checksum ] unit-test [ "" sha-256 checksum-bytes bytes>hex-string ] unit-test
{ "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" } { "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" }
[ "abc" sha-256 test-checksum ] unit-test [ "abc" sha-256 checksum-bytes bytes>hex-string ] unit-test
{ "f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650" } { "f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650" }
[ "message digest" sha-256 test-checksum ] unit-test [ "message digest" sha-256 checksum-bytes bytes>hex-string ] unit-test
{ "71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73" } { "71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73" }
[ "abcdefghijklmnopqrstuvwxyz" sha-256 test-checksum ] unit-test [ "abcdefghijklmnopqrstuvwxyz" sha-256 checksum-bytes bytes>hex-string ] unit-test
{ "db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0" } { "db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0" }
[ [
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
sha-256 test-checksum sha-256 checksum-bytes bytes>hex-string
] unit-test ] unit-test
{ "f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e" } { "f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e" }
[ [
"12345678901234567890123456789012345678901234567890123456789012345678901234567890" "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
sha-256 test-checksum sha-256 checksum-bytes bytes>hex-string
] unit-test ] unit-test
! [ "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909" ] ! [ "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909" ]
! [ "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" sha-512 test-checksum ] unit-test ! [ "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" sha-512 checksum-bytes bytes>hex-string ] unit-test
{ {
t t

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test fonts ;
IN: fonts.tests

View File

@ -1,4 +1,4 @@
USING: accessors io.sockets.secure http.client http.client.private http USING: accessors http http.client http.client.private
io.streams.string kernel namespaces sequences tools.test urls ; io.streams.string kernel namespaces sequences tools.test urls ;
IN: http.client.tests IN: http.client.tests

View File

@ -1,7 +1,6 @@
USING: accessors assocs continuations http http.server USING: accessors assocs continuations http http.server
http.server.requests io.encodings.utf8 io.encodings.binary io.streams.string http.server.requests io.encodings.utf8 io.encodings.binary
kernel math peg sequences tools.test urls ; io.streams.string kernel math peg sequences tools.test urls ;
IN: http.server.tests
{ t } [ [ \ + first ] [ <500> ] recover response? ] unit-test { t } [ [ \ + first ] [ <500> ] recover response? ] unit-test

View File

@ -1,4 +1,3 @@
USING: http.server.static tools.test xml.writer ; USING: http.server.static tools.test xml.writer ;
IN: http.server.static.tests
{ } [ "resource:basis" directory>html write-xml ] unit-test { } [ "resource:basis" directory>html write-xml ] unit-test

View File

@ -1,6 +1,5 @@
USING: kernel tools.test math namespaces prettyprint USING: kernel tools.test math namespaces prettyprint sequences
sequences inspector io.streams.string ; inspector io.streams.string ;
IN: inspector.tests
[ 1 2 3 ] describe [ 1 2 3 ] describe
f describe f describe

View File

@ -1,7 +1,6 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: interpolate io.streams.string namespaces tools.test locals ; USING: interpolate io.streams.string namespaces tools.test locals ;
IN: interpolate.tests
{ "A B" } [ "A" "B" "${1} ${0}" interpolate>string ] unit-test { "A B" } [ "A" "B" "${1} ${0}" interpolate>string ] unit-test
{ "B A" } [ "A" "B" "${0} ${1}" interpolate>string ] unit-test { "B A" } [ "A" "B" "${0} ${1}" interpolate>string ] unit-test

View File

@ -1,4 +1,3 @@
IN: io.crlf.tests
USING: io.crlf tools.test io.streams.string io ; USING: io.crlf tools.test io.streams.string io ;
{ "Hello, world." } [ "Hello, world." [ read-crlf ] with-string-reader ] unit-test { "Hello, world." } [ "Hello, world." [ read-crlf ] with-string-reader ] unit-test

View File

@ -1,6 +1,5 @@
USING: io.directories io.directories.hierarchy kernel USING: io.directories io.directories.hierarchy kernel
sequences tools.test ; sequences tools.test ;
IN: io.directories.hierarchy.tests
{ { "classes/tuple/tuple.factor" } } [ { { "classes/tuple/tuple.factor" } } [
"resource:core" [ "resource:core" [

View File

@ -1,7 +1,6 @@
USING: io.encodings.string io.encodings.8-bit USING: io.encodings.string io.encodings.8-bit
io.encodings.8-bit.private tools.test strings arrays io.encodings.8-bit.private tools.test strings arrays
io.encodings.8-bit.latin1 io.encodings.8-bit.windows-1252 ; io.encodings.8-bit.latin1 io.encodings.8-bit.windows-1252 ;
IN: io.encodings.8-bit.tests
{ B{ CHAR: f CHAR: o CHAR: o } } [ "foo" latin1 encode ] unit-test { B{ CHAR: f CHAR: o CHAR: o } } [ "foo" latin1 encode ] unit-test
[ { 256 } >string latin1 encode ] must-fail [ { 256 } >string latin1 encode ] must-fail

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Daniel Ehrenberg ! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: io.encodings.gb18030 io.encodings.string strings tools.test arrays ; USING: io.encodings.gb18030 io.encodings.string strings tools.test arrays ;
IN: io.encodings.gb18030.tests
{ "hello" } [ "hello" gb18030 encode >string ] unit-test { "hello" } [ "hello" gb18030 encode >string ] unit-test
{ "hello" } [ "hello" gb18030 decode ] unit-test { "hello" } [ "hello" gb18030 decode ] unit-test

View File

@ -1,6 +1,5 @@
USING: io.encodings.strict io.encodings.ascii tools.test USING: io.encodings.strict io.encodings.ascii tools.test
arrays io.encodings.string ; arrays io.encodings.string ;
IN: io.encodings.strict.tests
{ { 0xfffd } } [ { 128 } ascii decode >array ] unit-test { { 0xfffd } } [ { 128 } ascii decode >array ] unit-test
[ { 128 } ascii strict decode ] must-fail [ { 128 } ascii strict decode ] must-fail

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: strings io.encodings.utf8 io.encodings.utf16 USING: strings io.encodings.utf8 io.encodings.utf16
io.encodings.string tools.test io.encodings.binary ; io.encodings.string tools.test io.encodings.binary ;
IN: io.encodings.string.tests
{ "hello" } [ "hello" utf8 decode ] unit-test { "hello" } [ "hello" utf8 decode ] unit-test
{ B{ 0 1 22 255 } } [ B{ 0 1 22 255 } binary decode ] unit-test { B{ 0 1 22 255 } } [ B{ 0 1 22 255 } binary decode ] unit-test

View File

@ -3,7 +3,6 @@
USING: kernel tools.test io.encodings.utf32 arrays sbufs USING: kernel tools.test io.encodings.utf32 arrays sbufs
io.streams.byte-array sequences io.encodings io strings io.streams.byte-array sequences io.encodings io strings
io.encodings.string alien.c-types alien.strings accessors classes ; io.encodings.string alien.c-types alien.strings accessors classes ;
IN: io.encodings.utf32.tests
{ { CHAR: x } } [ B{ 0 0 0 CHAR: x } utf32be decode >array ] unit-test { { CHAR: x } } [ B{ 0 0 0 CHAR: x } utf32be decode >array ] unit-test
{ { 0x1D11E } } [ B{ 0 1 0xD1 0x1E } utf32be decode >array ] unit-test { { 0x1D11E } } [ B{ 0 1 0xD1 0x1E } utf32be decode >array ] unit-test

View File

@ -1,6 +1,5 @@
USING: io.encodings.string io.encodings.utf7 kernel sequences strings USING: io.encodings.string io.encodings.utf7 kernel sequences strings
tools.test ; tools.test ;
IN: io.encodings.utf7.tests
{ {
{ {

View File

@ -1,7 +1,6 @@
USING: io.files.info io.encodings.utf8 io.files USING: io.files.info io.encodings.utf8 io.files
io.directories kernel io.pathnames accessors tools.test io.directories kernel io.pathnames accessors tools.test
sequences io.files.temp ; sequences io.files.temp ;
IN: io.files.info.tests
{ "hi41" } [ { "hi41" } [
[ [

View File

@ -1,7 +1,6 @@
! Copyright (C) 2015 Doug Coleman. ! Copyright (C) 2015 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test io.files.info.unix.linux ; USING: tools.test io.files.info.unix.linux ;
IN: io.files.info.unix.linux.tests
[ "/media/erg/4TB D" ] [ "/media/erg/4TB D" ]
[ "/media/erg/4TB\\040D" decode-mount-point ] unit-test [ "/media/erg/4TB\\040D" decode-mount-point ] unit-test

View File

@ -1,6 +1,5 @@
! Copyright (C) 2009 Doug Coleman. ! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test io.files.info.windows system kernel ; USING: tools.test io.files.info.windows system kernel ;
IN: io.files.info.windows.tests
[ ] [ vm-path file-times 3drop ] unit-test [ ] [ vm-path file-times 3drop ] unit-test

View File

@ -2,7 +2,6 @@ USING: accessors continuations io.directories
io.directories.hierarchy io.encodings.ascii io.files io.directories.hierarchy io.encodings.ascii io.files
io.files.info io.files.temp io.files.unique io.pathnames kernel io.files.info io.files.temp io.files.unique io.pathnames kernel
namespaces sequences strings tools.test ; namespaces sequences strings tools.test ;
IN: io.files.unique.tests
{ 123 } [ { 123 } [
[ [

View File

@ -4,7 +4,6 @@ USING: combinators continuations io.backend io.directories io.files
io.files.temp io.files.windows io.pathnames kernel kernel.private libc io.files.temp io.files.windows io.pathnames kernel kernel.private libc
literals memory sequences splitting tools.test windows.kernel32 literals memory sequences splitting tools.test windows.kernel32
io.files.unique destructors ; io.files.unique destructors ;
IN: io.files.windows.tests
[ f ] [ "\\foo" absolute-path? ] unit-test [ f ] [ "\\foo" absolute-path? ] unit-test
[ t ] [ "\\\\?\\c:\\foo" absolute-path? ] unit-test [ t ] [ "\\\\?\\c:\\foo" absolute-path? ] unit-test

View File

@ -1,9 +1,7 @@
USING: io io.pipes io.streams.string io.encodings.utf8 USING: accessors calendar concurrency.count-downs continuations
io.encodings.binary io.streams.duplex io.encodings io.timeouts destructors fry io io.encodings io.encodings.binary
namespaces continuations tools.test kernel calendar destructors io.encodings.utf8 io.pipes io.streams.duplex io.streams.string
accessors debugger math sequences threads io.timeouts kernel math namespaces threads tools.test ;
concurrency.count-downs fry ;
IN: io.pipes.tests
{ "Hello" } [ { "Hello" } [
utf8 <pipe> [ utf8 <pipe> [

View File

@ -1,6 +1,5 @@
USING: tools.test io.pipes io.pipes.unix io.encodings.utf8 USING: tools.test io.pipes io.pipes.unix io.encodings.utf8
io.encodings io namespaces sequences ; io.encodings io namespaces sequences ;
IN: io.pipes.unix.tests
[ { 0 0 } ] [ { "ls" "grep ." } run-pipeline ] unit-test [ { 0 0 } ] [ { "ls" "grep ." } run-pipeline ] unit-test

View File

@ -1,6 +1,5 @@
IN: io.sockets.secure.tests USING: accessors io.sockets io.sockets.secure
USING: accessors io.sockets io.sockets.secure io.sockets.secure.debug io.sockets.secure.debug kernel system tools.test ;
kernel system tools.test ;
{ "hello" 24 } [ "hello" 24 <inet> "hello" <secure> [ host>> ] [ port>> ] bi ] unit-test { "hello" 24 } [ "hello" 24 <inet> "hello" <secure> [ host>> ] [ port>> ] bi ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2011 Doug Coleman. ! Copyright (C) 2011 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: io.standard-paths io.standard-paths.macosx tools.test ; USING: io.standard-paths io.standard-paths.macosx tools.test ;
IN: io.standard-paths.macosx.tests
{ "/System/Library/CoreServices/Finder.app" } { "/System/Library/CoreServices/Finder.app" }
[ "com.apple.finder" find-native-bundle ] unit-test [ "com.apple.finder" find-native-bundle ] unit-test

View File

@ -1,4 +0,0 @@
! Copyright (C) 2011 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test io.standard-paths ;
IN: io.standard-paths.tests

View File

@ -1,7 +1,5 @@
USING: kernel sequences tools.test ; USING: ip-parser kernel sequences tools.test ;
IN: ip-parser
{ "0.0.0.1" } [ "1" normalize-ipv4 ] unit-test { "0.0.0.1" } [ "1" normalize-ipv4 ] unit-test
{ "1.0.0.2" } [ "1.2" normalize-ipv4 ] unit-test { "1.0.0.2" } [ "1.2" normalize-ipv4 ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2016 Doug Coleman. ! Copyright (C) 2016 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: io.streams.string json.prettyprint json.reader tools.test ; USING: io.streams.string json.prettyprint json.reader tools.test ;
IN: json.prettyprint.tests
[ [
"{ "{

View File

@ -1,6 +1,5 @@
USING: hashtables io.streams.string json json.reader USING: hashtables io.streams.string json json.reader
json.reader.private kernel literals math strings tools.test ; json.reader.private kernel literals math strings tools.test ;
IN: json.reader.tests
{ f } [ "false" json> ] unit-test { f } [ "false" json> ] unit-test
{ t } [ "true" json> ] unit-test { t } [ "true" json> ] unit-test

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: lcs lcs.diff2html kernel tools.test strings sequences USING: lcs lcs.diff2html kernel tools.test strings sequences
xml.writer ; xml.writer ;
IN: lcs.diff2html.tests
{ } [ { } [
"hello" "heyo" [ [ 1string ] { } map-as ] bi@ "hello" "heyo" [ [ 1string ] { } map-as ] bi@

View File

@ -1,4 +1,3 @@
IN: libc.tests
USING: destructors kernel libc libc.private namespaces USING: destructors kernel libc libc.private namespaces
tools.test ; tools.test ;

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors assocs kernel linked-assocs math sequences USING: accessors assocs kernel linked-assocs math sequences
tools.test ; tools.test ;
IN: linked-assocs.tests
{ { 1 2 3 } } [ { { 1 2 3 } } [
<linked-hash> 1 "b" pick set-at <linked-hash> 1 "b" pick set-at

View File

@ -1,5 +1,4 @@
USING: fry kernel sequences tools.test ; USING: fry kernel sequences tools.test ;
IN: math.primes.erato.fast
{ {

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Doug Coleman. ! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test math.primes.lucas-lehmer ; USING: tools.test math.primes.lucas-lehmer ;
IN: math.primes.lucas-lehmer.tests
{ t } [ 2 lucas-lehmer ] unit-test { t } [ 2 lucas-lehmer ] unit-test
{ t } [ 3 lucas-lehmer ] unit-test { t } [ 3 lucas-lehmer ] unit-test

View File

@ -1,5 +1,4 @@
USING: kernel math.primes.miller-rabin sequences tools.test ; USING: kernel math.primes.miller-rabin sequences tools.test ;
IN: math.primes.miller-rabin.tests
{ f } [ 473155932665450549999756893736999469773678960651272093993257221235459777950185377130233556540099119926369437865330559863 miller-rabin ] unit-test { f } [ 473155932665450549999756893736999469773678960651272093993257221235459777950185377130233556540099119926369437865330559863 miller-rabin ] unit-test
{ t } [ 2 miller-rabin ] unit-test { t } [ 2 miller-rabin ] unit-test

View File

@ -1,6 +1,5 @@
USING: arrays kernel math math.primes math.primes.miller-rabin USING: arrays kernel math math.primes math.primes.miller-rabin
sequences tools.test ; sequences tools.test ;
IN: math.primes.tests
{ 1237 } [ 1234 next-prime ] unit-test { 1237 } [ 1234 next-prime ] unit-test
{ f t } [ 1234 prime? 1237 prime? ] unit-test { f t } [ 1234 prime? 1237 prime? ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Doug Coleman. ! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: math.primes.safe math.primes.safe.private tools.test ; USING: math.primes.safe math.primes.safe.private tools.test ;
IN: math.primes.safe.tests
{ 863 } [ 862 next-safe-prime ] unit-test { 863 } [ 862 next-safe-prime ] unit-test
{ f } [ 862 safe-prime? ] unit-test { f } [ 862 safe-prime? ] unit-test

View File

@ -1,5 +1,4 @@
USING: arrays kernel math math.ranges sequences sets tools.test ; USING: arrays kernel math math.ranges sequences sets tools.test ;
IN: math.ranges.tests
{ { } } [ 1 1 (a,b) >array ] unit-test { { } } [ 1 1 (a,b) >array ] unit-test
{ { } } [ 1 1 (a,b] >array ] unit-test { { } } [ 1 1 (a,b] >array ] unit-test

View File

@ -1,7 +1,6 @@
USING: arrays assocs kernel math math.functions math.statistics sequences USING: arrays assocs kernel math math.functions math.statistics sequences
math.order tools.test math.vectors ; math.order tools.test math.vectors ;
FROM: math.ranges => [a,b] ; FROM: math.ranges => [a,b] ;
IN: math.statistics.tests
{ 3 } [ { 1 2 3 4 5 } 1 power-mean ] unit-test { 3 } [ { 1 2 3 4 5 } 1 power-mean ] unit-test
{ t } [ { 1 2 3 4 5 } [ 2 power-mean ] [ quadratic-mean ] bi 1e-10 ~ ] unit-test { t } [ { 1 2 3 4 5 } [ 2 power-mean ] [ quadratic-mean ] bi 1e-10 ~ ] unit-test

View File

@ -1,4 +1,3 @@
IN: mime.types.tests
USING: mime.types tools.test ; USING: mime.types tools.test ;
{ "application/postscript" } [ "foo.ps" mime-type ] unit-test { "application/postscript" } [ "foo.ps" mime-type ] unit-test

View File

@ -1,6 +1,5 @@
USING: arrays generic kernel math models namespaces sequences assocs USING: arrays generic kernel math models namespaces sequences assocs
tools.test models.arrow accessors ; tools.test models.arrow accessors ;
IN: models.arrow.tests
3 <model> "x" set 3 <model> "x" set
"x" get [ 2 * ] <arrow> dup "z" set "x" get [ 2 * ] <arrow> dup "z" set

View File

@ -1,4 +1,3 @@
IN: models.arrows.smart.tests
USING: models.arrow.smart tools.test accessors models math kernel ; USING: models.arrow.smart tools.test accessors models math kernel ;
{ 7 } [ 3 <model> 4 <model> [ + ] <smart-arrow> [ activate-model ] [ value>> ] bi ] unit-test { 7 } [ 3 <model> 4 <model> [ + ] <smart-arrow> [ activate-model ] [ value>> ] bi ] unit-test

View File

@ -1,6 +1,5 @@
USING: arrays generic kernel math models namespaces sequences assocs USING: arrays generic kernel math models namespaces sequences assocs
tools.test models.mapping accessors make ; tools.test models.mapping accessors make ;
IN: models.mapping.tests
! Test mapping ! Test mapping
{ } [ { } [

View File

@ -1,4 +1,3 @@
IN: nmake.tests
USING: nmake kernel tools.test ; USING: nmake kernel tools.test ;
{ } [ [ ] { } nmake ] unit-test { } [ [ ] { } nmake ] unit-test

View File

@ -1,5 +1,4 @@
USING: arrays continuations debugger io.streams.string peg tools.test ; USING: arrays continuations debugger io.streams.string peg tools.test ;
IN: peg.debugger.tests
{ "Peg parsing error at character position 0.\nExpected 'A' or 'B'\nGot 'xxxx'\n" } [ { "Peg parsing error at character position 0.\nExpected 'A' or 'B'\nGot 'xxxx'\n" } [
[ "xxxx" "A" token "B" token 2array choice parse ] [ ] recover [ "xxxx" "A" token "B" token 2array choice parse ] [ ] recover

View File

@ -1,4 +1,3 @@
IN: porter-stemmer.tests
USING: arrays assocs io kernel porter-stemmer sequences USING: arrays assocs io kernel porter-stemmer sequences
tools.test io.files io.encodings.utf8 ; tools.test io.files io.encodings.utf8 ;

View File

@ -1,4 +1,3 @@
IN: present.tests
USING: kernel math present sequences tools.test vocabs USING: kernel math present sequences tools.test vocabs
vocabs.hierarchy ; vocabs.hierarchy ;

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Doug Coleman. ! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test quoting ; USING: tools.test quoting ;
IN: quoting.tests
{ f } [ "" quoted? ] unit-test { f } [ "" quoted? ] unit-test
{ t } [ "''" quoted? ] unit-test { t } [ "''" quoted? ] unit-test

View File

@ -1,5 +1,4 @@
USING: sorting.human tools.test sorting.slots sorting ; USING: sorting.human tools.test sorting.slots sorting ;
IN: sorting.human.tests
{ { "x1y" "x2" "x10y" } } { { "x1y" "x2" "x10y" } }
[ { "x1y" "x10y" "x2" } { human<=> } sort-by ] unit-test [ { "x1y" "x10y" "x2" } { human<=> } sort-by ] unit-test

View File

@ -1,4 +1,5 @@
IN: sorting.insertion
USING: sorting.insertion sequences kernel tools.test ; USING: sorting.insertion sequences kernel tools.test ;
{ { { 1 1 } { 1 2 } { 2 0 } } } [ { { 2 0 } { 1 1 } { 1 2 } } dup [ first ] insertion-sort ] unit-test { { { 1 1 } { 1 2 } { 2 0 } } } [
{ { 2 0 } { 1 1 } { 1 2 } } dup [ first ] insertion-sort
] unit-test

View File

@ -1,4 +1,3 @@
IN: soundex.tests
USING: soundex tools.test ; USING: soundex tools.test ;
{ "S162" } [ "supercalifrag" soundex ] unit-test { "S162" } [ "supercalifrag" soundex ] unit-test

View File

@ -1,5 +1,5 @@
IN: splitting.monotonic USING: tools.test math arrays kernel sequences
USING: tools.test math arrays kernel sequences ; splitting.monotonic ;
{ { } } [ { } [ < ] monotonic-split ] unit-test { { } } [ { } [ < ] monotonic-split ] unit-test
{ { { 1 } } } [ { 1 } [ < ] monotonic-split ] unit-test { { { 1 } } } [ { 1 } [ < ] monotonic-split ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Slava Pestov. ! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test strings.tables ; USING: tools.test strings.tables ;
IN: strings.tables.tests
{ { } } [ { } format-table ] unit-test { { } } [ { } format-table ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2008 Marc Fauconneau. ! Copyright (C) 2008 Marc Fauconneau.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test suffix-arrays kernel namespaces sequences ; USING: tools.test suffix-arrays kernel namespaces sequences ;
IN: suffix-arrays.tests
! built from [ all-words 10 head [ name>> ] map ] ! built from [ all-words 10 head [ name>> ] map ]
{ } [ { } [

View File

@ -1,6 +1,5 @@
USING: system-info.linux strings splitting sequences USING: system-info.linux strings splitting sequences
tools.test kernel ; tools.test kernel ;
IN: system-info.linux.tests
[ 6 ] [ uname length ] unit-test [ 6 ] [ uname length ] unit-test

View File

@ -1,6 +1,5 @@
USING: math math.order strings system-info.windows tools.test USING: math math.order strings system-info.windows tools.test
system-info ; system-info ;
IN: system-info.windows.tests
[ t ] [ cpus integer? ] unit-test [ t ] [ cpus integer? ] unit-test
[ t ] [ username string? ] unit-test [ t ] [ username string? ] unit-test

View File

@ -1,7 +1,6 @@
USING: timers timers.private calendar concurrency.count-downs USING: timers timers.private calendar concurrency.count-downs
concurrency.promises fry kernel math math.order sequences concurrency.promises fry kernel math math.order sequences
threads tools.test tools.time ; threads tools.test tools.time ;
IN: timers.tests
{ } [ { } [
1 <count-down> 1 <count-down>

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test math kernel sets generic USING: tools.test math kernel sets generic
ui.baseline-alignment ui.baseline-alignment.private ; ui.baseline-alignment ui.baseline-alignment.private ;
IN: ui.baseline-alignment.tests
! Test baseline calculations ! Test baseline calculations
{ 10 0 } [ 0 10 0 10 combine-metrics ] unit-test { 10 0 } [ 0 10 0 10 combine-metrics ] unit-test

View File

@ -1,4 +1,3 @@
IN: ui.gadgets.borders.tests
USING: accessors kernel math.rectangles namespaces tools.test USING: accessors kernel math.rectangles namespaces tools.test
ui.gadgets ui.gadgets.borders ui.gadgets.borders.private ui.gadgets ui.gadgets.borders ui.gadgets.borders.private
ui.gadgets.editors ; ui.gadgets.editors ;

View File

@ -1,6 +1,5 @@
USING: accessors kernel models namespaces tools.test ui.gadgets USING: accessors kernel models namespaces tools.test ui.gadgets
ui.gadgets.buttons ; ui.gadgets.buttons ;
IN: ui.gadgets.buttons.tests
{ } [ { } [
2 <model> { 2 <model> {

View File

@ -1,4 +1,3 @@
IN: ui.gadgets.canvas.tests
USING: ui.gadgets.canvas tools.test kernel ; USING: ui.gadgets.canvas tools.test kernel ;
{ 1 0 } [ [ drop ] draw-canvas ] must-infer-as { 1 0 } [ [ drop ] draw-canvas ] must-infer-as

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.gadgets.debug ;
IN: ui.gadgets.debug.tests

View File

@ -3,7 +3,6 @@ tools.test kernel io io.streams.plain definitions namespaces
ui.gadgets ui.gadgets.grids prettyprint documents ui.gestures ui.gadgets ui.gadgets.grids prettyprint documents ui.gestures
ui.gadgets.debug models documents.elements ui.gadgets.scrollers ui.gadgets.debug models documents.elements ui.gadgets.scrollers
ui.gadgets.line-support sequences ; ui.gadgets.line-support sequences ;
IN: ui.gadgets.editors.tests
{ "foo bar" } [ { "foo bar" } [
<editor> "editor" set <editor> "editor" set

View File

@ -1,6 +1,5 @@
USING: accessors kernel namespaces tools.test ui.gadgets USING: accessors kernel namespaces tools.test ui.gadgets
ui.gadgets.frames ui.gadgets.grids ui.gadgets.labels ; ui.gadgets.frames ui.gadgets.grids ui.gadgets.labels ;
IN: ui.gadgets.frames.tests
{ } [ 3 3 <frame> { 1 1 } >>filled-cell layout ] unit-test { } [ 3 3 <frame> { 1 1 } >>filled-cell layout ] unit-test

View File

@ -1,4 +1,3 @@
IN: ui.gadgets.glass.tests
USING: tools.test ui.gadgets.glass ui.gadgets.worlds ui.gadgets USING: tools.test ui.gadgets.glass ui.gadgets.worlds ui.gadgets
math.rectangles namespaces accessors models sequences arrays ; math.rectangles namespaces accessors models sequences arrays ;

View File

@ -1,6 +1,5 @@
USING: accessors colors.constants sequences tools.test USING: accessors colors.constants sequences tools.test
ui.gadgets ui.gadgets.labeled ; ui.gadgets ui.gadgets.labeled ;
IN: ui.gadgets.labeled.tests
{ t } [ { t } [
<gadget> "Hey" <labeled-gadget> content>> gadget? <gadget> "Hey" <labeled-gadget> content>> gadget?

View File

@ -1,5 +1,4 @@
USING: accessors tools.test ui.gadgets ui.gadgets.labels ; USING: accessors tools.test ui.gadgets ui.gadgets.labels ;
IN: ui.gadgets.labels.tests
{ { 119 14 } } [ { { 119 14 } } [
<gadget> { 100 14 } >>dim <gadget> { 100 14 } >>dim

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays kernel tools.test ui.gadgets.editors USING: accessors arrays kernel tools.test ui.gadgets.editors
ui.gadgets.line-support ui.gadgets.line-support.private ui.text ; ui.gadgets.line-support ui.gadgets.line-support.private ui.text ;
IN: ui.gadgets.line-support.tests
! line-gadget-height ! line-gadget-height
{ t } [ { t } [

View File

@ -2,7 +2,6 @@ USING: ui.gadgets.packs ui.gadgets.packs.private
ui.gadgets.labels ui.gadgets ui.gadgets.debug ui.render ui.gadgets.labels ui.gadgets ui.gadgets.debug ui.render
ui.baseline-alignment kernel namespaces tools.test math.parser ui.baseline-alignment kernel namespaces tools.test math.parser
sequences math.rectangles accessors math ; sequences math.rectangles accessors math ;
IN: ui.gadgets.packs.tests
{ t } [ { t } [
{ 0 0 } { 100 100 } <rect> clip set { 0 0 } { 100 100 } <rect> clip set

View File

@ -1,7 +1,6 @@
USING: math ui.gadgets.presentations ui.gadgets tools.test USING: math ui.gadgets.presentations ui.gadgets tools.test
prettyprint ui.gadgets.buttons io io.streams.string kernel prettyprint ui.gadgets.buttons io io.streams.string kernel
classes.tuple accessors ; classes.tuple accessors ;
IN: ui.gadgets.presentations.tests
{ t } [ { t } [
"Hi" \ + <presentation> gadget? "Hi" \ + <presentation> gadget?

View File

@ -4,7 +4,6 @@ ui.gadgets.labels ui.gadgets.grids ui.gadgets.sliders math
math.vectors arrays sequences ui.gadgets.debug math.rectangles math.vectors arrays sequences ui.gadgets.debug math.rectangles
accessors ui.gadgets.buttons ui.gadgets.packs accessors ui.gadgets.buttons ui.gadgets.packs
ui.gadgets.scrollers.private ; ui.gadgets.scrollers.private ;
IN: ui.gadgets.scrollers.tests
{ } [ { } [
<gadget> "g" set <gadget> "g" set

View File

@ -1,4 +1,3 @@
IN: ui.gadgets.search-tables.tests
USING: ui.gadgets.search-tables ui.gadgets.tables ui.gadgets models USING: ui.gadgets.search-tables ui.gadgets.tables ui.gadgets models
arrays sequences tools.test ; arrays sequences tools.test ;

View File

@ -1,6 +1,5 @@
USING: kernel ui.gadgets ui.gadgets.tracks tools.test USING: kernel ui.gadgets ui.gadgets.tracks tools.test
math.rectangles accessors sequences namespaces ; math.rectangles accessors sequences namespaces ;
IN: ui.gadgets.tracks.tests
{ { 100 100 } } [ { { 100 100 } } [
vertical <track> vertical <track>

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.images ;
IN: ui.images.tests

View File

@ -3,7 +3,6 @@
USING: accessors alien.c-types colors.constants kernel USING: accessors alien.c-types colors.constants kernel
specialized-arrays tools.test ui.gadgets.labels specialized-arrays tools.test ui.gadgets.labels
ui.pens.caching ui.pens.gradient ; ui.pens.caching ui.pens.gradient ;
IN: ui.pens.caching.tests
SPECIALIZED-ARRAY: float SPECIALIZED-ARRAY: float

View File

@ -1,7 +1,6 @@
USING: tools.test ui.pens.gradient ui.pens.gradient.private USING: tools.test ui.pens.gradient ui.pens.gradient.private
colors.constants specialized-arrays alien.c-types ; colors.constants specialized-arrays alien.c-types ;
SPECIALIZED-ARRAY: float SPECIALIZED-ARRAY: float
IN: ui.pens.gradient.tests
{ {
float-array{ float-array{

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.pens.image ;
IN: ui.pens.image.tests

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.pens ;
IN: ui.pens.tests

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.pens.polygon ;
IN: ui.pens.polygon.tests

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.pens.solid ;
IN: ui.pens.solid.tests

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.pens.tile ;
IN: ui.pens.tile.tests

View File

@ -1,3 +0,0 @@
USING: accessors colors.constants namespaces tools.test
ui.gadgets.labels ui.pens.gradient ui.render ui.render.private ;
IN: ui.render.tests

View File

@ -2,7 +2,6 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.text images fonts math arrays accessors kernel USING: tools.test ui.text images fonts math arrays accessors kernel
sequences ; sequences ;
IN: ui.text.tests
{ t } [ 0 sans-serif-font "aaa" offset>x zero? ] unit-test { t } [ 0 sans-serif-font "aaa" offset>x zero? ] unit-test
{ t } [ 1 sans-serif-font "aaa" offset>x 0.0 > ] unit-test { t } [ 1 sans-serif-font "aaa" offset>x 0.0 > ] unit-test

View File

@ -1,4 +1,3 @@
IN: ui.tools.browser.tests
USING: tools.test ui.gadgets.debug ui.tools.browser math ; USING: tools.test ui.gadgets.debug ui.tools.browser math ;
{ } [ \ + <browser-gadget> [ ] with-grafted-gadget ] unit-test { } [ \ + <browser-gadget> [ ] with-grafted-gadget ] unit-test

View File

@ -1,6 +1,4 @@
USING: kernel tools.test ui.gadgets.worlds ui.tools.debugger ; USING: kernel tools.test ui.gadgets.worlds ui.tools.debugger ;
IN: ui.tools.debugger.tests
{ f } [ { f } [
f <world-attributes> <world> world-error boa error-in-debugger? f <world-attributes> <world> world-error boa error-in-debugger?

View File

@ -1,4 +1,3 @@
IN: ui.tools.inspector.tests
USING: tools.test ui.tools.inspector math models ; USING: tools.test ui.tools.inspector math models ;
{ } [ \ + <model> <inspector-gadget> com-edit-slot ] unit-test { } [ \ + <model> <inspector-gadget> com-edit-slot ] unit-test

View File

@ -4,8 +4,6 @@
USING: accessors documents io.styles kernel namespaces USING: accessors documents io.styles kernel namespaces
sequences tools.test ui.tools.listener.history ; sequences tools.test ui.tools.listener.history ;
IN: ui.tools.listener.history.tests
{ } [ <document> "d" set ] unit-test { } [ <document> "d" set ] unit-test
{ } [ "d" get <history> "h" set ] unit-test { } [ "d" get <history> "h" set ] unit-test

View File

@ -1,4 +0,0 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test ui.tools.listener.popups ;
IN: ui.tools.listener.popups.tests

View File

@ -1,2 +0,0 @@
USING: ui.tools.walker tools.test ;
IN: ui.tools.walker.tests

View File

@ -1,2 +0,0 @@
USING: assocs continuations kernel threads tools.test ui ;
IN: ui.tests

View File

@ -1,6 +1,5 @@
USING: unrolled-lists tools.test deques kernel sequences USING: unrolled-lists tools.test deques kernel sequences
random prettyprint grouping math ; random prettyprint grouping math ;
IN: unrolled-lists.tests
{ 1 } [ <unrolled-list> 1 over push-front pop-front ] unit-test { 1 } [ <unrolled-list> 1 over push-front pop-front ] unit-test
{ 1 } [ <unrolled-list> 1 over push-front pop-back ] unit-test { 1 } [ <unrolled-list> 1 over push-front pop-back ] unit-test

View File

@ -1,4 +1,3 @@
IN: urls.encoding.tests
USING: urls.encoding tools.test arrays kernel assocs present USING: urls.encoding tools.test arrays kernel assocs present
accessors linked-assocs ; accessors linked-assocs ;

View File

@ -3,8 +3,6 @@
USING: kernel uuid tools.test ; USING: kernel uuid tools.test ;
IN: uuid.tests
{ t } [ NAMESPACE_DNS [ uuid-parse uuid-unparse ] keep = ] unit-test { t } [ NAMESPACE_DNS [ uuid-parse uuid-unparse ] keep = ] unit-test
{ t } [ NAMESPACE_URL [ uuid-parse uuid-unparse ] keep = ] unit-test { t } [ NAMESPACE_URL [ uuid-parse uuid-unparse ] keep = ] unit-test
{ t } [ NAMESPACE_OID [ uuid-parse uuid-unparse ] keep = ] unit-test { t } [ NAMESPACE_OID [ uuid-parse uuid-unparse ] keep = ] unit-test

View File

@ -1,5 +1,4 @@
USING: io.pathnames tools.test urls ; USING: io.pathnames tools.test urls webbrowser ;
IN: webbrowser
{ t } [ "http://reddit.com" url-string? ] unit-test { t } [ "http://reddit.com" url-string? ] unit-test
{ t } [ "https://reddit.com" url-string? ] unit-test { t } [ "https://reddit.com" url-string? ] unit-test

View File

@ -1,7 +1,6 @@
! Copyright (C) 2008, 2009 Daniel Ehrenberg, Slava Pestov ! Copyright (C) 2008, 2009 Daniel Ehrenberg, Slava Pestov
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel tools.test wrap.strings ; USING: kernel tools.test wrap.strings ;
IN: wrap.strings.tests
{ {
"This is a "This is a

View File

@ -1,7 +1,6 @@
! Copyright (C) 2009 Daniel Ehrenberg ! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: tools.test wrap.words sequences ; USING: tools.test wrap.words sequences ;
IN: wrap.words.tests
{ { } } [ f 35 wrap-words ] unit-test { { } } [ f 35 wrap-words ] unit-test
{ { } } [ { } 35 wrap-words ] unit-test { { } } [ { } 35 wrap-words ] unit-test

View File

@ -1,4 +1,3 @@
USING: assocs tools.test ; USING: assocs tools.test xml.data ;
IN: xml.data
{ "bob" } [ "test" { { "name" "bob" } } { } <tag> "name" of ] unit-test { "bob" } [ "test" { { "name" "bob" } } { } <tag> "name" of ] unit-test

Some files were not shown because too many files have changed in this diff Show More