]> gitweb.factorcode.org Git - factor.git/commitdiff
more test IN: cleanup.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 25 Feb 2018 23:44:16 +0000 (15:44 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 25 Feb 2018 23:44:16 +0000 (15:44 -0800)
53 files changed:
basis/compression/inflate/inflate-tests.factor
basis/compression/zlib/zlib-tests.factor
basis/documents/documents-tests.factor
basis/endian/endian-tests.factor
basis/english/english-tests.factor
basis/environment/environment-tests.factor
basis/eval/eval-tests.factor
basis/game/input/input-tests.factor
basis/grouping/grouping-tests.factor
basis/hash-sets/sequences/sequences-tests.factor
basis/hashtables/sequences/sequences-tests.factor
basis/io/directories/windows/windows-tests.factor
basis/io/encodings/iana/iana-tests.factor
basis/io/encodings/iso2022/iso2022-tests.factor
basis/io/encodings/shift-jis/shift-jis-tests.factor
basis/io/servers/servers-tests.factor
basis/io/sockets/icmp/icmp-tests.factor
basis/io/standard-paths/unix/unix-tests.factor
basis/io/standard-paths/windows/windows-tests.factor
basis/io/streams/limited/limited-tests.factor
basis/io/streams/string/string-tests.factor
basis/io/streams/throwing/throwing-tests.factor
basis/lists/lazy/examples/examples-tests.factor
basis/lists/lazy/lazy-tests.factor
basis/lists/lists-tests.factor
basis/math/bits/bits-tests.factor
basis/math/complex/complex-tests.factor
basis/math/rectangles/rectangles-tests.factor
basis/math/vectors/vectors-tests.factor
basis/nibble-arrays/nibble-arrays-tests.factor
basis/opengl/gl/extensions/extensions-tests.factor
basis/opengl/opengl-tests.factor
basis/opengl/textures/textures-tests.factor
basis/pack/pack-tests.factor
basis/random/random-tests.factor
basis/random/sfmt/sfmt-tests.factor
basis/search-deques/search-deques-tests.factor
basis/sequences/cords/cords-tests.factor
basis/sequences/merged/merged-tests.factor
basis/sequences/parser/parser-tests.factor
basis/sequences/product/product-tests.factor
basis/sequences/windowed/windowed-tests.factor
basis/shuffle/shuffle-tests.factor
basis/simple-tokenizer/simple-tokenizer-tests.factor
basis/tools/coverage/coverage-tests.factor
basis/tools/files/files-tests.factor
basis/tools/hexdump/hexdump-tests.factor
basis/tools/memory/memory-tests.factor
basis/tools/ps/ps-tests.factor
basis/tools/time/time-tests.factor
basis/validators/validators-tests.factor
basis/vlists/vlists-tests.factor
basis/vocabs/refresh/refresh-tests.factor

index 443ca46e2a15475ebc2e0440cd4cd88229758851..7c4a959c28317ab4f06db9acd7da3215147b3be1 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2009 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test compression.inflate ;
-IN: compression.inflate.tests
 
 {
 B{
index 034f71c35b71471594979170bf5b71384cf1ab76..8bb008b2aa3cf4ce85ca2adc4078af1b88350d8d 100644 (file)
@@ -2,10 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors kernel tools.test compression.zlib classes ;
 QUALIFIED-WITH: compression.zlib.ffi ffi
-IN: compression.zlib.tests
 
-: compress-me ( -- byte-array ) B{ 1 2 3 4 5 } ;
-
-{ t } [ compress-me [ compress uncompress ] keep = ] unit-test
+{ t } [ B{ 1 2 3 4 5 } [ compress uncompress ] keep = ] unit-test
 
 [ ffi:Z_DATA_ERROR zlib-error-message ] [ string>> "data error" = ] must-fail-with
index 2bbab6db971ebf6beef8d6b10f5dc79b009cd841..156643bca0e58dc2b80c256abf866237ab691c76 100644 (file)
@@ -1,6 +1,5 @@
 USING: documents documents.private accessors sequences
 namespaces tools.test make arrays kernel fry ;
-IN: documents.tests
 
 ! Tests
 
index e90bac691e01197577136b4ca6ca20af66f0d298..f0650cc8fd2b721cb13124e5701abfa4dfa35d4a 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2009 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: kernel namespaces tools.test endian ;
-IN: endian.tests
+USING: endian kernel namespaces tools.test ;
 
 { t } [ [ endianness get big-endian = ] with-big-endian ] unit-test
 { t } [ [ endianness get little-endian = ] with-little-endian ] unit-test
index 999fede063b4f0ca2f8387e58cecbba3265d8a70..ce64d889d4cf0999200b0b9621c1755063b75b93 100644 (file)
@@ -1,6 +1,6 @@
-USING: accessors arrays assocs english.private help.markup kernel math
-math.parser sequences strings tools.test ;
-IN: english
+USING: arrays assocs english help.markup kernel math sequences
+strings tools.test ;
+FROM: english => a/an ;
 
 { "record" }  [ "records" singularize ] unit-test
 { "record" }  [ "record" singularize ] unit-test
index 51aedca9ade63ffb7f4c79dead82e78e3814f615..ad881571f5769d65dd3a7c08b9b248405b6a5c46 100644 (file)
@@ -1,8 +1,7 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: kernel namespaces prettyprint system tools.test
-environment strings sequences ;
-IN: environment.tests
+USING: environment kernel namespaces prettyprint sequences
+strings system tools.test ;
 
 { } [ os-envs . ] unit-test
 
index 0eaeac66c72b56db57d8c7c627fc71f1b2dbfe8f..bb4447b50ea17c96480f5b839bf37606c7291f5e 100644 (file)
@@ -1,5 +1,4 @@
 USING: eval tools.test ;
-IN: eval.tests
 
 { 4 } [ "USE: math 2 2 +" eval( -- result ) ] unit-test
 [ "USE: math 2 2 +" eval( -- ) ] must-fail
index 22c0b20dda39d90b9ccfd8375c86644424ec993b..4a25e761728fe7f6ef356b3351acaf252e69b419 100644 (file)
@@ -1,6 +1,5 @@
 USING: ui game.input tools.test kernel system threads calendar
 combinators.short-circuit ;
-IN: game.input.tests
 
 ! os { [ windows? ] [ macosx? ] } 1|| [
 ! This test only works if a mouse is present. Issue #1844
index ea3b995e4e6b904503741097f6f176e222a56198..e2e222b6d637d14953bdf7c90136f5a4042808bd 100644 (file)
@@ -1,6 +1,5 @@
 USING: grouping tools.test kernel sequences arrays
 math accessors ;
-IN: grouping.tests
 
 [ { 1 2 3 } 0 group ] must-fail
 
index 4dd7caa4fdf42438c8509ce32e417a250a918521..e62fbd5ffd041acba3fc594d71f8bab8f3383c9b 100644 (file)
@@ -4,8 +4,6 @@
 USING: hash-sets.sequences kernel literals sequences sets
 tools.test ;
 
-IN: hash-sets.sequences.tests
-
 { t } [ 0 4 "asdf" <slice> SHS{ "asdf" } in? ] unit-test
 
 { SHS{ "asdf" } } [
index 979d53e8621aabd3703ba149c4a373b861dbd346..68581fe8a217de96097877db11e9809d0d5aee5b 100644 (file)
@@ -4,8 +4,6 @@
 USING: assocs hashtables.sequences kernel literals sequences
 tools.test ;
 
-IN: hashtables.sequences.tests
-
 { 1000 } [ 0 4 "asdf" <slice> SH{ { "asdf" 1000 } } at ] unit-test
 
 { 1001 } [
index 99dcd0fe2f887b069e9d2034cf425ceeb2c84f04..6162eae3c41e7a2f812d7961a8cd401e96c2b382 100644 (file)
@@ -1,7 +1,6 @@
 USING: accessors combinators io.directories io.files.temp
 io.files.windows io.pathnames kernel math sequences tools.test
 windows.kernel32 ;
-IN: io.directories.windows.tests
 
 { { +read-only+ +archive+ } } [
     "read-only.file" temp-file {
index cf946df13b10c0c4c45343dc2f89fa74ad1f8a9d..812a48fa14974c1477ffcf409c2c53a8bd37b1de 100644 (file)
@@ -1,6 +1,5 @@
 USING: io.encodings.iana io.encodings.iana.private
 io.encodings.utf8 tools.test assocs namespaces ;
-IN: io.encodings.iana.tests
 
 { utf8 } [ "UTF-8" name>encoding ] unit-test
 { utf8 } [ "utf8" name>encoding ] unit-test
index c83c66f91954c82991081d32fa336435d4229580..f44ba755e90a7f15c3a60bdf4b2a9584c8c4e737 100644 (file)
@@ -1,8 +1,8 @@
 ! Copyright (C) 2009 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io.encodings.string io.encodings.iso2022 tools.test
-io.encodings.iso2022.private literals strings byte-arrays ;
-IN: io.encodings.iso2022
+USING: byte-arrays io.encodings.iso2022
+io.encodings.iso2022.private io.encodings.string literals
+strings tools.test ;
 
 { "hello" } [ "hello" >byte-array iso2022 decode ] unit-test
 { "hello" } [ "hello" iso2022 encode >string ] unit-test
index 91f8a93892d33873cd8fa57010e42c10d5cf8871..8d029d0897f6eeaf7ecb221313ce1461cb83f004 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2009 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io.encodings.shift-jis tools.test io.encodings.string arrays strings ;
-IN: io.encodings.shift-jis.tests
+USING: arrays io.encodings.shift-jis io.encodings.string strings
+tools.test ;
 
 { { CHAR: replacement-character } } [ { 141 } shift-jis decode >array ] unit-test
 { "" } [ "" shift-jis decode >string ] unit-test
index 316d1e09e3bcd8f7d1408191dafc83430ac553f4..d9e1edc5c9880663d70b9b3214cf539062d9fdb0 100644 (file)
@@ -1,7 +1,7 @@
-USING: accessors arrays concurrency.flags fry io io.encodings.ascii
-io.encodings.utf8 io.servers.private io.sockets kernel namespaces
-sequences sets threads tools.test ;
-IN: io.servers
+USING: accessors arrays concurrency.flags fry io
+io.encodings.ascii io.encodings.utf8 io.servers
+io.servers.private io.sockets kernel namespaces sequences sets
+threads tools.test ;
 
 { t } [ ascii <threaded-server> listen-on empty? ] unit-test
 
@@ -53,12 +53,9 @@ ipv6-supported? [
     ] unit-test
 ] unless
 
-
 ! Test that we can listen on several ports at once.
-TUPLE: my-threaded-server < threaded-server ;
-
 { } [
-    utf8 my-threaded-server new-threaded-server
+    utf8 <threaded-server>
         "127.0.0.1" 0 <inet4>
         "127.0.0.1" 0 <inet4>
         2array >>insecure
index 27529fe3f78ee5859c89d68cad4e255fbfa77a8a..1801845c7e4f78e0e5f3046cd4bcb5161f1d17b7 100644 (file)
@@ -2,8 +2,6 @@
 USING: accessors destructors kernel io.sockets io.sockets.icmp
 sequences tools.test ;
 
-IN: io.sockets.icmp.tests
-
 { { } } [
     "localhost" <icmp> resolve-host
     [ [ icmp4? ] [ icmp6? ] bi or ] reject
index 7ea520eabb162d4b71a6924e7cc2ffc7359b45fc..986c0564d251b4043c1ac1e5b169b98aef6ac11d 100644 (file)
@@ -2,7 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: environment io.standard-paths io.standard-paths.unix
 sequences tools.test ;
-IN: io.standard-paths.unix.tests
 
 { f } [ "" find-in-path ] unit-test
 { t } [
index 87f373a1eeeb7bc19d6436f3f672b4205b334617..4daa7f9b2b2076966d7c3854420955295643a77c 100644 (file)
@@ -2,6 +2,5 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: io.standard-paths io.standard-paths.windows sequences
 tools.test ;
-IN: io.standard-paths.windows.tests
 
 [ t ] [ "cmd.exe" find-in-path "cmd.exe" tail? ] unit-test
index 092949c8df8268fd7ff703c3f6504e7e8cb3e37b..508df24c44b7ddeb8277bad443ff5a21b5780074 100644 (file)
@@ -1,10 +1,8 @@
-USING: accessors continuations destructors io io.encodings
-io.encodings.ascii io.encodings.binary
-io.encodings.string io.encodings.utf8 io.files io.pipes
-io.streams.byte-array io.streams.duplex io.streams.limited io.streams.string
-kernel namespaces strings tools.test system
-io.encodings.8-bit.latin1 ;
-IN: io.streams.limited.tests
+USING: destructors io io.encodings io.encodings.8-bit.latin1
+io.encodings.ascii io.encodings.binary io.encodings.string
+io.encodings.utf8 io.files io.pipes io.streams.byte-array
+io.streams.duplex io.streams.limited io.streams.string kernel
+namespaces strings tools.test ;
 
 { } [
     "hello world\nhow are you today\nthis is a very long line indeed"
@@ -25,7 +23,6 @@ IN: io.streams.limited.tests
 
 { f } [ "decoded" get stream-readln ] unit-test
 
-
 { } [
     "abc\ndef\nghi"
     ascii encode binary <byte-reader> "data" set
@@ -38,7 +35,6 @@ IN: io.streams.limited.tests
 
 { "" f } [ "\n" "limited" get stream-read-until [ >string ] dip ] unit-test
 
-
 { CHAR: a }
 [ "a" <string-reader> 1 <limited-stream> stream-read1 ] unit-test
 
index 0385e89670ff2a2e757ebd6150630fb47e563d53..82bf549f535c456ff8014d44c81a126645f5f81c 100644 (file)
@@ -1,6 +1,5 @@
 USING: io.streams.string io kernel arrays namespaces make
 tools.test ;
-IN: io.streams.string.tests
 
 { "" } [ "" [ contents ] with-string-reader ] unit-test
 
index db203e7130fac645e2a58f4d3d601cdabdb227a3..4f5f0370b6687b1d2190784e5cf1328bb6c6a245 100644 (file)
@@ -3,7 +3,6 @@
 USING: destructors io io.encodings.binary io.encodings.utf8
 io.files io.streams.byte-array io.streams.string
 io.streams.throwing kernel namespaces tools.test ;
-IN: io.streams.throwing.tests
 
 { "asdf" }
 [
index 658a5982d08cc6e0390871c5238e80f54d6ee8e0..66f5863f1b9c67f833bbca7270803c908d5b2300 100644 (file)
@@ -1,5 +1,4 @@
 USING: lists.lazy.examples lists.lazy lists tools.test ;
-IN: lists.lazy.examples.tests
 
 { { 1 3 5 7 } } [ 4 odds ltake list>array ] unit-test
 { { 0 1 4 9 16 } } [ first-five-squares ] unit-test
index d73c557d3d5963e3c8f5388c8b64c25ec2fc62de..5aa42dd2bb82f512014ae8eeabb9c9b6ce404b36 100644 (file)
@@ -2,7 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: destructors io io.encodings.utf8 io.files kernel lists
 lists.lazy math sequences tools.test ;
-IN: lists.lazy.tests
 
 { { 1 2 3 4 } } [
   { 1 2 3 4 } >list list>array
index d9b6fbd5d95a52cfbb8a99db8269acb2c45ddc4a..f6f6a04975672ca3e78b0155e255612f04f7385b 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2008 James Cash
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test lists math kernel ;
-IN: lists.tests
 
 { { 3 4 5 6 7 } } [
     { 1 2 3 4 5 } sequence>list [ 2 + ] lmap list>array
index 3fc713ca23e5b1bd22d4f909713ae311d4aa6929..c8d038acc5217a9223c7d0628aa7fce6f9b9b391 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2009 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test math math.bits sequences arrays ;
-IN: math.bits.tests
 
 { t } [ 0b111111 3 <bits> second ] unit-test
 { { t t t } } [ 0b111111 3 <bits> >array ] unit-test
index 1a752c0e0188bd817f20e20054cf7014219499ae..6819efd06af922601e3f34042dfa3396037a1c22 100644 (file)
@@ -1,7 +1,6 @@
 USING: kernel math math.constants math.functions math.order
 tools.test prettyprint prettyprint.config namespaces eval
 accessors ;
-IN: math.complex.tests
 
 [ 1 C{ 0 1 } rect> ] must-fail
 [ C{ 0 1 } 1 rect> ] must-fail
index e898be44493aad7fb4d87b03228d833b757f9725..f439e09b43bbc6af74640ec12a0ac5366941c3ac 100644 (file)
@@ -1,6 +1,5 @@
 USING: tools.test math.rectangles prettyprint io.streams.string
 kernel accessors ;
-IN: math.rectangles.tests
 
 { RECT: { 10 10 } { 20 20 } }
 [
index fa5a2656072854bfe1cd8e3d70725d858c3722ae..bf4e99ee5ae1c8d8ab013d3c19edf994e31622e1 100644 (file)
@@ -1,4 +1,3 @@
-IN: math.vectors.tests
 USING: math.vectors tools.test kernel specialized-arrays compiler
 kernel.private alien.c-types math.functions ;
 SPECIALIZED-ARRAY: int
@@ -35,7 +34,6 @@ SPECIALIZED-ARRAY: int
 
 { 1 } [ { C{ 0 1 } } dup h. ] unit-test
 
-
 { { 1 2 3 } } [
     { t t t } [ { 1 2 3 } ] [ { 4 5 6 } ] vif
 ] unit-test
@@ -48,7 +46,6 @@ SPECIALIZED-ARRAY: int
     { t f t } [ { 1 2 3 } ] [ { 4 5 6 } ] vif
 ] unit-test
 
-! vclamp
 { { 0 30 100 } } [
     { -10 30 120 } { 0 0 0 } { 100 100 100 } vclamp
 ] unit-test
index 77610111da2935fe4a5539a3b132a771ea22ed6b..21b5df1e3f3af88fa81daf67fa0159d9c26c8cf1 100644 (file)
@@ -1,5 +1,4 @@
 USING: nibble-arrays tools.test sequences kernel math ;
-IN: nibble-arrays.tests
 
 [ -1 <nibble-array> ] [ T{ bad-array-length f -1 } = ] must-fail-with
 
index 4e87d9da8607c4d760ef5277815d63a3ba8ab44f..5e9b496137fa34517376f3f2d6c38bd3e4161018 100644 (file)
@@ -1,5 +1,4 @@
 USING: alien kernel opengl.gl.extensions system tools.test ;
-IN: opengl.gl.extensions.tests
 
 { t } [
     gl-function-calling-convention
index 818d0db8b7d664f74d96fef98e6f1c871fb15560..5589c517a5c193142d9a25cc5eeac72e2fd48f4f 100644 (file)
@@ -1,5 +1,4 @@
 USING: tools.test math opengl opengl.gl ;
-IN: opengl.tests
 
 { 2 1 } [ { GL_TEXTURE_2D } [ + ] all-enabled ] must-infer-as
 
index 2a7cfdaf8c3fdde38e4ef4373ec62738c15636f4..6fe209fdf51f6dd451192d216378f188fb3b3147 100644 (file)
@@ -1,8 +1,8 @@
 ! Copyright (C) 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: tools.test opengl.gl opengl.textures opengl.textures.private
-images kernel namespaces accessors sequences literals ;
-IN: opengl.textures.tests
+
+USING: accessors images kernel literals opengl.gl
+opengl.textures opengl.textures.private sequences tools.test ;
 
 {
     {
index cf31e125856174c34509cba699636b0793dcd557..e07783d10a9d820c992454873cacd86f0dc88ab9 100644 (file)
@@ -1,6 +1,5 @@
 USING: alien.c-types io io.streams.string kernel make namespaces
 pack pack.private strings tools.test ;
-IN: pack.tests
 
 { B{ 1 0 2 0 0 3 0 0 0 4 0 0 0 0 0 0 0 5 } } [
     { 1 2 3 4 5 }
@@ -49,10 +48,7 @@ IN: pack.tests
 [ "iii" pack ] must-infer
 [ "iii" unpack ] must-infer
 
-: test-pack ( str -- ba )
-    "iii" pack ;
-
-[ test-pack ] must-infer
+[ "iii" pack ] must-infer
 
 { "c" } [ "1c" expand-pack-format ] unit-test
 { "cccc" } [ "4c" expand-pack-format ] unit-test
index 8ab979019bd8f7f384758082635392ebbd1840f7..92d5c69953d12bf119f38ac728135e73ba296ee6 100644 (file)
@@ -1,6 +1,5 @@
 USING: random sequences tools.test kernel math math.constants
 math.functions sets grouping random.private math.statistics ;
-IN: random.tests
 
 { 4 } [ 4 random-bytes length ] unit-test
 { 7 } [ 7 random-bytes length ] unit-test
index 4268d5f00172f6995c896299560b3c9799a08a5b..25e348c9acf180e272f9aba4e43bc5946a15a8c9 100644 (file)
@@ -2,7 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors kernel random random.sfmt random.sfmt.private
 sequences tools.test ;
-IN: random.sfmt.tests
 
 ! Period certified by virtue of seed
 { } [ 5 <sfmt-19937> drop ] unit-test
index 034a0a1dda62778945870be923d48f35cd5b1429..b0121b042e20d97b88142c3b1c9fc5c5f2eb06f2 100644 (file)
@@ -1,6 +1,5 @@
-IN: search-deques.tests
-USING: search-deques tools.test namespaces
-kernel sequences words deques vocabs dlists ;
+USING: deques dlists kernel namespaces sequences tools.test
+vocabs ;
 
 <hashed-dlist> "h" set
 
index 943ccd17030fd83e9a9b68165c3fcb1d68803b61..adbea9e761c3cb2e69575003ed78a86e1273b105 100644 (file)
@@ -1,4 +1,3 @@
 USING: sequences.cords strings tools.test kernel sequences ;
-IN: sequences.cords.tests
 
 { "hello world" } [ "hello" " world" cord-append dup like ] unit-test
index a6d97584f83abc030b343cbac1605b4502aefc11..af9ab0ec436e0e3f7b286a9f7d0af1ae3c9e3527 100644 (file)
@@ -1,5 +1,4 @@
 USING: sequences sequences.merged tools.test ;
-IN: sequences.merged.tests
 
 { 0 { 1 2 } } [ 0 T{ merged f { { 1 2 } { 3 4 } } } virtual@ ] unit-test
 { 0 { 3 4 } } [ 1 T{ merged f { { 1 2 } { 3 4 } } } virtual@ ] unit-test
index 50ae22b3dd9770b91852cdfac361df1e52c2e0c7..d641464acfc840090738cae675b00ff91880eabc 100644 (file)
@@ -1,5 +1,4 @@
 USING: tools.test sequences.parser unicode kernel accessors ;
-IN: sequences.parser.tests
 
 { "hello" }
 [ "hello" [ take-rest ] parse-sequence ] unit-test
index 3e96b706fe67bbe0c35aa1484d09e0bf4ebca1f4..5dfe79d04efc919cd48e60c5859339158515a9cb 100644 (file)
@@ -1,16 +1,12 @@
 ! Copyright (C) 2009 Joe Groff.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays kernel make sequences sequences.product tools.test ;
-IN: sequences.product.tests
-
 
 { { { 0 "a" } { 1 "a" } { 2 "a" } { 0 "b" } { 1 "b" } { 2 "b" } } }
 [ { { 0 1 2 } { "a" "b" } } <product-sequence> >array ] unit-test
 
-: x ( n s -- sss ) <repetition> concat ;
-
 { { "a" "aa" "aaa" "b" "bb" "bbb" } }
-[ { { 1 2 3 } { "a" "b" } } [ first2 x ] product-map ] unit-test
+[ { { 1 2 3 } { "a" "b" } } [ first2 <repetition> concat ] product-map ] unit-test
 
 {
     {
index cb1ac0e1b108356d9e63d9912f4157a96f7e0437..d6b936c58acc21cfcac983ded9550a30ed4682d0 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2012 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays sequences sequences.windowed tools.test ;
-IN: sequences.windowed.tests
 
 { { { 1 } { 1 2 } { 1 2 3 } { 2 3 4 } { 3 4 5 } { 4 5 6 } } }
 [ { 1 2 3 4 5 6 } 3 <windowed-sequence> [ >array ] map ] unit-test
index 2058a252db212a5bf27bab7b3c4c9279b715744a..4d176f7b3248fbd37fbd9d36b600244c7d413e91 100644 (file)
@@ -1,5 +1,4 @@
 USING: shuffle tools.test ;
-IN: shuffle.tests
 
 { 1 2 3 4 } [ 3 4 1 2 2swap ] unit-test
 
index 060d254eedb95de74d606e11f1db824a49fdba89..0425fcae630c99fb98829f9d8b3c910a756417cc 100644 (file)
@@ -1,4 +1,3 @@
-IN: simple-tokenizer.tests
 USING: simple-tokenizer tools.test ;
 
 [ "" tokenize ] must-fail
index 6e03bced33ef55149564688c0a0b2172f3f9465f..ff7cb34f47cc3a4bbed98be5749f03711bb194ab 100644 (file)
@@ -1,9 +1,9 @@
 ! Copyright (C) 2014 Jon Harper.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays kernel sequences sorting tools.coverage
-tools.coverage.private tools.coverage.testvocab tools.coverage.testvocab.child
-tools.coverage.testvocab.private tools.test vocabs.loader ;
-IN: tools.coverage.tests
+tools.coverage.private tools.coverage.testvocab
+tools.coverage.testvocab.child tools.coverage.testvocab.private
+tools.test vocabs.loader ;
 
 { "foo.private" } [ "foo" private-vocab-name ] unit-test
 { "foo.private" } [ "foo.private" private-vocab-name ] unit-test
index 52ff5ed5eaeba215a765f1900b20618db9ba6982..a7ef8d82c4e5f68405217b1c307e3f8869ffe7f0 100644 (file)
@@ -1,7 +1,6 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test tools.files strings kernel ;
-IN: tools.files.tests
 
 { } [ "" directory. ] unit-test
 
index ff1cb85bc0eca38f34154689c05327a3fb9f73fa..f85a6d4bb575e0773190defd449a0af1b5288b4f 100644 (file)
@@ -1,5 +1,4 @@
 USING: tools.hexdump kernel sequences tools.test byte-arrays ;
-IN: tools.hexdump.tests
 
 { t } [ B{ } hexdump "Length: 0, 0h\n" = ] unit-test
 { t } [ "abcdefghijklmnopqrstuvwxyz" >byte-array hexdump "Length: 26, 1ah\n00000000h: 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop\n00000010h: 71 72 73 74 75 76 77 78 79 7a                   qrstuvwxyz\n" = ] unit-test
index e1ba5c45d6ce96c9bdb42b9b24c66de50482ad0c..382cb29082c0a1a975aec65b8d355e362430d3bf 100644 (file)
@@ -1,6 +1,5 @@
 USING: arrays assocs kernel math memory namespaces parser sequences
 tools.memory tools.memory.private tools.test tools.time vm ;
-IN: tools.memory.tests
 
 { } [ room. ] unit-test
 { } [ heap-stats. ] unit-test
index 01c7245a7a0739aa8d30530208876230f1c68a5f..cc9202a1a3e89c76cfd12150240222de27629e2b 100644 (file)
@@ -1,4 +1,3 @@
 USING: tools.ps tools.test ;
-IN: tools.ps.tests
 
 { } [ ps. ] unit-test
index cefffc74d1a0481cdbcc3a7d1d7eec2ec2ceede7..d743754da2b346d0d97b36e141cac2f8164cbbaa 100644 (file)
@@ -1,4 +1,3 @@
-IN: tools.time.tests
 USING: tools.time tools.test compiler.test ;
 
 { } [ [ [ ] time ] compile-call ] unit-test
index 1685a99626330d0ebec1ce04d84e2b47ca03c09b..3fb1dc6bcbb3f4b8e92e5447d1147ed437619ce4 100644 (file)
@@ -1,4 +1,3 @@
-IN: validators.tests
 USING: kernel sequences tools.test validators accessors
 namespaces assocs ;
 
index 22f2d913155a4cbdab4c06c7d4112e38072541ab..98993181a8c6a251717d909443e9ed5d308e4aea 100644 (file)
@@ -1,6 +1,5 @@
 USING: vlists kernel persistent.sequences arrays tools.test
 namespaces accessors sequences assocs ;
-IN: vlists.tests
 
 { { "hi" "there" } }
 [ VL{ } "hi" swap ppush "there" swap ppush >array ] unit-test
index e4cfdc96fc24fe4ba1810d9c46e6d5461731134a..61363aa2d759670c9524599e41f2ce024518ebe1 100644 (file)
@@ -1,4 +1,3 @@
-IN: vocabs.refresh.tests
 USING: vocabs.refresh tools.test continuations namespaces ;
 
 { } [