]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 2 Jul 2015 18:36:08 +0000 (11:36 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 2 Jul 2015 18:36:08 +0000 (11:36 -0700)
756 files changed:
basis/alien/c-types/c-types-tests.factor
basis/alien/complex/complex-tests.factor
basis/alien/data/data-tests.factor
basis/alien/endian/endian-tests.factor
basis/alien/enums/enums-tests.factor
basis/alien/libraries/libraries-tests.factor
basis/alien/parser/parser-tests.factor
basis/alien/prettyprint/prettyprint-tests.factor
basis/ascii/ascii-tests.factor
basis/base64/base64-tests.factor
basis/biassocs/biassocs-tests.factor
basis/binary-search/binary-search-tests.factor
basis/bit-arrays/bit-arrays-tests.factor
basis/bit-sets/bit-sets-tests.factor
basis/bit-vectors/bit-vectors-tests.factor
basis/bitstreams/bitstreams-tests.factor
basis/bootstrap/image/image-tests.factor
basis/boxes/boxes-tests.factor
basis/byte-arrays/hex/hex-tests.factor
basis/cache/cache-tests.factor
basis/cairo/cairo-tests.factor
basis/calendar/calendar-tests.factor
basis/calendar/format/format-tests.factor
basis/calendar/format/macros/macros-tests.factor
basis/checksums/adler-32/adler-32-tests.factor
basis/checksums/fnv1/fnv1-tests.factor
basis/checksums/hmac/hmac-tests.factor
basis/checksums/interleave/interleave-tests.factor
basis/checksums/internet/internet-tests.factor
basis/checksums/md5/md5-tests.factor
basis/checksums/openssl/openssl-tests.factor
basis/checksums/sha/sha-tests.factor
basis/circular/circular-tests.factor
basis/classes/struct/bit-accessors/bit-accessors-tests.factor
basis/classes/struct/struct-tests.factor
basis/cocoa/cocoa-tests.factor
basis/colors/constants/constants-tests.factor
basis/colors/hex/hex-tests.factor
basis/colors/hsv/hsv-tests.factor
basis/columns/columns-tests.factor
basis/combinators/random/random-tests.factor
basis/combinators/short-circuit/short-circuit-tests.factor
basis/combinators/short-circuit/smart/smart-tests.factor
basis/combinators/smart/smart-tests.factor
basis/compiler/cfg/alias-analysis/alias-analysis-tests.factor
basis/compiler/cfg/branch-splitting/branch-splitting-tests.factor
basis/compiler/cfg/build-stack-frame/build-stack-frame-tests.factor
basis/compiler/cfg/builder/builder-tests.factor
basis/compiler/cfg/copy-prop/copy-prop-tests.factor
basis/compiler/cfg/dce/dce-tests.factor
basis/compiler/cfg/def-use/def-use-tests.factor
basis/compiler/cfg/dominance/dominance-tests.factor
basis/compiler/cfg/gc-checks/gc-checks-tests.factor
basis/compiler/cfg/intrinsics/simd/simd-tests.factor
basis/compiler/cfg/linear-scan/allocation/state/state-tests.factor
basis/compiler/cfg/linear-scan/linear-scan-tests.factor
basis/compiler/cfg/linear-scan/resolve/resolve-tests.factor
basis/compiler/cfg/liveness/liveness-tests.factor
basis/compiler/cfg/loop-detection/loop-detection-tests.factor
basis/compiler/cfg/parallel-copy/parallel-copy-tests.factor
basis/compiler/cfg/representations/coalescing/coalescing-tests.factor
basis/compiler/cfg/representations/representations-tests.factor
basis/compiler/cfg/save-contexts/save-contexts-tests.factor
basis/compiler/cfg/ssa/construction/construction-tests.factor
basis/compiler/cfg/ssa/construction/tdmsc/tdmsc-tests.factor
basis/compiler/cfg/ssa/interference/interference-tests.factor
basis/compiler/cfg/value-numbering/value-numbering-tests.factor
basis/compiler/cfg/write-barrier/write-barrier-tests.factor
basis/compiler/codegen/codegen-tests.factor
basis/compiler/codegen/gc-maps/gc-maps-tests.factor
basis/compiler/crossref/crossref-tests.factor
basis/compiler/tree/builder/builder-tests.factor
basis/compiler/tree/cleanup/cleanup-tests.factor
basis/compiler/tree/dead-code/dead-code-tests.factor
basis/compiler/tree/def-use/def-use-tests.factor
basis/compiler/tree/def-use/simplified/simplified-tests.factor
basis/compiler/tree/escape-analysis/check/check-tests.factor
basis/compiler/tree/escape-analysis/escape-analysis-tests.factor
basis/compiler/tree/escape-analysis/recursive/recursive-tests.factor
basis/compiler/tree/modular-arithmetic/modular-arithmetic-tests.factor
basis/compiler/tree/normalization/normalization-tests.factor
basis/compiler/tree/propagation/call-effect/call-effect-tests.factor
basis/compiler/tree/propagation/copy/copy-tests.factor
basis/compiler/tree/propagation/info/info-tests.factor
basis/compiler/tree/propagation/propagation-tests.factor
basis/compiler/tree/propagation/recursive/recursive-tests.factor
basis/compiler/tree/recursive/recursive-tests.factor
basis/compiler/tree/tuple-unboxing/tuple-unboxing-tests.factor
basis/compression/inflate/inflate-tests.factor
basis/compression/snappy/snappy-tests.factor
basis/compression/zlib/zlib-tests.factor
basis/concurrency/combinators/combinators-tests.factor
basis/concurrency/count-downs/count-downs-tests.factor
basis/concurrency/distributed/distributed-tests.factor
basis/concurrency/exchangers/exchangers-tests.factor
basis/concurrency/flags/flags-tests.factor
basis/concurrency/futures/futures-tests.factor
basis/concurrency/locks/locks-tests.factor
basis/concurrency/mailboxes/mailboxes-tests.factor
basis/concurrency/messaging/messaging-tests.factor
basis/concurrency/promises/promises-tests.factor
basis/core-foundation/arrays/arrays-tests.factor
basis/core-foundation/attributed-strings/attributed-strings-tests.factor
basis/core-foundation/dictionaries/dictionaries-tests.factor
basis/core-foundation/strings/strings-tests.factor
basis/core-graphics/core-graphics-tests.factor
basis/core-text/core-text-tests.factor
basis/cpu/x86/assembler/assembler-tests.factor
basis/csv/csv-tests.factor
basis/db/pools/pools-tests.factor
basis/db/postgresql/postgresql-tests.factor
basis/db/sqlite/sqlite-tests.factor
basis/db/tester/tester-tests.factor
basis/debugger/debugger-tests.factor
basis/delegate/delegate-tests.factor
basis/disjoint-sets/disjoint-sets-tests.factor
basis/dlists/dlists-tests.factor
basis/documents/documents-tests.factor
basis/documents/elements/elements-tests.factor
basis/endian/endian-tests.factor
basis/environment/environment-tests.factor
basis/eval/eval-tests.factor
basis/farkup/farkup-tests.factor
basis/formatting/formatting-tests.factor
basis/fry/fry-tests.factor
basis/ftp/server/server-tests.factor
basis/furnace/actions/actions-tests.factor
basis/furnace/auth/providers/assoc/assoc-tests.factor
basis/furnace/chloe-tags/chloe-tags-tests.factor
basis/furnace/furnace-tests.factor
basis/game/input/input-tests.factor
basis/generalizations/generalizations-tests.factor
basis/globs/globs-tests.factor
basis/graphs/graphs-tests.factor
basis/grouping/grouping-tests.factor
basis/hash-sets/identity/identity-tests.factor
basis/hash-sets/sequences/sequences-tests.factor
basis/hashtables/identity/identity-tests.factor
basis/hashtables/sequences/sequences-tests.factor
basis/heaps/heaps-tests.factor
basis/help/apropos/apropos-tests.factor
basis/help/crossref/crossref-tests.factor
basis/help/definitions/definitions-tests.factor
basis/help/handbook/handbook-tests.factor
basis/help/help-tests.factor
basis/help/html/html-tests.factor
basis/help/markup/markup-tests.factor
basis/help/topics/topics-tests.factor
basis/help/vocabs/vocabs-tests.factor
basis/hints/hints-tests.factor
basis/html/components/components-tests.factor
basis/html/forms/forms-tests.factor
basis/html/streams/streams-tests.factor
basis/html/templates/chloe/chloe-tests.factor
basis/html/templates/fhtml/fhtml-tests.factor
basis/http/client/client-tests.factor
basis/http/http-tests.factor
basis/http/parsers/parsers-tests.factor
basis/http/server/dispatchers/dispatchers-tests.factor
basis/http/server/requests/requests-tests.factor
basis/http/server/rewrite/rewrite-tests.factor
basis/http/server/server-tests.factor
basis/http/server/static/static-tests.factor
basis/images/images-tests.factor
basis/images/loader/gtk/gtk-tests.factor
basis/images/normalization/normalization-tests.factor
basis/images/tessellation/tessellation-tests.factor
basis/inspector/inspector-tests.factor
basis/interpolate/interpolate-tests.factor
basis/interval-maps/interval-maps-tests.factor
basis/interval-sets/interval-sets-tests.factor
basis/inverse/inverse-tests.factor
basis/io/backend/unix/unix-tests.factor
basis/io/buffers/buffers-tests.factor
basis/io/crlf/crlf-tests.factor
basis/io/directories/directories-tests.factor
basis/io/directories/hierarchy/hierarchy-tests.factor
basis/io/directories/search/search-tests.factor
basis/io/encodings/8-bit/8-bit-tests.factor
basis/io/encodings/euc/euc-tests.factor
basis/io/encodings/gb18030/gb18030-tests.factor
basis/io/encodings/iana/iana-tests.factor
basis/io/encodings/iso2022/iso2022-tests.factor
basis/io/encodings/johab/johab-tests.factor
basis/io/encodings/shift-jis/shift-jis-tests.factor
basis/io/encodings/strict/strict-tests.factor
basis/io/encodings/string/string-tests.factor
basis/io/encodings/utf32/utf32-tests.factor
basis/io/encodings/utf7/utf7-tests.factor
basis/io/files/info/info-tests.factor
basis/io/files/links/unix/unix-tests.factor
basis/io/files/unique/unique-tests.factor
basis/io/files/unix/unix-tests.factor
basis/io/launcher/unix/unix-tests.factor
basis/io/mmap/mmap-tests.factor
basis/io/monitors/recursive/recursive-tests.factor
basis/io/pipes/pipes-tests.factor
basis/io/ports/ports-tests.factor
basis/io/servers/servers-tests.factor
basis/io/sockets/icmp/icmp-tests.factor
basis/io/sockets/secure/secure-tests.factor
basis/io/sockets/secure/unix/unix-tests.factor
basis/io/sockets/sockets-tests.factor
basis/io/standard-paths/macosx/macosx-tests.factor
basis/io/streams/duplex/duplex-tests.factor
basis/io/streams/limited/limited-tests.factor
basis/io/streams/string/string-tests.factor
basis/io/streams/throwing/throwing-tests.factor
basis/json/reader/reader-tests.factor
basis/json/writer/writer-tests.factor
basis/lcs/lcs-tests.factor
basis/libc/libc-tests.factor
basis/listener/listener-tests.factor
basis/lists/lazy/examples/examples-tests.factor
basis/lists/lazy/lazy-tests.factor
basis/lists/lists-tests.factor
basis/literals/literals-tests.factor
basis/locals/backend/backend-tests.factor
basis/locals/locals-tests.factor
basis/macros/expander/expander-tests.factor
basis/macros/macros-tests.factor
basis/match/match-tests.factor
basis/math/bits/bits-tests.factor
basis/math/bitwise/bitwise-tests.factor
basis/math/combinatorics/combinatorics-tests.factor
basis/math/complex/complex-tests.factor
basis/math/floats/env/env-tests.factor
basis/math/floats/half/half-tests.factor
basis/math/functions/functions-tests.factor
basis/math/intervals/intervals-tests.factor
basis/math/matrices/elimination/elimination-tests.factor
basis/math/matrices/matrices-tests.factor
basis/math/partial-dispatch/partial-dispatch-tests.factor
basis/math/polynomials/polynomials-tests.factor
basis/math/primes/erato/erato-tests.factor
basis/math/primes/lucas-lehmer/lucas-lehmer-tests.factor
basis/math/primes/miller-rabin/miller-rabin-tests.factor
basis/math/primes/primes-tests.factor
basis/math/primes/safe/safe-tests.factor
basis/math/quaternions/quaternions-tests.factor
basis/math/ranges/ranges-tests.factor
basis/math/ratios/ratios-tests.factor
basis/math/rectangles/positioning/positioning-tests.factor
basis/math/rectangles/rectangles-tests.factor
basis/math/statistics/statistics-tests.factor
basis/math/vectors/conversion/conversion-tests.factor
basis/math/vectors/simd/cords/cords-tests.factor
basis/math/vectors/simd/simd-tests.factor
basis/math/vectors/vectors-tests.factor
basis/memoize/memoize-tests.factor
basis/memoize/syntax/syntax-tests.factor
basis/mime/multipart/multipart-tests.factor
basis/mime/types/types-tests.factor
basis/mirrors/mirrors-tests.factor
basis/models/arrow/arrow-tests.factor
basis/models/arrow/smart/smart-tests.factor
basis/models/mapping/mapping-tests.factor
basis/models/models-tests.factor
basis/models/product/product-tests.factor
basis/models/range/range-tests.factor
basis/multiline/multiline-tests.factor
basis/nibble-arrays/nibble-arrays-tests.factor
basis/nmake/nmake-tests.factor
basis/opengl/capabilities/capabilities-tests.factor
basis/opengl/textures/textures-tests.factor
basis/openssl/libcrypto/libcrypto-tests.factor
basis/openssl/libssl/libssl-tests.factor
basis/pack/pack-tests.factor
basis/peg/ebnf/ebnf-tests.factor
basis/peg/peg-tests.factor
basis/persistent/deques/deques-tests.factor
basis/persistent/hashtables/hashtables-tests.factor
basis/persistent/heaps/heaps-tests.factor
basis/persistent/vectors/vectors-tests.factor
basis/porter-stemmer/porter-stemmer-tests.factor
basis/prettyprint/prettyprint-tests.factor
basis/promises/promises-tests.factor
basis/quoted-printable/quoted-printable-tests.factor
basis/quoting/quoting-tests.factor
basis/random/dummy/dummy-tests.factor
basis/random/mersenne-twister/mersenne-twister-tests.factor
basis/random/random-tests.factor
basis/random/sfmt/sfmt-tests.factor
basis/refs/refs-tests.factor
basis/regexp/classes/classes-tests.factor
basis/regexp/combinators/combinators-tests.factor
basis/regexp/minimize/minimize-tests.factor
basis/regexp/negation/negation-tests.factor
basis/regexp/regexp-tests.factor
basis/roman/roman-tests.factor
basis/search-deques/search-deques-tests.factor
basis/see/see-tests.factor
basis/sequences/complex-components/complex-components-tests.factor
basis/sequences/complex/complex-tests.factor
basis/sequences/cords/cords-tests.factor
basis/sequences/deep/deep-tests.factor
basis/sequences/generalizations/generalizations-tests.factor
basis/sequences/merged/merged-tests.factor
basis/sequences/parser/parser-tests.factor
basis/sequences/product/product-tests.factor
basis/sequences/unrolled/unrolled-tests.factor
basis/serialize/serialize-tests.factor
basis/shuffle/shuffle-tests.factor
basis/simple-flat-file/simple-flat-file-tests.factor
basis/simple-tokenizer/simple-tokenizer-tests.factor
basis/smtp/smtp-tests.factor
basis/sorting/human/human-tests.factor
basis/sorting/insertion/insertion-tests.factor
basis/sorting/slots/slots-tests.factor
basis/sorting/title/title-tests.factor
basis/soundex/soundex-tests.factor
basis/specialized-arrays/specialized-arrays-tests.factor
basis/specialized-vectors/specialized-vectors-tests.factor
basis/splitting/monotonic/monotonic-tests.factor
basis/stack-checker/backend/backend-tests.factor
basis/stack-checker/stack-checker-tests.factor
basis/stack-checker/transforms/transforms-tests.factor
basis/strings/tables/tables-tests.factor
basis/suffix-arrays/suffix-arrays-tests.factor
basis/syndication/syndication-tests.factor
basis/threads/threads-tests.factor
basis/timers/timers-tests.factor
basis/tools/annotations/annotations-tests.factor
basis/tools/crossref/crossref-tests.factor
basis/tools/deploy/deploy-tests.factor
basis/tools/destructors/destructors-tests.factor
basis/tools/errors/errors-tests.factor
basis/tools/files/files-tests.factor
basis/tools/hexdump/hexdump-tests.factor
basis/tools/memory/memory-tests.factor
basis/tools/profiler/sampling/sampling-tests.factor
basis/tools/scaffold/scaffold-tests.factor
basis/tools/test/test-tests.factor
basis/tools/time/time-tests.factor
basis/tools/trace/trace-tests.factor
basis/tools/walker/walker-tests.factor
basis/tr/tr-tests.factor
basis/tuple-arrays/tuple-arrays-tests.factor
basis/typed/typed-tests.factor
basis/ui/backend/cocoa/views/views-tests.factor
basis/ui/baseline-alignment/baseline-alignment-tests.factor
basis/ui/commands/commands-tests.factor
basis/ui/gadgets/borders/borders-tests.factor
basis/ui/gadgets/buttons/buttons-tests.factor
basis/ui/gadgets/editors/editors-tests.factor
basis/ui/gadgets/frames/frames-tests.factor
basis/ui/gadgets/gadgets-tests.factor
basis/ui/gadgets/glass/glass-tests.factor
basis/ui/gadgets/grid-lines/grid-lines-tests.factor
basis/ui/gadgets/grids/grids-tests.factor
basis/ui/gadgets/labeled/labeled-tests.factor
basis/ui/gadgets/labels/labels-tests.factor
basis/ui/gadgets/packs/packs-tests.factor
basis/ui/gadgets/panes/panes-tests.factor
basis/ui/gadgets/paragraphs/paragraphs-tests.factor
basis/ui/gadgets/presentations/presentations-tests.factor
basis/ui/gadgets/scrollers/scrollers-tests.factor
basis/ui/gadgets/search-tables/search-tables-tests.factor
basis/ui/gadgets/slots/slots-tests.factor
basis/ui/gadgets/tables/tables-tests.factor
basis/ui/gadgets/tracks/tracks-tests.factor
basis/ui/gadgets/worlds/worlds-tests.factor
basis/ui/operations/operations-tests.factor
basis/ui/pens/gradient/gradient-tests.factor
basis/ui/text/text-tests.factor
basis/ui/tools/browser/browser-tests.factor
basis/ui/tools/browser/history/history-tests.factor
basis/ui/tools/inspector/inspector-tests.factor
basis/ui/tools/listener/history/history-tests.factor
basis/ui/tools/listener/listener-tests.factor
basis/ui/traverse/traverse-tests.factor
basis/unicode/breaks/breaks-tests.factor
basis/unicode/case/case-tests.factor
basis/unicode/categories/categories-tests.factor
basis/unicode/collation/collation-tests.factor
basis/unicode/normalize/normalize-tests.factor
basis/unicode/script/script-tests.factor
basis/unix/ffi/ffi-tests.factor
basis/unix/groups/groups-tests.factor
basis/unix/signals/signals-tests.factor
basis/unix/users/users-tests.factor
basis/unrolled-lists/unrolled-lists-tests.factor
basis/urls/encoding/encoding-tests.factor
basis/urls/urls-tests.factor
basis/uuid/uuid-tests.factor
basis/validators/validators-tests.factor
basis/vlists/vlists-tests.factor
basis/vocabs/files/files-tests.factor
basis/vocabs/metadata/resources/resources-tests.factor
basis/vocabs/prettyprint/prettyprint-tests.factor
basis/vocabs/refresh/monitor/monitor-tests.factor
basis/vocabs/refresh/refresh-tests.factor
basis/wrap/strings/strings-tests.factor
basis/wrap/words/words-tests.factor
basis/wrap/wrap-tests.factor
basis/xml-rpc/xml-rpc-tests.factor
basis/xml/syntax/syntax-tests.factor
basis/xml/traversal/traversal-tests.factor
basis/xml/writer/writer-tests.factor
basis/xmode/catalog/catalog-tests.factor
basis/xmode/code2html/code2html-tests.factor
basis/xmode/keyword-map/keyword-map-tests.factor
basis/xmode/marker/marker-tests.factor
basis/xmode/rules/rules-tests.factor
core/alien/alien-tests.factor
core/alien/strings/strings-tests.factor
core/arrays/arrays-tests.factor
core/assocs/assocs-tests.factor
core/byte-arrays/byte-arrays-tests.factor
core/byte-vectors/byte-vectors-tests.factor
core/checksums/crc32/crc32-tests.factor
core/classes/algebra/algebra-tests.factor
core/classes/builtin/builtin-tests.factor
core/classes/classes-tests.factor
core/classes/intersection/intersection-tests.factor
core/classes/maybe/maybe-tests.factor
core/classes/mixin/mixin-tests.factor
core/classes/predicate/predicate-tests.factor
core/classes/singleton/singleton-tests.factor
core/classes/tuple/parser/parser-tests.factor
core/classes/tuple/tuple-tests.factor
core/classes/union/union-tests.factor
core/combinators/combinators-tests.factor
core/compiler/units/units-tests.factor
core/continuations/continuations-tests.factor
core/definitions/definitions-tests.factor
core/destructors/destructors-tests.factor
core/effects/effects-tests.factor
core/generic/hook/hook-tests.factor
core/generic/math/math-tests.factor
core/generic/parser/parser-tests.factor
core/generic/standard/standard-tests.factor
core/growable/growable-tests.factor
core/hash-sets/hash-sets-tests.factor
core/hashtables/hashtables-tests.factor
core/io/backend/backend-tests.factor
core/io/binary/binary-tests.factor
core/io/encodings/ascii/ascii-tests.factor
core/io/encodings/encodings-tests.factor
core/io/encodings/utf16/utf16-tests.factor
core/io/encodings/utf16n/utf16n-tests.factor
core/io/encodings/utf8/utf8-tests.factor
core/io/files/files-tests.factor
core/io/io-tests.factor
core/io/pathnames/pathnames-tests.factor
core/io/streams/byte-array/byte-array-tests.factor
core/io/streams/c/c-tests.factor
core/kernel/kernel-tests.factor
core/layouts/layouts-tests.factor
core/math/floats/floats-tests.factor
core/math/integers/integers-tests.factor
core/math/math-tests.factor
core/math/order/order-tests.factor
core/math/parser/parser-tests.factor
core/memory/memory-tests.factor
core/namespaces/namespaces-tests.factor
core/parser/notes/notes-tests.factor
core/parser/parser-tests.factor
core/quotations/quotations-tests.factor
core/sbufs/sbufs-tests.factor
core/sequences/sequences-tests.factor
core/sets/sets-tests.factor
core/slots/slots-tests.factor
core/sorting/sorting-tests.factor
core/source-files/errors/errors-tests.factor
core/source-files/source-files-tests.factor
core/splitting/splitting-tests.factor
core/strings/parser/parser-tests.factor
core/strings/strings-tests.factor
core/vectors/vectors-tests.factor
core/vocabs/loader/loader-tests.factor
core/vocabs/vocabs-tests.factor
core/words/alias/alias-tests.factor
core/words/constant/constant-tests.factor
core/words/words-tests.factor
extra/99-bottles/99-bottles-tests.factor
extra/alien/data/map/map-tests.factor
extra/alien/handles/handles-tests.factor
extra/annotations/annotations-tests.factor
extra/arrays/shaped/shaped-tests.factor
extra/asn1/asn1-tests.factor
extra/assocs/extras/extras-tests.factor
extra/backtrack/backtrack-tests.factor
extra/bank/bank-tests.factor
extra/benchmark/regex-dna/regex-dna-tests.factor
extra/benchmark/reverse-complement/reverse-complement-tests.factor
extra/bloom-filters/bloom-filters-tests.factor
extra/boyer-moore/boyer-moore-tests.factor
extra/bson/bson-tests.factor
extra/build-support/build-support-tests.factor
extra/c/lexer/lexer-tests.factor
extra/c/preprocessor/preprocessor-tests.factor
extra/calendar/holidays/canada/canada-tests.factor
extra/calendar/holidays/us/us-tests.factor
extra/cgi/cgi-tests.factor
extra/classes/struct/vectored/vectored-tests.factor
extra/classes/tuple/change-tracking/change-tracking-tests.factor
extra/code-arrays/code-arrays-tests.factor
extra/combinators/extras/extras-tests.factor
extra/compiler/cfg/gvn/gvn-tests.factor
extra/compiler/graphviz/graphviz-tests.factor
extra/constructors/constructors-tests.factor
extra/contributors/contributors-tests.factor
extra/crypto/aes/aes-tests.factor
extra/crypto/barrett/barrett-tests.factor
extra/crypto/passwd-md5/passwd-md5-tests.factor
extra/crypto/rsa/rsa-tests.factor
extra/crypto/xor/xor-tests.factor
extra/ctags/ctags-tests.factor
extra/ctags/etags/etags-tests.factor
extra/cuda/devices/devices-tests.factor
extra/cuda/ptx/ptx-tests.factor
extra/cursors/cursors-tests.factor
extra/decimals/decimals-tests.factor
extra/descriptive/descriptive-tests.factor
extra/digraphs/digraphs-tests.factor
extra/ecdsa/ecdsa-tests.factor
extra/enigma/enigma-tests.factor
extra/euler/b-rep/b-rep-tests.factor
extra/euler/b-rep/triangulation/triangulation-tests.factor
extra/euler/modeling/modeling-tests.factor
extra/euler/operators/operators-tests.factor
extra/flip-text/flip-text-tests.factor
extra/game/models/half-edge/half-edge-tests.factor
extra/game/models/util/util-tests.factor
extra/gdbm/gdbm-tests.factor
extra/gml/gml-tests.factor
extra/gml/viewer/viewer-tests.factor
extra/gpu/render/render-tests.factor
extra/gpu/shaders/shaders-tests.factor
extra/grid-meshes/grid-meshes-tests.factor
extra/hash-sets/numbers/numbers-tests.factor
extra/hashcash/hashcash-tests.factor
extra/hashtables/numbers/numbers-tests.factor
extra/html/elements/elements-tests.factor
extra/html/parser/analyzer/analyzer-tests.factor
extra/html/parser/parser-tests.factor
extra/html/parser/printer/printer-tests.factor
extra/html/parser/utils/utils-tests.factor
extra/id3/id3-tests.factor
extra/images/gif/gif-tests.factor
extra/images/viewer/viewer-tests.factor
extra/imap/imap-tests.factor
extra/infix/infix-tests.factor
extra/infix/parser/parser-tests.factor
extra/infix/tokenizer/tokenizer-tests.factor
extra/ini-file/ini-file-tests.factor
extra/io/binary/fast/fast-tests.factor
extra/io/encodings/detect/detect-tests.factor
extra/io/streams/peek/peek-tests.factor
extra/jamshred/oint/oint-tests.factor
extra/jamshred/tunnel/tunnel-tests.factor
extra/koszul/koszul-tests.factor
extra/lint/lint-tests.factor
extra/llvm/invoker/invoker-tests.factor
extra/llvm/jit/jit-tests.factor
extra/llvm/types/types-tests.factor
extra/llvm/wrappers/wrappers-tests.factor
extra/machine-learning/rebalancing/rebalancing-tests.factor
extra/mason/child/child-tests.factor
extra/mason/common/common-tests.factor
extra/mason/email/email-tests.factor
extra/mason/platform/platform-tests.factor
extra/mason/release/branch/branch-tests.factor
extra/math/affine-transforms/affine-transforms-tests.factor
extra/math/analysis/analysis-tests.factor
extra/math/approx/approx-tests.factor
extra/math/blas/matrices/matrices-tests.factor
extra/math/blas/vectors/vectors-tests.factor
extra/math/combinators/combinators-tests.factor
extra/math/compare/compare-tests.factor
extra/math/continued-fractions/continued-fractions-tests.factor
extra/math/dual/dual-tests.factor
extra/math/extras/extras-tests.factor
extra/math/factorials/factorials-tests.factor
extra/math/finance/finance-tests.factor
extra/math/floating-point/floating-point-tests.factor
extra/math/matrices/simd/simd-tests.factor
extra/math/numerical-integration/numerical-integration-tests.factor
extra/math/text/english/english-tests.factor
extra/math/text/french/french-tests.factor
extra/math/text/utils/utils-tests.factor
extra/math/transforms/haar/haar-tests.factor
extra/math/vectors/homogeneous/homogeneous-tests.factor
extra/memcached/memcached-tests.factor
extra/memory/piles/piles-tests.factor
extra/memory/pools/pools-tests.factor
extra/method-chains/method-chains-tests.factor
extra/models/history/history-tests.factor
extra/monads/monads-tests.factor
extra/money/money-tests.factor
extra/morse/morse-tests.factor
extra/msxml-to-csv/msxml-to-csv-tests.factor
extra/nested-comments/nested-comments-tests.factor
extra/noise/noise-tests.factor
extra/nurbs/nurbs-tests.factor
extra/oauth/oauth-tests.factor
extra/opencl/ffi/ffi-tests.factor
extra/opencl/opencl-tests.factor
extra/pair-methods/pair-methods-tests.factor
extra/pair-rocket/pair-rocket-tests.factor
extra/pairs/pairs-tests.factor
extra/partial-continuations/partial-continuations-tests.factor
extra/path-finding/path-finding-tests.factor
extra/pcre/ffi/ffi-tests.factor
extra/pcre/pcre-tests.factor
extra/pdf/units/units-tests.factor
extra/picomath/picomath-tests.factor
extra/poker/poker-tests.factor
extra/pop3/pop3-tests.factor
extra/project-euler/001/001-tests.factor
extra/project-euler/002/002-tests.factor
extra/project-euler/003/003-tests.factor
extra/project-euler/004/004-tests.factor
extra/project-euler/005/005-tests.factor
extra/project-euler/006/006-tests.factor
extra/project-euler/007/007-tests.factor
extra/project-euler/008/008-tests.factor
extra/project-euler/009/009-tests.factor
extra/project-euler/010/010-tests.factor
extra/project-euler/011/011-tests.factor
extra/project-euler/012/012-tests.factor
extra/project-euler/013/013-tests.factor
extra/project-euler/014/014-tests.factor
extra/project-euler/015/015-tests.factor
extra/project-euler/016/016-tests.factor
extra/project-euler/017/017-tests.factor
extra/project-euler/018/018-tests.factor
extra/project-euler/019/019-tests.factor
extra/project-euler/020/020-tests.factor
extra/project-euler/021/021-tests.factor
extra/project-euler/022/022-tests.factor
extra/project-euler/023/023-tests.factor
extra/project-euler/024/024-tests.factor
extra/project-euler/025/025-tests.factor
extra/project-euler/026/026-tests.factor
extra/project-euler/027/027-tests.factor
extra/project-euler/028/028-tests.factor
extra/project-euler/029/029-tests.factor
extra/project-euler/030/030-tests.factor
extra/project-euler/031/031-tests.factor
extra/project-euler/032/032-tests.factor
extra/project-euler/033/033-tests.factor
extra/project-euler/034/034-tests.factor
extra/project-euler/035/035-tests.factor
extra/project-euler/036/036-tests.factor
extra/project-euler/037/037-tests.factor
extra/project-euler/038/038-tests.factor
extra/project-euler/039/039-tests.factor
extra/project-euler/040/040-tests.factor
extra/project-euler/041/041-tests.factor
extra/project-euler/042/042-tests.factor
extra/project-euler/043/043-tests.factor
extra/project-euler/044/044-tests.factor
extra/project-euler/045/045-tests.factor
extra/project-euler/046/046-tests.factor
extra/project-euler/047/047-tests.factor
extra/project-euler/048/048-tests.factor
extra/project-euler/049/049-tests.factor
extra/project-euler/050/050-tests.factor
extra/project-euler/051/051-tests.factor
extra/project-euler/052/052-tests.factor
extra/project-euler/053/053-tests.factor
extra/project-euler/054/054-tests.factor
extra/project-euler/055/055-tests.factor
extra/project-euler/056/056-tests.factor
extra/project-euler/059/059-tests.factor
extra/project-euler/062/062-tests.factor
extra/project-euler/065/065-tests.factor
extra/project-euler/067/067-tests.factor
extra/project-euler/070/070-tests.factor
extra/project-euler/071/071-tests.factor
extra/project-euler/072/072-tests.factor
extra/project-euler/073/073-tests.factor
extra/project-euler/074/074-tests.factor
extra/project-euler/075/075-tests.factor
extra/project-euler/076/076-tests.factor
extra/project-euler/079/079-tests.factor
extra/project-euler/081/081-tests.factor
extra/project-euler/085/085-tests.factor
extra/project-euler/089/089-tests.factor
extra/project-euler/092/092-tests.factor
extra/project-euler/097/097-tests.factor
extra/project-euler/099/099-tests.factor
extra/project-euler/100/100-tests.factor
extra/project-euler/102/102-tests.factor
extra/project-euler/112/112-tests.factor
extra/project-euler/116/116-tests.factor
extra/project-euler/117/117-tests.factor
extra/project-euler/124/124-tests.factor
extra/project-euler/134/134-tests.factor
extra/project-euler/148/148-tests.factor
extra/project-euler/150/150-tests.factor
extra/project-euler/151/151-tests.factor
extra/project-euler/164/164-tests.factor
extra/project-euler/169/169-tests.factor
extra/project-euler/173/173-tests.factor
extra/project-euler/175/175-tests.factor
extra/project-euler/188/188-tests.factor
extra/project-euler/190/190-tests.factor
extra/project-euler/203/203-tests.factor
extra/project-euler/206/206-tests.factor
extra/project-euler/215/215-tests.factor
extra/project-euler/255/255-tests.factor
extra/project-euler/265/265-tests.factor
extra/project-euler/ave-time/ave-time-tests.factor
extra/project-euler/common/common-tests.factor
extra/python/python-tests.factor
extra/quadtrees/quadtrees-tests.factor
extra/qw/qw-tests.factor
extra/random/blum-blum-shub/blum-blum-shub-tests.factor
extra/random/cmwc/cmwc-tests.factor
extra/random/lagged-fibonacci/lagged-fibonacci-tests.factor
extra/redis/response-parser/response-parser-tests.factor
extra/robots/robots-tests.factor
extra/roles/roles-tests.factor
extra/rosetta-code/y-combinator/y-combinator-tests.factor
extra/rpn/rpn-tests.factor
extra/sequences/abbrev/abbrev-tests.factor
extra/sequences/extras/extras-tests.factor
extra/sequences/inserters/inserters-tests.factor
extra/sequences/modified/modified-tests.factor
extra/sequences/n-based/n-based-tests.factor
extra/sequences/repeating/repeating-tests.factor
extra/sequences/squish/squish-tests.factor
extra/site-watcher/site-watcher-tests.factor
extra/slots/syntax/syntax-tests.factor
extra/smalltalk/compiler/compiler-tests.factor
extra/smalltalk/compiler/lexenv/lexenv-tests.factor
extra/smalltalk/compiler/return/return-tests.factor
extra/smalltalk/eval/eval-tests.factor
extra/smalltalk/parser/parser-tests.factor
extra/smalltalk/printer/printer-tests.factor
extra/spelling/spelling-tests.factor
extra/sudoku/sudoku-tests.factor
extra/svg/svg-tests.factor
extra/synth/synth-tests.factor
extra/taxes/usa/usa-tests.factor
extra/tetris/board/board-tests.factor
extra/tetris/game/game-tests.factor
extra/tetris/piece/piece-tests.factor
extra/tnetstrings/tnetstrings-tests.factor
extra/trees/avl/avl-tests.factor
extra/trees/trees-tests.factor
extra/txon/txon-tests.factor
extra/ui/gadgets/lists/lists-tests.factor
extra/units/imperial/imperial-tests.factor
extra/units/reduction/reduction-tests.factor
extra/units/si/si-tests.factor
extra/units/units-tests.factor
extra/usa-cities/usa-cities-tests.factor
extra/variants/variants-tests.factor
extra/webapps/mason/backend/backend-tests.factor
extra/wordtimer/wordtimer-tests.factor
extra/yahoo/yahoo-tests.factor
extra/z-algorithm/z-algorithm-tests.factor

index f0888780135d2bf655408e38bdec3866eff9384a..1417433678d53572f6ba597a326fdb19b42f7acd 100644 (file)
@@ -7,57 +7,57 @@ IN: alien.c-types.tests
 
 CONSTANT: xyz 123
 
-[ 492 ] [ { int xyz } heap-size ] unit-test
+{ 492 } [ { int xyz } heap-size ] unit-test
 
 UNION-STRUCT: foo
     { a int }
     { b int } ;
 
-[ t ] [ pointer: void lookup-c-type void* lookup-c-type = ] unit-test
-[ t ] [ pointer: int  lookup-c-type void* lookup-c-type = ] unit-test
-[ t ] [ pointer: int* lookup-c-type void* lookup-c-type = ] unit-test
-[ f ] [ pointer: foo  lookup-c-type void* lookup-c-type = ] unit-test
-[ t ] [ pointer: foo* lookup-c-type void* lookup-c-type = ] unit-test
+{ t } [ pointer: void lookup-c-type void* lookup-c-type = ] unit-test
+{ t } [ pointer: int  lookup-c-type void* lookup-c-type = ] unit-test
+{ t } [ pointer: int* lookup-c-type void* lookup-c-type = ] unit-test
+{ f } [ pointer: foo  lookup-c-type void* lookup-c-type = ] unit-test
+{ t } [ pointer: foo* lookup-c-type void* lookup-c-type = ] unit-test
 
-[ t ] [ c-string lookup-c-type c-string lookup-c-type = ] unit-test
+{ t } [ c-string lookup-c-type c-string lookup-c-type = ] unit-test
 
-[ t ] [ foo heap-size int heap-size = ] unit-test
+{ t } [ foo heap-size int heap-size = ] unit-test
 
 TYPEDEF: int MyInt
 
-[ t ] [ int   lookup-c-type          MyInt lookup-c-type = ] unit-test
-[ t ] [ void* lookup-c-type pointer: MyInt lookup-c-type = ] unit-test
+{ t } [ int   lookup-c-type          MyInt lookup-c-type = ] unit-test
+{ t } [ void* lookup-c-type pointer: MyInt lookup-c-type = ] unit-test
 
-[ 32 ] [ { int 8 } heap-size ] unit-test
+{ 32 } [ { int 8 } heap-size ] unit-test
 
-[ ] [ pointer: { int 8 } heap-size pointer: void heap-size assert= ] unit-test
+{ } [ pointer: { int 8 } heap-size pointer: void heap-size assert= ] unit-test
 
 TYPEDEF: char MyChar
 
-[ t ] [ pointer: void lookup-c-type pointer: MyChar lookup-c-type = ] unit-test
+{ t } [ pointer: void lookup-c-type pointer: MyChar lookup-c-type = ] unit-test
 
 TYPEDEF: { c-string ascii } MyFunkyString
 
-[ { c-string ascii } ] [ MyFunkyString lookup-c-type ] unit-test
+{ { c-string ascii } } [ MyFunkyString lookup-c-type ] unit-test
 
 TYPEDEF: c-string MyString
 
-[ t ] [ c-string lookup-c-type MyString          lookup-c-type = ] unit-test
-[ t ] [ void* lookup-c-type pointer: MyString lookup-c-type = ] unit-test
+{ t } [ c-string lookup-c-type MyString          lookup-c-type = ] unit-test
+{ t } [ void* lookup-c-type pointer: MyString lookup-c-type = ] unit-test
 
 TYPEDEF: int* MyIntArray
 
-[ t ] [ void* lookup-c-type MyIntArray lookup-c-type = ] unit-test
+{ t } [ void* lookup-c-type MyIntArray lookup-c-type = ] unit-test
 
-[ 0 ] [ -10 uchar c-type-clamp ] unit-test
-[ 12 ] [ 12 uchar c-type-clamp ] unit-test
-[ -10 ] [ -10 char c-type-clamp ] unit-test
-[ 127 ] [ 230 char c-type-clamp ] unit-test
-[ t ] [ pi dup float c-type-clamp = ] unit-test
+{ 0 } [ -10 uchar c-type-clamp ] unit-test
+{ 12 } [ 12 uchar c-type-clamp ] unit-test
+{ -10 } [ -10 char c-type-clamp ] unit-test
+{ 127 } [ 230 char c-type-clamp ] unit-test
+{ t } [ pi dup float c-type-clamp = ] unit-test
 
 C-TYPE: opaque
 
-[ t ] [ void* lookup-c-type pointer: opaque lookup-c-type = ] unit-test
+{ t } [ void* lookup-c-type pointer: opaque lookup-c-type = ] unit-test
 [ opaque lookup-c-type ] [ no-c-type? ] must-fail-with
 
 [ """
@@ -70,12 +70,12 @@ C-TYPE: forward
 STRUCT: backward { x forward* } ;
 STRUCT: forward { x backward* } ;
 
-[ t ] [ forward lookup-c-type struct-c-type? ] unit-test
-[ t ] [ backward lookup-c-type struct-c-type? ] unit-test
+{ t } [ forward lookup-c-type struct-c-type? ] unit-test
+{ t } [ backward lookup-c-type struct-c-type? ] unit-test
 
 DEFER: struct-redefined
 
-[ f ]
+{ f }
 [
 
     """
index 63d73ef0291907919233aa5376c664dce4b0b4b3..aa549659d07432d871a616691ba6d857ba3bba8d 100644 (file)
@@ -10,12 +10,12 @@ STRUCT: complex-holder
 : <complex-holder> ( z -- alien )
     complex-holder <struct-boa> ;
 
-[ ] [
+{ } [
     C{ 1.0 2.0 } <complex-holder> "h" set
 ] unit-test
 
-[ C{ 1.0 2.0 } ] [ "h" get z>> ] unit-test
+{ C{ 1.0 2.0 } } [ "h" get z>> ] unit-test
 
-[ complex ] [ complex-float c-type-boxed-class ] unit-test
+{ complex } [ complex-float c-type-boxed-class ] unit-test
 
-[ complex ] [ complex-double c-type-boxed-class ] unit-test
+{ complex } [ complex-double c-type-boxed-class ] unit-test
index 7d53c71815c79523baea390a5a3f0685aef58392..1a6daa523d18869cd89eda7c025a88da04d06001 100644 (file)
@@ -5,18 +5,18 @@ system ;
 QUALIFIED-WITH: alien.c-types c
 IN: alien.data.tests
 
-[ -1 ] [ -1 c:char <ref> c:char deref ] unit-test
-[ -1 ] [ -1 c:short <ref> c:short deref ] unit-test
-[ -1 ] [ -1 c:int <ref> c:int deref ] unit-test
+{ -1 } [ -1 c:char <ref> c:char deref ] unit-test
+{ -1 } [ -1 c:short <ref> c:short deref ] unit-test
+{ -1 } [ -1 c:int <ref> c:int deref ] unit-test
 
 ! I don't care if this throws an error or works, but at least
 ! it should be consistent between platforms
-[ -1 ] [ -1.0 c:int <ref> c:int deref ] unit-test
-[ -1 ] [ -1.0 c:long <ref> c:long deref ] unit-test
-[ -1 ] [ -1.0 c:longlong <ref> c:longlong deref ] unit-test
-[ 1 ] [ 1.0 c:uint <ref> c:uint deref ] unit-test
-[ 1 ] [ 1.0 c:ulong <ref> c:ulong deref ] unit-test
-[ 1 ] [ 1.0 c:ulonglong <ref> c:ulonglong deref ] unit-test
+{ -1 } [ -1.0 c:int <ref> c:int deref ] unit-test
+{ -1 } [ -1.0 c:long <ref> c:long deref ] unit-test
+{ -1 } [ -1.0 c:longlong <ref> c:longlong deref ] unit-test
+{ 1 } [ 1.0 c:uint <ref> c:uint deref ] unit-test
+{ 1 } [ 1.0 c:ulong <ref> c:ulong deref ] unit-test
+{ 1 } [ 1.0 c:ulonglong <ref> c:ulonglong deref ] unit-test
 
 [
     0 B{ 1 2 3 4 } <displaced-alien> c:void* <ref>
@@ -30,26 +30,26 @@ STRUCT: foo { a c:int } { b c:void* } { c c:bool } ;
 
 SPECIALIZED-ARRAY: foo
 
-[ t ] [ 0 binary-zero? ] unit-test
-[ f ] [ 1 binary-zero? ] unit-test
-[ f ] [ -1 binary-zero? ] unit-test
-[ t ] [ 0.0 binary-zero? ] unit-test
-[ f ] [ 1.0 binary-zero? ] unit-test
-[ f ] [ -0.0 binary-zero? ] unit-test
-[ t ] [ C{ 0.0 0.0 } binary-zero? ] unit-test
-[ f ] [ C{ 1.0 0.0 } binary-zero? ] unit-test
-[ f ] [ C{ -0.0 0.0 } binary-zero? ] unit-test
-[ f ] [ C{ 0.0 1.0 } binary-zero? ] unit-test
-[ f ] [ C{ 0.0 -0.0 } binary-zero? ] unit-test
-[ t ] [ f binary-zero? ] unit-test
-[ t ] [ 0 <alien> binary-zero? ] unit-test
-[ f ] [ 1 <alien> binary-zero? ] unit-test
-[ f ] [ B{ } binary-zero? ] unit-test
-[ t ] [ S{ foo f 0 f f } binary-zero? ] unit-test
-[ f ] [ S{ foo f 1 f f } binary-zero? ] unit-test
-[ f ] [ S{ foo f 0 ALIEN: 8 f } binary-zero? ] unit-test
-[ f ] [ S{ foo f 0 f t } binary-zero? ] unit-test
-[ t t f ] [
+{ t } [ 0 binary-zero? ] unit-test
+{ f } [ 1 binary-zero? ] unit-test
+{ f } [ -1 binary-zero? ] unit-test
+{ t } [ 0.0 binary-zero? ] unit-test
+{ f } [ 1.0 binary-zero? ] unit-test
+{ f } [ -0.0 binary-zero? ] unit-test
+{ t } [ C{ 0.0 0.0 } binary-zero? ] unit-test
+{ f } [ C{ 1.0 0.0 } binary-zero? ] unit-test
+{ f } [ C{ -0.0 0.0 } binary-zero? ] unit-test
+{ f } [ C{ 0.0 1.0 } binary-zero? ] unit-test
+{ f } [ C{ 0.0 -0.0 } binary-zero? ] unit-test
+{ t } [ f binary-zero? ] unit-test
+{ t } [ 0 <alien> binary-zero? ] unit-test
+{ f } [ 1 <alien> binary-zero? ] unit-test
+{ f } [ B{ } binary-zero? ] unit-test
+{ t } [ S{ foo f 0 f f } binary-zero? ] unit-test
+{ f } [ S{ foo f 1 f f } binary-zero? ] unit-test
+{ f } [ S{ foo f 0 ALIEN: 8 f } binary-zero? ] unit-test
+{ f } [ S{ foo f 0 f t } binary-zero? ] unit-test
+{ t t f } [
     foo-array{
         S{ foo f 0 f f }
         S{ foo f 0 f f }
@@ -57,7 +57,7 @@ SPECIALIZED-ARRAY: foo
     } [ first binary-zero? ] [ second binary-zero? ] [ third binary-zero? ] tri
 ] unit-test
 
-[ ] [
+{ } [
     [
         foo specialized-array-vocab forget-vocab
     ] with-compilation-unit
index a7b8026eb136059d68b4944a8ea3db5a3edb2eaa..5134b3cc864a50ab33ea71d48545d343c67736d1 100644 (file)
@@ -59,41 +59,41 @@ CONSTANT: endian-bytes-f0 B{
 : endian-test-struct-f0 ( -- obj )
     endian-bytes-f0 endian-struct memory>struct ;
 
-[ 0xff00 ] [ endian-test-struct-0f a>> ] unit-test
-[ -256 ] [ endian-test-struct-0f b>> ] unit-test
-[ 0x00ff ] [ endian-test-struct-0f c>> ] unit-test
-[ 0x00ff ] [ endian-test-struct-0f d>> ] unit-test
-
-[ 0xff000000 ] [ endian-test-struct-0f e>> ] unit-test
-[ -16777216 ] [ endian-test-struct-0f f>> ] unit-test
-[ 0x000000ff ] [ endian-test-struct-0f g>> ] unit-test
-[ 0x000000ff ] [ endian-test-struct-0f h>> ] unit-test
-
-[ 0xff00000000000000 ] [ endian-test-struct-0f i>> ] unit-test
-[ -72057594037927936 ] [ endian-test-struct-0f j>> ] unit-test
-[ 0x00000000000000ff ] [ endian-test-struct-0f k>> ] unit-test
-[ 0x00000000000000ff ] [ endian-test-struct-0f l>> ] unit-test
-
-
-[ 0xff00 ] [ endian-test-struct-f0 c>> ] unit-test
-[ -256 ] [ endian-test-struct-f0 d>> ] unit-test
-[ 0x00ff ] [ endian-test-struct-f0 a>> ] unit-test
-[ 0x00ff ] [ endian-test-struct-f0 b>> ] unit-test
-
-[ 0xff000000 ] [ endian-test-struct-f0 g>> ] unit-test
-[ -16777216 ] [ endian-test-struct-f0 h>> ] unit-test
-[ 0x000000ff ] [ endian-test-struct-f0 e>> ] unit-test
-[ 0x000000ff ] [ endian-test-struct-f0 f>> ] unit-test
-
-[ 0xff00000000000000 ] [ endian-test-struct-f0 k>> ] unit-test
-[ -72057594037927936 ] [ endian-test-struct-f0 l>> ] unit-test
-[ 0x00000000000000ff ] [ endian-test-struct-f0 i>> ] unit-test
-[ 0x00000000000000ff ] [ endian-test-struct-f0 j>> ] unit-test
-
-[ t ]
+{ 0xff00 } [ endian-test-struct-0f a>> ] unit-test
+{ -256 } [ endian-test-struct-0f b>> ] unit-test
+{ 0x00ff } [ endian-test-struct-0f c>> ] unit-test
+{ 0x00ff } [ endian-test-struct-0f d>> ] unit-test
+
+{ 0xff000000 } [ endian-test-struct-0f e>> ] unit-test
+{ -16777216 } [ endian-test-struct-0f f>> ] unit-test
+{ 0x000000ff } [ endian-test-struct-0f g>> ] unit-test
+{ 0x000000ff } [ endian-test-struct-0f h>> ] unit-test
+
+{ 0xff00000000000000 } [ endian-test-struct-0f i>> ] unit-test
+{ -72057594037927936 } [ endian-test-struct-0f j>> ] unit-test
+{ 0x00000000000000ff } [ endian-test-struct-0f k>> ] unit-test
+{ 0x00000000000000ff } [ endian-test-struct-0f l>> ] unit-test
+
+
+{ 0xff00 } [ endian-test-struct-f0 c>> ] unit-test
+{ -256 } [ endian-test-struct-f0 d>> ] unit-test
+{ 0x00ff } [ endian-test-struct-f0 a>> ] unit-test
+{ 0x00ff } [ endian-test-struct-f0 b>> ] unit-test
+
+{ 0xff000000 } [ endian-test-struct-f0 g>> ] unit-test
+{ -16777216 } [ endian-test-struct-f0 h>> ] unit-test
+{ 0x000000ff } [ endian-test-struct-f0 e>> ] unit-test
+{ 0x000000ff } [ endian-test-struct-f0 f>> ] unit-test
+
+{ 0xff00000000000000 } [ endian-test-struct-f0 k>> ] unit-test
+{ -72057594037927936 } [ endian-test-struct-f0 l>> ] unit-test
+{ 0x00000000000000ff } [ endian-test-struct-f0 i>> ] unit-test
+{ 0x00000000000000ff } [ endian-test-struct-f0 j>> ] unit-test
+
+{ t }
 [ endian-test-struct-0f binary [ write ] with-byte-writer endian-bytes-0f = ] unit-test
 
-[ t ]
+{ t }
 [ endian-test-struct-f0 binary [ write ] with-byte-writer endian-bytes-f0 = ] unit-test
 
 LE-STRUCT: le-endian-struct
@@ -110,13 +110,13 @@ LE-STRUCT: le-endian-struct
     { k ube64 }
     { l be64 } ;
 
-[ t ]
+{ t }
 [
     endian-bytes-0f le-endian-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-0f =
 ] unit-test
 
-[ t ]
+{ t }
 [
     endian-bytes-f0 le-endian-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-f0 =
@@ -137,13 +137,13 @@ BE-STRUCT: be-endian-struct
     { k ube64 }
     { l be64 } ;
 
-[ t ]
+{ t }
 [
     endian-bytes-0f be-endian-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-0f =
 ] unit-test
 
-[ t ]
+{ t }
 [
     endian-bytes-f0 be-endian-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-f0 =
@@ -163,13 +163,13 @@ LE-STRUCT: le-override-struct
     { k ube64 }
     { l be64 } ;
 
-[ t ]
+{ t }
 [
     endian-bytes-0f le-override-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-0f =
 ] unit-test
 
-[ t ]
+{ t }
 [
     endian-bytes-f0 le-override-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-f0 =
@@ -189,13 +189,13 @@ BE-STRUCT: be-override-struct
     { k ulonglong }
     { l longlong } ;
 
-[ t ]
+{ t }
 [
     endian-bytes-0f be-override-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-0f =
 ] unit-test
 
-[ t ]
+{ t }
 [
     endian-bytes-f0 be-override-struct memory>struct
     binary [ write ] with-byte-writer endian-bytes-f0 =
@@ -206,7 +206,7 @@ LE-PACKED-STRUCT: le-packed-struct
     { a char[7] }
     { b int } ;
 
-[ t ]
+{ t }
 [
     B{ 0 0 0 0 0 0 0  3 0 0 0 } [
         le-packed-struct memory>struct
@@ -214,7 +214,7 @@ LE-PACKED-STRUCT: le-packed-struct
     ] keep =
 ] unit-test
 
-[ 3 ]
+{ 3 }
 [
     B{ 0 0 0 0 0 0 0  3 0 0 0 } le-packed-struct memory>struct
     b>>
@@ -225,7 +225,7 @@ BE-PACKED-STRUCT: be-packed-struct
     { a char[7] }
     { b int } ;
 
-[ t ]
+{ t }
 [
     B{ 0 0 0 0 0 0 0  0 0 0 3 } [
         be-packed-struct memory>struct
@@ -233,7 +233,7 @@ BE-PACKED-STRUCT: be-packed-struct
     ] keep =
 ] unit-test
 
-[ 3 ]
+{ 3 }
 [
     B{ 0 0 0 0 0 0 0  0 0 0 3 } be-packed-struct memory>struct
     b>>
index a7fd665e1374b688ab242b5faadfff266166c684..3629b072f0edd070d3b1b0936153d7f0d4530aec 100644 (file)
@@ -36,7 +36,7 @@ ENUM: instrument_t < ushort trombone trumpet ;
 
 ENUM: colores { rojo red } { verde green } { azul blue } { colorado rojo } ;
 
-[ { 0 3 4 0 } ] [ { rojo verde azul colorado } [ enum>number ] map ] unit-test
+{ { 0 3 4 0 } } [ { rojo verde azul colorado } [ enum>number ] map ] unit-test
 
 SYMBOLS: couleurs rouge vert bleu jaune azure ;
 
@@ -48,4 +48,4 @@ SYMBOLS: couleurs rouge vert bleu jaune azure ;
     { azure bleu }
 } define-enum >>
 
-[ { 0 3 4 14 4 } ] [ { rouge vert bleu jaune azure } [ enum>number ] map ] unit-test
+{ { 0 3 4 14 4 } } [ { rouge vert bleu jaune azure } [ enum>number ] map ] unit-test
index 2721ce48c0b58c3d1409fe124e726e37d1a57665..40f677a51cb5227a4fa65be2fc06ae476c1001fa 100755 (executable)
@@ -1,27 +1,27 @@
 USING: alien alien.libraries alien.syntax tools.test kernel ;
 IN: alien.libraries.tests
 
-[ f ] [ DLL" fadfasdfsada" dll-valid? ] unit-test
+{ f } [ DLL" fadfasdfsada" dll-valid? ] unit-test
 
-[ f ] [ "does not exist" DLL" fadsfasfdsaf" dlsym ] unit-test
+{ f } [ "does not exist" DLL" fadsfasfdsaf" dlsym ] unit-test
 
-[ ] [ "doesnotexist" dlopen dlclose ] unit-test
+{ } [ "doesnotexist" dlopen dlclose ] unit-test
 
 [ "fdasfsf" dll-valid? drop ] must-fail
 
-[ t ] [
+{ t } [
     "test-library" "blah" cdecl add-library
     "test-library" "BLAH" cdecl add-library?
     "blah" remove-library
 ] unit-test
 
-[ t ] [
+{ t } [
     "test-library" "blah" cdecl add-library
     "test-library" "blah" stdcall add-library?
     "blah" remove-library
 ] unit-test
 
-[ f ] [
+{ f } [
     "test-library" "blah" cdecl add-library
     "test-library" "blah" cdecl add-library?
     "blah" remove-library
index ecbb92a03efbdd75e2129b52435c7923d0f9db0e..b471898e44c8bdd7b1a4788c37edf068829dc65b 100644 (file)
@@ -38,32 +38,32 @@ CONSTANT: eleven 11
 
 FUNCTION: void* alien-parser-function-effect-test ( int *arg1 float arg2 ) ;
 
-[ ( arg1 arg2 -- void* ) ] [
+{ ( arg1 arg2 -- void* ) } [
     \ alien-parser-function-effect-test "declared-effect" word-prop
 ] unit-test
 
-[ t ] [ \ alien-parser-function-effect-test inline? ] unit-test
+{ t } [ \ alien-parser-function-effect-test inline? ] unit-test
 
 FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-effect-test ( int *arg1 float arg2 ) ;
 
-[ ( arg1 arg2 -- void* ) ] [
+{ ( arg1 arg2 -- void* ) } [
     \ (alien-parser-function-effect-test) "declared-effect" word-prop
 ] unit-test
 
-[ t ] [ \ (alien-parser-function-effect-test) inline? ] unit-test
+{ t } [ \ (alien-parser-function-effect-test) inline? ] unit-test
 
 CALLBACK: void* alien-parser-callback-effect-test ( int *arg1 float arg2 ) ;
 
-[ ( arg1 arg2 -- void* ) ] [
+{ ( arg1 arg2 -- void* ) } [
     \ alien-parser-callback-effect-test "callback-effect" word-prop
 ] unit-test
 
-[ t ] [ \ alien-parser-callback-effect-test inline? ] unit-test
+{ t } [ \ alien-parser-callback-effect-test inline? ] unit-test
 
 ! Reported by mnestic
 TYPEDEF: int alien-parser-test-int ! reasonably unique name...
 
-[ "OK!" ] [
+{ "OK!" } [
     [
         "USE: specialized-arrays SPECIALIZED-ARRAY: alien-parser-test-int" eval( -- )
         ! after restart, we end up here
index b3ca2f0e7fa6bfd0b0a1b02aa0a92dc11b662b80..1b2eca80143030935f5c707c1b5e19dd50cdad98 100644 (file)
@@ -7,67 +7,67 @@ CONSTANT: FOO 10
 
 FUNCTION: int function_test ( float x, int[4][FOO] y, char* z, ushort *w ) ;
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 FUNCTION: int function_test
     ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
-" ] [
+" } [
     [ \ function_test see ] with-string-writer
 ] unit-test
 
 FUNCTION-ALIAS: function-test int function_test
     ( float x, int[4][FOO] y, char* z, ushort *w ) ;
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 FUNCTION-ALIAS: function-test int function_test
     ( float x, int[4][FOO] y, char* z, ushort* w ) ; inline
-" ] [
+" } [
     [ \ function-test see ] with-string-writer
 ] unit-test
 
 TYPEDEF: c-string[ascii] string-typedef
 TYPEDEF: char[1][2][3] array-typedef
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 TYPEDEF: c-string[ascii] string-typedef
-" ] [
+" } [
     [ \ string-typedef see ] with-string-writer
 ] unit-test
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 TYPEDEF: char[1][2][3] array-typedef
-" ] [
+" } [
     [ \ array-typedef see ] with-string-writer
 ] unit-test
 
 C-TYPE: opaque-c-type
 
-[ "USING: alien.syntax ;
+{ "USING: alien.syntax ;
 IN: alien.prettyprint.tests
 C-TYPE: opaque-c-type
-" ] [
+" } [
     [ \ opaque-c-type see ] with-string-writer
 ] unit-test
 
 TYPEDEF: pointer: int pint
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 TYPEDEF: int* pint
-" ] [
+" } [
     [ \ pint see ] with-string-writer
 ] unit-test
 
-[ "pointer: int" ] [ pointer: int unparse ] unit-test
+{ "pointer: int" } [ pointer: int unparse ] unit-test
 
 CALLBACK: void callback-test ( int x, float[4] y ) ;
 
-[ "USING: alien.c-types alien.syntax ;
+{ "USING: alien.c-types alien.syntax ;
 IN: alien.prettyprint.tests
 CALLBACK: void callback-test ( int x, float[4] y ) ;
-" ] [
+" } [
     [ \ callback-test see ] with-string-writer
 ] unit-test
index 0c4ac1ef8465b4dfca0b68d8f9e4fab24032ac6b..858b10117d7163b744f5df552b70f0dae38cd5bf 100644 (file)
@@ -1,22 +1,22 @@
 USING: ascii tools.test sequences kernel math strings ;
 IN: ascii.tests
 
-[ t ] [ CHAR: a letter? ] unit-test
-[ f ] [ CHAR: A letter? ] unit-test
-[ f ] [ CHAR: a LETTER? ] unit-test
-[ t ] [ CHAR: A LETTER? ] unit-test
-[ t ] [ CHAR: 0 digit? ] unit-test
-[ f ] [ CHAR: x digit? ] unit-test
+{ t } [ CHAR: a letter? ] unit-test
+{ f } [ CHAR: A letter? ] unit-test
+{ f } [ CHAR: a LETTER? ] unit-test
+{ t } [ CHAR: A LETTER? ] unit-test
+{ t } [ CHAR: 0 digit? ] unit-test
+{ f } [ CHAR: x digit? ] unit-test
 
-[ 4 ] [
+{ 4 } [
     0 "There are Four Upper Case characters"
     [ LETTER? [ 1 + ] when ] each
 ] unit-test
 
-[ t f ] [ CHAR: \s ascii? 400 ascii? ] unit-test
+{ t f } [ CHAR: \s ascii? 400 ascii? ] unit-test
 
-[ "HELLO HOW ARE YOU?" ] [ "hellO hOw arE YOU?" >upper ] unit-test
-[ "i'm good thx bai" ] [ "I'm Good THX bai" >lower ] unit-test
+{ "HELLO HOW ARE YOU?" } [ "hellO hOw arE YOU?" >upper ] unit-test
+{ "i'm good thx bai" } [ "I'm Good THX bai" >lower ] unit-test
 
-[ "Hello How Are You?" ] [ "hEllo how ARE yOU?" >title ] unit-test
-[ { " " "Hello" " " " " " " "World" } ] [ " Hello   World" >words [ >string ] map ] unit-test
+{ "Hello How Are You?" } [ "hEllo how ARE yOU?" >title ] unit-test
+{ { " " "Hello" " " " " " " "World" } } [ " Hello   World" >words [ >string ] map ] unit-test
index e962fa7e5937598aa1e125b9139395ae56530a07..23daf0083eafa5c0fca48531119140143197d3dd 100644 (file)
@@ -2,22 +2,22 @@ USING: kernel tools.test base64 strings sequences
 io.encodings.string io.encodings.ascii ;
 IN: base64.tests
 
-[ "abcdefghijklmnopqrstuvwxyz" ] [ "abcdefghijklmnopqrstuvwxyz" ascii encode >base64 base64> ascii decode
+{ "abcdefghijklmnopqrstuvwxyz" } [ "abcdefghijklmnopqrstuvwxyz" ascii encode >base64 base64> ascii decode
 ] unit-test
-[ "" ] [ "" ascii encode >base64 base64> ascii decode ] unit-test
-[ "a" ] [ "a" ascii encode >base64 base64> ascii decode ] unit-test
-[ "ab" ] [ "ab" ascii encode >base64 base64> ascii decode ] unit-test
-[ "abc" ] [ "abc" ascii encode >base64 base64> ascii decode ] unit-test
-[ "abcde" ] [ "abcde" ascii encode >base64 3 cut "\r\n" swap 3append base64> ascii decode ] unit-test
+{ "" } [ "" ascii encode >base64 base64> ascii decode ] unit-test
+{ "a" } [ "a" ascii encode >base64 base64> ascii decode ] unit-test
+{ "ab" } [ "ab" ascii encode >base64 base64> ascii decode ] unit-test
+{ "abc" } [ "abc" ascii encode >base64 base64> ascii decode ] unit-test
+{ "abcde" } [ "abcde" ascii encode >base64 3 cut "\r\n" swap 3append base64> ascii decode ] unit-test
 
 ! From http://en.wikipedia.org/wiki/Base64
-[ "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=" ]
+{ "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=" }
 [
     "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure."
     ascii encode >base64 >string
 ] unit-test
 
-[ "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz\r\nIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg\r\ndGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu\r\ndWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo\r\nZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=" ]
+{ "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz\r\nIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg\r\ndGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu\r\ndWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo\r\nZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=" }
 [
     "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure."
     ascii encode >base64-lines >string
index af10eb18e495d7653ba2137a302586aaf74edf3c..48f78800a1299767ff0b5062b5fa969d942abb99 100644 (file)
@@ -3,40 +3,40 @@ IN: biassocs.tests
 
 <bihash> "h" set
 
-[ 0 ] [ "h" get assoc-size ] unit-test
+{ 0 } [ "h" get assoc-size ] unit-test
 
-[ ] [ 1 2 "h" get set-at ] unit-test
+{ } [ 1 2 "h" get set-at ] unit-test
 
-[ 1 ] [ 2 "h" get at ] unit-test
+{ 1 } [ 2 "h" get at ] unit-test
 
-[ 2 ] [ 1 "h" get value-at ] unit-test
+{ 2 } [ 1 "h" get value-at ] unit-test
 
-[ 1 ] [ "h" get assoc-size ] unit-test
+{ 1 } [ "h" get assoc-size ] unit-test
 
-[ ] [ 1 3 "h" get set-at ] unit-test
+{ } [ 1 3 "h" get set-at ] unit-test
 
-[ 1 ] [ 3 "h" get at ] unit-test
+{ 1 } [ 3 "h" get at ] unit-test
 
-[ 2 ] [ 1 "h" get value-at ] unit-test
+{ 2 } [ 1 "h" get value-at ] unit-test
 
-[ 2 ] [ "h" get assoc-size ] unit-test
+{ 2 } [ "h" get assoc-size ] unit-test
 
 H{ { "a" "A" } { "b" "B" } } "a" set
 
-[ ] [ "a" get >biassoc "b" set ] unit-test
+{ } [ "a" get >biassoc "b" set ] unit-test
 
-[ t ] [ "b" get biassoc? ] unit-test
+{ t } [ "b" get biassoc? ] unit-test
 
-[ "A" ] [ "a" "b" get at ] unit-test
+{ "A" } [ "a" "b" get at ] unit-test
 
-[ "a" ] [ "A" "b" get value-at ] unit-test
+{ "a" } [ "A" "b" get value-at ] unit-test
 
-[ ] [ H{ { 1 2 } } >biassoc "h" set ] unit-test
+{ } [ H{ { 1 2 } } >biassoc "h" set ] unit-test
 
-[ ] [ "h" get clone "g" set ] unit-test
+{ } [ "h" get clone "g" set ] unit-test
 
-[ ] [ 3 4 "g" get set-at ] unit-test
+{ } [ 3 4 "g" get set-at ] unit-test
 
-[ H{ { 1 2 } } ] [ "h" get >hashtable ] unit-test
+{ H{ { 1 2 } } } [ "h" get >hashtable ] unit-test
 
-[ H{ { 1 2 } { 4 3 } } ] [ "g" get >hashtable ] unit-test
+{ H{ { 1 2 } { 4 3 } } } [ "g" get >hashtable ] unit-test
index 00d67dd7e3113548be2826a55ad44081c56fbee8..7a15852fca0fa8a40c4f94f9cea5aebc90984932 100644 (file)
@@ -1,17 +1,17 @@
 USING: binary-search math.order sequences kernel tools.test ;
 IN: binary-search.tests
 
-[ f ] [ 3 { } [ <=> ] with search drop ] unit-test
-[ 0 ] [ 3 { 3 } [ <=> ] with search drop ] unit-test
-[ 1 ] [ 2 { 1 2 3 } [ <=> ] with search drop ] unit-test
-[ 3 ] [ 4 { 1 2 3 4 5 6 } [ <=> ] with search drop ] unit-test
-[ 2 ] [ 3.5 { 1 2 3 4 5 6 7 8 } [ <=> ] with search drop ] unit-test
-[ 4 ] [ 5.5 { 1 2 3 4 5 6 7 8 } [ <=> ] with search drop ] unit-test
-[ 10 ] [ 10 20 iota [ <=> ] with search drop ] unit-test
+{ f } [ 3 { } [ <=> ] with search drop ] unit-test
+{ 0 } [ 3 { 3 } [ <=> ] with search drop ] unit-test
+{ 1 } [ 2 { 1 2 3 } [ <=> ] with search drop ] unit-test
+{ 3 } [ 4 { 1 2 3 4 5 6 } [ <=> ] with search drop ] unit-test
+{ 2 } [ 3.5 { 1 2 3 4 5 6 7 8 } [ <=> ] with search drop ] unit-test
+{ 4 } [ 5.5 { 1 2 3 4 5 6 7 8 } [ <=> ] with search drop ] unit-test
+{ 10 } [ 10 20 iota [ <=> ] with search drop ] unit-test
 
-[ 0 ] [ "alligator" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
-[ 3 ] [ "hey" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
-[ 5 ] [ "java" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
-[ t ] [ "hello" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-member? ] unit-test
-[ f ] [ "hello" { "alligator" "cat" "fish" "ikarus" "java" } sorted-member? ] unit-test
-[ f ] [ "zebra" { "alligator" "cat" "fish" "ikarus" "java" } sorted-member? ] unit-test
+{ 0 } [ "alligator" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
+{ 3 } [ "hey" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
+{ 5 } [ "java" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-index ] unit-test
+{ t } [ "hello" { "alligator" "cat" "fish" "hello" "ikarus" "java" } sorted-member? ] unit-test
+{ f } [ "hello" { "alligator" "cat" "fish" "ikarus" "java" } sorted-member? ] unit-test
+{ f } [ "zebra" { "alligator" "cat" "fish" "ikarus" "java" } sorted-member? ] unit-test
index 9fc556d09b7f9c68b0908cebf0585c7df632b427..4588dbae0316d6201a1a61955f4289ebc7456ee3 100644 (file)
@@ -4,85 +4,85 @@ IN: bit-arrays.tests
 
 [ -1 <bit-array> ] [ T{ bad-array-length f -1 } = ] must-fail-with
 
-[ 100 ] [ 100 <bit-array> length ] unit-test
+{ 100 } [ 100 <bit-array> length ] unit-test
 
-[
+{
     { t f t }
-] [
+} [
     3 <bit-array> t 0 pick set-nth t 2 pick set-nth
     >array
 ] unit-test
 
-[
+{
     { t f t }
-] [
+} [
     { t f t } >bit-array >array
 ] unit-test
 
-[
+{
     { t f t } { f t f }
-] [
+} [
     { t f t } >bit-array dup clone [ not ] map!
     [ >array ] bi@
 ] unit-test
 
-[
+{
     { f f f f f }
-] [
+} [
     { t f t t f } >bit-array dup clear-bits >array
 ] unit-test
 
-[
+{
     { t t t t t }
-] [
+} [
     { t f t t f } >bit-array dup set-bits >array
 ] unit-test
 
-[ t ] [
+{ t } [
     100 [
         drop 100 [ 2 random zero? ] replicate
         dup >bit-array >array =
     ] all-integers?
 ] unit-test
 
-[ ?{ f } ] [
+{ ?{ f } } [
     1 2 { t f t f } <slice> >bit-array
 ] unit-test
 
-[ ?{ f t } ] [ 0 2 ?{ f t f } subseq ] unit-test
+{ ?{ f t } } [ 0 2 ?{ f t f } subseq ] unit-test
 
-[ ?{ t f t f f f } ] [ 6 ?{ t f t } resize ] unit-test
+{ ?{ t f t f f f } } [ 6 ?{ t f t } resize ] unit-test
 
-[ ?{ t t } ] [ 2 ?{ t t f t f t f t t t f t } resize ] unit-test
+{ ?{ t t } } [ 2 ?{ t t f t f t f t t t f t } resize ] unit-test
 
 [ -10 ?{ } resize ] must-fail
 
 [ -1 integer>bit-array ] must-fail
-[ ?{ } ] [ 0 integer>bit-array ] unit-test
-[ ?{ f t } ] [ 2 integer>bit-array ] unit-test
-[ ?{ t t t t t t t t t } ] [ 511 integer>bit-array ] unit-test
-[ ?{
+{ ?{ } } [ 0 integer>bit-array ] unit-test
+{ ?{ f t } } [ 2 integer>bit-array ] unit-test
+{ ?{ t t t t t t t t t } } [ 511 integer>bit-array ] unit-test
+{ ?{
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
-} ] [
+} } [
     0xffffffffffffffffffffffffffffffff integer>bit-array
 ] unit-test
 
-[ 14 ] [ ?{ f t t t } bit-array>integer ] unit-test
-[ 0 ] [ ?{ } bit-array>integer ] unit-test
-[ 0xffffffffffffffffffffffffffffffff ] [ ?{
+{ 14 } [ ?{ f t t t } bit-array>integer ] unit-test
+{ 0 } [ ?{ } bit-array>integer ] unit-test
+{ 0xffffffffffffffffffffffffffffffff } [ ?{
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
     t t t t t t t t   t t t t t t t t   t t t t t t t t  t t t t t t t t
 } bit-array>integer ] unit-test
 
-[ 49 ] [ 49 <bit-array> dup set-bits [ ] count ] unit-test
+{ 49 } [ 49 <bit-array> dup set-bits [ ] count ] unit-test
 
-[ 1 ] [ ?{ f t f t } byte-length ] unit-test
+{ 1 } [ ?{ f t f t } byte-length ] unit-test
 
-[ 0xa ] [ ?{ f t f t } bit-array>integer ] unit-test
+{ 0xa } [ ?{ f t f t } bit-array>integer ] unit-test
 
-[ 0x100 ] [ ?{ f f f f f f f f t } bit-array>integer ] unit-test
+{ 0x100 } [ ?{ f f f f f f f f t } bit-array>integer ] unit-test
index 379dc1befca4dde4237d7cd0e91a27e2dd1d9368..74c3ebb611cec81e83dcb71a807465f480a48a69 100644 (file)
@@ -1,71 +1,71 @@
 USING: bit-sets tools.test sets kernel bit-arrays ;
 IN: bit-sets.tests
 
-[ T{ bit-set f ?{ t f t f t f } } ] [
+{ T{ bit-set f ?{ t f t f t f } } } [
     T{ bit-set f ?{ t f f f t f } }
     T{ bit-set f ?{ f f t f t f } } union
 ] unit-test
 
-[ T{ bit-set f ?{ f f f f t f } } ] [
+{ T{ bit-set f ?{ f f f f t f } } } [
     T{ bit-set f ?{ t f f f t f } }
     T{ bit-set f ?{ f f t f t f } } intersect
 ] unit-test
 
-[ f ] [ T{ bit-set f ?{ t f f f t f } } null? ] unit-test
-[ t ] [ T{ bit-set f ?{ f f f f f f } } null? ] unit-test
+{ f } [ T{ bit-set f ?{ t f f f t f } } null? ] unit-test
+{ t } [ T{ bit-set f ?{ f f f f f f } } null? ] unit-test
 
-[ T{ bit-set f ?{ t f t f f f } } ] [
+{ T{ bit-set f ?{ t f t f f f } } } [
     T{ bit-set f ?{ t t t f f f } }
     T{ bit-set f ?{ f t f f t t } } diff
 ] unit-test
 
-[ f ] [
+{ f } [
     T{ bit-set f ?{ t t t f f f } }
     T{ bit-set f ?{ f t f f t t } } subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     T{ bit-set f ?{ t t t f f f } }
     T{ bit-set f ?{ f t f f f f } } subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     { 0 1 2 }
     T{ bit-set f ?{ f t f f f f } } subset?
 ] unit-test
 
-[ f ] [
+{ f } [
     T{ bit-set f ?{ f t f f f f } }
     T{ bit-set f ?{ t t t f f f } } subset?
 ] unit-test
 
-[ f ] [
+{ f } [
     { 1 }
     T{ bit-set f ?{ t t t f f f } } subset?
 ] unit-test
 
-[ V{ 0 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } members ] unit-test
+{ V{ 0 2 5 } } [ T{ bit-set f ?{ t f t f f t } } members ] unit-test
 
-[ t V{ 1 2 3 } ] [
+{ t V{ 1 2 3 } } [
     { 1 2 } 5 <bit-set> set-like
     [ bit-set? ] keep
     3 over adjoin
     members
 ] unit-test
 
-[ V{ 0 1 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } clone [ 1 swap adjoin ] keep members ] unit-test
+{ V{ 0 1 2 5 } } [ T{ bit-set f ?{ t f t f f t } } clone [ 1 swap adjoin ] keep members ] unit-test
 [ T{ bit-set f ?{ t f t f f t } } clone [ 9 swap adjoin ] keep members ] must-fail
 [ T{ bit-set f ?{ t f t f f t } } clone [ "foo" swap adjoin ] keep members ] must-fail
 
-[ V{ 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } clone [ 0 swap delete ] keep members ] unit-test
-[ V{ 0 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } clone [ 1 swap delete ] keep members ] unit-test
-[ V{ 0 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } clone [ 9 swap delete ] keep members ] unit-test
-[ V{ 0 2 5 } ] [ T{ bit-set f ?{ t f t f f t } } clone [ "foo" swap delete ] keep members ] unit-test
+{ V{ 2 5 } } [ T{ bit-set f ?{ t f t f f t } } clone [ 0 swap delete ] keep members ] unit-test
+{ V{ 0 2 5 } } [ T{ bit-set f ?{ t f t f f t } } clone [ 1 swap delete ] keep members ] unit-test
+{ V{ 0 2 5 } } [ T{ bit-set f ?{ t f t f f t } } clone [ 9 swap delete ] keep members ] unit-test
+{ V{ 0 2 5 } } [ T{ bit-set f ?{ t f t f f t } } clone [ "foo" swap delete ] keep members ] unit-test
 
-[ T{ bit-set f ?{ f } } T{ bit-set f ?{ t } } ]
+{ T{ bit-set f ?{ f } } T{ bit-set f ?{ t } } }
 [ 1 <bit-set> dup clone 0 over adjoin ] unit-test
 
-[ 0 ] [ T{ bit-set f ?{ } } cardinality ] unit-test
-[ 0 ] [ T{ bit-set f ?{ f f f f } } cardinality ] unit-test
-[ 1 ] [ T{ bit-set f ?{ f t f f } } cardinality ] unit-test
-[ 2 ] [ T{ bit-set f ?{ f t f t } } cardinality ] unit-test
+{ 0 } [ T{ bit-set f ?{ } } cardinality ] unit-test
+{ 0 } [ T{ bit-set f ?{ f f f f } } cardinality ] unit-test
+{ 1 } [ T{ bit-set f ?{ f t f f } } cardinality ] unit-test
+{ 2 } [ T{ bit-set f ?{ f t f t } } cardinality ] unit-test
index abfbe300b3530236356035851cb8f1e7ca2b4b5f..9b72f605afb1893bab57405cbb2399975d2ce47f 100644 (file)
@@ -1,14 +1,14 @@
 USING: tools.test bit-vectors vectors sequences kernel math ;
 IN: bit-vectors.tests
 
-[ 0 ] [ 123 <bit-vector> length ] unit-test
+{ 0 } [ 123 <bit-vector> length ] unit-test
 
 : do-it ( seq -- )
     1234 swap [ [ even? ] dip push ] curry each-integer ;
 
-[ t ] [
+{ t } [
     3 <bit-vector> dup do-it
     3 <vector> dup do-it sequence=
 ] unit-test
 
-[ t ] [ ?V{ } bit-vector? ] unit-test
+{ t } [ ?V{ } bit-vector? ] unit-test
index 19961825de9261d0d5d2c54626911360b8847c32..9f1f471911dad3d96cd43de09498dd86cbc64418 100644 (file)
@@ -5,42 +5,42 @@ grouping compression.lzw multiline byte-arrays io.encodings.binary
 io.streams.byte-array ;
 IN: bitstreams.tests
 
-[ 0b1111111111 ]
+{ 0b1111111111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
     10 swap peek
 ] unit-test
 
-[ 0b111111111 ]
+{ 0b111111111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
     9 swap peek
 ] unit-test
 
-[ 0b11111111 ]
+{ 0b11111111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
     8 swap peek
 ] unit-test
 
-[ 0b1111111 ]
+{ 0b1111111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
     7 swap peek
 ] unit-test
 
-[ 0b111111 ]
+{ 0b111111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
     6 swap peek
 ] unit-test
 
-[ 0b11111 ]
+{ 0b11111 }
 [
     B{ 0x0f 0xff 0xff 0xff } <msb0-bit-reader>
     2 >>byte-pos 6 >>bit-pos
@@ -51,4 +51,4 @@ IN: bitstreams.tests
 [ B{ } <msb0-bit-reader> 1 swap peek ] must-fail
 [ B{ } <msb0-bit-reader> 8 swap peek ] must-fail
 
-[ 0 ] [ B{ } <msb0-bit-reader> 0 swap peek ] unit-test
+{ 0 } [ B{ } <msb0-bit-reader> 0 swap peek ] unit-test
index c5c6460041ecdf495180307b9745b4758fcf317e..0c2bfb87336bd0e307e828048ffc89f1c655e4e6 100644 (file)
@@ -2,18 +2,18 @@ USING: bootstrap.image bootstrap.image.private tools.test
 kernel math ;
 IN: bootstrap.image.tests
 
-[ f ] [ { 1 2 3 } [ 1 2 3 ] eql? ] unit-test
+{ f } [ { 1 2 3 } [ 1 2 3 ] eql? ] unit-test
 
-[ t ] [ [ 1 2 3 ] [ 1 2 3 ] eql? ] unit-test
+{ t } [ [ 1 2 3 ] [ 1 2 3 ] eql? ] unit-test
 
-[ f ] [ [ 2drop 0 ] [ 2drop 0.0 ] eql? ] unit-test
+{ f } [ [ 2drop 0 ] [ 2drop 0.0 ] eql? ] unit-test
 
-[ t ] [ [ 2drop 0 ] [ 2drop 0 ] eql? ] unit-test
+{ t } [ [ 2drop 0 ] [ 2drop 0 ] eql? ] unit-test
 
-[ f ] [ \ + [ 2drop 0 ] eql? ] unit-test
+{ f } [ \ + [ 2drop 0 ] eql? ] unit-test
 
-[ f ] [ 3 [ 0 1 2 ] eql? ] unit-test
+{ f } [ 3 [ 0 1 2 ] eql? ] unit-test
 
-[ f ] [ 3 3.0 eql? ] unit-test
+{ f } [ 3 3.0 eql? ] unit-test
 
-[ t ] [ 4.0 4.0 eql? ] unit-test
+{ t } [ 4.0 4.0 eql? ] unit-test
index a89c3f172ef6b859bfe926a0e7d584a64b7923c3..cf3505bd78710ac857bae5cbfd8da39b9bd98754 100644 (file)
@@ -1,24 +1,24 @@
 USING: boxes namespaces tools.test accessors ;
 IN: boxes.tests
 
-[ ] [ <box> "b" set ] unit-test
+{ } [ <box> "b" set ] unit-test
 
-[ ] [ 3 "b" get >box ] unit-test
+{ } [ 3 "b" get >box ] unit-test
 
-[ t ] [ "b" get occupied>> ] unit-test
+{ t } [ "b" get occupied>> ] unit-test
 
 [ 4 "b" >box ] must-fail
 
-[ 3 ] [ "b" get box> ] unit-test
+{ 3 } [ "b" get box> ] unit-test
 
-[ f ] [ "b" get occupied>> ] unit-test
+{ f } [ "b" get occupied>> ] unit-test
 
 [ "b" get box> ] must-fail
 
-[ f f ] [ "b" get ?box ] unit-test
+{ f f } [ "b" get ?box ] unit-test
 
-[ ] [ 12 "b" get >box ] unit-test
+{ } [ 12 "b" get >box ] unit-test
 
-[ 12 t ] [ "b" get ?box ] unit-test
+{ 12 t } [ "b" get ?box ] unit-test
 
-[ f ] [ "b" get occupied>> ] unit-test
+{ f } [ "b" get occupied>> ] unit-test
index 25f15405e960fe332245fa209c485dbf382e1692..814bae4be7f9516f2aebadd3099faae8ff726621 100644 (file)
@@ -3,8 +3,8 @@
 USING: tools.test byte-arrays.hex eval ;
 IN: byte-arrays.hex.tests
 
-[ B{ 16 0 8 0 } ] [ HEX{ 10 00 08 00 } ] unit-test
-[ B{ 255 255 15 255 255 255 } ] [ HEX{ ffff 0fff ffff } ] unit-test
+{ B{ 16 0 8 0 } } [ HEX{ 10 00 08 00 } ] unit-test
+{ B{ 255 255 15 255 255 255 } } [ HEX{ ffff 0fff ffff } ] unit-test
 
 [ "HEX{ ffff fff ffff }" parse-string ] must-fail
 [ "HEX{ 10 00 08 0 }" parse-string ] must-fail
index 241d1f5377b625c05501d1bb55b2f3fb1d0d5b8f..fd932a8292971c4f9be4b7fcc48fe2f120f6499b 100755 (executable)
@@ -9,42 +9,42 @@ TUPLE: mock-disposable < disposable n ;
 
 M: mock-disposable dispose* drop ;
 
-[ ] [ <cache-assoc> "cache" set ] unit-test
+{ } [ <cache-assoc> "cache" set ] unit-test
 
-[ 0 ] [ "cache" get assoc-size ] unit-test
+{ 0 } [ "cache" get assoc-size ] unit-test
 
-[ ] [ "cache" get 2 >>max-age drop ] unit-test
+{ } [ "cache" get 2 >>max-age drop ] unit-test
 
-[ ] [ 1 <mock-disposable> dup "a" set 2 "cache" get set-at ] unit-test
+{ } [ 1 <mock-disposable> dup "a" set 2 "cache" get set-at ] unit-test
 
-[ 1 ] [ "cache" get assoc-size ] unit-test
+{ 1 } [ "cache" get assoc-size ] unit-test
 
-[ ] [ "cache" get purge-cache ] unit-test
+{ } [ "cache" get purge-cache ] unit-test
 
-[ ] [ 2 <mock-disposable> 3 "cache" get set-at ] unit-test
+{ } [ 2 <mock-disposable> 3 "cache" get set-at ] unit-test
 
-[ 2 ] [ "cache" get assoc-size ] unit-test
+{ 2 } [ "cache" get assoc-size ] unit-test
 
-[ ] [ "cache" get purge-cache ] unit-test
+{ } [ "cache" get purge-cache ] unit-test
 
-[ 1 ] [ "cache" get assoc-size ] unit-test
+{ 1 } [ "cache" get assoc-size ] unit-test
 
-[ ] [ 3 <mock-disposable> dup "b" set 4 "cache" get set-at ] unit-test
+{ } [ 3 <mock-disposable> dup "b" set 4 "cache" get set-at ] unit-test
 
-[ 2 ] [ "cache" get assoc-size ] unit-test
+{ 2 } [ "cache" get assoc-size ] unit-test
 
-[ ] [ "cache" get purge-cache ] unit-test
+{ } [ "cache" get purge-cache ] unit-test
 
-[ 1 ] [ "cache" get assoc-size ] unit-test
+{ 1 } [ "cache" get assoc-size ] unit-test
 
-[ f ] [ 2 "cache" get key? ] unit-test
+{ f } [ 2 "cache" get key? ] unit-test
 
-[ 3 ] [ 4 "cache" get at n>> ] unit-test
+{ 3 } [ 4 "cache" get at n>> ] unit-test
 
-[ t ] [ "a" get disposed>> ] unit-test
+{ t } [ "a" get disposed>> ] unit-test
 
-[ f ] [ "b" get disposed>> ] unit-test
+{ f } [ "b" get disposed>> ] unit-test
 
-[ ] [ "cache" get clear-assoc ] unit-test
+{ } [ "cache" get clear-assoc ] unit-test
 
-[ t ] [ "b" get disposed>> ] unit-test
+{ t } [ "b" get disposed>> ] unit-test
index cb19259984e0a0d9ec9ab25217c94a7422e38c6a..66307e65c3900eb7a59ea800001d7a60f3412589 100644 (file)
@@ -1,7 +1,7 @@
 USING: cairo tools.test math.rectangles accessors ;
 IN: cairo.tests
 
-[ { 10 20 } ] [
+{ { 10 20 } } [
     { 10 20 } [
         { 0 1 } { 3 4 } <rect> fill-rect
     ] make-bitmap-image dim>>
index a79183b30978b590bc89186f985ee0eae99a160f..e1cc2bcdb73ed09bdd1513e8708dcbc731f063b7 100644 (file)
@@ -3,188 +3,188 @@ continuations system math.order threads accessors
 random ;
 IN: calendar.tests
 
-[ f ] [ 2004 12 32 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004  2 30 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2003  2 29 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004 -2  9 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004 12  0 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004 12  1 24  0  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004 12  1 23 60  0 instant <timestamp> valid-timestamp? ] unit-test
-[ f ] [ 2004 12  1 23 59 60 instant <timestamp> valid-timestamp? ] unit-test
-[ t ] [ now valid-timestamp? ] unit-test
-
-[ f ] [ 1900 leap-year? ] unit-test
-[ t ] [ 1904 leap-year? ] unit-test
-[ t ] [ 2000 leap-year? ] unit-test
-[ f ] [ 2001 leap-year? ] unit-test
-[ f ] [ 2006 leap-year? ] unit-test
-
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 1 seconds time+
+{ f } [ 2004 12 32 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004  2 30 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2003  2 29 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004 -2  9 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004 12  0 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004 12  1 24  0  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004 12  1 23 60  0 instant <timestamp> valid-timestamp? ] unit-test
+{ f } [ 2004 12  1 23 59 60 instant <timestamp> valid-timestamp? ] unit-test
+{ t } [ now valid-timestamp? ] unit-test
+
+{ f } [ 1900 leap-year? ] unit-test
+{ t } [ 1904 leap-year? ] unit-test
+{ t } [ 2000 leap-year? ] unit-test
+{ f } [ 2001 leap-year? ] unit-test
+{ f } [ 2006 leap-year? ] unit-test
+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 1 seconds time+
         2006 10 10 0 0 1 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 100 seconds time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 100 seconds time+
         2006 10 10 0 1 40 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> -100 seconds time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> -100 seconds time+
         2006 10 9 23 58 20 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 86400 seconds time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 86400 seconds time+
         2006 10 11 0 0 0 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 10 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 10 minutes time+
         2006 10 10 0 10 0 instant <timestamp> = ] unit-test
-[ +eq+ ] [ 2006 10 10 0 0 0 instant <timestamp> 10.5 minutes time+
+{ +eq+ } [ 2006 10 10 0 0 0 instant <timestamp> 10.5 minutes time+
         2006 10 10 0 10 30 instant <timestamp> <=> ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 3/4 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 3/4 minutes time+
         2006 10 10 0 0 45 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> -3/4 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> -3/4 minutes time+
         2006 10 9 23 59 15 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> 7200 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> 7200 minutes time+
         2006 10 15 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> -10 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> -10 minutes time+
         2006 10 9 23 50 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 10 10 0 0 0 instant <timestamp> -100 minutes time+
+{ t } [ 2006 10 10 0 0 0 instant <timestamp> -100 minutes time+
         2006 10 9 22 20 0 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 1 hours time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 1 hours time+
         2006 1 1 1 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 24 hours time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 24 hours time+
         2006 1 2 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -24 hours time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -24 hours time+
         2005 12 31 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 12 hours time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 12 hours time+
         2006 1 1 12 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 72 hours time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 72 hours time+
         2006 1 4 0 0 0 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 1 days time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 1 days time+
         2006 1 2 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -1 days time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -1 days time+
         2005 12 31 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 365 days time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 365 days time+
         2007 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -365 days time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -365 days time+
         2005 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 1 1 0 0 0 instant <timestamp> 365 days time+
+{ t } [ 2004 1 1 0 0 0 instant <timestamp> 365 days time+
         2004 12 31 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 1 1 0 0 0 instant <timestamp> 366 days time+
+{ t } [ 2004 1 1 0 0 0 instant <timestamp> 366 days time+
         2005 1 1 0 0 0 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 11 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 11 months time+
         2006 12 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 12 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 12 months time+
         2007 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 24 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 24 months time+
         2008 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 13 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 13 months time+
         2007 2 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 1 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 1 months time+
         2006 2 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 0 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 0 months time+
         2006 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -1 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -1 months time+
         2005 12 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -2 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -2 months time+
         2005 11 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -13 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -13 months time+
         2004 12 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -24 months time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -24 months time+
         2004 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 2 29 0 0 0 instant <timestamp> 12 months time+
+{ t } [ 2004 2 29 0 0 0 instant <timestamp> 12 months time+
         2005 3 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 2 29 0 0 0 instant <timestamp> -12 months time+
+{ t } [ 2004 2 29 0 0 0 instant <timestamp> -12 months time+
         2003 3 1 0 0 0 instant <timestamp> = ] unit-test
 
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 0 years time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 0 years time+
         2006 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> 1 years time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> 1 years time+
         2007 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -1 years time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -1 years time+
         2005 1 1 0 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2006 1 1 0 0 0 instant <timestamp> -100 years time+
+{ t } [ 2006 1 1 0 0 0 instant <timestamp> -100 years time+
         1906 1 1 0 0 0 instant <timestamp> = ] unit-test
 ! [ t ] [ 2004 2 29 0 0 0 instant <timestamp> -1 years time+
 !         2003 2 28 0 0 0 instant <timestamp> = ] unit-test
 
-[ 5 ] [ 2006 7 14 0 0 0 instant <timestamp> day-of-week ] unit-test
+{ 5 } [ 2006 7 14 0 0 0 instant <timestamp> day-of-week ] unit-test
 
-[ t ] [ 2006 7 14 [ julian-day-number julian-day-number>date 0 0 0 instant <timestamp> ] 3keep 0 0 0 instant <timestamp> = ] unit-test
+{ t } [ 2006 7 14 [ julian-day-number julian-day-number>date 0 0 0 instant <timestamp> ] 3keep 0 0 0 instant <timestamp> = ] unit-test
 
-[ 1 ] [ 2006 1 1 0 0 0 instant <timestamp> day-of-year ] unit-test
-[ 60 ] [ 2004 2 29 0 0 0 instant <timestamp> day-of-year ] unit-test
-[ 61 ] [ 2004 3 1 0 0 0 instant <timestamp> day-of-year ] unit-test
-[ 366 ] [ 2004 12 31 0 0 0 instant <timestamp> day-of-year ] unit-test
-[ 365 ] [ 2003 12 31 0 0 0 instant <timestamp> day-of-year ] unit-test
-[ 60 ] [ 2003 3 1 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 1 } [ 2006 1 1 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 60 } [ 2004 2 29 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 61 } [ 2004 3 1 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 366 } [ 2004 12 31 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 365 } [ 2003 12 31 0 0 0 instant <timestamp> day-of-year ] unit-test
+{ 60 } [ 2003 3 1 0 0 0 instant <timestamp> day-of-year ] unit-test
 
-[ t ] [ 2004 12 31 0 0 0 instant <timestamp> dup = ] unit-test
-[ t ] [ 2004 1 1 0 0 0 instant <timestamp> 10 seconds 5 years time+ time+
+{ t } [ 2004 12 31 0 0 0 instant <timestamp> dup = ] unit-test
+{ t } [ 2004 1 1 0 0 0 instant <timestamp> 10 seconds 5 years time+ time+
         2009 1 1 0 0 10 instant <timestamp> = ] unit-test
-[ t ] [ 2004 1 1 0 0 0 instant <timestamp> -10 seconds -5 years time+ time+
+{ t } [ 2004 1 1 0 0 0 instant <timestamp> -10 seconds -5 years time+ time+
         1998 12 31 23 59 50 instant <timestamp> = ] unit-test
 
-[ t ] [ 2004 1 1 23 0 0 12 hours <timestamp> >gmt
+{ t } [ 2004 1 1 23 0 0 12 hours <timestamp> >gmt
         2004 1 1 11 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 1 1 5 0 0 -11 hours <timestamp> >gmt
+{ t } [ 2004 1 1 5 0 0 -11 hours <timestamp> >gmt
         2004 1 1 16 0 0 instant <timestamp> = ] unit-test
-[ t ] [ 2004 1 1 23 0 0 9+1/2 hours <timestamp> >gmt
+{ t } [ 2004 1 1 23 0 0 9+1/2 hours <timestamp> >gmt
         2004 1 1 13 30 0 instant <timestamp> = ] unit-test
 
-[ +eq+ ] [ 2004 1 1 13 30 0 instant <timestamp>
+{ +eq+ } [ 2004 1 1 13 30 0 instant <timestamp>
         2004 1 1 12 30 0 -1 hours <timestamp> <=> ] unit-test
 
-[ +gt+ ] [ 2004 1 1 13 30 0 instant <timestamp>
+{ +gt+ } [ 2004 1 1 13 30 0 instant <timestamp>
         2004 1 1 12 30 0 instant <timestamp> <=> ] unit-test
 
-[ +lt+ ] [ 2004 1 1 12 30 0 instant <timestamp>
+{ +lt+ } [ 2004 1 1 12 30 0 instant <timestamp>
         2004 1 1 13 30 0 instant <timestamp> <=> ] unit-test
 
-[ +gt+ ] [ 2005 1 1 12 30 0 instant <timestamp>
+{ +gt+ } [ 2005 1 1 12 30 0 instant <timestamp>
         2004 1 1 13 30 0 instant <timestamp> <=> ] unit-test
 
-[ t ] [ 0 micros>timestamp unix-1970 = ] unit-test
-[ t ] [ 123456789000000 [ micros>timestamp timestamp>micros ] keep = ] unit-test
-[ t ] [ 123456789123456000 [ micros>timestamp timestamp>micros ] keep = ] unit-test
+{ t } [ 0 micros>timestamp unix-1970 = ] unit-test
+{ t } [ 123456789000000 [ micros>timestamp timestamp>micros ] keep = ] unit-test
+{ t } [ 123456789123456000 [ micros>timestamp timestamp>micros ] keep = ] unit-test
 
 : checktime+ ( duration -- ? ) now dup clone [ rot time+ drop ] keep = ;
 
-[ t ] [ 5 seconds checktime+ ] unit-test
+{ t } [ 5 seconds checktime+ ] unit-test
 
-[ t ] [ 5 minutes checktime+ ] unit-test
+{ t } [ 5 minutes checktime+ ] unit-test
 
-[ t ] [ 5 hours checktime+ ] unit-test
+{ t } [ 5 hours checktime+ ] unit-test
 
-[ t ] [ 5 days checktime+ ] unit-test
+{ t } [ 5 days checktime+ ] unit-test
 
-[ t ] [ 5 weeks checktime+ ] unit-test
+{ t } [ 5 weeks checktime+ ] unit-test
 
-[ t ] [ 5 months checktime+ ] unit-test
+{ t } [ 5 months checktime+ ] unit-test
 
-[ t ] [ 5 years checktime+ ] unit-test
+{ t } [ 5 years checktime+ ] unit-test
 
-[ t ] [ now 50 milliseconds sleep now before? ] unit-test
-[ t ] [ now 50 milliseconds sleep now swap after? ] unit-test
-[ t ] [ now 50 milliseconds sleep now 50 milliseconds sleep now swapd between? ] unit-test
+{ t } [ now 50 milliseconds sleep now before? ] unit-test
+{ t } [ now 50 milliseconds sleep now swap after? ] unit-test
+{ t } [ now 50 milliseconds sleep now 50 milliseconds sleep now swapd between? ] unit-test
 
-[ 4 12 ] [ 2009 easter [ month>> ] [ day>> ] bi ] unit-test
-[ 4 2 ] [ 1961 easter [ month>> ] [ day>> ] bi ] unit-test
+{ 4 12 } [ 2009 easter [ month>> ] [ day>> ] bi ] unit-test
+{ 4 2 } [ 1961 easter [ month>> ] [ day>> ] bi ] unit-test
 
-[ f ] [ now dup midnight eq? ] unit-test
-[ f ] [ now dup easter eq? ] unit-test
-[ f ] [ now dup beginning-of-year eq? ] unit-test
+{ f } [ now dup midnight eq? ] unit-test
+{ f } [ now dup easter eq? ] unit-test
+{ f } [ now dup beginning-of-year eq? ] unit-test
 
-[ t ] [ 1325376000 unix-time>timestamp 2012 <year-gmt> = ] unit-test
-[ t ] [ 1356998399 unix-time>timestamp 2013 <year-gmt> 1 seconds time- = ] unit-test
+{ t } [ 1325376000 unix-time>timestamp 2012 <year-gmt> = ] unit-test
+{ t } [ 1356998399 unix-time>timestamp 2013 <year-gmt> 1 seconds time- = ] unit-test
 
-[ t ] [ 1500000000 random [ unix-time>timestamp timestamp>unix-time ] keep = ] unit-test
+{ t } [ 1500000000 random [ unix-time>timestamp timestamp>unix-time ] keep = ] unit-test
 
-[ t ] [
+{ t } [
     2009 1 29 <date> 1 months time+
     2009 3 1 <date> =
 ] unit-test
 
-[ t ] [
+{ t } [
     2008 1 29 <date> 1 months time+
     2008 2 29 <date> =
 ] unit-test
 
-[ 0 ]
+{ 0 }
 [ gmt gmt-offset>> duration>seconds ] unit-test
index b1598df2fe12eb780984d379647ef8408c7ebf5d..64f030e84ff55fb53d630ce7d28fd05cb4cb2a53 100644 (file)
@@ -2,61 +2,61 @@ USING: calendar.format calendar kernel math tools.test
 io.streams.string accessors io math.order sequences ;
 IN: calendar.format.tests
 
-[ 0 ] [
+{ 0 } [
     "Z" [ read1 read-rfc3339-gmt-offset ] with-string-reader duration>hours
 ] unit-test
 
-[ 1 ] [
+{ 1 } [
     "+01" [ read1 read-rfc3339-gmt-offset ] with-string-reader duration>hours
 ] unit-test
 
-[ -1 ] [
+{ -1 } [
     "-01" [ read1 read-rfc3339-gmt-offset ] with-string-reader duration>hours
 ] unit-test
 
-[ -1-1/2 ] [
+{ -1-1/2 } [
     "-01:30" [ read1 read-rfc3339-gmt-offset ] with-string-reader duration>hours
 ] unit-test
 
-[ 1+1/2 ] [
+{ 1+1/2 } [
     "+01:30" [ read1 read-rfc3339-gmt-offset ] with-string-reader duration>hours
 ] unit-test
 
-[ ] [ now timestamp>rfc3339 drop ] unit-test
-[ ] [ now timestamp>rfc822 drop ] unit-test
+{ } [ now timestamp>rfc3339 drop ] unit-test
+{ } [ now timestamp>rfc822 drop ] unit-test
 
-[ 8/1000 -4 ] [
+{ 8/1000 -4 } [
     "2008-04-19T04:56:00.008-04:00" rfc3339>timestamp
     [ second>> ] [ gmt-offset>> hour>> ] bi
 ] unit-test
 
-[ T{ duration f 0 0 0 0 0 0 } ] [
+{ T{ duration f 0 0 0 0 0 0 } } [
     "GMT" parse-rfc822-gmt-offset
 ] unit-test
 
-[ T{ duration f 0 0 0 -5 0 0 } ] [
+{ T{ duration f 0 0 0 -5 0 0 } } [
     "-0500" parse-rfc822-gmt-offset
 ] unit-test
 
-[ T{ timestamp f 2008 4 22 14 36 12 T{ duration f 0 0 0 0 0 0 } } ] [
+{ T{ timestamp f 2008 4 22 14 36 12 T{ duration f 0 0 0 0 0 0 } } } [
     "Tue, 22 Apr 2008 14:36:12 GMT" rfc822>timestamp
 ] unit-test
 
-[ t ] [ now dup timestamp>rfc822 rfc822>timestamp time- 1 seconds before? ] unit-test
+{ t } [ now dup timestamp>rfc822 rfc822>timestamp time- 1 seconds before? ] unit-test
 
-[ t ] [ now dup timestamp>cookie-string cookie-string>timestamp time- 1 seconds before? ] unit-test
+{ t } [ now dup timestamp>cookie-string cookie-string>timestamp time- 1 seconds before? ] unit-test
 
-[ "Sun, 4 May 2008 07:00:00" ] [
+{ "Sun, 4 May 2008 07:00:00" } [
     "Sun May 04 07:00:00 2008 GMT" cookie-string>timestamp
     timestamp>string
 ] unit-test
 
-[ "20080504070000" ] [
+{ "20080504070000" } [
     "Sun May 04 07:00:00 2008 GMT" cookie-string>timestamp
     timestamp>mdtm
 ] unit-test
 
-[
+{
     T{ timestamp f
         2008
         5
@@ -66,9 +66,9 @@ IN: calendar.format.tests
         42+2469/20000
         T{ duration f 0 0 0 -5 0 0 }
     }
-] [ "2008-05-26T00:37:42.12345-05:00" rfc3339>timestamp ] unit-test
+} [ "2008-05-26T00:37:42.12345-05:00" rfc3339>timestamp ] unit-test
 
-[
+{
     T{ timestamp
         { year 2008 }
         { month 10 }
@@ -78,13 +78,13 @@ IN: calendar.format.tests
         { second 59 }
         { gmt-offset T{ duration f 0 0 0 0 0 0 } }
     }
-] [ "Thursday, 02-Oct-2008 23:59:59 GMT" cookie-string>timestamp ] unit-test
+} [ "Thursday, 02-Oct-2008 23:59:59 GMT" cookie-string>timestamp ] unit-test
 
 
-[ ]
+{ }
 [ { 2008 2009 } [ year. ] each ] unit-test
 
-[
+{
     T{ timestamp
         { year 2013 }
         { month 4 }
@@ -93,11 +93,11 @@ IN: calendar.format.tests
         { minute 50 }
         { second 24 }
     }
-] [ "2013-04-23T13:50:24" rfc3339>timestamp ] unit-test
+} [ "2013-04-23T13:50:24" rfc3339>timestamp ] unit-test
 
 { "2001-12-14T21:59:43.100000-05:00" } [ "2001-12-14T21:59:43.1-05:00" rfc3339>timestamp timestamp>rfc3339 ] unit-test
 
-[
+{
     T{ timestamp
         { year 2001 }
         { month 12 }
@@ -106,9 +106,9 @@ IN: calendar.format.tests
         { minute 59 }
         { second 43+1/10 }
     }
-] [ "2001-12-15 02:59:43.1Z" rfc3339>timestamp ] unit-test
+} [ "2001-12-15 02:59:43.1Z" rfc3339>timestamp ] unit-test
 
-[
+{
     T{ timestamp
         { year 2001 }
         { month 12 }
@@ -117,4 +117,4 @@ IN: calendar.format.tests
         { minute 59 }
         { second 43+1/10 }
     }
-] [ "2001-12-15        02:59:43.1Z" rfc3339>timestamp ] unit-test
+} [ "2001-12-15        02:59:43.1Z" rfc3339>timestamp ] unit-test
index 4ba2872b43fb9034f62a902bf7660e33a47b489c..5c95129cfcf5b89428ecc906638ca979346c177c 100644 (file)
@@ -1,9 +1,9 @@
 USING: tools.test kernel accessors ;
 IN: calendar.format.macros
 
-[ 2 ] [ { [ 2 ] } attempt-all-quots ] unit-test
+{ 2 } [ { [ 2 ] } attempt-all-quots ] unit-test
 
-[ 2 ] [ { [ 1 throw ] [ 2 ] } attempt-all-quots ] unit-test
+{ 2 } [ { [ 1 throw ] [ 2 ] } attempt-all-quots ] unit-test
 
 [ { [ 1 throw ] } attempt-all-quots ] [ 1 = ] must-fail-with
 
@@ -12,4 +12,4 @@ IN: calendar.format.macros
 
 \ compiled-test-1 def>> must-infer
 
-[ 2 ] [ compiled-test-1 ] unit-test
+{ 2 } [ compiled-test-1 ] unit-test
index ccee74baae80cb2afcc858ad99db02e20a61e328..f72a302d80e0d4facc2eaa5c589c8963199e4776 100644 (file)
@@ -1,5 +1,5 @@
 USING: checksums.adler-32 checksums strings tools.test ;
 IN: checksums.adler-32.tests
 
-[ 300286872 ] [ "Wikipedia" adler-32 checksum-bytes ] unit-test
-[ 2679885283 ] [ 10000 CHAR: a <string> adler-32 checksum-bytes ] unit-test
+{ 300286872 } [ "Wikipedia" adler-32 checksum-bytes ] unit-test
+{ 2679885283 } [ 10000 CHAR: a <string> adler-32 checksum-bytes ] unit-test
index 27c3027769ac0b252e0629a15642866b09938afe..b54a28960996ee22f742df699a69ebf72a9c0532 100644 (file)
@@ -3,39 +3,39 @@ IN: checksums.fnv1.tests
 
 ! A few test vectors taken from http://www.isthe.com/chongo/src/fnv/test_fnv.c
 
-[ 0x811c9dc5 ] [ "" fnv1-32 checksum-bytes ] unit-test
-[ 0x811c9dc5 ] [ "" fnv1a-32 checksum-bytes ] unit-test
-[ 0xcbf29ce484222325 ] [ "" fnv1-64 checksum-bytes ] unit-test
-[ 0xcbf29ce484222325 ] [ "" fnv1a-64 checksum-bytes ] unit-test
+{ 0x811c9dc5 } [ "" fnv1-32 checksum-bytes ] unit-test
+{ 0x811c9dc5 } [ "" fnv1a-32 checksum-bytes ] unit-test
+{ 0xcbf29ce484222325 } [ "" fnv1-64 checksum-bytes ] unit-test
+{ 0xcbf29ce484222325 } [ "" fnv1a-64 checksum-bytes ] unit-test
 
-[ 0x050c5d7e ] [ "a" fnv1-32 checksum-bytes ] unit-test
-[ 0xe40c292c ] [ "a" fnv1a-32 checksum-bytes ] unit-test
-[ 0xaf63bd4c8601b7be ] [ "a" fnv1-64 checksum-bytes ] unit-test
-[ 0xaf63dc4c8601ec8c ] [ "a" fnv1a-64 checksum-bytes ] unit-test
+{ 0x050c5d7e } [ "a" fnv1-32 checksum-bytes ] unit-test
+{ 0xe40c292c } [ "a" fnv1a-32 checksum-bytes ] unit-test
+{ 0xaf63bd4c8601b7be } [ "a" fnv1-64 checksum-bytes ] unit-test
+{ 0xaf63dc4c8601ec8c } [ "a" fnv1a-64 checksum-bytes ] unit-test
 
-[ 0x050c5d7d ] [ "b" fnv1-32 checksum-bytes ] unit-test
-[ 0xe70c2de5 ] [ "b" fnv1a-32 checksum-bytes ] unit-test
-[ 0xaf63bd4c8601b7bd ] [ "b" fnv1-64 checksum-bytes ] unit-test
-[ 0xaf63df4c8601f1a5 ] [ "b" fnv1a-64 checksum-bytes ] unit-test
+{ 0x050c5d7d } [ "b" fnv1-32 checksum-bytes ] unit-test
+{ 0xe70c2de5 } [ "b" fnv1a-32 checksum-bytes ] unit-test
+{ 0xaf63bd4c8601b7bd } [ "b" fnv1-64 checksum-bytes ] unit-test
+{ 0xaf63df4c8601f1a5 } [ "b" fnv1a-64 checksum-bytes ] unit-test
 
-[ 0x31f0b262 ] [ "foobar" fnv1-32 checksum-bytes ] unit-test
-[ 0xbf9cf968 ] [ "foobar" fnv1a-32 checksum-bytes ] unit-test
-[ 0x340d8765a4dda9c2 ] [ "foobar" fnv1-64 checksum-bytes ] unit-test
-[ 0x85944171f73967e8 ] [ "foobar" fnv1a-64 checksum-bytes ] unit-test
+{ 0x31f0b262 } [ "foobar" fnv1-32 checksum-bytes ] unit-test
+{ 0xbf9cf968 } [ "foobar" fnv1a-32 checksum-bytes ] unit-test
+{ 0x340d8765a4dda9c2 } [ "foobar" fnv1-64 checksum-bytes ] unit-test
+{ 0x85944171f73967e8 } [ "foobar" fnv1a-64 checksum-bytes ] unit-test
 
 ! I couldn't find any test vectors for 128, 256, 512, or 1024 versions of FNV1 hashes.
 ! So, just to check that your maths works the same as my maths, here's a few samples computed on my laptop.
 ! So they may be right or wrong, but either way, them failing is cause for concern somewhere...
 
-[ 3897470310 ] [ "Hello, world!" fnv1-32 checksum-bytes ] unit-test
-[ 3985698964 ] [ "Hello, world!" fnv1a-32 checksum-bytes ] unit-test
-[ 7285062107457560934 ] [ "Hello, world!" fnv1-64 checksum-bytes ] unit-test
-[ 4094109891673226228 ] [ "Hello, world!" fnv1a-64 checksum-bytes ] unit-test
-[ 281580511747867177735318995358496831158 ] [ "Hello, world!" fnv1-128 checksum-bytes ] unit-test
-[ 303126633380056630368940439484674414572 ] [ "Hello, world!" fnv1a-128 checksum-bytes ] unit-test
-[ 104295939182568077644846978685759236849634734810631820736486253421270219742822 ] [ "Hello, world!" fnv1-256 checksum-bytes ] unit-test
-[ 9495445728692795332446740615588417456874414534608540692485745371050033741380 ] [ "Hello, world!" fnv1a-256 checksum-bytes ] unit-test
-[ 3577308325596719252093726711895047340166329831006673109476042102918876665433235513101496175651226507162015890004121912850661561110326527625579463564626958 ] [ "Hello, world!" fnv1-512 checksum-bytes ] unit-test
-[ 3577308325596719162840652138474318309664256091923081930027929425092517582111473988451078821416039944023089883981242376700859598441397004715365740906054208 ] [ "Hello, world!" fnv1a-512 checksum-bytes ] unit-test
-[ 52692754922840008511959888105094366091401994235075816792707658326855733053286986999719949898492311786648795846192078757217437117165934438286601534984230194601365788544275827382423366672856972872132009691615382991251544423521887009322211754219117294019951276080952271766377222613325328591830596794468813260226 ] [ "Hello, world!" fnv1-1024 checksum-bytes ] unit-test
-[ 52692754922840008511959888105094366091401994235075816792707658326855804920671100511873485674717442819607149127986090276849364757610838433887624184145636764448608707614141109841761957788887305179569455221243999538336208648824673027111352338809582124430199044921035232455717748500524777795242051756321605065326 ] [ "Hello, world!" fnv1a-1024 checksum-bytes ] unit-test
+{ 3897470310 } [ "Hello, world!" fnv1-32 checksum-bytes ] unit-test
+{ 3985698964 } [ "Hello, world!" fnv1a-32 checksum-bytes ] unit-test
+{ 7285062107457560934 } [ "Hello, world!" fnv1-64 checksum-bytes ] unit-test
+{ 4094109891673226228 } [ "Hello, world!" fnv1a-64 checksum-bytes ] unit-test
+{ 281580511747867177735318995358496831158 } [ "Hello, world!" fnv1-128 checksum-bytes ] unit-test
+{ 303126633380056630368940439484674414572 } [ "Hello, world!" fnv1a-128 checksum-bytes ] unit-test
+{ 104295939182568077644846978685759236849634734810631820736486253421270219742822 } [ "Hello, world!" fnv1-256 checksum-bytes ] unit-test
+{ 9495445728692795332446740615588417456874414534608540692485745371050033741380 } [ "Hello, world!" fnv1a-256 checksum-bytes ] unit-test
+{ 3577308325596719252093726711895047340166329831006673109476042102918876665433235513101496175651226507162015890004121912850661561110326527625579463564626958 } [ "Hello, world!" fnv1-512 checksum-bytes ] unit-test
+{ 3577308325596719162840652138474318309664256091923081930027929425092517582111473988451078821416039944023089883981242376700859598441397004715365740906054208 } [ "Hello, world!" fnv1a-512 checksum-bytes ] unit-test
+{ 52692754922840008511959888105094366091401994235075816792707658326855733053286986999719949898492311786648795846192078757217437117165934438286601534984230194601365788544275827382423366672856972872132009691615382991251544423521887009322211754219117294019951276080952271766377222613325328591830596794468813260226 } [ "Hello, world!" fnv1-1024 checksum-bytes ] unit-test
+{ 52692754922840008511959888105094366091401994235075816792707658326855804920671100511873485674717442819607149127986090276849364757610838433887624184145636764448608707614141109841761957788887305179569455221243999538336208648824673027111352338809582124430199044921035232455717748500524777795242051756321605065326 } [ "Hello, world!" fnv1a-1024 checksum-bytes ] unit-test
index 3054a91c8064fca8f8eed33e926c641355929737..088616c442c16532d20ef5e61955f9789a5f9ad8 100644 (file)
@@ -3,45 +3,45 @@ parser checksums.hmac tools.test checksums.md5 checksums.sha
 checksums ;
 IN: checksums.hmac.tests
 
-[
+{
     "\u000092\u000094rz68\u0000bb\u00001c\u000013\u0000f4\u00008e\u0000f8\u000015\u00008b\u0000fc\u00009d"
-] [
+} [
     "Hi There" 16 11 <string> md5 hmac-bytes >string ] unit-test
 
-[ "u\u00000cx>j\u0000b0\u0000b5\u000003\u0000ea\u0000a8n1\n]\u0000b78" ]
+{ "u\u00000cx>j\u0000b0\u0000b5\u000003\u0000ea\u0000a8n1\n]\u0000b78" }
 [ "what do ya want for nothing?" "Jefe" md5 hmac-bytes >string ] unit-test
 
-[
+{
     "V\u0000be4R\u00001d\u000014L\u000088\u0000db\u0000b8\u0000c73\u0000f0\u0000e8\u0000b3\u0000f6"
-]
+}
 [
     50 0xdd <repetition>
     16 0xaa <string> md5 hmac-bytes >string
 ] unit-test
 
-[
+{
     "g[\u00000b:\eM\u0000dfN\u000012Hr\u0000dal/c+\u0000fe\u0000d9W\u0000e9"
-] [
+} [
     "Hi There" 16 11 <string> sha1 hmac-bytes >string
 ] unit-test
 
-[
+{
     "\u0000ef\u0000fc\u0000dfj\u0000e5\u0000eb/\u0000a2\u0000d2t\u000016\u0000d5\u0000f1\u000084\u0000df\u00009c%\u00009a|y"
-] [
+} [
     "what do ya want for nothing?" "Jefe" sha1 hmac-bytes >string
 ] unit-test
 
-[
+{
     "\u0000d70YM\u000016~5\u0000d5\u000095o\u0000d8\0=\r\u0000b3\u0000d3\u0000f4m\u0000c7\u0000bb"
-] [
+} [
     50 0xdd <repetition>
     16 0xaa <string> sha1 hmac-bytes >string
 ] unit-test
 
-[ "b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7" ]
+{ "b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7" }
 [ "Hi There" 20 0xb <string> sha-256 hmac-bytes hex-string ] unit-test
 
-[ "167f928588c5cc2eef8e3093caa0e87c9ff566a14794aa61648d81621a2a40c6" ]
+{ "167f928588c5cc2eef8e3093caa0e87c9ff566a14794aa61648d81621a2a40c6" }
 [
     "what do ya want for nothing?"
     "JefeJefeJefeJefeJefeJefeJefeJefe" sha-256 hmac-bytes hex-string
index 0ae836760aa9fc4c7d1d7f37488ca3b4c045d061..7ca9ab029830ac0d18a10933a5a64ca81f477ca3 100644 (file)
@@ -3,13 +3,13 @@
 USING: tools.test checksums.interleave checksums.sha ;
 IN: checksums.interleave.tests
 
-[
+{
     B{
         59 155 253 205 75 163 94 115 208 42 227 92 181 19 60 232
         119 65 178 131 210 48 241 230 204 216 30 156 4 215 80 84 93
         206 44 1 18 128 150 153
     }
-] [
+} [
     B{
         102 83 241 12 26 250 181 76 97 200 37 117 168 74 254 48 216
         170 26 58 150 150 179 24 153 146 191 225 203 127 166 167
index e60703d5f90330eaa65d9bf0e5b9ddc0767d6bb0..fa7fe9b8763977062c3421eb3f62675e738e3d69 100644 (file)
@@ -5,10 +5,10 @@ USING: checksums checksums.internet tools.test ;
 
 IN: checksums
 
-[ B{ 255 255 } ] [ { } 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{ 251 253 } ] [ { 1 2 3 } internet checksum-bytes ] unit-test
+{ B{ 255 255 } } [ { } 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{ 251 253 } } [ { 1 2 3 } internet checksum-bytes ] unit-test
 
 : test-data ( -- bytes )
     B{
@@ -18,4 +18,4 @@ IN: checksums
         0xf6 0xf7
     } ;
 
-[ B{ 34 13 } ] [ test-data internet checksum-bytes ] unit-test
+{ B{ 34 13 } } [ test-data internet checksum-bytes ] unit-test
index 0540b5cb4596602be5ea6def4592f28520e39008..13d0e9cc8b45a72076b0c05002a41562e74e4c5e 100644 (file)
@@ -5,38 +5,38 @@ io.streams.byte-array kernel math namespaces tools.test
 sequences ;
 IN: checksums.md5.tests
 
-[ "d41d8cd98f00b204e9800998ecf8427e" ] [ "" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "0cc175b9c0f1b6a831c399e269772661" ] [ "a" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "900150983cd24fb0d6963f7d28e17f72" ] [ "abc" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "f96b697d7cb7938d525a2f31aaf161d0" ] [ "message digest" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "c3fcd3d76192e4007dfb496cca67e13b" ] [ "abcdefghijklmnopqrstuvwxyz" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "d174ab98d277d9f5a5611c2c9f419d9f" ] [ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" >byte-array md5 checksum-bytes hex-string ] unit-test
-[ "57edf4a22be3c955ac49da2e2107b67a" ] [ "12345678901234567890123456789012345678901234567890123456789012345678901234567890" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "d41d8cd98f00b204e9800998ecf8427e" } [ "" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "0cc175b9c0f1b6a831c399e269772661" } [ "a" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "900150983cd24fb0d6963f7d28e17f72" } [ "abc" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "f96b697d7cb7938d525a2f31aaf161d0" } [ "message digest" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "c3fcd3d76192e4007dfb496cca67e13b" } [ "abcdefghijklmnopqrstuvwxyz" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "d174ab98d277d9f5a5611c2c9f419d9f" } [ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" >byte-array md5 checksum-bytes hex-string ] unit-test
+{ "57edf4a22be3c955ac49da2e2107b67a" } [ "12345678901234567890123456789012345678901234567890123456789012345678901234567890" >byte-array md5 checksum-bytes hex-string ] unit-test
 
 
-[
+{
     t
-] [
+} [
     <md5-state> "asdf" add-checksum-bytes
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
 
-[
+{
     t
-] [
+} [
     <md5-state> "" add-checksum-bytes
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
 
-[
+{
     t
-] [
+} [
     <md5-state> "asdf" binary <byte-reader> add-checksum-stream
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
 
-[
+{
     t
-] [
+} [
     { "abcd" "efg" } md5 checksum-lines length 16 =
 ] unit-test
index 2a160e1486e0b3a96e649a44fb4675760b0d45d5..3fb223caecca609e366445bcca2237f2b11385ee 100644 (file)
@@ -2,17 +2,17 @@ USING: accessors byte-arrays checksums checksums.openssl
 combinators.short-circuit kernel system tools.test ;
 IN: checksums.openssl.tests
 
-[
+{
     B{ 201 238 222 100 92 200 182 188 138 255 129 163 115 88 240 136 }
-]
+}
 [
     "Hello world from the openssl binding" >byte-array
     "md5" <openssl-checksum> checksum-bytes
 ] unit-test
 
-[
+{
   B{ 63 113 237 255 181 5 152 241 136 181 43 95 160 105 44 87 49 82 115 0 }
-]
+}
 [
     "Hello world from the openssl binding" >byte-array
     "sha1" <openssl-checksum> checksum-bytes
@@ -25,4 +25,4 @@ IN: checksums.openssl.tests
 ] [ { [ unknown-digest? ] [ name>> "no such checksum" = ] } 1&& ]
 must-fail-with
 
-[ ] [ image openssl-sha1 checksum-file drop ] unit-test
+{ } [ image openssl-sha1 checksum-file drop ] unit-test
index 14a991c1175447b466c25562278220e8e2497909..0163513539340be9b5df11c6a1a048efc8bf37bd 100644 (file)
@@ -6,38 +6,38 @@ IN: checksums.sha.tests
 : test-checksum ( text identifier -- checksum )
     checksum-bytes hex-string ;
 
-[ "a9993e364706816aba3e25717850c26c9cd0d89d" ] [ "abc" sha1 checksum-bytes hex-string ] unit-test
-[ "84983e441c3bd26ebaae4aa1f95129e5e54670f1" ] [ "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" sha1 checksum-bytes hex-string ] unit-test
+{ "a9993e364706816aba3e25717850c26c9cd0d89d" } [ "abc" sha1 checksum-bytes hex-string ] unit-test
+{ "84983e441c3bd26ebaae4aa1f95129e5e54670f1" } [ "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" sha1 checksum-bytes hex-string ] unit-test
 ! [ "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ] [ 1000000 CHAR: a fill string>sha1str ] unit-test ! takes a long time...
-[ "dea356a2cddd90c7a7ecedc5ebb563934f460452" ] [ "0123456701234567012345670123456701234567012345670123456701234567"
+{ "dea356a2cddd90c7a7ecedc5ebb563934f460452" } [ "0123456701234567012345670123456701234567012345670123456701234567"
 10 swap <array> concat sha1 checksum-bytes hex-string ] unit-test
 
 
-[ "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525" ]
+{ "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525" }
 [
     "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
     sha-224 test-checksum
 ] unit-test
 
-[ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ]
+{ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }
 [ "" sha-256 test-checksum ] unit-test
 
-[ "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" ]
+{ "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" }
 [ "abc" sha-256 test-checksum ] unit-test
 
-[ "f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650" ]
+{ "f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650" }
 [ "message digest" sha-256 test-checksum ] unit-test
 
-[ "71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73" ]
+{ "71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73" }
 [ "abcdefghijklmnopqrstuvwxyz" sha-256 test-checksum ] unit-test
 
-[ "db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0" ]
+{ "db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0" }
 [
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
     sha-256 test-checksum
 ] unit-test
 
-[ "f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e" ]
+{ "f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e" }
 [
     "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
     sha-256 test-checksum
@@ -47,23 +47,23 @@ IN: checksums.sha.tests
 ! [ "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909" ]
 ! [ "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" sha-512 test-checksum ] unit-test
 
-[
+{
     t
-] [
+} [
     <sha1-state> "asdf" binary <byte-reader> add-checksum-stream
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
 
-[
+{
     t
-] [
+} [
     <sha-256-state> "asdf" binary <byte-reader> add-checksum-stream
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
 
-[
+{
     t
-] [
+} [
     <sha-224-state> "asdf" binary <byte-reader> add-checksum-stream
     [ get-checksum ] [ get-checksum ] bi =
 ] unit-test
index f91326f3e1ef40e39b39d5d26bcd3d700db4e6aa..a6c74d530e18863498f067b71201cf0241d4de97 100644 (file)
@@ -4,72 +4,72 @@ USING: arrays circular kernel math sequences sequences.private
 strings tools.test ;
 IN: circular.tests
 
-[ 0 ] [ { 0 1 2 3 4 } <circular> 0 swap virtual@ drop ] unit-test
-[ 2 ] [ { 0 1 2 3 4 } <circular> 2 swap virtual@ drop ] unit-test
+{ 0 } [ { 0 1 2 3 4 } <circular> 0 swap virtual@ drop ] unit-test
+{ 2 } [ { 0 1 2 3 4 } <circular> 2 swap virtual@ drop ] unit-test
 
-[ CHAR: t ] [ "test" <circular> 0 swap nth ] unit-test
-[ "test"  ] [ "test" <circular> >string ] unit-test
+{ CHAR: t } [ "test" <circular> 0 swap nth ] unit-test
+{ "test"  } [ "test" <circular> >string ] unit-test
 
-[ CHAR: e ] [ "test" <circular> 5 swap nth-unsafe ] unit-test
+{ CHAR: e } [ "test" <circular> 5 swap nth-unsafe ] unit-test
 
-[ [ 1 2 3 ] ] [ { 1 2 3 } <circular> [ ] like ] unit-test
-[ [ 2 3 1 ] ] [ { 1 2 3 } <circular> [ rotate-circular ] keep [ ] like ] unit-test
-[ [ 3 1 2 ] ] [ { 1 2 3 } <circular> [ rotate-circular ] keep [ rotate-circular ] keep [ ] like ] unit-test
-[ [ 2 3 1 ] ] [ { 1 2 3 } <circular> 1 over change-circular-start [ ] like ] unit-test
-[ [ 3 1 2 ] ] [ { 1 2 3 } <circular> 1 over change-circular-start 1 over change-circular-start [ ] like ] unit-test
-[ [ 3 1 2 ] ] [ { 1 2 3 } <circular> -100 over change-circular-start [ ] like ] unit-test
+{ [ 1 2 3 ] } [ { 1 2 3 } <circular> [ ] like ] unit-test
+{ [ 2 3 1 ] } [ { 1 2 3 } <circular> [ rotate-circular ] keep [ ] like ] unit-test
+{ [ 3 1 2 ] } [ { 1 2 3 } <circular> [ rotate-circular ] keep [ rotate-circular ] keep [ ] like ] unit-test
+{ [ 2 3 1 ] } [ { 1 2 3 } <circular> 1 over change-circular-start [ ] like ] unit-test
+{ [ 3 1 2 ] } [ { 1 2 3 } <circular> 1 over change-circular-start 1 over change-circular-start [ ] like ] unit-test
+{ [ 3 1 2 ] } [ { 1 2 3 } <circular> -100 over change-circular-start [ ] like ] unit-test
 
-[ "fob" ] [ "foo" <circular> CHAR: b 2 pick set-nth >string ] unit-test
-[ "boo" ] [ "foo" <circular> CHAR: b 3 pick set-nth-unsafe >string ] unit-test
-[ "ornact" ] [ "factor" <circular> 4 over change-circular-start CHAR: n 2 pick set-nth >string ] unit-test
+{ "fob" } [ "foo" <circular> CHAR: b 2 pick set-nth >string ] unit-test
+{ "boo" } [ "foo" <circular> CHAR: b 3 pick set-nth-unsafe >string ] unit-test
+{ "ornact" } [ "factor" <circular> 4 over change-circular-start CHAR: n 2 pick set-nth >string ] unit-test
 
-[ "bcd" ] [ 3 <circular-string> "abcd" [ over circular-push ] each >string ] unit-test
+{ "bcd" } [ 3 <circular-string> "abcd" [ over circular-push ] each >string ] unit-test
 
-[ { 0 0 } ] [ { 0 0 } <circular> -1 over change-circular-start >array ] unit-test
+{ { 0 0 } } [ { 0 0 } <circular> -1 over change-circular-start >array ] unit-test
 
 ! This no longer fails
 ! [ "test" <circular> 5 swap nth ] must-fail
 ! [ "foo" <circular> CHAR: b 3 rot set-nth ] must-fail
 
-[ { } ] [ 3 <growing-circular> >array ] unit-test
-[ { 1 2 } ] [
+{ { } } [ 3 <growing-circular> >array ] unit-test
+{ { 1 2 } } [
     3 <growing-circular>
     [ 1 swap growing-circular-push ] keep
     [ 2 swap growing-circular-push ] keep >array
 ] unit-test
-[ { 3 4 5 } ] [
+{ { 3 4 5 } } [
     3 <growing-circular> dup { 1 2 3 4 5 } [
         swap growing-circular-push
     ] with each >array
 ] unit-test
 
-[ V{ 1 2 3 } ] [
+{ V{ 1 2 3 } } [
     { 1 2 3 } <circular> V{ } [
         [ push f ] curry circular-while
     ] keep
 ] unit-test
 
 CONSTANT: test-sequence1 { t f f f }
-[ V{ 1 2 3 1 } ] [
+{ V{ 1 2 3 1 } } [
     { 1 2 3 } <circular> V{ } [
         [ [ push ] [ length 1 - test-sequence1 nth ] bi ] curry circular-while
     ] keep
 ] unit-test
 
 CONSTANT: test-sequence2 { t f t t f f t t t f f f }
-[ V{ 1 2 3 1 2 3 1 2 3 1 2 3 } ] [
+{ V{ 1 2 3 1 2 3 1 2 3 1 2 3 } } [
     { 1 2 3 } <circular> V{ } [
         [ [ push ] [ length 1 - test-sequence2 nth ] bi ] curry circular-while
     ] keep
 ] unit-test
 
-[ V{ 1 2 3 1 2 } ] [
+{ V{ 1 2 3 1 2 } } [
     { 1 2 3 } <circular> V{ } [
         [ [ push ] [ length 5 < ] bi ] curry circular-loop
     ] keep
 ] unit-test
 
-[ V{ 1 } ] [
+{ V{ 1 } } [
     { 1 2 3 } <circular> V{ } [
         [ push f ] curry circular-loop
     ] keep
index 44bc90b023042e0176de944c8635da98182626ab..8af8e768066628a1c8669e55c59de11c34c33aed 100644 (file)
@@ -4,5 +4,5 @@ USING: classes.struct.bit-accessors tools.test effects kernel
 sequences random stack-checker ;
 IN: classes.struct.bit-accessors.test
 
-[ t ] [ 20 random 20 random bit-reader infer ( alien -- n ) effect= ] unit-test
-[ t ] [ 20 random 20 random bit-writer infer ( n alien -- ) effect= ] unit-test
+{ t } [ 20 random 20 random bit-reader infer ( alien -- n ) effect= ] unit-test
+{ t } [ 20 random 20 random bit-writer infer ( n alien -- ) effect= ] unit-test
index 686317d0bf6d44fa7eb75f9d0e63d5c109b37ad2..703f7da8f84566ba42737a51b1ca7f4db8265cbc 100644 (file)
@@ -31,13 +31,13 @@ STRUCT: struct-test-bar
     { w ushort initial: 0xffff }
     { foo struct-test-foo } ;
 
-[ 12 ] [ struct-test-foo heap-size ] unit-test
-[ 12 ] [ struct-test-foo <struct> byte-length ] unit-test
-[ 16 ] [ struct-test-bar heap-size ] unit-test
-[ 123 ] [ struct-test-foo <struct> y>> ] unit-test
-[ 123 ] [ struct-test-bar <struct> foo>> y>> ] unit-test
+{ 12 } [ struct-test-foo heap-size ] unit-test
+{ 12 } [ struct-test-foo <struct> byte-length ] unit-test
+{ 16 } [ struct-test-bar heap-size ] unit-test
+{ 123 } [ struct-test-foo <struct> y>> ] unit-test
+{ 123 } [ struct-test-bar <struct> foo>> y>> ] unit-test
 
-[ 1 2 3 t ] [
+{ 1 2 3 t } [
     1   2 3 t struct-test-foo <struct-boa>   struct-test-bar <struct-boa>
     {
         [ w>> ]
@@ -47,111 +47,111 @@ STRUCT: struct-test-bar
     } cleave
 ] unit-test
 
-[ 7654 ] [ S{ struct-test-foo f 98 7654 f } y>> ] unit-test
-[ 7654 ] [ S{ struct-test-foo { y 7654 } } y>> ] unit-test
+{ 7654 } [ S{ struct-test-foo f 98 7654 f } y>> ] unit-test
+{ 7654 } [ S{ struct-test-foo { y 7654 } } y>> ] unit-test
 
-[ {
+{ {
     { "underlying" B{ 98 0 0 98 127 0 0 127 0 0 0 0 } }
     { { "x" char } 98            }
     { { "y" int  } 0x7F00007F }
     { { "z" bool } f             }
-} ] [
+} } [
     B{ 98 0 0 98 127 0 0 127 0 0 0 0 } struct-test-foo memory>struct
     make-mirror >alist
 ] unit-test
 
-[ { { "underlying" f } } ] [
+{ { { "underlying" f } } } [
     f struct-test-foo memory>struct
     make-mirror >alist
 ] unit-test
 
-[ 55 t ] [ S{ struct-test-foo { x 55 } } make-mirror { "x" "char" } ?of ] unit-test
-[ 55 t ] [ S{ struct-test-foo { y 55 } } make-mirror { "y" "int"  } ?of ] unit-test
-[ t  t ] [ S{ struct-test-foo { z t  } } make-mirror { "z" "bool" } ?of ] unit-test
-[ f  t ] [ S{ struct-test-foo { z f  } } make-mirror { "z" "bool" } ?of ] unit-test
-[ { "nonexist" "bool" } f ] [ S{ struct-test-foo } make-mirror { "nonexist" "bool" } ?of ] unit-test
-[ "nonexist" f ] [ S{ struct-test-foo } make-mirror "nonexist" ?of ] unit-test
-[ f  t ] [ f struct-test-foo memory>struct make-mirror "underlying" ?of ] unit-test
+{ 55 t } [ S{ struct-test-foo { x 55 } } make-mirror { "x" "char" } ?of ] unit-test
+{ 55 t } [ S{ struct-test-foo { y 55 } } make-mirror { "y" "int"  } ?of ] unit-test
+{ t  t } [ S{ struct-test-foo { z t  } } make-mirror { "z" "bool" } ?of ] unit-test
+{ f  t } [ S{ struct-test-foo { z f  } } make-mirror { "z" "bool" } ?of ] unit-test
+{ { "nonexist" "bool" } f } [ S{ struct-test-foo } make-mirror { "nonexist" "bool" } ?of ] unit-test
+{ "nonexist" f } [ S{ struct-test-foo } make-mirror "nonexist" ?of ] unit-test
+{ f  t } [ f struct-test-foo memory>struct make-mirror "underlying" ?of ] unit-test
 
-[ S{ struct-test-foo { x 3 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 3 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ 3 { "x" "char" } ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 5 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 5 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ 5 { "y" "int" } ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z t } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z t } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ t { "z" "bool" } ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ "nonsense" "underlying" ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ "nonsense" "nonexist" ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror [ "nonsense" { "nonexist" "int" } ] dip set-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 123 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 123 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror { "y" "int" } swap delete-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 0 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 0 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror { "x" "char" } swap delete-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror { "nonexist" "char" } swap delete-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror "underlying" swap delete-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 1 } { y 2 } { z f } } ] [
+{ S{ struct-test-foo { x 1 } { y 2 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z f } }
     [ make-mirror "nonsense" swap delete-at ] keep
 ] unit-test
 
-[ S{ struct-test-foo { x 0 } { y 123 } { z f } } ] [
+{ S{ struct-test-foo { x 0 } { y 123 } { z f } } } [
     S{ struct-test-foo { x 1 } { y 2 } { z t } }
     [ make-mirror clear-assoc ] keep
 ] unit-test
 
-[ POSTPONE: STRUCT: ]
+{ POSTPONE: STRUCT: }
 [ struct-test-foo struct-definer-word ] unit-test
 
 UNION-STRUCT: struct-test-float-and-bits
     { f c:float }
     { bits uint } ;
 
-[ 1.0 ] [ struct-test-float-and-bits <struct> 1.0 float>bits >>bits f>> ] unit-test
-[ 4 ] [ struct-test-float-and-bits heap-size ] unit-test
+{ 1.0 } [ struct-test-float-and-bits <struct> 1.0 float>bits >>bits f>> ] unit-test
+{ 4 } [ struct-test-float-and-bits heap-size ] unit-test
 
-[ 123 ] [ [ struct-test-foo malloc-struct &free y>> ] with-destructors ] unit-test
+{ 123 } [ [ struct-test-foo malloc-struct &free y>> ] with-destructors ] unit-test
 
-[ POSTPONE: UNION-STRUCT: ]
+{ POSTPONE: UNION-STRUCT: }
 [ struct-test-float-and-bits struct-definer-word ] unit-test
 
 STRUCT: struct-test-string-ptr
     { x c-string } ;
 
-[ "hello world" ] [
+{ "hello world" } [
     [
         struct-test-string-ptr <struct>
         "hello world" utf8 malloc-string &free >>x
@@ -159,49 +159,49 @@ STRUCT: struct-test-string-ptr
     ] with-destructors
 ] unit-test
 
-[ "S{ struct-test-foo { x 0 } { y 7654 } { z f } }" ]
+{ "S{ struct-test-foo { x 0 } { y 7654 } { z f } }" }
 [
     H{ { boa-tuples? f } { c-object-pointers? f } } [
         struct-test-foo <struct> 7654 >>y [ pprint ] with-string-writer
     ] with-variables
 ] unit-test
 
-[ "S@ struct-test-foo B{ 0 0 0 0 0 0 0 0 0 0 0 0 }" ]
+{ "S@ struct-test-foo B{ 0 0 0 0 0 0 0 0 0 0 0 0 }" }
 [
     H{ { c-object-pointers? t } } [
         12 <byte-array> struct-test-foo memory>struct [ pprint ] with-string-writer
     ] with-variables
 ] unit-test
 
-[ "S{ struct-test-foo f 0 7654 f }" ]
+{ "S{ struct-test-foo f 0 7654 f }" }
 [
     H{ { boa-tuples? t } { c-object-pointers? f } } [
         struct-test-foo <struct> 7654 >>y [ pprint ] with-string-writer
     ] with-variables
 ] unit-test
 
-[ "S@ struct-test-foo f" ]
+{ "S@ struct-test-foo f" }
 [
     H{ { c-object-pointers? f } } [
         f struct-test-foo memory>struct [ pprint ] with-string-writer
     ] with-variables
 ] unit-test
 
-[ "USING: alien.c-types classes.struct ;
+{ "USING: alien.c-types classes.struct ;
 IN: classes.struct.tests
 STRUCT: struct-test-foo
     { x char initial: 0 } { y int initial: 123 } { z bool } ;
-" ]
+" }
 [ [ struct-test-foo see ] with-string-writer ] unit-test
 
-[ "USING: alien.c-types classes.struct ;
+{ "USING: alien.c-types classes.struct ;
 IN: classes.struct.tests
 UNION-STRUCT: struct-test-float-and-bits
     { f float initial: 0.0 } { bits uint initial: 0 } ;
-" ]
+" }
 [ [ struct-test-float-and-bits see ] with-string-writer ] unit-test
 
-[ {
+{ {
     T{ struct-slot-spec
         { name "x" }
         { offset 0 }
@@ -223,9 +223,9 @@ UNION-STRUCT: struct-test-float-and-bits
         { type bool }
         { class object }
     }
-} ] [ struct-test-foo lookup-c-type fields>> ] unit-test
+} } [ struct-test-foo lookup-c-type fields>> ] unit-test
 
-[ {
+{ {
     T{ struct-slot-spec
         { name "f" }
         { offset 0 }
@@ -240,30 +240,30 @@ UNION-STRUCT: struct-test-float-and-bits
         { class $[ cell 4 = integer fixnum ? ] }
         { initial 0 }
     }
-} ] [ struct-test-float-and-bits lookup-c-type fields>> ] unit-test
+} } [ struct-test-float-and-bits lookup-c-type fields>> ] unit-test
 
 STRUCT: struct-test-equality-1
     { x int } ;
 STRUCT: struct-test-equality-2
     { y int } ;
 
-[ 0 ] [ struct-test-equality-1 new hashcode ] unit-test
+{ 0 } [ struct-test-equality-1 new hashcode ] unit-test
 
-[ t ] [
+{ t } [
     [
         struct-test-equality-1 <struct> 5 >>x
         struct-test-equality-1 malloc-struct &free 5 >>x =
     ] with-destructors
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         struct-test-equality-1 <struct> 5 >>x
         struct-test-equality-2 malloc-struct &free 5 >>y =
     ] with-destructors
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         struct-test-equality-1 <struct> 5 >>x
         struct-test-equality-1 malloc-struct &free 5 >>x
@@ -276,9 +276,9 @@ STRUCT: struct-test-array-slots
     { y ushort[6] initial: ushort-array{ 2 3 5 7 11 13 } }
     { z int } ;
 
-[ 11 ] [ struct-test-array-slots <struct> y>> 4 swap nth ] unit-test
+{ 11 } [ struct-test-array-slots <struct> y>> 4 swap nth ] unit-test
 
-[ t ] [
+{ t } [
     struct-test-array-slots <struct>
     [ y>> [ 8 3 ] dip set-nth ]
     [ y>> ushort-array{ 2 3 5 8 11 13 } sequence= ] bi
@@ -289,27 +289,27 @@ STRUCT: struct-test-optimization
 
 SPECIALIZED-ARRAY: struct-test-optimization
 
-[ t ] [ [ struct-test-optimization memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
-[ t ] [
+{ t } [ [ struct-test-optimization memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
+{ t } [
     [ 3 struct-test-optimization <c-direct-array> third y>> ]
     { <tuple> <tuple-boa> memory>struct y>> } inlined?
 ] unit-test
 
-[ t ] [ [ struct-test-optimization memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
+{ t } [ [ struct-test-optimization memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
 
-[ t ] [
+{ t } [
     [ struct-test-optimization memory>struct x>> second ]
     { memory>struct x>> int <c-direct-array> <tuple> <tuple-boa> } inlined?
 ] unit-test
 
-[ f ] [ [ memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
+{ f } [ [ memory>struct y>> ] { memory>struct y>> } inlined? ] unit-test
 
-[ t ] [
+{ t } [
     [ struct-test-optimization <struct> struct-test-optimization <struct> [ x>> ] bi@ ]
     { x>> } inlined?
 ] unit-test
 
-[ ] [
+{ } [
     [
         struct-test-optimization specialized-array-vocab forget-vocab
     ] with-compilation-unit
@@ -318,14 +318,14 @@ SPECIALIZED-ARRAY: struct-test-optimization
 ! Test cloning structs
 STRUCT: clone-test-struct { x int } { y char[3] } ;
 
-[ 1 char-array{ 9 1 1 } ] [
+{ 1 char-array{ 9 1 1 } } [
     clone-test-struct <struct>
     1 >>x char-array{ 9 1 1 } >>y
     clone
     [ x>> ] [ y>> char >c-array ] bi
 ] unit-test
 
-[ t 1 char-array{ 9 1 1 } ] [
+{ t 1 char-array{ 9 1 1 } } [
     [
         clone-test-struct malloc-struct &free
         1 >>x char-array{ 9 1 1 } >>y
@@ -338,7 +338,7 @@ STRUCT: struct-that's-a-word { x int } ;
 
 : struct-that's-a-word ( -- ) "OOPS" throw ;
 
-[ -77 ] [ S{ struct-that's-a-word { x -77 } } clone x>> ] unit-test
+{ -77 } [ S{ struct-that's-a-word { x -77 } } clone x>> ] unit-test
 
 ! Interactive parsing of struct slot definitions
 [
@@ -371,35 +371,35 @@ TUPLE: will-become-struct ;
 
 TUPLE: a-subclass < will-become-struct ;
 
-[ f ] [ will-become-struct struct-class? ] unit-test
+{ f } [ will-become-struct struct-class? ] unit-test
 
-[ will-become-struct ] [ a-subclass superclass ] unit-test
+{ will-become-struct } [ a-subclass superclass ] unit-test
 
-[ ] [ "IN: classes.struct.tests USING: classes.struct alien.c-types ; STRUCT: will-become-struct { x int } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.struct.tests USING: classes.struct alien.c-types ; STRUCT: will-become-struct { x int } ;" eval( -- ) ] unit-test
 
-[ t ] [ will-become-struct struct-class? ] unit-test
+{ t } [ will-become-struct struct-class? ] unit-test
 
-[ tuple ] [ a-subclass superclass ] unit-test
+{ tuple } [ a-subclass superclass ] unit-test
 
 STRUCT: bit-field-test
     { a uint bits: 12 }
     { b int bits: 2 }
     { c char } ;
 
-[ S{ bit-field-test f 0 0 0 } ] [ bit-field-test <struct> ] unit-test
-[ S{ bit-field-test f 1 -2 3 } ] [ bit-field-test <struct> 1 >>a 2 >>b 3 >>c ] unit-test
-[ 4095 ] [ bit-field-test <struct> 8191 >>a a>> ] unit-test
-[ 1 ] [ bit-field-test <struct> 1 >>b b>> ] unit-test
-[ -2 ] [ bit-field-test <struct> 2 >>b b>> ] unit-test
-[ 1 ] [ bit-field-test <struct> 257 >>c c>> ] unit-test
-[ 3 ] [ bit-field-test heap-size ] unit-test
+{ S{ bit-field-test f 0 0 0 } } [ bit-field-test <struct> ] unit-test
+{ S{ bit-field-test f 1 -2 3 } } [ bit-field-test <struct> 1 >>a 2 >>b 3 >>c ] unit-test
+{ 4095 } [ bit-field-test <struct> 8191 >>a a>> ] unit-test
+{ 1 } [ bit-field-test <struct> 1 >>b b>> ] unit-test
+{ -2 } [ bit-field-test <struct> 2 >>b b>> ] unit-test
+{ 1 } [ bit-field-test <struct> 257 >>c c>> ] unit-test
+{ 3 } [ bit-field-test heap-size ] unit-test
 
 STRUCT: referent
     { y int } ;
 STRUCT: referrer
     { x referent* } ;
 
-[ 57 ] [
+{ 57 } [
     [
         referrer <struct>
             referent malloc-struct &free
@@ -413,7 +413,7 @@ STRUCT: self-referent
     { x self-referent* }
     { y int } ;
 
-[ 75 ] [
+{ 75 } [
     [
         self-referent <struct>
             self-referent malloc-struct &free
@@ -431,7 +431,7 @@ STRUCT: forward-referent
     { x backward-referent* }
     { y int } ;
 
-[ 41 ] [
+{ 41 } [
     [
         forward-referent <struct>
             backward-referent malloc-struct &free
@@ -441,7 +441,7 @@ STRUCT: forward-referent
     ] with-destructors
 ] unit-test
 
-[ 14 ] [
+{ 14 } [
     [
         backward-referent <struct>
             forward-referent malloc-struct &free
@@ -473,7 +473,7 @@ STRUCT: struct-test-delegator
     { b int } ;
 CONSULT: struct-test-delegate struct-test-delegator del>> ;
 
-[ S{ struct-test-delegator f S{ struct-test-delegate f 7 } 8 } ] [
+{ S{ struct-test-delegator f S{ struct-test-delegate f 7 } 8 } } [
     struct-test-delegator <struct>
         7 >>a
         8 >>b
@@ -483,7 +483,7 @@ SPECIALIZED-ARRAY: void*
 
 STRUCT: silly-array-field-test { x int*[3] } ;
 
-[ t ] [ silly-array-field-test <struct> x>> void*-array? ] unit-test
+{ t } [ silly-array-field-test <struct> x>> void*-array? ] unit-test
 
 ! Packed structs
 PACKED-STRUCT: packed-struct-test
@@ -493,53 +493,53 @@ PACKED-STRUCT: packed-struct-test
     { g c:char }
     { h c:int } ;
 
-[ 15 ] [ packed-struct-test heap-size ] unit-test
+{ 15 } [ packed-struct-test heap-size ] unit-test
 
-[ 0 ] [ "d" packed-struct-test offset-of ] unit-test
-[ 4 ] [ "e" packed-struct-test offset-of ] unit-test
-[ 6 ] [ "f" packed-struct-test offset-of ] unit-test
-[ 10 ] [ "g" packed-struct-test offset-of ] unit-test
-[ 11 ] [ "h" packed-struct-test offset-of ] unit-test
+{ 0 } [ "d" packed-struct-test offset-of ] unit-test
+{ 4 } [ "e" packed-struct-test offset-of ] unit-test
+{ 6 } [ "f" packed-struct-test offset-of ] unit-test
+{ 10 } [ "g" packed-struct-test offset-of ] unit-test
+{ 11 } [ "h" packed-struct-test offset-of ] unit-test
 
-[ POSTPONE: PACKED-STRUCT: ]
+{ POSTPONE: PACKED-STRUCT: }
 [ packed-struct-test struct-definer-word ] unit-test
 
 STRUCT: struct-1 { a c:int } ;
 PACKED-STRUCT: struct-1-packed { a c:int } ;
 UNION-STRUCT: struct-1-union { a c:int } ;
 
-[ "USING: alien.c-types classes.struct ;
+{ "USING: alien.c-types classes.struct ;
 IN: classes.struct.tests
 STRUCT: struct-1 { a int initial: 0 } ;
-" ]
+" }
 [ \ struct-1 [ see ] with-string-writer ] unit-test
-[ "USING: alien.c-types classes.struct ;
+{ "USING: alien.c-types classes.struct ;
 IN: classes.struct.tests
 PACKED-STRUCT: struct-1-packed { a int initial: 0 } ;
-" ]
+" }
 [ \ struct-1-packed [ see ] with-string-writer ] unit-test
-[ "USING: alien.c-types classes.struct ;
+{ "USING: alien.c-types classes.struct ;
 IN: classes.struct.tests
 STRUCT: struct-1-union { a int initial: 0 } ;
-" ]
+" }
 [ \ struct-1-union [ see ] with-string-writer ] unit-test
 
 ! Bug #206
 STRUCT: going-to-redefine { a uint } ;
-[ ] [
+{ } [
     "IN: classes.struct.tests TUPLE: going-to-redefine b ;" eval( -- )
 ] unit-test
-[ f ] [ \ going-to-redefine \ clone ?lookup-method ] unit-test
-[ f ] [ \ going-to-redefine \ struct-slot-values ?lookup-method ] unit-test
+{ f } [ \ going-to-redefine \ clone ?lookup-method ] unit-test
+{ f } [ \ going-to-redefine \ struct-slot-values ?lookup-method ] unit-test
 
 ! Test reset-class on structs, which should forget all the accessors, clone, and struct-slot-values
 STRUCT: some-accessors { aaa uint } { bbb int } ;
-[ ] [ [ \ some-accessors reset-class ] with-compilation-unit ] unit-test
-[ f ] [ \ some-accessors \ a>> ?lookup-method ] unit-test
-[ f ] [ \ some-accessors \ a<< ?lookup-method ] unit-test
-[ f ] [ \ some-accessors \ b>> ?lookup-method ] unit-test
-[ f ] [ \ some-accessors \ b<< ?lookup-method ] unit-test
-[ f ] [ \ some-accessors \ clone ?lookup-method ] unit-test
-[ f ] [ \ some-accessors \ struct-slot-values ?lookup-method ] unit-test
+{ } [ [ \ some-accessors reset-class ] with-compilation-unit ] unit-test
+{ f } [ \ some-accessors \ a>> ?lookup-method ] unit-test
+{ f } [ \ some-accessors \ a<< ?lookup-method ] unit-test
+{ f } [ \ some-accessors \ b>> ?lookup-method ] unit-test
+{ f } [ \ some-accessors \ b<< ?lookup-method ] unit-test
+{ f } [ \ some-accessors \ clone ?lookup-method ] unit-test
+{ f } [ \ some-accessors \ struct-slot-values ?lookup-method ] unit-test
 
 << \ some-accessors forget >>
index a2a0b533c3fec8bcf93d2c1a69c72584b6d111f7..5c4125410e65360429717c2745cd4f5b24b8d487 100644 (file)
@@ -16,19 +16,19 @@ CLASS: Foo < NSObject
     dup 1.0 2.0 101.0 102.0 <CGRect> -> foo:
     -> release ;
 
-[ ] [ test-foo ] unit-test
+{ } [ test-foo ] unit-test
 
-[ 1.0 ] [ "x" get CGRect-x ] unit-test
-[ 2.0 ] [ "x" get CGRect-y ] unit-test
-[ 101.0 ] [ "x" get CGRect-w ] unit-test
-[ 102.0 ] [ "x" get CGRect-h ] unit-test
+{ 1.0 } [ "x" get CGRect-x ] unit-test
+{ 2.0 } [ "x" get CGRect-y ] unit-test
+{ 101.0 } [ "x" get CGRect-w ] unit-test
+{ 102.0 } [ "x" get CGRect-h ] unit-test
 
 CLASS: Bar < NSObject
 [
     METHOD: NSRect bar [ test-foo "x" get ]
 ]
 
-[ ] [
+{ } [
     Bar [
         -> alloc -> init
         dup -> bar "x" set
@@ -36,10 +36,10 @@ CLASS: Bar < NSObject
     ] compile-call
 ] unit-test
 
-[ 1.0 ] [ "x" get CGRect-x ] unit-test
-[ 2.0 ] [ "x" get CGRect-y ] unit-test
-[ 101.0 ] [ "x" get CGRect-w ] unit-test
-[ 102.0 ] [ "x" get CGRect-h ] unit-test
+{ 1.0 } [ "x" get CGRect-x ] unit-test
+{ 2.0 } [ "x" get CGRect-y ] unit-test
+{ 101.0 } [ "x" get CGRect-w ] unit-test
+{ 102.0 } [ "x" get CGRect-h ] unit-test
 
 ! Make sure that we can add methods
 CLASS: Bar < NSObject
@@ -49,7 +49,7 @@ CLASS: Bar < NSObject
     METHOD: int babb: int x [ x sq ]
 ]
 
-[ 144 ] [
+{ 144 } [
     Bar [
         -> alloc -> init
         dup 12 -> babb:
index 2230cc992a4baa18a968e2d272a19553758368bb..d13d04caa0581e082d1718e2b6b4a86ac78a8654 100644 (file)
@@ -3,4 +3,4 @@
 USING: tools.test colors.constants colors ;
 IN: colors.constants.tests
 
-[ t ] [ COLOR: light-green rgba? ] unit-test
+{ t } [ COLOR: light-green rgba? ] unit-test
index 0ab1fd52169bbe85053cc9297d3fe7846a8f38c7..1dcd53c4346a79facade8315dcbc211d0fc7194c 100644 (file)
@@ -5,8 +5,8 @@ USING: colors colors.hex tools.test ;
 
 IN: colors.hex.test
 
-[ HEXCOLOR: 000000 ] [ 0.0 0.0 0.0 1.0 <rgba> ] unit-test
-[ HEXCOLOR: FFFFFF ] [ 1.0 1.0 1.0 1.0 <rgba> ] unit-test
-[ HEXCOLOR: abcdef ] [ "abcdef" hex>rgba ] unit-test
-[ HEXCOLOR: abcdef ] [ "ABCDEF" hex>rgba ] unit-test
-[ "ABCDEF" ] [ HEXCOLOR: abcdef rgba>hex ] unit-test
+{ HEXCOLOR: 000000 } [ 0.0 0.0 0.0 1.0 <rgba> ] unit-test
+{ HEXCOLOR: FFFFFF } [ 1.0 1.0 1.0 1.0 <rgba> ] unit-test
+{ HEXCOLOR: abcdef } [ "abcdef" hex>rgba ] unit-test
+{ HEXCOLOR: abcdef } [ "ABCDEF" hex>rgba ] unit-test
+{ "ABCDEF" } [ HEXCOLOR: abcdef rgba>hex ] unit-test
index 278906ce0ea3b3ea2c27fc4eedd7075def8df3cd..3f6a4e75b498f4989e083ab87651f5eee079ea87 100644 (file)
@@ -5,24 +5,24 @@ IN: colors.hsv.tests
     [ 360 * ] 2dip
     1 <hsva> >rgba [ red>> ] [ green>> ] [ blue>> ] tri ;
 
-[ 1/2 1/2 1/2 ] [ 0 0 1/2 hsv>rgb ] unit-test
+{ 1/2 1/2 1/2 } [ 0 0 1/2 hsv>rgb ] unit-test
 
-[ 1/2 1/4 1/4 ] [ 0 1/2 1/2 hsv>rgb ] unit-test
-[ 1/3 2/9 2/9 ] [ 0 1/3 1/3 hsv>rgb ] unit-test
+{ 1/2 1/4 1/4 } [ 0 1/2 1/2 hsv>rgb ] unit-test
+{ 1/3 2/9 2/9 } [ 0 1/3 1/3 hsv>rgb ] unit-test
 
-[ 24/125 1/5 4/25 ] [ 1/5 1/5 1/5 hsv>rgb ] unit-test
-[ 29/180 1/6 5/36 ] [ 1/5 1/6 1/6 hsv>rgb ] unit-test
+{ 24/125 1/5 4/25 } [ 1/5 1/5 1/5 hsv>rgb ] unit-test
+{ 29/180 1/6 5/36 } [ 1/5 1/6 1/6 hsv>rgb ] unit-test
 
-[ 6/25 2/5 38/125 ] [ 2/5 2/5 2/5 hsv>rgb ] unit-test
-[ 8/25 4/5 64/125 ] [ 2/5 3/5 4/5 hsv>rgb ] unit-test
+{ 6/25 2/5 38/125 } [ 2/5 2/5 2/5 hsv>rgb ] unit-test
+{ 8/25 4/5 64/125 } [ 2/5 3/5 4/5 hsv>rgb ] unit-test
 
-[ 6/25 48/125 3/5 ] [ 3/5 3/5 3/5 hsv>rgb ] unit-test
-[ 0 0 0 ] [ 3/5 1/5 0 hsv>rgb ] unit-test
+{ 6/25 48/125 3/5 } [ 3/5 3/5 3/5 hsv>rgb ] unit-test
+{ 0 0 0 } [ 3/5 1/5 0 hsv>rgb ] unit-test
 
-[ 84/125 4/25 4/5 ] [ 4/5 4/5 4/5 hsv>rgb ] unit-test
-[ 7/15 1/3 1/2 ] [ 4/5 1/3 1/2 hsv>rgb ] unit-test
+{ 84/125 4/25 4/5 } [ 4/5 4/5 4/5 hsv>rgb ] unit-test
+{ 7/15 1/3 1/2 } [ 4/5 1/3 1/2 hsv>rgb ] unit-test
 
-[ 5/6 5/36 5/6 ] [ 5/6 5/6 5/6 hsv>rgb ] unit-test
-[ 1/6 0 1/6 ] [ 5/6 1 1/6 hsv>rgb ] unit-test
+{ 5/6 5/36 5/6 } [ 5/6 5/6 5/6 hsv>rgb ] unit-test
+{ 1/6 0 1/6 } [ 5/6 1 1/6 hsv>rgb ] unit-test
 
-[ 0.5 ] [ 180 0.1 0.2 0.5 <hsva> alpha>> ] unit-test
+{ 0.5 } [ 180 0.1 0.2 0.5 <hsva> alpha>> ] unit-test
index c0e0956709582c1421577dc4accf9af2488b62c5..1a9b65c7d1e4f05e40ac4464b6d335ebf5a8b015 100644 (file)
@@ -4,8 +4,8 @@ IN: columns.tests
 ! Columns
 { { 1 2 3 } { 4 5 6 } { 7 8 9 } } [ clone ] map "seq" set
 
-[ { 1 4 7 } ] [ "seq" get 0 <column> >array ] unit-test
-[ ] [ "seq" get 1 <column> [ sq ] map! drop ] unit-test
-[ { 4 25 64 } ] [ "seq" get 1 <column> >array ] unit-test
+{ { 1 4 7 } } [ "seq" get 0 <column> >array ] unit-test
+{ } [ "seq" get 1 <column> [ sq ] map! drop ] unit-test
+{ { 4 25 64 } } [ "seq" get 1 <column> >array ] unit-test
 
-[ { { 1 3 } { 2 4 } } ] [ { { 1 2 } { 3 4 } } <flipped> [ >array ] map ] unit-test
+{ { { 1 3 } { 2 4 } } } [ { { 1 2 } { 3 4 } } <flipped> [ >array ] map ] unit-test
index 32f28745385bb7dd4a15a28ff5d6a7343005e3f4..46282a3222a2f7d9494b7bb75fba0146e4f30a7b 100644 (file)
@@ -3,70 +3,70 @@
 USING: tools.test combinators.random combinators.random.private ;
 IN: combinators.random.tests
 
-[ 1 ] [ 1 [ 1 ] [ 2 ] ifp ] unit-test
-[ 2 ] [ 0 [ 1 ] [ 2 ] ifp ] unit-test
+{ 1 } [ 1 [ 1 ] [ 2 ] ifp ] unit-test
+{ 2 } [ 0 [ 1 ] [ 2 ] ifp ] unit-test
 
-[ 3 ]
+{ 3 }
 [ { { 0 [ 1 ] }
     { 0 [ 2 ] }
     { 1 [ 3 ] }
     [ 4 ]
   } casep ] unit-test
 
-[ 4 ]
+{ 4 }
 [ { { 0 [ 1 ] }
     { 0 [ 2 ] }
     { 0 [ 3 ] }
     [ 4 ]
   } casep ] unit-test
 
-[ 1 1 ] [ 1 {
+{ 1 1 } [ 1 {
     { 1 [ 1 ] }
     { 0 [ 2 ] }
     { 0 [ 3 ] }
     [ 4 ]
     } casep ] unit-test
 
-[ 1 4 ] [ 1 {
+{ 1 4 } [ 1 {
     { 0 [ 1 ] }
     { 0 [ 2 ] }
     { 0 [ 3 ] }
     [ 4 ]
     } casep ] unit-test
 
-[ 2 ] [ 0.7 {
+{ 2 } [ 0.7 {
     { 0.3 [ 1 ] }
     { 0.5 [ 2 ] }
     [ 2 ] } (casep) ] unit-test
 
-[ { { 1/3 [ 1 ] }
+{ { { 1/3 [ 1 ] }
     { 1/3 [ 2 ] }
-    { 1/3 [ 3 ] } } ]
+    { 1/3 [ 3 ] } } }
 [ { [ 1 ] [ 2 ] [ 3 ] } call-random>casep ] unit-test
 
-[ { { 1/2 [ 1 ] }
+{ { { 1/2 [ 1 ] }
     { 1/4 [ 2 ] }
-    { 1/4 [ 3 ] } } ]
+    { 1/4 [ 3 ] } } }
 [ { { 1/2 [ 1 ] }
     { 1/2 [ 2 ] }
     { 1 [ 3 ] } } direct>conditional ] unit-test
 
-[ { { 1/2 [ 1 ] }
+{ { { 1/2 [ 1 ] }
     { 1/4 [ 2 ] }
-    { [ 3 ] } } ]
+    { [ 3 ] } } }
 [ { { 1/2 [ 1 ] }
     { 1/2 [ 2 ] }
     { [ 3 ] } } direct>conditional ] unit-test
 
-[ f ] [ { { 0.6 [ 1 ] }
+{ f } [ { { 0.6 [ 1 ] }
   { 0.6 [ 2 ] } } good-probabilities? ] unit-test
-[ f ] [ { { 0.3 [ 1 ] }
+{ f } [ { { 0.3 [ 1 ] }
   { 0.6 [ 2 ] } } good-probabilities? ] unit-test
-[ f ] [ { { -0.6 [ 1 ] }
+{ f } [ { { -0.6 [ 1 ] }
   { 1.4 [ 2 ] } } good-probabilities? ] unit-test
-[ f ] [ { { -0.6 [ 1 ] }
+{ f } [ { { -0.6 [ 1 ] }
   [ 2 ] } good-probabilities? ] unit-test
-[ t ] [ { { 0.6 [ 1 ] }
+{ t } [ { { 0.6 [ 1 ] }
   [ 2 ] } good-probabilities? ] unit-test
-[ t ] [ { { 0.6 [ 1 ] }
+{ t } [ { { 0.6 [ 1 ] }
   { 0.4 [ 2 ] } } good-probabilities? ] unit-test
index a60922437f6977ac7b84dd2930445e3a28f832af..b857a5043693324acd96f8c941a588625fadf5bf 100644 (file)
@@ -1,39 +1,39 @@
 USING: kernel math tools.test combinators.short-circuit accessors ;
 IN: combinators.short-circuit.tests
 
-[ 3 ] [ { [ 1 ] [ 2 ] [ 3 ] } 0&& ] unit-test
-[ 5 ] [ 3 { [ 0 > ] [ odd? ] [ 2 + ] } 1&& ] unit-test
-[ 30 ] [ 10 20 { [ + 0 > ] [ - even? ] [ + ] } 2&& ] unit-test
+{ 3 } [ { [ 1 ] [ 2 ] [ 3 ] } 0&& ] unit-test
+{ 5 } [ 3 { [ 0 > ] [ odd? ] [ 2 + ] } 1&& ] unit-test
+{ 30 } [ 10 20 { [ + 0 > ] [ - even? ] [ + ] } 2&& ] unit-test
 
-[ f ] [ { [ 1 ] [ f ] [ 3 ] } 0&& ] unit-test
-[ f ] [ 3 { [ 0 > ] [ even? ] [ 2 + ] } 1&& ] unit-test
-[ f ] [ 10 20 { [ + 0 > ] [ - odd? ] [ + ] } 2&& ] unit-test
+{ f } [ { [ 1 ] [ f ] [ 3 ] } 0&& ] unit-test
+{ f } [ 3 { [ 0 > ] [ even? ] [ 2 + ] } 1&& ] unit-test
+{ f } [ 10 20 { [ + 0 > ] [ - odd? ] [ + ] } 2&& ] unit-test
 
-[ "factor" ] [ { [ 10 0 < ] [ f ] [ "factor" ] } 0|| ] unit-test
-[ 11 ] [ 10 { [ odd? ] [ 100 > ] [ 1 + ] } 1|| ] unit-test
-[ 30 ] [ 10 20 { [ + odd? ] [ + 100 > ] [ + ] } 2|| ] unit-test
-[ f ] [ { [ 10 0 < ] [ f ] [ 0 1 = ] } 0|| ] unit-test
+{ "factor" } [ { [ 10 0 < ] [ f ] [ "factor" ] } 0|| ] unit-test
+{ 11 } [ 10 { [ odd? ] [ 100 > ] [ 1 + ] } 1|| ] unit-test
+{ 30 } [ 10 20 { [ + odd? ] [ + 100 > ] [ + ] } 2|| ] unit-test
+{ f } [ { [ 10 0 < ] [ f ] [ 0 1 = ] } 0|| ] unit-test
 
 : compiled-&& ( a -- ? ) { [ 0 > ] [ even? ] [ 2 + ] } 1&& ;
 
-[ f ] [ 3 compiled-&& ] unit-test
-[ 4 ] [ 2 compiled-&& ] unit-test
+{ f } [ 3 compiled-&& ] unit-test
+{ 4 } [ 2 compiled-&& ] unit-test
 
 : compiled-|| ( a b -- ? ) { [ + odd? ] [ + 100 > ] [ + ] } 2|| ;
 
-[ 30 ] [ 10 20 compiled-|| ] unit-test
-[ 2 ] [ 1 1 compiled-|| ] unit-test
+{ 30 } [ 10 20 compiled-|| ] unit-test
+{ 2 } [ 1 1 compiled-|| ] unit-test
 
 ! && and || should be row-polymorphic both when compiled and when interpreted
 
 : row-&& ( -- ? )
     f t { [ drop dup ] } 1&& nip ;
 
-[ f ] [ row-&& ] unit-test
-[ f ] [ \ row-&& def>> call ] unit-test
+{ f } [ row-&& ] unit-test
+{ f } [ \ row-&& def>> call ] unit-test
 
 : row-|| ( -- ? )
     f t { [ drop dup ] } 1|| nip ;
 
-[ f ] [ row-|| ] unit-test
-[ f ] [ \ row-|| def>> call ] unit-test
+{ f } [ row-|| ] unit-test
+{ f } [ \ row-|| def>> call ] unit-test
index c8cf8ffc1bb3afc37a2845421e52426e61359f7d..268b8120a0ac873ec95e87536bc07810aa1a1509 100644 (file)
@@ -1,18 +1,18 @@
 USING: kernel math tools.test combinators.short-circuit.smart ;
 IN: combinators.short-circuit.smart.tests
 
-[ t ] [       { [ 1 ] [ 2 ] [ 3 ] }          &&  3 = ] unit-test
-[ t ] [ 3     { [ 0 > ] [ odd? ] [ 2 + ] }    &&  5 = ] unit-test
-[ t ] [ 10 20 { [ + 0 > ] [ - even? ] [ + ] } && 30 = ] unit-test
+{ t } [       { [ 1 ] [ 2 ] [ 3 ] }          &&  3 = ] unit-test
+{ t } [ 3     { [ 0 > ] [ odd? ] [ 2 + ] }    &&  5 = ] unit-test
+{ t } [ 10 20 { [ + 0 > ] [ - even? ] [ + ] } && 30 = ] unit-test
 
-[ f ] [       { [ 1 ] [ f ] [ 3 ] } &&  3 = ]          unit-test
-[ f ] [ 3     { [ 0 > ] [ even? ] [ 2 + ] } && ]       unit-test
-[ f ] [ 10 20 { [ + 0 > ] [ - odd? ] [ + ] } && 30 = ] unit-test
+{ f } [       { [ 1 ] [ f ] [ 3 ] } &&  3 = ]          unit-test
+{ f } [ 3     { [ 0 > ] [ even? ] [ 2 + ] } && ]       unit-test
+{ f } [ 10 20 { [ + 0 > ] [ - odd? ] [ + ] } && 30 = ] unit-test
 
-[ t ] [ { [ 10 0 < ] [ f ] [ "factor" ] } || "factor" = ] unit-test
+{ t } [ { [ 10 0 < ] [ f ] [ "factor" ] } || "factor" = ] unit-test
 
-[ t ] [ 10 { [ odd? ] [ 100 > ] [ 1 + ] } || 11 = ]       unit-test
+{ t } [ 10 { [ odd? ] [ 100 > ] [ 1 + ] } || 11 = ]       unit-test
 
-[ t ] [ 10 20 { [ + odd? ] [ + 100 > ] [ + ] } || 30 = ]  unit-test
+{ t } [ 10 20 { [ + odd? ] [ + 100 > ] [ + ] } || 30 = ]  unit-test
 
-[ f ] [ { [ 10 0 < ] [ f ] [ 0 1 = ] } || ] unit-test
+{ f } [ { [ 10 0 < ] [ f ] [ 0 1 = ] } || ] unit-test
index dd803bb2a07881ece08c441f900c5b114f4a1fe3..33523a01546c839865a8268d6ced387a3af2c29c 100644 (file)
@@ -8,33 +8,33 @@ IN: combinators.smart.tests
     10 [ 1 - ] [ 1 + ] bi ;
 
 [ [ test-bi ] output>array ] must-infer
-[ { 9 11 } ] [ [ test-bi ] output>array ] unit-test
+{ { 9 11 } } [ [ test-bi ] output>array ] unit-test
 
 [ { 9 11 } [ + ] input<sequence ] must-infer
-[ 20 ] [ { 9 11 } [ + ] input<sequence ] unit-test
+{ 20 } [ { 9 11 } [ + ] input<sequence ] unit-test
 
-[ 6 ] [ [ 1 2 3 ] [ + ] reduce-outputs ] unit-test
+{ 6 } [ [ 1 2 3 ] [ + ] reduce-outputs ] unit-test
 
 [ [ 1 2 3 ] [ + ] reduce-outputs ] must-infer
 
-[ 6 ] [ [ 1 2 3 ] sum-outputs ] unit-test
+{ 6 } [ [ 1 2 3 ] sum-outputs ] unit-test
 
-[ "ab" ]
+{ "ab" }
 [
     [ "a" "b" ] "" append-outputs-as
 ] unit-test
 
-[ "" ]
+{ "" }
 [
     [ ] "" append-outputs-as
 ] unit-test
 
-[ { } ]
+{ { } }
 [
     [ ] append-outputs
 ] unit-test
 
-[ B{ 1 2 3 } ]
+{ B{ 1 2 3 } }
 [
     [ { 1 } { 2 } { 3 } ] B{ } append-outputs-as
 ] unit-test
@@ -45,9 +45,9 @@ IN: combinators.smart.tests
 
 \ nested-smart-combo-test def>> must-infer
 
-[ { { 1 2 } { 3 4 } } ] [ nested-smart-combo-test ] unit-test
+{ { { 1 2 } { 3 4 } } } [ nested-smart-combo-test ] unit-test
 
-[ 14 ] [ [ 1 2 3 ] [ sq ] [ + ] map-reduce-outputs ] unit-test
+{ 14 } [ [ 1 2 3 ] [ sq ] [ + ] map-reduce-outputs ] unit-test
 
 { 2 3 } [ [ + ] preserving ] must-infer-as
 
@@ -58,34 +58,34 @@ IN: combinators.smart.tests
 : smart-if-test ( a b -- b )
     [ < ] [ swap - ] [ - ] smart-if ;
 
-[ 7 ] [ 10 3 smart-if-test ] unit-test
-[ 16 ] [ 25 41 smart-if-test ] unit-test
+{ 7 } [ 10 3 smart-if-test ] unit-test
+{ 16 } [ 25 41 smart-if-test ] unit-test
 
-[ { 1 2 } { 3 4 } { 5 6 } ] [ 1 2 3 4 5 6 [ 2array ] 3 smart-apply ] unit-test
-[ { 1 2 3 } { 4 5 6 } ] [ 1 2 3 4 5 6 [ 3array ] 2 smart-apply ] unit-test
+{ { 1 2 } { 3 4 } { 5 6 } } [ 1 2 3 4 5 6 [ 2array ] 3 smart-apply ] unit-test
+{ { 1 2 3 } { 4 5 6 } } [ 1 2 3 4 5 6 [ 3array ] 2 smart-apply ] unit-test
 
-[ 4 ] [ 2 [ even? ] [ 2 + ] smart-when ] unit-test
-[ 3 ] [ 3 [ even? ] [ 2 + ] smart-when ] unit-test
-[ 4 ] [ 2 [ odd? ] [ 2 + ] smart-unless ] unit-test
-[ 3 ] [ 3 [ odd? ] [ 2 + ] smart-unless ] unit-test
+{ 4 } [ 2 [ even? ] [ 2 + ] smart-when ] unit-test
+{ 3 } [ 3 [ even? ] [ 2 + ] smart-when ] unit-test
+{ 4 } [ 2 [ odd? ] [ 2 + ] smart-unless ] unit-test
+{ 3 } [ 3 [ odd? ] [ 2 + ] smart-unless ] unit-test
 
-[ 4 ] [ 2 [ even? ] [ 2 + ] smart-when* ] unit-test
-[ ] [ 3 [ even? ] [ 2 + ] smart-when* ] unit-test
-[ 3 ] [ 2 [ odd? ] [ 3 ] smart-unless* ] unit-test
-[ 3 ] [ 3 [ odd? ] [ 5 ] smart-unless* ] unit-test
+{ 4 } [ 2 [ even? ] [ 2 + ] smart-when* ] unit-test
+{ } [ 3 [ even? ] [ 2 + ] smart-when* ] unit-test
+{ 3 } [ 2 [ odd? ] [ 3 ] smart-unless* ] unit-test
+{ 3 } [ 3 [ odd? ] [ 5 ] smart-unless* ] unit-test
 
-[ -1 ] [ 1 2 [ + odd? ] [ - ] smart-when* ] unit-test
-[ ] [ 2 2 [ + odd? ] [ ] smart-unless* ] unit-test
+{ -1 } [ 1 2 [ + odd? ] [ - ] smart-when* ] unit-test
+{ } [ 2 2 [ + odd? ] [ ] smart-unless* ] unit-test
 
-[ ( -- x ) ] [ [ [ ] [ call ] curry output>array ] infer ] unit-test
+{ ( -- x ) } [ [ [ ] [ call ] curry output>array ] infer ] unit-test
 
 :: map-reduce-test ( a b c -- d ) [ a b c ] [ a - ] [ b * + ] map-reduce-outputs ;
 
-[ 10 ] [ 1 2 3 map-reduce-test ] unit-test
+{ 10 } [ 1 2 3 map-reduce-test ] unit-test
 
-[ ( x x -- x ) ] [ [ curry inputs ] infer ] unit-test
+{ ( x x -- x ) } [ [ curry inputs ] infer ] unit-test
 
-[ ( x -- x ) ] [ [ [ curry ] curry inputs ] infer ] unit-test
+{ ( x -- x ) } [ [ [ curry ] curry inputs ] infer ] unit-test
 
 { 1 1 1 } [ 1 3 [ ] smart-with times ] unit-test
 { "BCD" } [ 1 "ABC" [ + ] smart-with map ] unit-test
index 21241e6f4ad10507927a7aacbddfbace19160feb..498788721e2a99690152b50900e9c08ac8e3a5d9 100644 (file)
@@ -10,13 +10,13 @@ IN: compiler.cfg.alias-analysis.tests
     [ f >>insn# ] map ;
 
 ! Redundant load elimination
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -25,14 +25,14 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Store-load forwarding
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##set-slot-imm f 1 0 1 0 }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -42,14 +42,14 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Dead store elimination
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
         T{ ##set-slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -59,7 +59,7 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -67,7 +67,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##peek f 3 D 3 }
         T{ ##set-slot-imm f 3 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -80,12 +80,12 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Redundant store elimination
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -93,13 +93,13 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -109,7 +109,7 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Not a redundant load
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -117,7 +117,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##set-slot-imm f 0 1 1 0 }
         T{ ##slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -128,7 +128,7 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Not a redundant store
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -138,7 +138,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##slot-imm f 4 0 1 0 }
         T{ ##set-slot-imm f 3 1 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -151,7 +151,7 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! There's a redundant load, but not a redundant store
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -163,7 +163,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##set-slot-imm f 3 0 1 0 }
         T{ ##copy f 6 3 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -180,7 +180,7 @@ IN: compiler.cfg.alias-analysis.tests
 ! Fresh allocations don't alias existing values
 
 ! Redundant load elimination
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -190,7 +190,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##set-slot-imm f 2 1 1 0 }
         T{ ##copy f 5 3 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -203,7 +203,7 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Redundant store elimination
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -212,7 +212,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##slot-imm f 5 1 1 0 }
         T{ ##set-slot-imm f 3 4 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -226,7 +226,7 @@ IN: compiler.cfg.alias-analysis.tests
 
 ! Storing a new alias class into another object means that heap-ac
 ! can now alias the new ac
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -239,7 +239,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##set-slot-imm f 1 5 1 0 }
         T{ ##slot-imm f 6 4 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -255,13 +255,13 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Compares between objects which cannot alias are eliminated
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##allot f 1 16 array }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##allot f 1 16 array }
@@ -270,7 +270,7 @@ IN: compiler.cfg.alias-analysis.tests
 ] unit-test
 
 ! Make sure that input to ##box-displaced-alien becomes heap-ac
-[
+{
     V{
         T{ ##allot f 1 16 byte-array }
         T{ ##load-reference f 2 10 }
@@ -278,7 +278,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##slot-imm f 5 3 1 $[ alien type-number ] }
         T{ ##compare f 6 5 1 cc= }
     }
-] [
+} [
     V{
         T{ ##allot f 1 16 byte-array }
         T{ ##load-reference f 2 10 }
@@ -290,14 +290,14 @@ IN: compiler.cfg.alias-analysis.tests
 
 ! We can't make any assumptions about heap-ac between
 ! instructions which can call back into Factor code
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -306,7 +306,7 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -314,7 +314,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -324,7 +324,7 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -333,7 +333,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##set-slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -344,14 +344,14 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##set-slot-imm f 1 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -362,14 +362,14 @@ IN: compiler.cfg.alias-analysis.tests
 
 ! We can't eliminate stores on any alias class across a GC-ing
 ! instruction
-[
+{
     V{
         T{ ##allot f 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     V{
         T{ ##allot f 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -378,7 +378,7 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 0 }
         T{ ##peek f 1 D 1 }
@@ -386,7 +386,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     V{
         T{ ##allot f 0 }
         T{ ##peek f 1 D 1 }
@@ -396,7 +396,7 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 0 }
         T{ ##peek f 1 D 1 }
@@ -405,7 +405,7 @@ IN: compiler.cfg.alias-analysis.tests
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
         T{ ##set-slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##allot f 0 }
         T{ ##peek f 1 D 1 }
@@ -416,13 +416,13 @@ IN: compiler.cfg.alias-analysis.tests
     } test-alias-analysis
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 0 }
         T{ ##slot-imm f 1 0 1 0 }
         T{ ##alien-invoke f { } { } { } { } 0 0 "free" }
     }
-] [
+} [
     V{
         T{ ##allot f 0 }
         T{ ##slot-imm f 1 0 1 0 }
@@ -433,13 +433,13 @@ IN: compiler.cfg.alias-analysis.tests
 
 ! Make sure that gc-map-insns which are also vreg-insns are
 ! handled properly
-[
+{
     V{
         T{ ##allot f 0 }
         T{ ##alien-indirect f { } { } { { 2 double-rep 0 } } { } 0 0 "free" }
         T{ ##set-slot-imm f 2 0 1 0 }
     }
-] [
+} [
     V{
         T{ ##allot f 0 }
         T{ ##alien-indirect f { } { } { { 2 double-rep 0 } } { } 0 0 "free" }
index 4c29a1c6138afbcfd0f9726fda83a00f9334497a..0b15d96dd79ccb2b77d14fdb7a56f6d99cf48ffa 100644 (file)
@@ -30,7 +30,7 @@ V{ T{ ##branch } } 4 test-bb
 
 test-diamond
 
-[ ] [ test-branch-splitting ] unit-test
+{ } [ test-branch-splitting ] unit-test
 
 V{ T{ ##branch } } 0 test-bb
 
@@ -50,7 +50,7 @@ V{ T{ ##branch } } 5 test-bb
 
 2 { 3 4 } edges
 
-[ ] [ test-branch-splitting ] unit-test
+{ } [ test-branch-splitting ] unit-test
 
 V{ T{ ##branch } } 0 test-bb
 
@@ -68,7 +68,7 @@ V{ T{ ##branch } } 4 test-bb
 
 2 4 edge
 
-[ ] [ test-branch-splitting ] unit-test
+{ } [ test-branch-splitting ] unit-test
 
 V{ T{ ##branch } } 0 test-bb
 
@@ -80,4 +80,4 @@ V{ T{ ##branch } } 2 test-bb
 
 1 2 edge
 
-[ ] [ test-branch-splitting ] unit-test
+{ } [ test-branch-splitting ] unit-test
index c60a44ab53e8493a6b0c82b8b22d55b6a2a0bafb..be46f8900c5ec4e297e719954140d07615ed5cbc 100644 (file)
@@ -20,5 +20,5 @@ IN: compiler.cfg.build-stack-frame.tests
     slots[ allot-area-base spill-area-base total-size ]
     ! Exclude any reserved stack space 32 bytes on win64, 0 bytes
     ! on all other platforms.
-    reserved-stack-space -
+    reserved-stack-space }
 ] unit-test
index 90b0c29cb0116004aa0f9d1b03ff5f63e34f6786..08dca71700f34915df528b77c18286c50a8b68e0 100644 (file)
@@ -167,42 +167,42 @@ IN: compiler.cfg.builder.tests
     { pinned-c-ptr class fixnum } \ set-alien-cell '[ _ declare _ execute ] unit-test-builder
 ] each
 
-[ t ] [ [ swap ] [ ##replace? ] contains-insn? ] unit-test
+{ t } [ [ swap ] [ ##replace? ] contains-insn? ] unit-test
 
-[ f ] [ [ swap swap ] [ ##replace? ] contains-insn? ] unit-test
+{ f } [ [ swap swap ] [ ##replace? ] contains-insn? ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum byte-array fixnum } declare set-alien-unsigned-1 ]
     [ [ ##store-memory? ] [ ##store-memory-imm? ] bi or ] contains-insn?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum byte-array fixnum } declare [ dup * dup * ] 2dip set-alien-unsigned-1 ]
     [ [ ##store-memory? ] [ ##store-memory-imm? ] bi or ] contains-insn?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { byte-array fixnum } declare set-alien-unsigned-1 ]
     [ [ ##store-memory? ] [ ##store-memory-imm? ] bi or ] contains-insn?
 ] unit-test
 
-[ t t ] [
+{ t t } [
     [ { byte-array fixnum } declare alien-cell ]
     [ [ [ ##load-memory? ] [ ##load-memory-imm? ] bi or ] contains-insn? ]
     [ [ ##box-alien? ] contains-insn? ]
     bi
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { byte-array integer } declare alien-cell ]
     [ [ ##load-memory? ] [ ##load-memory-imm? ] bi or ] contains-insn?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ 1000 [ ] times ] [ ##peek? ] contains-insn?
 ] unit-test
 
-[ f t ] [
+{ f t } [
     [ { fixnum alien } declare <displaced-alien> 0 alien-cell ]
     [ [ ##unbox-any-c-ptr? ] contains-insn? ]
     [ [ ##unbox-alien? ] contains-insn? ] bi
@@ -225,13 +225,13 @@ IN: compiler.cfg.builder.tests
 ] when
 
 ! Regression. Make sure everything is inlined correctly
-[ f ] [ M\ hashtable set-at [ { [ ##call? ] [ word>> \ set-slot eq? ] } 1&& ] contains-insn? ] unit-test
+{ f } [ M\ hashtable set-at [ { [ ##call? ] [ word>> \ set-slot eq? ] } 1&& ] contains-insn? ] unit-test
 
 ! Regression. Make sure branch splitting works.
-[ 2 ] [ [ 1 2 ? ] [ ##return? ] count-insns ] unit-test
+{ 2 } [ [ 1 2 ? ] [ ##return? ] count-insns ] unit-test
 
 ! Make sure fast union predicates don't have conditionals.
-[ f ] [
+{ f } [
     [ tag 1 swap fixnum-shift-fast ]
     [ ##compare-integer-imm-branch? ] contains-insn?
 ] unit-test
index 2e4fd73a4de7051be9aebd40e5379d55fc574c80..e0d0cd40e032c34b4e7c1a9fcf4f8bdd4029ef01 100644 (file)
@@ -53,16 +53,16 @@ V{
 3 4 edge
 4 5 edge
 
-[ ] [ test-copy-propagation ] unit-test
+{ } [ test-copy-propagation ] unit-test
 
-[
+{
     V{
         T{ ##replace f 0 D 0 }
         T{ ##replace f 4 D 1 }
         T{ ##replace f 4 D 2 }
         T{ ##branch }
     }
-] [ 5 get instructions>> ] unit-test
+} [ 5 get instructions>> ] unit-test
 
 ! Test optimistic assumption
 V{
@@ -96,11 +96,11 @@ V{
 2 { 2 3 } edges
 3 4 edge
 
-[ ] [ test-copy-propagation ] unit-test
+{ } [ test-copy-propagation ] unit-test
 
-[
+{
     V{
         T{ ##replace f 0 D 1 }
         T{ ##branch }
     }
-] [ 3 get instructions>> ] unit-test
+} [ 3 get instructions>> ] unit-test
index 53f25a437749c9a1000935c6830ca2cfde94390a..5f0247589841e7b31f0375948a9996c7c76636c6 100644 (file)
@@ -7,61 +7,61 @@ IN: compiler.cfg.dce.tests
 : test-dce ( insns -- insns' )
     insns>cfg dup eliminate-dead-code entry>> instructions>> ;
 
-[ V{
+{ V{
     T{ ##load-integer { dst 1 } { val 8 } }
     T{ ##load-integer { dst 2 } { val 16 } }
     T{ ##add { dst 3 } { src1 1 } { src2 2 } }
     T{ ##replace { src 3 } { loc D 0 } }
-} ] [ V{
+} } [ V{
     T{ ##load-integer { dst 1 } { val 8 } }
     T{ ##load-integer { dst 2 } { val 16 } }
     T{ ##add { dst 3 } { src1 1 } { src2 2 } }
     T{ ##replace { src 3 } { loc D 0 } }
 } test-dce ] unit-test
 
-[ V{ } ] [ V{
+{ V{ } } [ V{
     T{ ##load-integer { dst 1 } { val 8 } }
     T{ ##load-integer { dst 2 } { val 16 } }
     T{ ##add { dst 3 } { src1 1 } { src2 2 } }
 } test-dce ] unit-test
 
-[ V{ } ] [ V{
+{ V{ } } [ V{
     T{ ##load-integer { dst 3 } { val 8 } }
     T{ ##allot { dst 1 } { temp 2 } }
 } test-dce ] unit-test
 
-[ V{ } ] [ V{
+{ V{ } } [ V{
     T{ ##load-integer { dst 3 } { val 8 } }
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##set-slot-imm { obj 1 } { src 3 } }
 } test-dce ] unit-test
 
-[ V{
+{ V{
     T{ ##load-integer { dst 3 } { val 8 } }
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##set-slot-imm { obj 1 } { src 3 } }
     T{ ##replace { src 1 } { loc D 0 } }
-} ] [ V{
+} } [ V{
     T{ ##load-integer { dst 3 } { val 8 } }
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##set-slot-imm { obj 1 } { src 3 } }
     T{ ##replace { src 1 } { loc D 0 } }
 } test-dce ] unit-test
 
-[ V{
+{ V{
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##replace { src 1 } { loc D 0 } }
-} ] [ V{
+} } [ V{
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##replace { src 1 } { loc D 0 } }
 } test-dce ] unit-test
 
-[ V{
+{ V{
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##replace { src 1 } { loc D 0 } }
     T{ ##load-integer { dst 3 } { val 8 } }
     T{ ##set-slot-imm { obj 1 } { src 3 } }
-} ] [ V{
+} } [ V{
     T{ ##allot { dst 1 } { temp 2 } }
     T{ ##replace { src 1 } { loc D 0 } }
     T{ ##load-integer { dst 3 } { val 8 } }
index de5bf335b6b1dfcc706491371ff1e76acafcf32d..4cdad67977b2e5877036a1721514b5e2adf263a4 100644 (file)
@@ -37,4 +37,4 @@ V{
 5 6 edge
 
 1 get block>cfg 0 set
-[ ] [ 0 get compute-defs ] unit-test
+{ } [ 0 get compute-defs ] unit-test
index 0bcdd43a7e6439c3e2e893d865ba957f4b62ea50..01d1d347527e80d6f96c47d86ee09a3935498d74 100644 (file)
@@ -21,22 +21,22 @@ V{ } 5 test-bb
 3 4 edge
 4 5 edge
 
-[ ] [ test-dominance ] unit-test
+{ } [ test-dominance ] unit-test
 
-[ t ] [ 0 get dom-parent 0 get eq? ] unit-test
-[ t ] [ 1 get dom-parent 0 get eq? ] unit-test
-[ t ] [ 2 get dom-parent 0 get eq? ] unit-test
-[ t ] [ 4 get dom-parent 0 get eq? ] unit-test
-[ t ] [ 3 get dom-parent 1 get eq? ] unit-test
-[ t ] [ 5 get dom-parent 4 get eq? ] unit-test
+{ t } [ 0 get dom-parent 0 get eq? ] unit-test
+{ t } [ 1 get dom-parent 0 get eq? ] unit-test
+{ t } [ 2 get dom-parent 0 get eq? ] unit-test
+{ t } [ 4 get dom-parent 0 get eq? ] unit-test
+{ t } [ 3 get dom-parent 1 get eq? ] unit-test
+{ t } [ 5 get dom-parent 4 get eq? ] unit-test
 
-[ t ] [ 0 get dom-children 1 get 2 get 4 get 3array set= ] unit-test
+{ t } [ 0 get dom-children 1 get 2 get 4 get 3array set= ] unit-test
 
-[ t ] [ 0 get 3 get dominates? ] unit-test
-[ f ] [ 3 get 4 get dominates? ] unit-test
-[ f ] [ 1 get 4 get dominates? ] unit-test
-[ t ] [ 4 get 5 get dominates? ] unit-test
-[ f ] [ 1 get 5 get dominates? ] unit-test
+{ t } [ 0 get 3 get dominates? ] unit-test
+{ f } [ 3 get 4 get dominates? ] unit-test
+{ f } [ 1 get 4 get dominates? ] unit-test
+{ t } [ 4 get 5 get dominates? ] unit-test
+{ f } [ 1 get 5 get dominates? ] unit-test
 
 ! Example from the paper
 V{ } 0 test-bb
@@ -51,9 +51,9 @@ V{ } 4 test-bb
 3 4 edge
 4 3 edge
 
-[ ] [ test-dominance ] unit-test
+{ } [ test-dominance ] unit-test
 
-[ t ] [ 0 4 [a,b] [ get dom-parent 0 get eq? ] all? ] unit-test
+{ t } [ 0 4 [a,b] [ get dom-parent 0 get eq? ] all? ] unit-test
 
 ! The other example from the paper
 V{ } 0 test-bb
@@ -70,9 +70,9 @@ V{ } 5 test-bb
 4 { 5 3 } edges
 3 4 edge
 
-[ ] [ test-dominance ] unit-test
+{ } [ test-dominance ] unit-test
 
-[ t ] [ 0 5 [a,b] [ get dom-parent 0 get eq? ] all? ] unit-test
+{ t } [ 0 5 [a,b] [ get dom-parent 0 get eq? ] all? ] unit-test
 
 : non-det-test ( -- cfg )
     9 iota [ V{ } clone over insns>block ] { } map>assoc dup
index df8663d7111758040cccb458be912be9c12354c0..4117f4e66136d5167125ae6564a8eefe08921bd6 100644 (file)
@@ -59,7 +59,7 @@ IN: compiler.cfg.gc-checks.tests
 ] cfg-unit-test
 
 ! gc-check-offsets
-[ { } ] [
+{ { } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -68,7 +68,7 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { } ] [
+{ { } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -78,7 +78,7 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { 0 } ] [
+{ { 0 } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -89,7 +89,7 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { 0 } ] [
+{ { 0 } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -100,7 +100,7 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { 0 4 } ] [
+{ { 0 4 } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -113,7 +113,7 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { 3 } ] [
+{ { 3 } } [
     V{
         T{ ##inc }
         T{ ##peek }
@@ -124,15 +124,15 @@ IN: compiler.cfg.gc-checks.tests
     } gc-check-offsets
 ] unit-test
 
-[ { { "a" } } ] [ { "a" } { } split-instructions ] unit-test
+{ { { "a" } } } [ { "a" } { } split-instructions ] unit-test
 
-[ { { } { "a" } } ] [ { "a" } { 0 } split-instructions ] unit-test
+{ { { } { "a" } } } [ { "a" } { 0 } split-instructions ] unit-test
 
-[ { { "a" } { } } ] [ { "a" } { 1 } split-instructions ] unit-test
+{ { { "a" } { } } } [ { "a" } { 1 } split-instructions ] unit-test
 
-[ { { "a" } { "b" } } ] [ { "a" "b" } { 1 } split-instructions ] unit-test
+{ { { "a" } { "b" } } } [ { "a" "b" } { 1 } split-instructions ] unit-test
 
-[ { { } { "a" } { "b" "c" } } ] [ { "a" "b" "c" } { 0 1 } split-instructions ] unit-test
+{ { { } { "a" } { "b" "c" } } } [ { "a" "b" "c" } { 0 1 } split-instructions ] unit-test
 
 : test-gc-checks ( -- )
     H{ } clone representations set
@@ -149,9 +149,9 @@ V{
 
 0 1 edge
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
-[ t ] [ cfg get blocks-with-gc 1 get 1array sequence= ] unit-test
+{ t } [ cfg get blocks-with-gc 1 get 1array sequence= ] unit-test
 
 : gc-check? ( bb -- ? )
     instructions>>
@@ -167,7 +167,7 @@ V{
         T{ ##branch }
     } = ;
 
-[ t ] [ <gc-call> gc-call? ] unit-test
+{ t } [ <gc-call> gc-call? ] unit-test
 
 reset-vreg-counter
 
@@ -207,33 +207,33 @@ V{
 3 4 edge
 4 5 edge
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
 H{
     { 2 tagged-rep }
 } representations set
 
-[ ] [ cfg get insert-gc-checks ] unit-test
+{ } [ cfg get insert-gc-checks ] unit-test
 
-[ ] [ 1 get successors>> first successors>> first 2 set ] unit-test
+{ } [ 1 get successors>> first successors>> first 2 set ] unit-test
 
-[ 2 ] [ 2 get predecessors>> length ] unit-test
+{ 2 } [ 2 get predecessors>> length ] unit-test
 
-[ t ] [ 1 get successors>> first gc-check? ] unit-test
+{ t } [ 1 get successors>> first gc-check? ] unit-test
 
-[ 64 ] [ 1 get successors>> first instructions>> first size>> ] unit-test
+{ 64 } [ 1 get successors>> first instructions>> first size>> ] unit-test
 
-[ t ] [ 2 get predecessors>> first gc-check? ] unit-test
+{ t } [ 2 get predecessors>> first gc-check? ] unit-test
 
-[
+{
     V{
         T{ ##call-gc f T{ gc-map } }
         T{ ##branch }
     }
-] [ 2 get predecessors>> second instructions>> ] unit-test
+} [ 2 get predecessors>> second instructions>> ] unit-test
 
 ! Don't forget to invalidate RPO after inserting basic blocks!
-[ 8 ] [ cfg get reverse-post-order length ] unit-test
+{ 8 } [ cfg get reverse-post-order length ] unit-test
 
 ! Do the right thing with ##phi instructions
 V{
@@ -260,7 +260,7 @@ V{
 1 3 edge
 2 3 edge
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
 H{
     { 1 tagged-rep }
@@ -268,10 +268,10 @@ H{
     { 3 tagged-rep }
 } representations set
 
-[ ] [ cfg get insert-gc-checks ] unit-test
-[ ] [ 1 get successors>> first successors>> first 3 set ] unit-test
-[ t ] [ 2 get successors>> first instructions>> first ##phi? ] unit-test
-[ 2 ] [ 3 get instructions>> length ] unit-test
+{ } [ cfg get insert-gc-checks ] unit-test
+{ } [ 1 get successors>> first successors>> first 3 set ] unit-test
+{ t } [ 2 get successors>> first instructions>> first ##phi? ] unit-test
+{ 2 } [ 3 get instructions>> length ] unit-test
 
 ! GC check in a block that is its own successor
 V{
@@ -292,23 +292,23 @@ V{
 0 1 edge
 1 { 1 2 } edges
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
-[ ] [ cfg get insert-gc-checks ] unit-test
+{ } [ cfg get insert-gc-checks ] unit-test
 
-[ ] [
+{ } [
     0 get successors>> first predecessors>>
     [ first 0 get assert= ]
     [ second 1 get [ instructions>> ] bi@ assert= ] bi
 ] unit-test
 
-[ ] [
+{ } [
     0 get successors>> first successors>>
     [ first 1 get [ instructions>> ] bi@ assert= ]
     [ second gc-call? t assert= ] bi
 ] unit-test
 
-[ ] [
+{ } [
     2 get predecessors>> first predecessors>>
     [ first gc-check? t assert= ]
     [ second gc-call? t assert= ] bi
@@ -338,17 +338,17 @@ V{
 
 2 vreg-counter set-global
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
-[ ] [ cfg get insert-gc-checks ] unit-test
+{ } [ cfg get insert-gc-checks ] unit-test
 
 ! The GC check should come after the alien-invoke
-[
+{
     V{
         T{ ##alien-invoke f "malloc" f f f f f T{ gc-map } }
         T{ ##check-nursery-branch f 64 cc<= 3 4 }
     }
-] [ 0 get successors>> first instructions>> ] unit-test
+} [ 0 get successors>> first instructions>> ] unit-test
 
 ! call then allot then call then allot
 V{
@@ -374,40 +374,40 @@ V{
 
 2 vreg-counter set-global
 
-[ ] [ test-gc-checks ] unit-test
+{ } [ test-gc-checks ] unit-test
 
-[ ] [ cfg get insert-gc-checks ] unit-test
+{ } [ cfg get insert-gc-checks ] unit-test
 
-[
+{
     V{
         T{ ##alien-invoke f "malloc" f f f f f T{ gc-map } }
         T{ ##check-nursery-branch f 64 cc<= 3 4 }
     }
-] [
+} [
     0 get
     successors>> first
     instructions>>
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 1 64 byte-array }
         T{ ##alien-invoke f "malloc" f f f f f T{ gc-map } }
         T{ ##check-nursery-branch f 64 cc<= 5 6 }
     }
-] [
+} [
     0 get
     successors>> first
     successors>> first
     instructions>>
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 2 64 byte-array }
         T{ ##branch }
     }
-] [
+} [
     0 get
     successors>> first
     successors>> first
index 7f952284ab8f5f96394a8c0d48f0cbfe86249dfa..deb92f353a8b95a64b4f8f0012bb14f35e203b3c 100644 (file)
@@ -118,31 +118,31 @@ M: simple-ops-cpu %gather-vector-4-reps { int-4-rep uint-4-rep float-4-rep } ;
 M: simple-ops-cpu %alien-vector-reps all-reps ;
 
 ! v+
-[ { ##add-vector } ]
+{ { ##add-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-v+ ] test-emit ]
 unit-test
 
 ! v-
-[ { ##sub-vector } ]
+{ { ##sub-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-v- ] test-emit ]
 unit-test
 
 ! vneg
-[ { ##load-reference ##sub-vector } ]
+{ { ##load-reference ##sub-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vneg ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##sub-vector } ]
+{ { ##zero-vector ##sub-vector } }
 [ simple-ops-cpu int-4-rep [ emit-simd-vneg ] test-emit ]
 unit-test
 
 ! v*
-[ { ##mul-vector } ]
+{ { ##mul-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-v* ] test-emit ]
 unit-test
 
 ! v/
-[ { ##div-vector } ]
+{ { ##div-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-v/ ] test-emit ]
 unit-test
 
@@ -150,15 +150,15 @@ TUPLE: addsub-cpu < simple-ops-cpu ;
 M: addsub-cpu %add-sub-vector-reps { int-4-rep float-4-rep } ;
 
 ! v+-
-[ { ##add-sub-vector } ]
+{ { ##add-sub-vector } }
 [ addsub-cpu float-4-rep [ emit-simd-v+- ] test-emit ]
 unit-test
 
-[ { ##load-reference ##xor-vector ##add-vector } ]
+{ { ##load-reference ##xor-vector ##add-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-v+- ] test-emit ]
 unit-test
 
-[ { ##load-reference ##xor-vector ##sub-vector ##add-vector } ]
+{ { ##load-reference ##xor-vector ##sub-vector ##add-vector } }
 [ simple-ops-cpu int-4-rep [ emit-simd-v+- ] test-emit ]
 unit-test
 
@@ -168,41 +168,41 @@ M: saturating-cpu %saturated-sub-vector-reps { int-4-rep } ;
 M: saturating-cpu %saturated-mul-vector-reps { int-4-rep } ;
 
 ! vs+
-[ { ##add-vector } ]
+{ { ##add-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vs+ ] test-emit ]
 unit-test
 
-[ { ##add-vector } ]
+{ { ##add-vector } }
 [ saturating-cpu float-4-rep [ emit-simd-vs+ ] test-emit ]
 unit-test
 
-[ { ##saturated-add-vector } ]
+{ { ##saturated-add-vector } }
 [ saturating-cpu int-4-rep [ emit-simd-vs+ ] test-emit ]
 unit-test
 
 ! vs-
-[ { ##sub-vector } ]
+{ { ##sub-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vs- ] test-emit ]
 unit-test
 
-[ { ##sub-vector } ]
+{ { ##sub-vector } }
 [ saturating-cpu float-4-rep [ emit-simd-vs- ] test-emit ]
 unit-test
 
-[ { ##saturated-sub-vector } ]
+{ { ##saturated-sub-vector } }
 [ saturating-cpu int-4-rep [ emit-simd-vs- ] test-emit ]
 unit-test
 
 ! vs*
-[ { ##mul-vector } ]
+{ { ##mul-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vs* ] test-emit ]
 unit-test
 
-[ { ##mul-vector } ]
+{ { ##mul-vector } }
 [ saturating-cpu float-4-rep [ emit-simd-vs* ] test-emit ]
 unit-test
 
-[ { ##saturated-mul-vector } ]
+{ { ##saturated-mul-vector } }
 [ saturating-cpu int-4-rep [ emit-simd-vs* ] test-emit ]
 unit-test
 
@@ -217,20 +217,20 @@ M: compare-cpu %compare-vector-reps drop signed-reps ;
 M: compare-cpu %compare-vector-ccs nip f 2array 1array f ;
 
 ! vmin
-[ { ##min-vector } ]
+{ { ##min-vector } }
 [ minmax-cpu float-4-rep [ emit-simd-vmin ] test-emit ]
 unit-test
 
-[ { ##compare-vector ##and-vector ##andn-vector ##or-vector } ]
+{ { ##compare-vector ##and-vector ##andn-vector ##or-vector } }
 [ compare-cpu float-4-rep [ emit-simd-vmin ] test-emit ]
 unit-test
 
 ! vmax
-[ { ##max-vector } ]
+{ { ##max-vector } }
 [ minmax-cpu float-4-rep [ emit-simd-vmax ] test-emit ]
 unit-test
 
-[ { ##compare-vector ##and-vector ##andn-vector ##or-vector } ]
+{ { ##compare-vector ##and-vector ##andn-vector ##or-vector } }
 [ compare-cpu float-4-rep [ emit-simd-vmax ] test-emit ]
 unit-test
 
@@ -243,50 +243,50 @@ M: horizontal-cpu %unpack-vector-head-reps signed-reps ;
 M: horizontal-cpu %unpack-vector-tail-reps signed-reps ;
 
 ! v.
-[ { ##dot-vector } ]
+{ { ##dot-vector } }
 [ dot-cpu float-4-rep [ emit-simd-v. ] test-emit ]
 unit-test
 
-[ { ##mul-vector ##horizontal-add-vector ##horizontal-add-vector ##vector>scalar } ]
+{ { ##mul-vector ##horizontal-add-vector ##horizontal-add-vector ##vector>scalar } }
 [ horizontal-cpu float-4-rep [ emit-simd-v. ] test-emit ]
 unit-test
 
-[ {
+{ {
     ##mul-vector
     ##merge-vector-head ##merge-vector-tail ##add-vector
     ##merge-vector-head ##merge-vector-tail ##add-vector
     ##vector>scalar
-} ]
+} }
 [ simple-ops-cpu float-4-rep [ emit-simd-v. ] test-emit ]
 unit-test
 
 ! vsqrt
-[ { ##sqrt-vector } ]
+{ { ##sqrt-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vsqrt ] test-emit ]
 unit-test
 
 ! sum
-[ { ##horizontal-add-vector ##vector>scalar } ]
+{ { ##horizontal-add-vector ##vector>scalar } }
 [ horizontal-cpu double-2-rep [ emit-simd-sum ] test-emit ]
 unit-test
 
-[ { ##horizontal-add-vector ##horizontal-add-vector ##vector>scalar } ]
+{ { ##horizontal-add-vector ##horizontal-add-vector ##vector>scalar } }
 [ horizontal-cpu float-4-rep [ emit-simd-sum ] test-emit ]
 unit-test
 
-[ {
+{ {
     ##unpack-vector-head ##unpack-vector-tail ##add-vector
     ##horizontal-add-vector ##horizontal-add-vector
     ##vector>scalar
-} ]
+} }
 [ horizontal-cpu short-8-rep [ emit-simd-sum ] test-emit ]
 unit-test
 
-[ {
+{ {
     ##unpack-vector-head ##unpack-vector-tail ##add-vector
     ##horizontal-add-vector ##horizontal-add-vector ##horizontal-add-vector
     ##vector>scalar
-} ]
+} }
 [ horizontal-cpu char-16-rep [ emit-simd-sum ] test-emit ]
 unit-test
 
@@ -294,39 +294,39 @@ TUPLE: abs-cpu < simple-ops-cpu ;
 M: abs-cpu %abs-vector-reps signed-reps ;
 
 ! vabs
-[ { } ]
+{ { } }
 [ simple-ops-cpu uint-4-rep [ emit-simd-vabs ] test-emit ]
 unit-test
 
-[ { ##abs-vector } ]
+{ { ##abs-vector } }
 [ abs-cpu float-4-rep [ emit-simd-vabs ] test-emit ]
 unit-test
 
-[ { ##load-reference ##andn-vector } ]
+{ { ##load-reference ##andn-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vabs ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##sub-vector ##compare-vector ##and-vector ##andn-vector ##or-vector } ]
+{ { ##zero-vector ##sub-vector ##compare-vector ##and-vector ##andn-vector ##or-vector } }
 [ compare-cpu int-4-rep [ emit-simd-vabs ] test-emit ]
 unit-test
 
 ! vand
-[ { ##and-vector } ]
+{ { ##and-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vand ] test-emit ]
 unit-test
 
 ! vandn
-[ { ##andn-vector } ]
+{ { ##andn-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vandn ] test-emit ]
 unit-test
 
 ! vor
-[ { ##or-vector } ]
+{ { ##or-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vor ] test-emit ]
 unit-test
 
 ! vxor
-[ { ##xor-vector } ]
+{ { ##xor-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vxor ] test-emit ]
 unit-test
 
@@ -334,11 +334,11 @@ TUPLE: not-cpu < simple-ops-cpu ;
 M: not-cpu %not-vector-reps signed-reps ;
 
 ! vnot
-[ { ##not-vector } ]
+{ { ##not-vector } }
 [ not-cpu float-4-rep [ emit-simd-vnot ] test-emit ]
 unit-test
 
-[ { ##fill-vector ##xor-vector } ]
+{ { ##fill-vector ##xor-vector } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vnot ] test-emit ]
 unit-test
 
@@ -355,30 +355,30 @@ M: horizontal-shift-cpu %horizontal-shl-vector-imm-reps signed-reps ;
 M: horizontal-shift-cpu %horizontal-shr-vector-imm-reps signed-reps ;
 
 ! vlshift
-[ { ##shl-vector-imm } ]
+{ { ##shl-vector-imm } }
 [ shift-imm-cpu 2 int-4-rep [ emit-simd-vlshift ] test-emit-literal ]
 unit-test
 
-[ { ##shl-vector } ]
+{ { ##shl-vector } }
 [ shift-cpu int-4-rep [ emit-simd-vlshift ] test-emit ]
 unit-test
 
 ! vrshift
-[ { ##shr-vector-imm } ]
+{ { ##shr-vector-imm } }
 [ shift-imm-cpu 2 int-4-rep [ emit-simd-vrshift ] test-emit-literal ]
 unit-test
 
-[ { ##shr-vector } ]
+{ { ##shr-vector } }
 [ shift-cpu int-4-rep [ emit-simd-vrshift ] test-emit ]
 unit-test
 
 ! hlshift
-[ { ##horizontal-shl-vector-imm } ]
+{ { ##horizontal-shl-vector-imm } }
 [ horizontal-shift-cpu 2 int-4-rep [ emit-simd-hlshift ] test-emit-literal ]
 unit-test
 
 ! hrshift
-[ { ##horizontal-shr-vector-imm } ]
+{ { ##horizontal-shr-vector-imm } }
 [ horizontal-shift-cpu 2 int-4-rep [ emit-simd-hrshift ] test-emit-literal ]
 unit-test
 
@@ -389,44 +389,44 @@ TUPLE: shuffle-cpu < simple-ops-cpu ;
 M: shuffle-cpu %shuffle-vector-reps signed-reps ;
 
 ! vshuffle-elements
-[ { ##load-reference ##shuffle-vector } ]
+{ { ##load-reference ##shuffle-vector } }
 [ shuffle-cpu { 0 1 2 3 } int-4-rep [ emit-simd-vshuffle-elements ] test-emit-literal ]
 unit-test
 
-[ { ##shuffle-vector-imm } ]
+{ { ##shuffle-vector-imm } }
 [ shuffle-imm-cpu { 0 1 2 3 } int-4-rep [ emit-simd-vshuffle-elements ] test-emit-literal ]
 unit-test
 
 ! vshuffle-bytes
-[ { ##shuffle-vector } ]
+{ { ##shuffle-vector } }
 [ shuffle-cpu int-4-rep [ emit-simd-vshuffle-bytes ] test-emit ]
 unit-test
 
 ! vmerge-head
-[ { ##merge-vector-head } ]
+{ { ##merge-vector-head } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vmerge-head ] test-emit ]
 unit-test
 
 ! vmerge-tail
-[ { ##merge-vector-tail } ]
+{ { ##merge-vector-tail } }
 [ simple-ops-cpu float-4-rep [ emit-simd-vmerge-tail ] test-emit ]
 unit-test
 
 ! v<= etc.
-[ { ##compare-vector } ]
+{ { ##compare-vector } }
 [ compare-cpu int-4-rep [ emit-simd-v<= ] test-emit ]
 unit-test
 
-[ { ##min-vector ##compare-vector } ]
+{ { ##min-vector ##compare-vector } }
 [ minmax-cpu int-4-rep [ emit-simd-v<= ] test-emit ]
 unit-test
 
-[ { ##load-reference ##xor-vector ##xor-vector ##compare-vector } ]
+{ { ##load-reference ##xor-vector ##xor-vector ##compare-vector } }
 [ compare-cpu uint-4-rep [ emit-simd-v<= ] test-emit ]
 unit-test
 
 ! vany? etc.
-[ { ##test-vector } ]
+{ { ##test-vector } }
 [ simple-ops-cpu int-4-rep [ emit-simd-vany? ] test-emit ]
 unit-test
 
@@ -435,30 +435,30 @@ M: convert-cpu %integer>float-vector-reps { int-4-rep } ;
 M: convert-cpu %float>integer-vector-reps { float-4-rep } ;
 
 ! v>float
-[ { } ]
+{ { } }
 [ convert-cpu float-4-rep [ emit-simd-v>float ] test-emit ]
 unit-test
 
-[ { ##integer>float-vector } ]
+{ { ##integer>float-vector } }
 [ convert-cpu int-4-rep [ emit-simd-v>float ] test-emit ]
 unit-test
 
 ! v>integer
-[ { } ]
+{ { } }
 [ convert-cpu int-4-rep [ emit-simd-v>integer ] test-emit ]
 unit-test
 
-[ { ##float>integer-vector } ]
+{ { ##float>integer-vector } }
 [ convert-cpu float-4-rep [ emit-simd-v>integer ] test-emit ]
 unit-test
 
 ! vpack-signed
-[ { ##signed-pack-vector } ]
+{ { ##signed-pack-vector } }
 [ simple-ops-cpu int-4-rep [ emit-simd-vpack-signed ] test-emit ]
 unit-test
 
 ! vpack-unsigned
-[ { ##unsigned-pack-vector } ]
+{ { ##unsigned-pack-vector } }
 [ simple-ops-cpu int-4-rep [ emit-simd-vpack-unsigned ] test-emit ]
 unit-test
 
@@ -468,60 +468,60 @@ TUPLE: unpack-cpu < unpack-head-cpu ;
 M: unpack-cpu %unpack-vector-tail-reps all-reps ;
 
 ! vunpack-head
-[ { ##unpack-vector-head } ]
+{ { ##unpack-vector-head } }
 [ unpack-head-cpu int-4-rep [ emit-simd-vunpack-head ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##merge-vector-head } ]
+{ { ##zero-vector ##merge-vector-head } }
 [ simple-ops-cpu uint-4-rep [ emit-simd-vunpack-head ] test-emit ]
 unit-test
 
-[ { ##merge-vector-head ##shr-vector-imm } ]
+{ { ##merge-vector-head ##shr-vector-imm } }
 [ shift-imm-cpu int-4-rep [ emit-simd-vunpack-head ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##compare-vector ##merge-vector-head } ]
+{ { ##zero-vector ##compare-vector ##merge-vector-head } }
 [ compare-cpu int-4-rep [ emit-simd-vunpack-head ] test-emit ]
 unit-test
 
 ! vunpack-tail
-[ { ##unpack-vector-tail } ]
+{ { ##unpack-vector-tail } }
 [ unpack-cpu int-4-rep [ emit-simd-vunpack-tail ] test-emit ]
 unit-test
 
-[ { ##tail>head-vector ##unpack-vector-head } ]
+{ { ##tail>head-vector ##unpack-vector-head } }
 [ unpack-head-cpu int-4-rep [ emit-simd-vunpack-tail ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##merge-vector-tail } ]
+{ { ##zero-vector ##merge-vector-tail } }
 [ simple-ops-cpu uint-4-rep [ emit-simd-vunpack-tail ] test-emit ]
 unit-test
 
-[ { ##merge-vector-tail ##shr-vector-imm } ]
+{ { ##merge-vector-tail ##shr-vector-imm } }
 [ shift-imm-cpu int-4-rep [ emit-simd-vunpack-tail ] test-emit ]
 unit-test
 
-[ { ##zero-vector ##compare-vector ##merge-vector-tail } ]
+{ { ##zero-vector ##compare-vector ##merge-vector-tail } }
 [ compare-cpu int-4-rep [ emit-simd-vunpack-tail ] test-emit ]
 unit-test
 
 ! with
-[ { ##scalar>vector ##shuffle-vector-imm } ]
+{ { ##scalar>vector ##shuffle-vector-imm } }
 [ shuffle-imm-cpu float-4-rep [ emit-simd-with ] test-emit ]
 unit-test
 
 ! gather-2
-[ { ##gather-vector-2 } ]
+{ { ##gather-vector-2 } }
 [ simple-ops-cpu double-2-rep [ emit-simd-gather-2 ] test-emit ]
 unit-test
 
 ! gather-4
-[ { ##gather-vector-4 } ]
+{ { ##gather-vector-4 } }
 [ simple-ops-cpu float-4-rep [ emit-simd-gather-4 ] test-emit ]
 unit-test
 
 ! select
-[ { ##shuffle-vector-imm ##vector>scalar } ]
+{ { ##shuffle-vector-imm ##vector>scalar } }
 [ shuffle-imm-cpu 1 float-4-rep [ emit-simd-select ] test-emit-literal ]
 unit-test
 
index 3fba3b97b36b0833adb551fa3120cd797dfe27b0..21fc46ae5259974fb234a3cc2349b9e6418cdcad 100644 (file)
@@ -78,7 +78,7 @@ H{
     { { 3 8 } T{ spill-slot { n 32 } } }
     { { 1234 8 } T{ spill-slot } }
     { { 45 16 } T{ spill-slot { n 16 } } }
-} ? 1array
+} ? }
 [
     H{ } clone spill-slots set
     f f <basic-block> <cfg> cfg set
index db0db01dbb402db348445bcbd6d7db5a8ff6dcbf..0fb9f050ff758b34a89fac72a202c3183e544ba3 100644 (file)
@@ -42,7 +42,7 @@ V{
     [ cfg set ] [ number-instructions ] [ compute-live-intervals ] tri
     drop ;
 
-[ ] [
+{ } [
     H{
         { 1 int-rep }
     } representations set
@@ -52,45 +52,45 @@ V{
     test-live-intervals
 ] unit-test
 
-[ 0 0 ] [
+{ 0 0 } [
     1 live-intervals get at [ start>> ] [ end>> ] bi
 ] unit-test
 
 ! Live range and interval splitting
-[
+{
     { T{ live-range f 1 10 } T{ live-range f 15 15 } }
     { T{ live-range f 16 20 } }
-] [
+} [
     {
         T{ live-range f 1 10 }
         T{ live-range f 15 20 }
     } 15 split-ranges
 ] unit-test
 
-[
+{
     { T{ live-range f 1 10 } T{ live-range f 15 16 } }
     { T{ live-range f 17 20 } }
-] [
+} [
     {
         T{ live-range f 1 10 }
         T{ live-range f 15 20 }
     } 16 split-ranges
 ] unit-test
 
-[
+{
     { T{ live-range f 1 10 } }
     { T{ live-range f 15 20 } }
-] [
+} [
     {
         T{ live-range f 1 10 }
         T{ live-range f 15 20 }
     } 12 split-ranges
 ] unit-test
 
-[
+{
     { T{ live-range f 1 10 } T{ live-range f 15 17 } }
     { T{ live-range f 18 20 } }
-] [
+} [
     {
         T{ live-range f 1 10 }
         T{ live-range f 15 20 }
@@ -101,10 +101,10 @@ V{
     { T{ live-range f 1 10 } } 0 split-ranges
 ] must-fail
 
-[
+{
     { T{ live-range f 0 0 } }
     { T{ live-range f 1 5 } }
-] [
+} [
     { T{ live-range f 0 5 } } 0 split-ranges
 ] unit-test
 
@@ -120,7 +120,7 @@ H{
 : clean-up-split ( a b -- a b )
     [ dup [ [ >vector ] change-uses [ >vector ] change-ranges ] when ] bi@ ;
 
-[
+{
     T{ live-interval-state
        { vreg 1 }
        { reg-class float-regs }
@@ -141,7 +141,7 @@ H{
        { reload-from T{ spill-slot f 0 } }
        { reload-rep float-rep }
     }
-] [
+} [
     T{ live-interval-state
        { vreg 1 }
        { reg-class float-regs }
@@ -153,7 +153,7 @@ H{
     clean-up-split
 ] unit-test
 
-[
+{
     f
     T{ live-interval-state
        { vreg 2 }
@@ -165,7 +165,7 @@ H{
        { reload-from T{ spill-slot f 4 } }
        { reload-rep float-rep }
     }
-] [
+} [
     T{ live-interval-state
        { vreg 2 }
        { reg-class float-regs }
@@ -177,7 +177,7 @@ H{
     clean-up-split
 ] unit-test
 
-[
+{
     T{ live-interval-state
        { vreg 3 }
        { reg-class float-regs }
@@ -189,7 +189,7 @@ H{
        { spill-rep float-rep }
     }
     f
-] [
+} [
     T{ live-interval-state
        { vreg 3 }
        { reg-class float-regs }
@@ -201,7 +201,7 @@ H{
     clean-up-split
 ] unit-test
 
-[
+{
     T{ live-interval-state
        { vreg 4 }
        { reg-class float-regs }
@@ -222,7 +222,7 @@ H{
        { reload-from T{ spill-slot f 12 } }
        { reload-rep float-rep }
     }
-] [
+} [
     T{ live-interval-state
        { vreg 4 }
        { reg-class float-regs }
@@ -235,7 +235,7 @@ H{
 ] unit-test
 
 ! Don't insert reload if first usage is a def
-[
+{
     T{ live-interval-state
        { vreg 5 }
        { reg-class float-regs }
@@ -254,7 +254,7 @@ H{
        { uses V{ T{ vreg-use f 20 float-rep f } T{ vreg-use f 30 f float-rep } } }
        { ranges V{ T{ live-range f 20 30 } } }
     }
-] [
+} [
     T{ live-interval-state
        { vreg 5 }
        { reg-class float-regs }
@@ -267,7 +267,7 @@ H{
 ] unit-test
 
 ! Multiple representations
-[
+{
     T{ live-interval-state
        { vreg 6 }
        { reg-class float-regs }
@@ -288,7 +288,7 @@ H{
        { reload-from T{ spill-slot f 24 } }
        { reload-rep double-rep }
     }
-] [
+} [
     T{ live-interval-state
        { vreg 6 }
        { reg-class float-regs }
@@ -300,7 +300,7 @@ H{
     clean-up-split
 ] unit-test
 
-[
+{
     f
     T{ live-interval-state
         { vreg 7 }
@@ -310,7 +310,7 @@ H{
         { uses V{ T{ vreg-use f 8 int-rep } } }
         { reg-class int-regs }
     }
-] [
+} [
     T{ live-interval-state
         { vreg 7 }
         { start 4 }
@@ -323,7 +323,7 @@ H{
 ] unit-test
 
 ! trim-before-ranges, trim-after-ranges
-[
+{
     T{ live-interval-state
         { vreg 8 }
         { start 0 }
@@ -344,7 +344,7 @@ H{
         { reload-from T{ spill-slot f 32 } }
         { reload-rep int-rep }
     }
-] [
+} [
     T{ live-interval-state
         { vreg 8 }
         { start 0 }
@@ -362,12 +362,12 @@ H{
     { 3 int-rep }
 } representations set
 
-[
+{
     {
         3
         10
     }
-] [
+} [
     H{
         { int-regs
           V{
@@ -409,12 +409,12 @@ H{
     spill-status
 ] unit-test
 
-[
+{
     {
         1
         1/0.
     }
-] [
+} [
     H{
         { int-regs
           V{
@@ -450,7 +450,7 @@ H{
 
 H{ { 1 int-rep } { 2 int-rep } } representations set
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -465,7 +465,7 @@ H{ { 1 int-rep } { 2 int-rep } } representations set
     check-linear-scan
 ] unit-test
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -488,7 +488,7 @@ H{ { 1 int-rep } { 2 int-rep } } representations set
     check-linear-scan
 ] unit-test
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -511,7 +511,7 @@ H{ { 1 int-rep } { 2 int-rep } } representations set
     check-linear-scan
 ] unit-test
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -566,7 +566,7 @@ H{
     { 5 int-rep }
 } representations set
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -617,7 +617,7 @@ H{
 
 ! Test spill-new code path
 
-[ ] [
+{ } [
     {
         T{ live-interval-state
            { vreg 1 }
@@ -642,37 +642,37 @@ H{
     check-linear-scan
 ] unit-test
 
-[ f ] [
+{ f } [
     T{ live-range f 0 10 }
     T{ live-range f 20 30 }
     intersect-live-range
 ] unit-test
 
-[ 10 ] [
+{ 10 } [
     T{ live-range f 0 10 }
     T{ live-range f 10 30 }
     intersect-live-range
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     T{ live-range f 0 10 }
     T{ live-range f 5 30 }
     intersect-live-range
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     T{ live-range f 5 30 }
     T{ live-range f 0 10 }
     intersect-live-range
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     T{ live-range f 5 10 }
     T{ live-range f 0 15 }
     intersect-live-range
 ] unit-test
 
-[ 50 ] [
+{ 50 } [
     {
         T{ live-range f 0 10 }
         T{ live-range f 20 30 }
@@ -686,7 +686,7 @@ H{
     intersect-live-ranges
 ] unit-test
 
-[ f ] [
+{ f } [
     {
         T{ live-range f 0 10 }
         T{ live-range f 20 30 }
@@ -700,7 +700,7 @@ H{
     intersect-live-ranges
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     T{ live-interval-state
        { start 0 }
        { reg-class int-regs }
@@ -727,7 +727,7 @@ H{
     { 4 int-rep }
 } representations set
 
-[ { 0 10 } ] [
+{ { 0 10 } } [
     H{
         { int-regs
           {
index 22f9cfbeebd2ce60d8a215673f6fe878bea11d06..c72e286f0d5557e3ee60232146f29c2c78ca94db 100644 (file)
@@ -5,24 +5,24 @@ compiler.cfg.instructions cpu.architecture make sequences
 compiler.cfg.linear-scan.allocation.state ;
 IN: compiler.cfg.linear-scan.resolve.tests
 
-[
+{
     {
         {
             T{ location f T{ spill-slot f 0 } int-rep int-regs }
             T{ location f 1 int-rep int-regs }
         }
     }
-] [
+} [
     [
         0 <spill-slot> 1 int-rep add-mapping
     ] { } make
 ] unit-test
 
-[
+{
     {
         T{ ##reload { dst 1 } { rep int-rep } { src T{ spill-slot f 0 } } }
     }
-] [
+} [
     [
         T{ location f T{ spill-slot f 0 } int-rep int-regs }
         T{ location f 1 int-rep int-regs }
@@ -30,11 +30,11 @@ IN: compiler.cfg.linear-scan.resolve.tests
     ] { } make
 ] unit-test
 
-[
+{
     {
         T{ ##spill { src 1 } { rep int-rep } { dst T{ spill-slot f 0 } } }
     }
-] [
+} [
     [
         T{ location f 1 int-rep int-regs }
         T{ location f T{ spill-slot f 0 } int-rep int-regs }
@@ -42,11 +42,11 @@ IN: compiler.cfg.linear-scan.resolve.tests
     ] { } make
 ] unit-test
 
-[
+{
     {
         T{ ##copy { src 1 } { dst 2 } { rep int-rep } }
     }
-] [
+} [
     [
         T{ location f 1 int-rep int-regs }
         T{ location f 2 int-rep int-regs }
@@ -54,23 +54,23 @@ IN: compiler.cfg.linear-scan.resolve.tests
     ] { } make
 ] unit-test
 
-[
+{
     {
         T{ ##copy { src 1 } { dst 2 } { rep int-rep } }
         T{ ##branch }
     }
-] [
+} [
     { { T{ location f 1 int-rep int-regs } T{ location f 2 int-rep int-regs } } }
     mapping-instructions
 ] unit-test
 
-[
+{
     {
         T{ ##spill { src 0 } { rep int-rep } { dst T{ spill-slot f 0 } } }
         T{ ##reload { dst 0 } { rep tagged-rep } { src T{ spill-slot f 1 } } }
         T{ ##branch }
     }
-] [
+} [
     {
         { T{ location f T{ spill-slot f 1 } tagged-rep int-regs } T{ location f 0 tagged-rep int-regs } }
         { T{ location f 0 int-rep int-regs } T{ location f T{ spill-slot f 0 } int-rep int-regs } }
@@ -78,13 +78,13 @@ IN: compiler.cfg.linear-scan.resolve.tests
     mapping-instructions
 ] unit-test
 
-[
+{
     {
         T{ ##spill { src 0 } { rep int-rep } { dst T{ spill-slot f 1 } } }
         T{ ##reload { dst 0 } { rep tagged-rep } { src T{ spill-slot f 0 } } }
         T{ ##branch }
     }
-] [
+} [
     {
         { T{ location f T{ spill-slot f 0 } tagged-rep int-regs } T{ location f 0 tagged-rep int-regs } }
         { T{ location f 0 int-rep int-regs } T{ location f T{ spill-slot f 1 } int-rep int-regs } }
@@ -92,13 +92,13 @@ IN: compiler.cfg.linear-scan.resolve.tests
     mapping-instructions
 ] unit-test
 
-[
+{
     {
         T{ ##spill { src 0 } { rep int-rep } { dst T{ spill-slot f 1 } } }
         T{ ##reload { dst 0 } { rep tagged-rep } { src T{ spill-slot f 0 } } }
         T{ ##branch }
     }
-] [
+} [
     {
         { T{ location f 0 int-rep int-regs } T{ location f T{ spill-slot f 1 } int-rep int-regs } }
         { T{ location f T{ spill-slot f 0 } tagged-rep int-regs } T{ location f 0 tagged-rep int-regs } }
@@ -109,7 +109,7 @@ IN: compiler.cfg.linear-scan.resolve.tests
 cfg new 8 >>spill-area-size cfg set
 init-resolve
 
-[ t ] [
+{ t } [
     {
         { T{ location f 0 int-rep int-regs } T{ location f 1 int-rep int-regs } }
         { T{ location f 1 int-rep int-regs } T{ location f 0 int-rep int-regs } }
index acdc780ddb875afb535abc1f67cb3c9474a9fa34..d195e9f4e2afeb85496d2ad1d1a7c21f10ae83f9 100644 (file)
@@ -174,15 +174,15 @@ V{
 
 1 { 2 3 } edges
 
-[ ] [ test-liveness ] unit-test
+{ } [ test-liveness ] unit-test
 
-[
+{
     H{
         { 1 1 }
         { 2 2 }
         { 3 3 }
     }
-]
+}
 [ 1 get live-in ]
 unit-test
 
@@ -200,9 +200,9 @@ V{
 
 1 2 edge
 
-[ ] [ test-liveness ] unit-test
+{ } [ test-liveness ] unit-test
 
-[ H{ { 0 0 } } ] [ 2 get live-in ] unit-test
+{ H{ { 0 0 } } } [ 2 get live-in ] unit-test
 
 ! Regression
 V{
@@ -286,12 +286,12 @@ V{
 7 8 edge
 8 9 edge
 
-[ ] [ test-liveness ] unit-test
+{ } [ test-liveness ] unit-test
 
-[ H{ { 28 28 } { 29 29 } { 30 30 } { 31 31 } } ] [ 5 get live-out ] unit-test
-[ H{ { 28 28 } { 29 29 } { 30 30 } } ] [ 6 get live-in ] unit-test
-[ H{ { 28 28 } { 29 29 } { 31 31 } } ] [ 7 get live-in ] unit-test
-[ H{ { 30 30 } } ] [ 6 get 8 get edge-live-in ] unit-test
+{ H{ { 28 28 } { 29 29 } { 30 30 } { 31 31 } } } [ 5 get live-out ] unit-test
+{ H{ { 28 28 } { 29 29 } { 30 30 } } } [ 6 get live-in ] unit-test
+{ H{ { 28 28 } { 29 29 } { 31 31 } } } [ 7 get live-in ] unit-test
+{ H{ { 30 30 } } } [ 6 get 8 get edge-live-in ] unit-test
 
 V{
     T{ ##prologue }
@@ -339,15 +339,15 @@ V{
 5 6 edge
 6 7 edge
 
-[ ] [ 0 get block>cfg dup cfg set compute-live-sets ] unit-test
+{ } [ 0 get block>cfg dup cfg set compute-live-sets ] unit-test
 
-[ t ] [ 0 get live-in assoc-empty? ] unit-test
+{ t } [ 0 get live-in assoc-empty? ] unit-test
 
-[ H{ { 2 2 } } ] [ 4 get live-out ] unit-test
+{ H{ { 2 2 } } } [ 4 get live-out ] unit-test
 
-[ H{ { 0 0 } } ] [ 2 get 4 get edge-live-in ] unit-test
+{ H{ { 0 0 } } } [ 2 get 4 get edge-live-in ] unit-test
 
-[ H{ { 1 1 } } ] [ 3 get 4 get edge-live-in ] unit-test
+{ H{ { 1 1 } } } [ 3 get 4 get edge-live-in ] unit-test
 
 
 V{
@@ -378,12 +378,12 @@ H{
     { 1 int-rep }
 } representations set
 
-[ ] [ 0 get block>cfg dup cfg set compute-live-sets ] unit-test
+{ } [ 0 get block>cfg dup cfg set compute-live-sets ] unit-test
 
-[ V{ { 1 0 } } ] [ 1 get instructions>> 2 swap nth gc-map>> derived-roots>> ] unit-test
+{ V{ { 1 0 } } } [ 1 get instructions>> 2 swap nth gc-map>> derived-roots>> ] unit-test
 
-[ { 0 } ] [ 1 get instructions>> 2 swap nth gc-map>> gc-roots>> ] unit-test
+{ { 0 } } [ 1 get instructions>> 2 swap nth gc-map>> gc-roots>> ] unit-test
 
-[ V{ { 1 0 } } ] [ 1 get instructions>> 4 swap nth gc-map>> derived-roots>> ] unit-test
+{ V{ { 1 0 } } } [ 1 get instructions>> 4 swap nth gc-map>> derived-roots>> ] unit-test
 
-[ { 0 } ] [ 1 get instructions>> 4 swap nth gc-map>> gc-roots>> ] unit-test
+{ { 0 } } [ 1 get instructions>> 4 swap nth gc-map>> gc-roots>> ] unit-test
index 82b8a46975b8b078ba65e203f096b9c33a42cf9f..584a4e08855a21d032ebee5ab5bc86d7862230a5 100644 (file)
@@ -28,8 +28,8 @@ V{ } 2 test-bb
 : test-loop-detection ( -- )
     0 get block>cfg needs-loops ;
 
-[ ] [ test-loop-detection ] unit-test
+{ } [ test-loop-detection ] unit-test
 
-[ 1 ] [ 0 get loop-nesting-at ] unit-test
-[ 0 ] [ 1 get loop-nesting-at ] unit-test
-[ 1 ] [ 2 get loop-nesting-at ] unit-test
+{ 1 } [ 0 get loop-nesting-at ] unit-test
+{ 0 } [ 1 get loop-nesting-at ] unit-test
+{ 1 } [ 2 get loop-nesting-at ] unit-test
index 1f8537531f1b97994f334efb0ebeacb9cb4d0a6b..090dcd8c01f14418dacfef156861d2ebbfe8ddaa 100644 (file)
@@ -14,51 +14,51 @@ SYMBOL: temp
     H{ } test-parallel-copy
 ] unit-test
 
-[
+{
     {
         T{ ##copy f 4 2 any-rep }
         T{ ##copy f 2 1 any-rep }
         T{ ##copy f 1 4 any-rep }
     }
-] [
+} [
     H{
         { 1 2 }
         { 2 1 }
     } test-parallel-copy
 ] unit-test
 
-[
+{
     {
         T{ ##copy f 1 2 any-rep }
         T{ ##copy f 3 4 any-rep }
     }
-] [
+} [
     H{
         { 1 2 }
         { 3 4 }
     } test-parallel-copy
 ] unit-test
 
-[
+{
     {
         T{ ##copy f 1 3 any-rep }
         T{ ##copy f 2 1 any-rep }
     }
-] [
+} [
     H{
         { 1 3 }
         { 2 3 }
     } test-parallel-copy
 ] unit-test
 
-[
+{
     {
         T{ ##copy f 4 3 any-rep }
         T{ ##copy f 3 2 any-rep }
         T{ ##copy f 2 1 any-rep }
         T{ ##copy f 1 4 any-rep }
     }
-] [
+} [
     {
         { 2 1 }
         { 3 2 }
index 0edbf69627b0e17c26e8188bb78178ce809b3dac..2759ba8a0d4e6acf04fa4f73065a56911300278d 100644 (file)
@@ -34,8 +34,8 @@ V{
 1 3 edge
 2 3 edge
 
-[ ] [ test-scc ] unit-test
+{ } [ test-scc ] unit-test
 
-[ t ] [ 0 vreg>scc 1 vreg>scc = ] unit-test
-[ t ] [ 0 vreg>scc 3 vreg>scc = ] unit-test
-[ f ] [ 2 vreg>scc 3 vreg>scc = ] unit-test
+{ t } [ 0 vreg>scc 1 vreg>scc = ] unit-test
+{ t } [ 0 vreg>scc 3 vreg>scc = ] unit-test
+{ f } [ 2 vreg>scc 3 vreg>scc = ] unit-test
index c88333e68899faae042d030702ccb859c5932b6e..4ecc99e6b4a49f45b6995b6140284091f3e29ee7 100644 (file)
@@ -9,7 +9,7 @@ make ;
 FROM: alien.c-types => char ;
 IN: compiler.cfg.representations
 
-[ { double-rep double-rep } ] [
+{ { double-rep double-rep } } [
     T{ ##add-float
        { dst 5 }
        { src1 3 }
@@ -17,7 +17,7 @@ IN: compiler.cfg.representations
     } uses-vreg-reps
 ] unit-test
 
-[ { double-rep } ] [
+{ { double-rep } } [
     T{ ##load-memory-imm
        { dst 5 }
        { base 3 }
@@ -30,22 +30,22 @@ H{ } clone representations set
 
 3 vreg-counter set-global
 
-[
+{
     {
         T{ ##allot f 2 16 float 4 }
         T{ ##store-memory-imm f 1 2 $[ float-offset ] double-rep f }
     }
-] [
+} [
     [
         2 1 tagged-rep double-rep emit-conversion
     ] { } make
 ] unit-test
 
-[
+{
     {
         T{ ##load-memory-imm f 2 1 $[ float-offset ] double-rep f }
     }
-] [
+} [
     [
         2 1 double-rep tagged-rep emit-conversion
     ] { } make
@@ -78,9 +78,9 @@ V{
 0 1 edge
 1 2 edge
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[ 1 ] [ 1 get instructions>> [ ##allot? ] count ] unit-test
+{ 1 } [ 1 get instructions>> [ ##allot? ] count ] unit-test
 
 ! Don't dereference the result of a peek
 V{
@@ -110,14 +110,14 @@ V{
 0 1 edge
 1 { 2 3 } edges
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##branch }
     }
-] [ 1 get instructions>> ] unit-test
+} [ 1 get instructions>> ] unit-test
 
 ! We cannot untag-fixnum the result of a peek if there are usages
 ! of it as a tagged-rep
@@ -153,14 +153,14 @@ V{
 3 { 3 4 } edges
 2 4 edge
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##branch }
     }
-] [ 1 get instructions>> ] unit-test
+} [ 1 get instructions>> ] unit-test
 
 ! But its ok to untag-fixnum the result of a peek if all usages use
 ! it as int-rep
@@ -199,15 +199,15 @@ V{
 
 3 vreg-counter set-global
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[
+{
     V{
         T{ ##peek f 4 D 0 }
         T{ ##sar-imm f 1 4 $[ tag-bits get ] }
         T{ ##branch }
     }
-] [ 1 get instructions>> ] unit-test
+} [ 1 get instructions>> ] unit-test
 
 ! scalar-rep => int-rep conversion
 V{
@@ -231,9 +231,9 @@ V{
 0 1 edge
 1 2 edge
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[ t ] [ 1 get instructions>> 4 swap nth ##scalar>integer? ] unit-test
+{ t } [ 1 get instructions>> 4 swap nth ##scalar>integer? ] unit-test
 
 ! Test phi node behavior
 V{
@@ -267,13 +267,13 @@ V{
 2 3 edge
 3 4 edge
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
-[ T{ ##load-tagged f 1 $[ 1 tag-fixnum ] } ]
+{ T{ ##load-tagged f 1 $[ 1 tag-fixnum ] } }
 [ 1 get instructions>> first ]
 unit-test
 
-[ T{ ##load-tagged f 2 $[ 2 tag-fixnum ] } ]
+{ T{ ##load-tagged f 2 $[ 2 tag-fixnum ] } }
 [ 2 get instructions>> first ]
 unit-test
 
@@ -311,10 +311,10 @@ V{
 2 3 edge
 3 4 edge
 
-[ ] [ test-representations ] unit-test
+{ } [ test-representations ] unit-test
 
 ! Don't untag the f!
-[ 2 ] [ 2 get instructions>> length ] unit-test
+{ 2 } [ 2 get instructions>> length ] unit-test
 
 cpu x86.32? [
 
@@ -398,7 +398,7 @@ cpu x86.32? [
 ! we might lose precision
 5 vreg-counter set-global
 
-[ f ] [
+{ f } [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -413,12 +413,12 @@ cpu x86.32? [
 ] unit-test
 
 ! Converting a ##load-integer into a ##load-tagged
-[
+{
     V{
         T{ ##load-tagged f 1 $[ 100 tag-fixnum ] }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##replace f 1 D 0 }
@@ -428,7 +428,7 @@ cpu x86.32? [
 ! Peephole optimization if input to ##shl-imm is tagged
 3 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##sar-imm f 2 1 1 }
@@ -436,7 +436,7 @@ cpu x86.32? [
         T{ ##shl-imm f 3 4 $[ tag-bits get ] }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 3 }
@@ -447,7 +447,7 @@ cpu x86.32? [
 
 3 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 $[ 10 tag-bits get - ] }
@@ -455,7 +455,7 @@ cpu x86.32? [
         T{ ##shl-imm f 3 4 $[ tag-bits get ] }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 10 }
@@ -464,7 +464,7 @@ cpu x86.32? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##copy f 2 1 int-rep }
@@ -472,7 +472,7 @@ cpu x86.32? [
         T{ ##shl-imm f 3 5 $[ tag-bits get ] }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 $[ tag-bits get ] }
@@ -482,13 +482,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Peephole optimization if output of ##shl-imm needs to be tagged
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##shl-imm f 2 1 $[ 3 tag-bits get + ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##shl-imm f 2 1 3 }
@@ -498,13 +498,13 @@ cpu x86.32? [
 
 ! Peephole optimization if both input and output of ##shl-imm
 ! need to be tagged
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 3 }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 3 }
@@ -513,7 +513,7 @@ cpu x86.32? [
 ] unit-test
 
 ! Peephole optimization if neither input nor output of ##shl-imm need to be tagged
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##shl-imm f 2 1 3 }
@@ -521,7 +521,7 @@ cpu x86.32? [
         T{ ##load-integer f 4 100 }
         T{ ##store-memory f 2 3 4 0 0 int-rep char }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##shl-imm f 2 1 3 }
@@ -534,14 +534,14 @@ cpu x86.32? [
 6 vreg-counter set-global
 
 ! Peephole optimization if input to ##sar-imm is tagged
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##sar-imm f 7 1 $[ 3 tag-bits get + ] }
         T{ ##shl-imm f 2 7 $[ tag-bits get ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##sar-imm f 2 1 3 }
@@ -552,14 +552,14 @@ cpu x86.32? [
 6 vreg-counter set-global
 
 ! (Lack of) peephole optimization if output of ##sar-imm needs to be tagged
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##sar-imm f 7 1 3 }
         T{ ##shl-imm f 2 7 $[ tag-bits get ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##sar-imm f 2 1 3 }
@@ -569,7 +569,7 @@ cpu x86.32? [
 
 ! Peephole optimization if input of ##sar-imm is tagged but output is untagged
 ! need to be tagged
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 $[ 3 tag-bits get + ] }
@@ -577,7 +577,7 @@ cpu x86.32? [
         T{ ##load-integer f 4 100 }
         T{ ##store-memory f 1 3 4 0 0 int-rep char }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 3 }
@@ -588,7 +588,7 @@ cpu x86.32? [
 ] unit-test
 
 ! Peephole optimization if neither input nor output of ##sar-imm need to be tagged
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##sar-imm f 2 1 3 }
@@ -596,7 +596,7 @@ cpu x86.32? [
         T{ ##load-integer f 4 100 }
         T{ ##store-memory f 2 3 4 0 0 int-rep char }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##sar-imm f 2 1 3 }
@@ -606,7 +606,7 @@ cpu x86.32? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##load-vector f 0 B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } short-8-rep }
         T{ ##select-vector f 1 0 0 short-8-rep }
@@ -617,7 +617,7 @@ cpu x86.32? [
         T{ ##load-integer f 6 100 }
         T{ ##store-memory f 4 5 6 0 0 int-rep char }
     }
-] [
+} [
     V{
         T{ ##load-vector f 0 B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } short-8-rep }
         T{ ##select-vector f 1 0 0 short-8-rep }
@@ -632,7 +632,7 @@ cpu x86.32? [
 
 6 vreg-counter set-global
 
-[
+{
     V{
         T{ ##load-vector f 0 B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } int-4-rep }
         T{ ##select-vector f 1 0 0 int-4-rep }
@@ -642,7 +642,7 @@ cpu x86.32? [
         T{ ##shl-imm f 4 7 $[ tag-bits get ] }
         T{ ##replace f 4 D 0 }
     }
-] [
+} [
     V{
         T{ ##load-vector f 0 B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } int-4-rep }
         T{ ##select-vector f 1 0 0 int-4-rep }
@@ -654,13 +654,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Tag/untag elimination
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##add-imm f 2 1 $[ 100 tag-fixnum ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##add-imm f 2 1 100 }
@@ -668,14 +668,14 @@ cpu x86.32? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##add f 2 0 1 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -721,13 +721,13 @@ cpu x86.64? [
 ] when
 
 ! Tag/untag elimination for ##mul-imm
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##mul-imm f 1 0 100 }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##mul-imm f 1 0 100 }
@@ -737,7 +737,7 @@ cpu x86.64? [
 
 4 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -746,7 +746,7 @@ cpu x86.64? [
         T{ ##mul-imm f 3 2 $[ 100 tag-fixnum ] }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -757,14 +757,14 @@ cpu x86.64? [
 ] unit-test
 
 ! Tag/untag elimination for ##compare-integer and ##test
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##test f 2 0 1 cc= }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -773,14 +773,14 @@ cpu x86.64? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer f 2 0 1 cc= }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -789,13 +789,13 @@ cpu x86.64? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-branch f 0 1 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -803,13 +803,13 @@ cpu x86.64? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##test-branch f 0 1 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -817,13 +817,13 @@ cpu x86.64? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-imm-branch f 0 $[ 10 tag-fixnum ] cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -831,13 +831,13 @@ cpu x86.64? [
     } test-peephole
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##test-imm-branch f 0 $[ 10 tag-fixnum ] cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -846,13 +846,13 @@ cpu x86.64? [
 ] unit-test
 
 ! Tag/untag elimination for ##neg
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
@@ -862,7 +862,7 @@ cpu x86.64? [
 
 4 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek { dst 0 } { loc D 0 } }
         T{ ##peek { dst 1 } { loc D 1 } }
@@ -872,7 +872,7 @@ cpu x86.64? [
         T{ ##mul-imm { dst 3 } { src1 2 } { src2 -16 } }
         T{ ##replace { src 3 } { loc D 0 } }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -885,14 +885,14 @@ cpu x86.64? [
 ! Tag/untag elimination for ##not
 2 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##not f 3 0 }
         T{ ##xor-imm f 1 3 $[ tag-mask get ] }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
index bc7b71d684728d0e82425724245c444a5a736577..87ae39e580a1123a433d0bafaea4415969769788 100644 (file)
@@ -13,12 +13,12 @@ V{
 
 0 get [ insert-save-context ] change-instructions drop
 
-[
+{
     V{
         T{ ##add f 1 2 3 }
         T{ ##branch }
     }
-] [
+} [
     0 get instructions>>
 ] unit-test
 
@@ -33,7 +33,7 @@ V{
 
 0 get [ insert-save-context ] change-instructions drop
 
-[
+{
     V{
         T{ ##inc f D 3 }
         T{ ##save-context f 5 6 }
@@ -41,7 +41,7 @@ V{
             T{ gc-map { scrub-d B{ 0 0 0 } } { scrub-r B{ } } { gc-roots { } } }
         }
     }
-] [
+} [
     0 get instructions>>
 ] unit-test
 
@@ -52,13 +52,13 @@ V{
 
 0 get [ insert-save-context ] change-instructions drop
 
-[
+{
     V{
         T{ ##phi }
         T{ ##save-context f 7 8 }
         T{ ##box }
     }
-] [
+} [
     0 get instructions>>
 ] unit-test
 
index 028b9a695598442111de2cb7db7e50a5b457c028..c961f217d308cf980b1ca8f04396cfcc7f1f1ac9 100644 (file)
@@ -72,38 +72,38 @@ V{
 1 3 edge
 2 3 edge
 
-[ ] [ test-ssa ] unit-test
+{ } [ test-ssa ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 1 50 }
         T{ ##add-imm f 3 2 10 }
         T{ ##branch }
     }
-] [ 0 get instructions>> ] unit-test
+} [ 0 get instructions>> ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 4 3 }
         T{ ##branch }
     }
-] [ 1 get instructions>> ] unit-test
+} [ 1 get instructions>> ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 5 4 }
         T{ ##branch }
     }
-] [ 2 get instructions>> ] unit-test
+} [ 2 get instructions>> ] unit-test
 
-[
+{
     V{
         T{ ##phi f 6 H{ { 1 4 } { 2 5 } } }
         T{ ##replace f 6 D 0 }
         T{ ##return }
     }
-] [
+} [
     3 get instructions>>
     clean-up-phis
 ] unit-test
@@ -126,14 +126,14 @@ V{ } 6 test-bb
 4 6 edge
 5 6 edge
 
-[ ] [ test-ssa ] unit-test
+{ } [ test-ssa ] unit-test
 
-[
+{
     V{
         T{ ##phi f 3 H{ { 2 1 } { 3 2 } } }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     4 get instructions>>
     clean-up-phis
 ] unit-test
@@ -168,9 +168,9 @@ V{
 2 4 edge
 3 4 edge
 
-[ ] [ test-ssa ] unit-test
+{ } [ test-ssa ] unit-test
 
-[ V{ } ] [ 4 get instructions>> [ ##phi? ] filter ] unit-test
+{ V{ } } [ 4 get instructions>> [ ##phi? ] filter ] unit-test
 
 ! Test 4
 reset-counters
@@ -217,8 +217,8 @@ V{
 5 7 edge
 6 7 edge
 
-[ ] [ test-ssa ] unit-test
+{ } [ test-ssa ] unit-test
 
-[ V{ } ] [ 5 get instructions>> [ ##phi? ] filter ] unit-test
+{ V{ } } [ 5 get instructions>> [ ##phi? ] filter ] unit-test
 
-[ V{ } ] [ 7 get instructions>> [ ##phi? ] filter ] unit-test
+{ V{ } } [ 7 get instructions>> [ ##phi? ] filter ] unit-test
index 1e12b84f2736bfe2fd1015d5d72917717748f972..7b6100ed69292c5fb98acaed267b78f821a59a91 100644 (file)
@@ -22,12 +22,12 @@ V{ } 5 test-bb
 3 4 edge
 4 5 edge
 
-[ ] [ test-tdmsc ] unit-test
+{ } [ test-tdmsc ] unit-test
 
-[ { 4 } ] [ 1 get 1array merge-set [ number>> ] map ] unit-test
-[ { 4 } ] [ 2 get 1array merge-set [ number>> ] map ] unit-test
-[ { } ] [ 0 get 1array merge-set ] unit-test
-[ { } ] [ 4 get 1array merge-set ] unit-test
+{ { 4 } } [ 1 get 1array merge-set [ number>> ] map ] unit-test
+{ { 4 } } [ 2 get 1array merge-set [ number>> ] map ] unit-test
+{ { } } [ 0 get 1array merge-set ] unit-test
+{ { } } [ 4 get 1array merge-set ] unit-test
 
 V{ } 0 test-bb
 V{ } 1 test-bb
@@ -44,9 +44,9 @@ V{ } 6 test-bb
 4 6 edge
 5 6 edge
 
-[ ] [ test-tdmsc ] unit-test
+{ } [ test-tdmsc ] unit-test
 
-[ t ] [
+{ t } [
     2 get 3 get 2array merge-set
     4 get 6 get 2array set=
 ] unit-test
@@ -68,7 +68,7 @@ V{ } 7 test-bb
 4 5 edge
 5 2 edge
 
-[ ] [ test-tdmsc ] unit-test
+{ } [ test-tdmsc ] unit-test
 
-[ { 2 } ] [ { 2 3 4 5 } [ get ] map merge-set [ number>> ] map ] unit-test
-[ { } ] [ { 0 1 6 7 } [ get ] map merge-set ] unit-test
+{ { 2 } } [ { 2 3 4 5 } [ get ] map merge-set [ number>> ] map ] unit-test
+{ { } } [ { 0 1 6 7 } [ get ] map merge-set ] unit-test
index 75cdf0958296c480a4e5af9d56accfd5e9b931b8..0a1da4ddb35b17fc99462c75c75905cfa5b2ba13 100644 (file)
@@ -51,22 +51,22 @@ V{
 
 0 1 edge
 
-[ ] [ test-interference ] unit-test
-
-[ f ] [ 0 1 test-vregs-intersect? ] unit-test
-[ f ] [ 1 0 test-vregs-intersect? ] unit-test
-[ f ] [ 2 3 test-vregs-intersect? ] unit-test
-[ f ] [ 3 2 test-vregs-intersect? ] unit-test
-[ t ] [ 0 2 test-vregs-intersect? ] unit-test
-[ t ] [ 2 0 test-vregs-intersect? ] unit-test
-[ f ] [ 1 3 test-vregs-intersect? ] unit-test
-[ f ] [ 3 1 test-vregs-intersect? ] unit-test
-[ t ] [ 3 4 test-vregs-intersect? ] unit-test
-[ t ] [ 4 3 test-vregs-intersect? ] unit-test
-[ t ] [ 3 5 test-vregs-intersect? ] unit-test
-[ t ] [ 5 3 test-vregs-intersect? ] unit-test
-[ f ] [ 3 6 test-vregs-intersect? ] unit-test
-[ f ] [ 6 3 test-vregs-intersect? ] unit-test
+{ } [ test-interference ] unit-test
+
+{ f } [ 0 1 test-vregs-intersect? ] unit-test
+{ f } [ 1 0 test-vregs-intersect? ] unit-test
+{ f } [ 2 3 test-vregs-intersect? ] unit-test
+{ f } [ 3 2 test-vregs-intersect? ] unit-test
+{ t } [ 0 2 test-vregs-intersect? ] unit-test
+{ t } [ 2 0 test-vregs-intersect? ] unit-test
+{ f } [ 1 3 test-vregs-intersect? ] unit-test
+{ f } [ 3 1 test-vregs-intersect? ] unit-test
+{ t } [ 3 4 test-vregs-intersect? ] unit-test
+{ t } [ 4 3 test-vregs-intersect? ] unit-test
+{ t } [ 3 5 test-vregs-intersect? ] unit-test
+{ t } [ 5 3 test-vregs-intersect? ] unit-test
+{ f } [ 3 6 test-vregs-intersect? ] unit-test
+{ f } [ 6 3 test-vregs-intersect? ] unit-test
 
 V{
     T{ ##prologue }
@@ -96,9 +96,9 @@ V{
 0 1 edge
 1 2 edge
 
-[ ] [ test-interference ] unit-test
+{ } [ test-interference ] unit-test
 
-[ t ] [ { 15 } { 23 13 } test-sets-interfere? nip ] unit-test
+{ t } [ { 15 } { 23 13 } test-sets-interfere? nip ] unit-test
 
 V{
     T{ ##prologue f }
@@ -164,9 +164,9 @@ V{
 5 6 edge
 7 8 edge
 
-[ ] [ test-interference ] unit-test
+{ } [ test-interference ] unit-test
 
-[ f ] [ { 48 } { 32 35 } test-sets-interfere? nip ] unit-test
+{ f } [ { 48 } { 32 35 } test-sets-interfere? nip ] unit-test
 
 TUPLE: bab ;
 TUPLE: gfg { x bab } ;
@@ -289,20 +289,20 @@ V{
 14 15 edge
 15 16 edge
 
-[ ] [ test-interference ] unit-test
+{ } [ test-interference ] unit-test
 
-[ t ] [ 43 45 test-vregs-intersect? ] unit-test
-[ f ] [ 43 45 test-vregs-interfere? ] unit-test
+{ t } [ 43 45 test-vregs-intersect? ] unit-test
+{ f } [ 43 45 test-vregs-interfere? ] unit-test
 
-[ t ] [ 43 46 test-vregs-intersect? ] unit-test
-[ t ] [ 43 46 test-vregs-interfere? ] unit-test
+{ t } [ 43 46 test-vregs-intersect? ] unit-test
+{ t } [ 43 46 test-vregs-interfere? ] unit-test
 
-[ f ] [ 45 46 test-vregs-intersect? ] unit-test
-[ f ] [ 45 46 test-vregs-interfere? ] unit-test
+{ f } [ 45 46 test-vregs-intersect? ] unit-test
+{ f } [ 45 46 test-vregs-interfere? ] unit-test
 
-[ f ] [ { 43 } { 45 } test-sets-interfere? nip ] unit-test
+{ f } [ { 43 } { 45 } test-sets-interfere? nip ] unit-test
 
-[ t f ] [
+{ t f } [
     { 46 } { 43 } { 45 }
     [ [ <test-vreg-info> ] map ] tri@
     sets-interfere? [ sets-interfere? nip ] dip
@@ -350,14 +350,14 @@ V{
 3 2 edge
 4 5 edge
 
-[ ] [ test-interference ] unit-test
+{ } [ test-interference ] unit-test
 
-[ f f ] [
+{ f f } [
     { 33 } { 21 } { 32 }
     [ [ <test-vreg-info> ] map ] tri@
     sets-interfere? [ sets-interfere? nip ] dip
 ] unit-test
 
-[ f ] [ 33 21 test-vregs-intersect? ] unit-test
-[ f ] [ 32 21 test-vregs-intersect? ] unit-test
-[ f ] [ 32 33 test-vregs-intersect? ] unit-test
+{ f } [ 33 21 test-vregs-intersect? ] unit-test
+{ f } [ 32 21 test-vregs-intersect? ] unit-test
+{ f } [ 32 33 test-vregs-intersect? ] unit-test
index f3b286dc2573228e657122ecea100ea141590821..3809e04347d69b9f04a8a342c926ee70487fd39b 100644 (file)
@@ -26,36 +26,36 @@ IN: compiler.cfg.value-numbering.tests
     ] map ;
 
 ! Folding constants together
-[
+{
     {
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 -0.0 }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 -0.0 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 0.0 }
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 0.0 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 t }
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 t }
         T{ ##load-reference f 1 t }
@@ -131,7 +131,7 @@ cpu x86.64? [
 ] when
 
 ! Double compare elimination
-[
+{
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -139,7 +139,7 @@ cpu x86.64? [
         T{ ##copy f 6 4 any-rep }
         T{ ##replace f 6 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -149,14 +149,14 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D 1 }
         T{ ##compare-imm f 2 1 16 cc= }
         T{ ##copy f 3 2 any-rep }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 1 }
         T{ ##compare-imm f 2 1 16 cc= }
@@ -165,7 +165,7 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -173,7 +173,7 @@ cpu x86.64? [
         T{ ##copy f 6 4 any-rep }
         T{ ##replace f 6 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -183,7 +183,7 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -191,7 +191,7 @@ cpu x86.64? [
         T{ ##compare-integer f 6 2 1 cc/<= }
         T{ ##replace f 6 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -201,14 +201,14 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-imm f 2 1 100 cc<= }
         T{ ##compare-integer-imm f 3 1 100 cc/<= }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-imm f 2 1 100 cc<= }
@@ -217,7 +217,7 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 8 D 0 }
         T{ ##peek f 9 D -1 }
@@ -225,7 +225,7 @@ cpu x86.64? [
         T{ ##compare-float-unordered f 14 8 9 cc/< }
         T{ ##replace f 14 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 8 D 0 }
         T{ ##peek f 9 D -1 }
@@ -235,14 +235,14 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##compare f 33 29 30 cc= }
         T{ ##compare-branch f 29 30 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -251,14 +251,14 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##compare-integer f 33 29 30 cc<= }
         T{ ##compare-integer-branch f 29 30 cc<= }
     }
-] [
+} [
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -267,14 +267,14 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##test f 33 29 30 cc= }
         T{ ##test-branch f 29 30 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -283,13 +283,13 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 29 D -1 }
         T{ ##test-imm f 33 29 30 cc= }
         T{ ##test-imm-branch f 29 30 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 29 D -1 }
         T{ ##test-imm f 33 29 30 cc= }
@@ -297,13 +297,13 @@ cpu x86.64? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D -1 }
         T{ ##test-vector f 2 1 f float-4-rep vcc-any }
         T{ ##test-vector-branch f 1 f float-4-rep vcc-any }
     }
-] [
+} [
     {
         T{ ##peek f 1 D -1 }
         T{ ##test-vector f 2 1 f float-4-rep vcc-any }
@@ -328,13 +328,13 @@ cpu x86.32? [
 ] when
 
 ! Immediate operand fusion
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -342,13 +342,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -356,13 +356,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 -100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -370,25 +370,25 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sub f 1 0 0 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##mul-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -396,13 +396,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##mul-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -410,25 +410,25 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 3 }
     }
-] [
+} [
     {
         T{ ##peek f 1 D 0 }
         T{ ##mul-imm f 2 1 8 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
@@ -436,13 +436,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
@@ -450,13 +450,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
@@ -464,14 +464,14 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
         T{ ##neg f 2 0 }
         T{ ##copy f 3 0 any-rep }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
@@ -480,13 +480,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
@@ -494,13 +494,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
@@ -508,13 +508,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##and-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -522,13 +522,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##and-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -536,13 +536,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##or-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -550,13 +550,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##or-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -564,13 +564,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##xor-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -578,13 +578,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##xor-imm f 2 0 100 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -592,13 +592,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-imm f 2 0 100 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -606,13 +606,13 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 0 100 cc<= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -680,13 +680,13 @@ cpu x86.32? [
     ] unit-test
 ] unless
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 0 100 cc>= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -694,13 +694,13 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm-branch f 0 100 cc<= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -708,13 +708,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm-branch f 0 100 cc>= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -723,13 +723,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Compare folding
-[
+{
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
@@ -737,13 +737,13 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
@@ -751,25 +751,25 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 1 123 cc= }
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
@@ -777,13 +777,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -791,13 +791,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -805,13 +805,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
@@ -819,25 +819,25 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc< }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
@@ -845,108 +845,108 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc<= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc> }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc>= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc/= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 10 cc= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 20 cc= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 100 cc/= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 10 cc/= }
@@ -1003,72 +1003,72 @@ cpu x86.32? [
     ] unit-test
 ] when
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc/= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 12 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 12 }
         T{ ##test-imm f 3 1 13 cc/= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 15 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 15 }
         T{ ##test-imm f 3 1 16 cc/= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 12 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 12 }
         T{ ##test-imm f 3 1 13 cc= }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 15 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 15 }
         T{ ##test-imm f 3 1 16 cc= }
@@ -1076,14 +1076,14 @@ cpu x86.32? [
 ] unit-test
 
 ! Rewriting a ##test of an ##and into a ##test
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##and f 2 0 1 }
         T{ ##test f 3 0 1 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1092,13 +1092,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 2 0 12 }
         T{ ##test-imm f 3 0 12 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 2 0 12 }
@@ -1107,13 +1107,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Rewriting ##test into ##test-imm
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm f 2 0 10 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1121,13 +1121,13 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm f 2 0 10 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1135,13 +1135,13 @@ cpu x86.32? [
     } value-numbering-step trim-temps
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1149,13 +1149,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1163,13 +1163,13 @@ cpu x86.32? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1284,7 +1284,7 @@ cpu x86? [
 ] when
 
 ! Reassociation
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1292,7 +1292,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 150 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1302,7 +1302,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1310,7 +1310,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 150 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1320,7 +1320,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1328,7 +1328,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 50 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1338,7 +1338,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1346,7 +1346,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 -150 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1356,7 +1356,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1364,7 +1364,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##mul-imm f 4 0 5000 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1374,7 +1374,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1382,7 +1382,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##mul-imm f 4 0 5000 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1392,7 +1392,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1400,7 +1400,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##and-imm f 4 0 32 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1410,7 +1410,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1418,7 +1418,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##and-imm f 4 0 32 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1428,7 +1428,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1436,7 +1436,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##or-imm f 4 0 118 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1446,7 +1446,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1454,7 +1454,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##or-imm f 4 0 118 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1464,7 +1464,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1472,7 +1472,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##xor-imm f 4 0 86 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1482,7 +1482,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1490,7 +1490,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##xor-imm f 4 0 86 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1500,14 +1500,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
         T{ ##shl-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
@@ -1516,14 +1516,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
         T{ ##shl-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
@@ -1532,14 +1532,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
         T{ ##sar-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
@@ -1548,14 +1548,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
         T{ ##sar-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
@@ -1564,14 +1564,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##shr-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1580,14 +1580,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##shr-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1596,14 +1596,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##sar-imm f 2 1 11 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1615,7 +1615,7 @@ cpu x86? [
 ! Distributive law
 2 vreg-counter set-global
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1623,7 +1623,7 @@ cpu x86? [
         T{ ##add-imm f 2 3 40 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1632,7 +1632,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1640,7 +1640,7 @@ cpu x86? [
         T{ ##add-imm f 2 4 30 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1649,7 +1649,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 -10 }
@@ -1657,7 +1657,7 @@ cpu x86? [
         T{ ##add-imm f 2 5 -40 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sub-imm f 1 0 10 }
@@ -1666,7 +1666,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 -10 }
@@ -1674,7 +1674,7 @@ cpu x86? [
         T{ ##add-imm f 2 6 -30 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sub-imm f 1 0 10 }
@@ -1684,14 +1684,14 @@ cpu x86? [
 ] unit-test
 
 ! Simplification
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1700,14 +1700,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1716,14 +1716,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1732,25 +1732,25 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 1 0 0 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 1 0 -1 }
@@ -1758,13 +1758,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##and f 1 0 0 }
@@ -1772,13 +1772,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##or-imm f 1 0 0 }
@@ -1786,25 +1786,25 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##or-imm f 1 0 -1 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##or f 1 0 0 }
@@ -1812,13 +1812,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##xor-imm f 1 0 0 }
@@ -1826,13 +1826,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##xor-imm f 1 0 -1 }
@@ -1840,25 +1840,25 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##xor f 1 0 0 }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##mul-imm f 2 0 1 }
@@ -1866,13 +1866,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 2 0 0 }
@@ -1880,13 +1880,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 2 0 0 }
@@ -1894,13 +1894,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 2 0 0 }
@@ -1909,14 +1909,14 @@ cpu x86? [
 ] unit-test
 
 ! Constant folding
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 4 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -1925,14 +1925,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 -2 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -1941,14 +1941,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 6 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1957,14 +1957,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 1 }
         T{ ##load-integer f 3 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1973,14 +1973,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 1 }
         T{ ##load-integer f 3 3 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1989,14 +1989,14 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 1 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -2005,13 +2005,13 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 3 8 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2035,13 +2035,13 @@ cell 8 = [
     ] unit-test
 ] when
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -8 }
         T{ ##load-integer f 3 -4 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -8 }
@@ -2100,13 +2100,13 @@ cell 8 = [
     ] unless
 ] when
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 -1 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2114,13 +2114,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 -2 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2129,13 +2129,13 @@ cell 8 = [
 ] unit-test
 
 ! ##tagged>integer constant folding
-[
+{
     {
         T{ ##load-reference f 1 f }
         T{ ##load-integer f 2 $[ \ f type-number ] }
         T{ ##copy f 3 2 any-rep }
     }
-] [
+} [
     {
         T{ ##load-reference f 1 f }
         T{ ##tagged>integer f 2 1 }
@@ -2143,13 +2143,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 $[ 100 tag-fixnum ] }
         T{ ##load-integer f 3 $[ 100 tag-fixnum 1 + ] }
     }
-] [
+} [
     {
         T{ ##load-integer f 1 100 }
         T{ ##tagged>integer f 2 1 }
@@ -2158,14 +2158,14 @@ cell 8 = [
 ] unit-test
 
 ! Alien boxing and unboxing
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
@@ -2174,14 +2174,14 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
@@ -2190,14 +2190,14 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
@@ -2208,7 +2208,7 @@ cell 8 = [
 
 3 vreg-counter set-global
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 16 }
@@ -2216,7 +2216,7 @@ cell 8 = [
         T{ ##unbox-any-c-ptr f 4 0 }
         T{ ##add-imm f 3 4 16 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 16 }
@@ -2227,7 +2227,7 @@ cell 8 = [
 
 4 vreg-counter set-global
 
-[
+{
     {
         T{ ##box-alien f 0 1 }
         T{ ##load-integer f 2 16 }
@@ -2235,7 +2235,7 @@ cell 8 = [
         T{ ##copy f 5 1 any-rep }
         T{ ##add-imm f 4 5 16 }
     }
-] [
+} [
     {
         T{ ##box-alien f 0 1 }
         T{ ##load-integer f 2 16 }
@@ -2246,14 +2246,14 @@ cell 8 = [
 
 3 vreg-counter set-global
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 3 D 1 }
     }
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
@@ -2263,59 +2263,59 @@ cell 8 = [
 ] unit-test
 
 ! Various SIMD simplifications
-[
+{
     {
         T{ ##vector>scalar f 1 0 float-4-rep }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     {
         T{ ##vector>scalar f 1 0 float-4-rep }
         T{ ##scalar>vector f 2 1 float-4-rep }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     {
         T{ ##shuffle-vector-imm f 1 0 { 0 1 2 3 } float-4-rep }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 0 { 0 2 3 1 } float-4-rep }
     }
-] [
+} [
     {
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 1 { 3 1 2 0 } float-4-rep }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 1 { 1 0 } double-2-rep }
     }
-] [
+} [
     {
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 1 { 1 0 } double-2-rep }
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 0 55 }
         T{ ##load-reference f 1 B{ 55 0 0 0  55 0 0 0  55 0 0 0  55 0 0 0 } }
         T{ ##load-reference f 2 B{ 55 0 0 0  55 0 0 0  55 0 0 0  55 0 0 0 } }
     }
-] [
+} [
     {
         T{ ##load-integer f 0 55 }
         T{ ##scalar>vector f 1 0 int-4-rep }
@@ -2323,13 +2323,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
         T{ ##load-reference f 2 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##scalar>vector f 1 0 float-4-rep }
@@ -2337,13 +2337,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
         T{ ##load-reference f 2 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##scalar>vector f 1 0 float-4-rep }
@@ -2351,14 +2351,14 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 0 55 }
         T{ ##load-reference f 1 B{ 55 0 55 0 55 0 55 0 55 0 55 0 55 0 55 0 } }
         T{ ##load-reference f 2 B{ 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 } }
         T{ ##load-reference f 3 B{ 0 55 0 55 0 55 0 55 0 55 0 55 0 55 0 55 } }
     }
-] [
+} [
     {
         T{ ##load-integer f 0 55 }
         T{ ##scalar>vector f 1 0 short-8-rep }
@@ -2367,13 +2367,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 2 3.75 }
         T{ ##load-reference f 4 B{ 0 0 0 0 0 0 244 63 0 0 0 0 0 0 14 64 } }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 2 3.75 }
@@ -2381,13 +2381,13 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 2 375 }
         T{ ##load-reference f 4 B{ 125 0 0 0 0 0 0 0 119 1 0 0 0 0 0 0 } }
     }
-] [
+} [
     {
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 2 375 }
@@ -2395,7 +2395,7 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 2.50 }
@@ -2403,7 +2403,7 @@ cell 8 = [
         T{ ##load-reference f 3 5.00 }
         T{ ##load-reference f 4 B{ 0 0 160 63 0 0 32 64 0 0 112 64 0 0 160 64 } }
     }
-] [
+} [
     {
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 2.50 }
@@ -2413,7 +2413,7 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 1 250 }
@@ -2421,7 +2421,7 @@ cell 8 = [
         T{ ##load-integer f 3 500 }
         T{ ##load-reference f 4 B{ 125 0 0 0 250 0 0 0 119 1 0 0 244 1 0 0 } }
     }
-] [
+} [
     {
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 1 250 }
@@ -2431,11 +2431,11 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##zero-vector f 2 float-4-rep }
     }
-] [
+} [
     {
         T{ ##xor-vector f 2 1 1 float-4-rep }
     } value-numbering-step
@@ -2443,13 +2443,13 @@ cell 8 = [
 
 ! NOT x AND y => x ANDN y
 
-[
+{
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
@@ -2457,12 +2457,12 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##and-vector  f 5 4 1 float-4-rep }
@@ -2471,13 +2471,13 @@ cell 8 = [
 
 ! x AND NOT y => y ANDN x
 
-[
+{
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
@@ -2485,12 +2485,12 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##and-vector  f 5 1 4 float-4-rep }
@@ -2499,13 +2499,13 @@ cell 8 = [
 
 ! NOT x ANDN y => x AND y
 
-[
+{
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##and-vector  f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
@@ -2513,12 +2513,12 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##and-vector  f 5 0 1 float-4-rep }
     }
-] [
+} [
     {
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##andn-vector f 5 4 1 float-4-rep }
@@ -2527,7 +2527,7 @@ cell 8 = [
 
 ! AND <=> ANDN
 
-[
+{
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
@@ -2535,7 +2535,7 @@ cell 8 = [
         T{ ##and-vector  f 6 0 2 float-4-rep }
         T{ ##or-vector   f 7 5 6 float-4-rep }
     }
-] [
+} [
     {
         T{ ##fill-vector f 3 float-4-rep }
         T{ ##xor-vector  f 4 0 3 float-4-rep }
@@ -2545,14 +2545,14 @@ cell 8 = [
     } value-numbering-step
 ] unit-test
 
-[
+{
     {
         T{ ##not-vector  f 4 0   float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
         T{ ##and-vector  f 6 0 2 float-4-rep }
         T{ ##or-vector   f 7 5 6 float-4-rep }
     }
-] [
+} [
     {
         T{ ##not-vector  f 4 0   float-4-rep }
         T{ ##and-vector  f 5 4 1 float-4-rep }
@@ -2567,14 +2567,14 @@ cell 8 = [
     [ V{ 0 1 } clone >>successors basic-block set value-numbering-step ] keep
     successors>> first ;
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     1
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2582,14 +2582,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2597,14 +2597,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2612,14 +2612,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     1
-] [
+} [
     {
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2627,92 +2627,92 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc< }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc<= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc> }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc>= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc/= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     {
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
         T{ ##branch }
     }
     0
-] [
+} [
     {
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc<= }
@@ -2746,18 +2746,18 @@ V{
 
 test-diamond
 
-[ ] [
+{ } [
     0 get block>cfg dup cfg set
     [ value-numbering ]
     [ select-representations ]
     [ destruct-ssa ] tri
 ] unit-test
 
-[ 1 ] [ 1 get successors>> length ] unit-test
+{ 1 } [ 1 get successors>> length ] unit-test
 
-[ t ] [ 1 get successors>> first 3 get eq? ] unit-test
+{ t } [ 1 get successors>> first 3 get eq? ] unit-test
 
-[ 2 ] [ 4 get instructions>> length ] unit-test
+{ 2 } [ 4 get instructions>> length ] unit-test
 
 V{
     T{ ##peek f 0 D 0 }
@@ -2786,14 +2786,14 @@ V{
 
 test-diamond
 
-[ ] [
+{ } [
     0 get block>cfg
     { value-numbering eliminate-dead-code } apply-passes
 ] unit-test
 
-[ t ] [ 1 get successors>> first 3 get eq? ] unit-test
+{ t } [ 1 get successors>> first 3 get eq? ] unit-test
 
-[ 1 ] [ 3 get instructions>> first inputs>> assoc-size ] unit-test
+{ 1 } [ 3 get instructions>> first inputs>> assoc-size ] unit-test
 
 V{ T{ ##prologue } T{ ##branch } } 0 test-bb
 
@@ -2853,12 +2853,12 @@ V{
 2 3 edge
 4 5 edge
 
-[ ] [
+{ } [
     0 get block>cfg
     { value-numbering eliminate-dead-code } apply-passes
 ] unit-test
 
-[ f ] [ 1 get instructions>> [ ##peek? ] any? ] unit-test
+{ f } [ 1 get instructions>> [ ##peek? ] any? ] unit-test
 
 ! Slot addressing optimization
 cpu x86? [
@@ -2882,14 +2882,14 @@ cpu x86? [
 ! Alien addressing optimization
 
 ! Base offset fusion on ##load/store-memory-imm
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##tagged>integer f 2 1 }
         T{ ##add-imm f 3 2 10 }
         T{ ##load-memory-imm f 4 2 10 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##tagged>integer f 2 1 }
@@ -2898,7 +2898,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2907,7 +2907,7 @@ cpu x86? [
         T{ ##add-imm f 4 3 10 }
         T{ ##store-memory-imm f 2 3 10 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2919,7 +2919,7 @@ cpu x86? [
 ] unit-test
 
 ! Displacement fusion on ##load/store-memory-imm
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2928,7 +2928,7 @@ cpu x86? [
         T{ ##add f 4 2 3 }
         T{ ##load-memory f 5 2 3 0 0 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2939,7 +2939,7 @@ cpu x86? [
     } value-numbering-step
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2948,7 +2948,7 @@ cpu x86? [
         T{ ##add f 4 2 3 }
         T{ ##store-memory f 5 2 3 0 0 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2980,7 +2980,7 @@ cpu x86?
         T{ ##add-imm f 4 2 31337 }
         T{ ##load-memory f 5 4 3 0 0 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
@@ -3013,7 +3013,7 @@ cpu x86?
         T{ ##add-imm f 4 3 31337 }
         T{ ##load-memory f 5 2 4 0 1 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
@@ -3027,7 +3027,7 @@ cpu x86?
 
 ! Displacement offset fusion should not occur on
 ! ##load/store-memory with non-zero scale
-[ ] [
+{ } [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -3059,7 +3059,7 @@ cpu x86?
         T{ ##shl-imm f 4 3 2 }
         T{ ##load-memory f 5 2 4 0 0 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
index b11ffa8716592057cd1eb4dfac5470ab1a419606..87e53ad609ded7fef9395bd0e8ba4cc0e48518bc 100644 (file)
@@ -3,13 +3,13 @@ tools.test ;
 IN: compiler.cfg.write-barrier.tests
 
 ! Do need a write barrier on a random store.
-[
+{
     V{
         T{ ##peek f 1 }
         T{ ##set-slot f 2 1 3 }
         T{ ##write-barrier f 1 3 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 }
         T{ ##set-slot f 2 1 3 }
@@ -17,13 +17,13 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 }
         T{ ##set-slot-imm f 2 1 }
         T{ ##write-barrier-imm f 1 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 }
         T{ ##set-slot-imm f 2 1 }
@@ -32,12 +32,12 @@ IN: compiler.cfg.write-barrier.tests
 ] unit-test
 
 ! Don't need a write barrier on freshly allocated objects.
-[
+{
     V{
         T{ ##allot f 1 }
         T{ ##set-slot f 2 1 3 }
     }
-] [
+} [
     V{
         T{ ##allot f 1 }
         T{ ##set-slot f 2 1 3 }
@@ -45,12 +45,12 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 1 }
         T{ ##set-slot-imm f 2 1 }
     }
-] [
+} [
     V{
         T{ ##allot f 1 }
         T{ ##set-slot-imm f 2 1 }
@@ -60,14 +60,14 @@ IN: compiler.cfg.write-barrier.tests
 
 ! Do need a write barrier if there's a subroutine call between
 ! the allocation and the store.
-[
+{
     V{
         T{ ##allot f 1 }
         T{ ##box }
         T{ ##set-slot f 2 1 3 }
         T{ ##write-barrier f 1 3 }
     }
-] [
+} [
     V{
         T{ ##allot f 1 }
         T{ ##box }
@@ -76,14 +76,14 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##allot f 1 }
         T{ ##box }
         T{ ##set-slot-imm f 2 1 }
         T{ ##write-barrier-imm f 1 }
     }
-] [
+} [
     V{
         T{ ##allot f 1 }
         T{ ##box }
@@ -93,13 +93,13 @@ IN: compiler.cfg.write-barrier.tests
 ] unit-test
 
 ! ##copy instructions
-[
+{
     V{
         T{ ##copy f 2 1 }
         T{ ##set-slot-imm f 3 1 }
         T{ ##write-barrier-imm f 2 }
     }
-] [
+} [
     V{
         T{ ##copy f 2 1 }
         T{ ##set-slot-imm f 3 1 }
@@ -107,13 +107,13 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##copy f 2 1 }
         T{ ##set-slot-imm f 3 2 }
         T{ ##write-barrier-imm f 1 }
     }
-] [
+} [
     V{
         T{ ##copy f 2 1 }
         T{ ##set-slot-imm f 3 2 }
@@ -121,14 +121,14 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##copy f 2 1 }
         T{ ##copy f 3 2 }
         T{ ##set-slot-imm f 3 1 }
         T{ ##write-barrier-imm f 2 }
     }
-] [
+} [
     V{
         T{ ##copy f 2 1 }
         T{ ##copy f 3 2 }
@@ -137,14 +137,14 @@ IN: compiler.cfg.write-barrier.tests
     } write-barriers-step
 ] unit-test
 
-[
+{
     V{
         T{ ##copy f 2 1 }
         T{ ##copy f 3 2 }
         T{ ##set-slot-imm f 4 1 }
         T{ ##write-barrier-imm f 3 }
     }
-] [
+} [
     V{
         T{ ##copy f 2 1 }
         T{ ##copy f 3 2 }
index c81164bff2278c43fd98f1c48c38fcd72d7da734..94514f018452a196ec407003767b37023afa7492 100644 (file)
@@ -3,11 +3,11 @@ compiler.codegen.relocation tools.test cpu.architecture math
 kernel make compiler.constants words ;
 IN: compiler.codegen.tests
 
-[ ] [ [ ] with-fixup drop ] unit-test
-[ ] [ [ \ + %call ] with-fixup drop ] unit-test
+{ } [ [ ] with-fixup drop ] unit-test
+{ } [ [ \ + %call ] with-fixup drop ] unit-test
 
-[ ] [ [ <label> dup define-label dup resolve-label %jump-label ] with-fixup drop ] unit-test
-[ ] [ [ <label> dup define-label dup resolve-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup drop ] unit-test
+{ } [ [ <label> dup define-label dup resolve-label %jump-label ] with-fixup drop ] unit-test
+{ } [ [ <label> dup define-label dup resolve-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup drop ] unit-test
 
 ! Error checking
 [ [ <label> dup define-label %jump-label ] with-fixup ] must-fail
index 6df9c63e2a0fca54a973aa1750a3f9198a28d9d5..a6dfa97df716577567bae9b5328c72b9785b1aca 100644 (file)
@@ -33,7 +33,7 @@ M: fake-cpu gc-root-offset ;
 ] B{ } make
 "result" set
 
-[ 0 ] [ "result" get length 16 mod ] unit-test
+{ 0 } [ "result" get length 16 mod ] unit-test
 
 [
     100 <byte-array> %
@@ -69,8 +69,8 @@ M: fake-cpu gc-root-offset ;
 ] B{ } make
 "expect" set
 
-[ t ] [ "result" get length "expect" get length = ] unit-test
-[ t ] [ "result" get "expect" get = ] unit-test
+{ t } [ "result" get length "expect" get length = ] unit-test
+{ t } [ "result" get "expect" get = ] unit-test
 
 ! Fix the gc root offset calculations
 SINGLETON: linux-x86.64
index 38798de8da6185d9c15998f09a7dce46fe2a30c1..18965d1bd758a4b92d9a24e2a4842ff90af15172 100644 (file)
@@ -3,7 +3,7 @@ IN: compiler.crossref.tests
 
 ! Dependencies of all words should always be satisfied unless we're
 ! in the middle of recompiling something
-[ { } ] [
+{ { } } [
     all-words dup [ subwords ] map concat append
     H{ } clone '[ _ dependencies-satisfied? ] reject
 ] unit-test
index 8359334550aa904d89ada27c877336ac15342ba9..4ad5622085442f1cf5c31ba7754350c06de0dc52 100644 (file)
@@ -4,7 +4,7 @@ IN: compiler.tree.builder.tests
 
 : inline-recursive ( -- ) inline-recursive ; inline recursive
 
-[ t ] [ \ inline-recursive build-tree [ #recursive? ] any? ] unit-test
+{ t } [ \ inline-recursive build-tree [ #recursive? ] any? ] unit-test
 
 : bad-recursion-1 ( a -- b )
     dup [ drop bad-recursion-1 5 ] [ ] if ;
index 4d647128ebfde85090be19d222c0c74bd2d6ab5e..8097035581c5de42e010c157e1b39c7a81e728af 100644 (file)
@@ -20,23 +20,23 @@ FROM: math => float ;
 QUALIFIED-WITH: alien.c-types c
 IN: compiler.tree.cleanup.tests
 
-[ t ] [ [ [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
+{ t } [ [ [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
 
-[ f ] [ [ f [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
+{ f } [ [ f [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
 
-[ f ] [ [ { array } declare [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
+{ f } [ [ { array } declare [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
 
-[ t ] [ [ { sequence } declare [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
+{ t } [ [ { sequence } declare [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
 
 : recursive-test ( a -- b ) dup [ not recursive-test ] when ; inline recursive
 
-[ t ] [ [ recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
+{ t } [ [ recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
 
-[ f ] [ [ f recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
+{ f } [ [ f recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
 
-[ t ] [ [ t recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
+{ t } [ [ t recursive-test ] cleaned-up-tree [ #recursive? ] contains-node? ] unit-test
 
-[ f ] [
+{ f } [
     [ { integer } declare >fixnum ]
     \ >fixnum inlined?
 ] unit-test
@@ -51,7 +51,7 @@ GENERIC: detect-f ( x -- y )
 
 M: f detect-f ; inline
 
-[ t ] [
+{ t } [
     [ dup [ mynot ] [ ] if detect-f ] \ detect-f inlined?
 ] unit-test
 
@@ -61,11 +61,11 @@ M: integer xyz ; inline
 
 M: object xyz ; inline
 
-[ t ] [
+{ t } [
     [ { integer } declare xyz ] \ xyz inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ dup fixnum? [ xyz ] [ drop "hi" ] if ]
     \ xyz inlined?
 ] unit-test
@@ -82,7 +82,7 @@ M: object xyz ; inline
 
 ! The + should be optimized into fixnum+, if it was not, then
 ! the type of the loop index was not inferred correctly
-[ t ] [
+{ t } [
     [ [ dup 2 + drop ] fx-repeat ] \ + inlined?
 ] unit-test
 
@@ -95,78 +95,78 @@ M: object xyz ; inline
 
 : i-repeat ( n quot -- ) [ { integer } declare ] dip 0 -rot (i-repeat) ; inline
 
-[ t ] [
+{ t } [
     [ [ dup xyz drop ] i-repeat ] \ xyz inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare dup 100 >= [ 1 + ] unless ] \ fixnum+ inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare dupd < [ 1 + 1 + ] when ]
     \ + inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare dupd < [ 1 + 1 + ] when ]
     \ + inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare [ ] times ] \ >= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare [ ] times ] \ + inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare [ ] times ] \ fixnum+ inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { integer fixnum } declare dupd < [ 1 + ] when ]
     \ + inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { integer fixnum } declare dupd < [ 1 + ] when ]
     \ +-integer-fixnum inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         [ no-cond ] 1
         [ 1array dup quotation? [ >quotation ] unless ] times
     ] \ quotation? inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         1000000000000000000000000000000000 [ ] times
     ] \ + inlined?
 ] unit-test
-[ f ] [
+{ f } [
     [
         1000000000000000000000000000000000 [ ] times
     ] \ +-integer-fixnum inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { bignum } declare [ ] times ]
     \ +-integer-fixnum inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { array-capacity } declare 0 < ] \ < inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { array-capacity } declare 0 < ] \ fixnum< inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { array-capacity } declare 1 fixnum- ] \ fixnum- inlined?
 ] unit-test
 
@@ -183,12 +183,12 @@ M: fixnum annotate-entry-test-1 drop ;
 
 : annotate-entry-test-2 ( from to -- obj ) 0 -rot (annotate-entry-test-2) ; inline
 
-[ f ] [
+{ f } [
     [ { bignum } declare annotate-entry-test-2 ]
     \ annotate-entry-test-1 inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { float } declare 10 [ 2.3 * ] times >float ]
     \ >float inlined?
 ] unit-test
@@ -197,37 +197,37 @@ GENERIC: detect-float ( a -- b )
 
 M: float detect-float ;
 
-[ t ] [
+{ t } [
     [ { real float } declare + detect-float ]
     \ detect-float inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { float real } declare + detect-float ]
     \ detect-float inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { fixnum fixnum } declare 7 bitand neg shift ]
     \ fixnum-shift-fast inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare 7 bitand neg shift ]
     { shift fixnum-shift } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare 1 swap 7 bitand shift ]
     { shift fixnum-shift } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { fixnum fixnum } declare 1 swap 7 bitand shift ]
     { fixnum-shift-fast } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 1 swap 7 bitand shift ]
     { shift fixnum-shift } inlined?
 ] unit-test
@@ -244,41 +244,41 @@ cell-bits 32 = [
     ] unit-test
 ] when
 
-[ t ] [
+{ t } [
     [ B{ 1 0 } c:short deref 0 number= ]
     \ number= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ B{ 1 0 } c:short deref 0 { number number } declare number= ]
     \ number= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ B{ 1 0 } c:short deref 0 = ]
     \ number= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ B{ 1 0 } c:short deref dup number? [ 0 number= ] [ drop f ] if ]
     \ number= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 0xff bitand 0 0xff between? ]
     \ >= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 0xff swap 0xff bitand >= ]
     \ >= inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { vector } declare nth-unsafe ] \ nth-unsafe inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         dup integer? [
             dup fixnum? [
@@ -293,7 +293,7 @@ cell-bits 32 = [
 : rec ( a -- b )
     dup 0 > [ 1 - rec ] when ; inline recursive
 
-[ t ] [
+{ t } [
     [ { fixnum } declare rec 1 + ]
     { > - + } inlined?
 ] unit-test
@@ -301,116 +301,116 @@ cell-bits 32 = [
 : fib ( m -- n )
     dup 2 < [ drop 1 ] [ dup 1 - fib swap 2 - fib + ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ 27.0 fib ] { < - + } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ 27.0 fib ] { +-integer-integer } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 27 fib ] { < - + } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 27 >bignum fib ] { < - + } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ 27/2 fib ] { < - } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 10 [ -1 shift ] times ] \ shift inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { fixnum } declare 1048575 fixnum-bitand 524288 fixnum- ]
     \ fixnum-bitand inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare [ drop ] each-integer ]
     { < <-integer-fixnum +-integer-fixnum + } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare iota [ drop ] each ]
     { < <-integer-fixnum +-integer-fixnum + } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare iota 0 [ + ] reduce ]
     { < <-integer-fixnum nth-unsafe } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { fixnum } declare iota 0 [ + ] reduce ]
     \ +-integer-fixnum inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         { integer } declare iota [ ] map
     ] \ integer>fixnum inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         { integer } declare { } set-nth-unsafe
     ] \ integer>fixnum inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         { integer } declare 1 + { } set-nth-unsafe
     ] \ >fixnum inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { array } declare length
         1 + dup 100 fixnum> [ 1 fixnum+ ] when
     ] \ fixnum+ inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ [ resize-array ] keep length ] \ length inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ dup 0 > [ sqrt ] when ] \ sqrt inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { utf8 } declare decode-char ] \ decode-char inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { ascii } declare decode-char ] \ decode-char inlined?
 ] unit-test
 
-[ t ] [ [ { 1 2 } length ] { length length>> slot } inlined? ] unit-test
+{ t } [ [ { 1 2 } length ] { length length>> slot } inlined? ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare iota [ 0 >= ] map
     ] { >= fixnum>= } inlined?
 ] unit-test
 
-[ ] [
+{ } [
     [
         4 pick array-capacity?
         [ set-slot ] [ \ array-capacity 2nip bad-slot-value ] if
     ] cleaned-up-tree drop
 ] unit-test
 
-[ ] [
+{ } [
     [ { merge-state } declare accum>> 0 >>length ] cleaned-up-tree drop
 ] unit-test
 
-[ ] [
+{ } [
     [
         [ "X" throw ]
         [ dupd dup -1 < [ 0 >= [ ] [ "X" throw ] if ] [ drop ] if ]
@@ -418,12 +418,12 @@ cell-bits 32 = [
     ] cleaned-up-tree drop
 ] unit-test
 
-[ t ] [
+{ t } [
     [ [ 2array ] [ 0 3array ] if first ]
     { nth-unsafe < <= > >= } inlined?
 ] unit-test
 
-[ ] [
+{ } [
     [ [ [ "A" throw ] dip ] [ "B" throw ] if ]
     cleaned-up-tree drop
 ] unit-test
@@ -444,7 +444,7 @@ cell-bits 32 = [
         2drop
     ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ 2 swap >fixnum buffalo-wings ]
     { <-integer-fixnum +-integer-fixnum } inlined?
 ] unit-test
@@ -463,41 +463,41 @@ cell-bits 32 = [
         2drop
     ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ 2 swap >fixnum ribs ]
     { <-integer-fixnum +-integer-fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ hashtable new ] \ new inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { array-capacity } declare 1 fixnum+ ] cleaned-up-tree
     [ { [ #call? ] [ node-input-infos second literal>> 1 = ] } 1&& ] any?
 ] unit-test
 
-[ ] [
+{ } [
     [ { null } declare [ 1 ] [ 2 ] if ]
     build-tree normalize propagate cleanup-tree check-nodes
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { array } declare 2 <groups> [ . . ] assoc-each ]
     \ nth-unsafe inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare = ]
     \ both-fixnums? inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { integer integer } declare + drop ]
     { + +-integer-integer } inlined?
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     [
         20 f <array>
         [ 0 swap nth ] keep
@@ -517,27 +517,27 @@ cell-bits 32 = [
     ] cleaned-up-tree nodes>quot
 ] unit-test
 
-[ t ] [
+{ t } [
     [ int { } cdecl [ 2 2 + ] alien-callback ]
     { + } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ double { double double } cdecl [ + ] alien-callback ]
     \ + inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ double { double double } cdecl [ + ] alien-callback ]
     \ float+ inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ char { char char } cdecl [ + ] alien-callback ]
     \ fixnum+fast inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ void { } cdecl [ ] alien-callback void { } cdecl alien-indirect ]
     \ >c-ptr inlined?
 ] unit-test
index 1ea78be523006a8947f7be8d2d12d4456b157c2e..f99335456b81b3513a114804a722f298b0708eb9 100644 (file)
@@ -26,41 +26,41 @@ IN: compiler.tree.dead-code.tests
         [ out-d>> length + ] [ drop ] if
     ] each-node ;
 
-[ 3 ] [ [ 1 2 3 ] count-live-values ] unit-test
+{ 3 } [ [ 1 2 3 ] count-live-values ] unit-test
 
-[ 1 ] [ [ drop ] count-live-values ] unit-test
+{ 1 } [ [ drop ] count-live-values ] unit-test
 
-[ 0 ] [ [ 1 drop ] count-live-values ] unit-test
+{ 0 } [ [ 1 drop ] count-live-values ] unit-test
 
-[ 1 ] [ [ 1 2 drop ] count-live-values ] unit-test
+{ 1 } [ [ 1 2 drop ] count-live-values ] unit-test
 
-[ 3 ] [ [ [ 1 ] [ 2 ] if ] count-live-values ] unit-test
+{ 3 } [ [ [ 1 ] [ 2 ] if ] count-live-values ] unit-test
 
-[ 1 ] [ [ [ 1 ] [ 2 ] if drop ] count-live-values ] unit-test
+{ 1 } [ [ [ 1 ] [ 2 ] if drop ] count-live-values ] unit-test
 
-[ 2 ] [ [ [ 1 ] [ dup ] if drop ] count-live-values ] unit-test
+{ 2 } [ [ [ 1 ] [ dup ] if drop ] count-live-values ] unit-test
 
-[ 2 ] [ [ 1 + ] count-live-values ] unit-test
+{ 2 } [ [ 1 + ] count-live-values ] unit-test
 
-[ 0 ] [ [ 1 2 + drop ] count-live-values ] unit-test
+{ 0 } [ [ 1 2 + drop ] count-live-values ] unit-test
 
-[ 3 ] [ [ 1 + 3 + ] count-live-values ] unit-test
+{ 3 } [ [ 1 + 3 + ] count-live-values ] unit-test
 
-[ 0 ] [ [ 1 2 + 3 + drop ] count-live-values ] unit-test
+{ 0 } [ [ 1 2 + 3 + drop ] count-live-values ] unit-test
 
-[ 4 ] [ [ [ 1 ] [ 2 ] if 3 + ] count-live-values ] unit-test
+{ 4 } [ [ [ 1 ] [ 2 ] if 3 + ] count-live-values ] unit-test
 
-[ 1 ] [ [ [ 1 ] [ 2 ] if 3 + drop ] count-live-values ] unit-test
+{ 1 } [ [ [ 1 ] [ 2 ] if 3 + drop ] count-live-values ] unit-test
 
-[ 0 ] [ [ [ ] call ] count-live-values ] unit-test
+{ 0 } [ [ [ ] call ] count-live-values ] unit-test
 
-[ 1 ] [ [ [ 1 ] call ] count-live-values ] unit-test
+{ 1 } [ [ [ 1 ] call ] count-live-values ] unit-test
 
-[ 2 ] [ [ [ 1 ] [ 2 ] compose call ] count-live-values ] unit-test
+{ 2 } [ [ [ 1 ] [ 2 ] compose call ] count-live-values ] unit-test
 
-[ 0 ] [ [ [ 1 ] [ 2 ] compose call + drop ] count-live-values ] unit-test
+{ 0 } [ [ [ 1 ] [ 2 ] compose call + drop ] count-live-values ] unit-test
 
-[ 3 ] [ [ 10 [ ] times ] count-live-values ] unit-test
+{ 3 } [ [ 10 [ ] times ] count-live-values ] unit-test
 
 : optimize-quot ( quot -- quot' )
     build-tree
@@ -74,40 +74,40 @@ IN: compiler.tree.dead-code.tests
     remove-dead-code
     "no-check" get [ dup check-nodes ] unless nodes>quot ;
 
-[ [ drop 1 ] ] [ [ [ 1 ] dip drop ] optimize-quot ] unit-test
+{ [ drop 1 ] } [ [ [ 1 ] dip drop ] optimize-quot ] unit-test
 
-[ [ stream-read1 drop 1 2 ] ] [ [ stream-read1 [ 1 2 ] dip drop ] optimize-quot ] unit-test
+{ [ stream-read1 drop 1 2 ] } [ [ stream-read1 [ 1 2 ] dip drop ] optimize-quot ] unit-test
 
-[ [ over >R + R> ] ] [ [ [ + ] [ drop ] 2bi ] optimize-quot ] unit-test
+{ [ over >R + R> ] } [ [ [ + ] [ drop ] 2bi ] optimize-quot ] unit-test
 
-[ [ [ ] [ ] if ] ] [ [ [ 1 ] [ 2 ] if drop ] optimize-quot ] unit-test
+{ [ [ ] [ ] if ] } [ [ [ 1 ] [ 2 ] if drop ] optimize-quot ] unit-test
 
 : flushable-1 ( a b -- c ) 2drop f ; flushable
 : flushable-2 ( a b -- c ) 2drop f ; flushable
 
-[ [ 2nip [ ] [ ] if ] ] [
+{ [ 2nip [ ] [ ] if ] } [
     [ [ flushable-1 ] [ flushable-2 ] if drop ] optimize-quot
 ] unit-test
 
 : non-flushable-3 ( a b -- c ) 2drop f ;
 
-[ [ [ 2drop ] [ non-flushable-3 drop ] if ] ] [
+{ [ [ 2drop ] [ non-flushable-3 drop ] if ] } [
     [ [ flushable-1 ] [ non-flushable-3 ] if drop ] optimize-quot
 ] unit-test
 
-[ [ [ f ] [ f ] if ] ] [ [ [ f ] [ f ] if ] optimize-quot ] unit-test
+{ [ [ f ] [ f ] if ] } [ [ [ f ] [ f ] if ] optimize-quot ] unit-test
 
-[ ] [ [ dup [ 3 throw ] [ ] if ] optimize-quot drop ] unit-test
+{ } [ [ dup [ 3 throw ] [ ] if ] optimize-quot drop ] unit-test
 
-[ [ [ . ] [ drop ] if ] ] [ [ [ dup . ] [ ] if drop ] optimize-quot ] unit-test
+{ [ [ . ] [ drop ] if ] } [ [ [ dup . ] [ ] if drop ] optimize-quot ] unit-test
 
-[ [ f ] ] [ [ f dup [ ] [ ] if ] optimize-quot ] unit-test
+{ [ f ] } [ [ f dup [ ] [ ] if ] optimize-quot ] unit-test
 
-[ ] [ [ over [ ] [ dup [ "X" throw ] [ "X" throw ] if ] if ] optimize-quot drop ] unit-test
+{ } [ [ over [ ] [ dup [ "X" throw ] [ "X" throw ] if ] if ] optimize-quot drop ] unit-test
 
 : boo ( a b -- c ) 2drop f ;
 
-[ [ dup 4 eq? [ nip ] [ boo ] if ] ] [ [ dup dup 4 eq? [ drop nip ] [ drop boo ] if ] optimize-quot ] unit-test
+{ [ dup 4 eq? [ nip ] [ boo ] if ] } [ [ dup dup 4 eq? [ drop nip ] [ drop boo ] if ] optimize-quot ] unit-test
 
 : squish ( quot -- quot' )
     [
@@ -121,7 +121,7 @@ IN: compiler.tree.dead-code.tests
 : call-recursive-dce-1 ( a -- b )
     [ call-recursive-dce-1 drop ] [ call-recursive-dce-1 ] bi ; inline recursive
 
-[ [ drop "WRAP" [ "REC" drop "REC" ] label ] ] [
+{ [ drop "WRAP" [ "REC" drop "REC" ] label ] } [
     [ call-recursive-dce-1 ] optimize-quot squish
 ] unit-test
 
@@ -131,76 +131,76 @@ IN: compiler.tree.dead-code.tests
     drop
     produce-a-value dup . call-recursive-dce-2 ; inline recursive
 
-[ [ "WRAP" [ produce-a-value . "REC" ] label ] ] [
+{ [ "WRAP" [ produce-a-value . "REC" ] label ] } [
     [ f call-recursive-dce-2 drop ] optimize-quot squish
 ] unit-test
 
-[ [ "WRAP" [ produce-a-value . "REC" ] label ] ] [
+{ [ "WRAP" [ produce-a-value . "REC" ] label ] } [
     [ f call-recursive-dce-2 ] optimize-quot squish
 ] unit-test
 
 : call-recursive-dce-3 ( a -- )
     call-recursive-dce-3 ; inline recursive
 
-[ [ [ drop "WRAP" [ "REC" ] label ] [ . ] if ] ] [
+{ [ [ drop "WRAP" [ "REC" ] label ] [ . ] if ] } [
     [ [ call-recursive-dce-3 ] [ . ] if ] optimize-quot squish
 ] unit-test
 
-[ [ drop "WRAP" [ "REC" ] label ] ] [
+{ [ drop "WRAP" [ "REC" ] label ] } [
     [ call-recursive-dce-3 ] optimize-quot squish
 ] unit-test
 
 : call-recursive-dce-4 ( a -- b )
     call-recursive-dce-4 ; inline recursive
 
-[ [ drop "WRAP" [ "REC" ] label ] ] [
+{ [ drop "WRAP" [ "REC" ] label ] } [
     [ call-recursive-dce-4 ] optimize-quot squish
 ] unit-test
 
-[ [ drop "WRAP" [ "REC" ] label ] ] [
+{ [ drop "WRAP" [ "REC" ] label ] } [
     [ call-recursive-dce-4 drop ] optimize-quot squish
 ] unit-test
 
-[ ] [ [ f call-recursive-dce-3 swap ] optimize-quot drop ] unit-test
+{ } [ [ f call-recursive-dce-3 swap ] optimize-quot drop ] unit-test
 
 : call-recursive-dce-5 ( -- ) call-recursive-dce-5 ; inline recursive
 
-[ ] [ [ call-recursive-dce-5 swap ] optimize-quot drop ] unit-test
+{ } [ [ call-recursive-dce-5 swap ] optimize-quot drop ] unit-test
 
-[ ] [ [ [ 0 -rot set-nth-unsafe ] curry (each-integer) ] optimize-quot drop ] unit-test
+{ } [ [ [ 0 -rot set-nth-unsafe ] curry (each-integer) ] optimize-quot drop ] unit-test
 
 : call-recursive-dce-6 ( i quot: ( ..a -- ..b ) -- i )
     dup call [ drop ] [ call-recursive-dce-6 ] if ; inline recursive
 
-[ ] [ [ [ ] curry [ ] swap compose call-recursive-dce-6 ] optimize-quot drop ] unit-test
+{ } [ [ [ ] curry [ ] swap compose call-recursive-dce-6 ] optimize-quot drop ] unit-test
 
-[ ] [ [ [ ] rot [ . ] curry pick [ roll 2drop call ] [ 2nip call ] if ] optimize-quot drop ] unit-test
+{ } [ [ [ ] rot [ . ] curry pick [ roll 2drop call ] [ 2nip call ] if ] optimize-quot drop ] unit-test
 
-[ [ drop ] ] [ [ array? drop ] optimize-quot ] unit-test
+{ [ drop ] } [ [ array? drop ] optimize-quot ] unit-test
 
-[ [ drop ] ] [ [ array instance? drop ] optimize-quot ] unit-test
+{ [ drop ] } [ [ array instance? drop ] optimize-quot ] unit-test
 
-[ [ drop ] ] [ [ { integer } declare f <array> drop ] optimize-quot ] unit-test
+{ [ drop ] } [ [ { integer } declare f <array> drop ] optimize-quot ] unit-test
 
-[ [ f <array> drop ] ] [ [ f <array> drop ] optimize-quot ] unit-test
+{ [ f <array> drop ] } [ [ f <array> drop ] optimize-quot ] unit-test
 
 : call-recursive-dce-7 ( obj -- elt ? )
     dup 5 = [ t ] [ dup [ call-recursive-dce-7 ] [ drop f f ] if ] if ; inline recursive
 
-[ ] [ [ call-recursive-dce-7 ] optimize-quot drop ] unit-test
+{ } [ [ call-recursive-dce-7 ] optimize-quot drop ] unit-test
 
-[ [ /i ] ] [ [ /mod drop ] optimize-quot ] unit-test
+{ [ /i ] } [ [ /mod drop ] optimize-quot ] unit-test
 
-[ [ mod ] ] [ [ /mod nip ] optimize-quot ] unit-test
+{ [ mod ] } [ [ /mod nip ] optimize-quot ] unit-test
 
-[ [ fixnum/i ] ] [ [ { fixnum fixnum } declare /mod drop ] optimize-quot ] unit-test
+{ [ fixnum/i ] } [ [ { fixnum fixnum } declare /mod drop ] optimize-quot ] unit-test
 
-[ [ fixnum-mod ] ] [ [ { fixnum fixnum } declare /mod nip ] optimize-quot ] unit-test
+{ [ fixnum-mod ] } [ [ { fixnum fixnum } declare /mod nip ] optimize-quot ] unit-test
 
-[ [ bignum/i ] ] [ [ { bignum bignum } declare /mod drop ] optimize-quot ] unit-test
+{ [ bignum/i ] } [ [ { bignum bignum } declare /mod drop ] optimize-quot ] unit-test
 
-[ [ bignum-mod ] ] [ [ { bignum bignum } declare /mod nip ] optimize-quot ] unit-test
+{ [ bignum-mod ] } [ [ { bignum bignum } declare /mod nip ] optimize-quot ] unit-test
 
-[ [ /i ] ] [ [ /mod drop ] optimize-quot ] unit-test
+{ [ /i ] } [ [ /mod drop ] optimize-quot ] unit-test
 
-[ [ mod ] ] [ [ /mod nip ] optimize-quot ] unit-test
+{ [ mod ] } [ [ /mod nip ] optimize-quot ] unit-test
index 8dec477aae677d28e120845174a21985a323d321..ac401cf5319c488b6433c1a267413292b9a2f38d 100644 (file)
@@ -7,7 +7,7 @@ compiler.tree.def-use arrays kernel.private sorting math.order
 binary-search compiler.tree.checker ;
 IN: compiler.tree.def-use.tests
 
-[ t ] [
+{ t } [
     [ 1 2 3 ] build-tree compute-def-use drop
     def-use get {
         [ assoc-size 3 = ]
@@ -27,7 +27,7 @@ IN: compiler.tree.def-use.tests
 : too-deep ( a b -- c )
     dup [ drop ] [ 2dup too-deep too-deep drop ] if ; inline recursive
 
-[ ] [
+{ } [
     [ too-deep ]
     build-tree
     analyze-recursive
index ccc4ef02cd424ecfdb2f6d6a45f233d477aa27c5..c810230f4d3b2ac7e23a410a0aac309232979240 100644 (file)
@@ -3,7 +3,7 @@ compiler.tree.recursive compiler.tree.def-use
 compiler.tree.def-use.simplified accessors sequences sorting classes ;
 IN: compiler.tree.def-use.simplified
 
-[ { #call #return } ] [
+{ { #call #return } } [
     [ 1 dup reverse ] build-tree compute-def-use
     first out-d>> first actually-used-by
     [ node>> class-of ] map natural-sort
@@ -11,13 +11,13 @@ IN: compiler.tree.def-use.simplified
 
 : word-1 ( a -- b ) dup [ word-1 ] when ; inline recursive
 
-[ { #introduce } ] [
+{ { #introduce } } [
     [ word-1 ] build-tree analyze-recursive compute-def-use
     last in-d>> first actually-defined-by
     [ node>> class-of ] map natural-sort
 ] unit-test
 
-[ { #if #return } ] [
+{ { #if #return } } [
     [ word-1 ] build-tree analyze-recursive compute-def-use
     first out-d>> first actually-used-by
     [ node>> class-of ] map natural-sort
index beeac95fe97f34201d176486f0cfb2711badfa11..a1bb5172c985a8aea4d5fdc8a738c4a8ae839702 100644 (file)
@@ -6,22 +6,22 @@ IN: compiler.tree.escape-analysis.check.tests
 : test-checker ( quot -- ? )
     build-tree normalize propagate cleanup-tree run-escape-analysis? ;
 
-[ t ] [
+{ t } [
     [ { complex } declare [ real>> ] [ imaginary>> ] bi ]
     test-checker
 ] unit-test
 
-[ t ] [
+{ t } [
     [ complex boa [ real>> ] [ imaginary>> ] bi ]
     test-checker
 ] unit-test
 
-[ t ] [
+{ t } [
     [ [ complex boa [ real>> ] [ imaginary>> ] bi ] when ]
     test-checker
 ] unit-test
 
-[ f ] [
+{ f } [
     [ swap 1 2 ? ]
     test-checker
 ] unit-test
index ec8d042f3df4775b08c92c4115636aec7924e368..505325807a8cbe4a343e26030bd699e3bd7b668f 100644 (file)
@@ -41,45 +41,45 @@ M: node count-unboxed-allocations* drop ;
     remove-dead-code
     0 swap [ count-unboxed-allocations* ] each-node ;
 
-[ 0 ] [ [ [ + ] curry ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ [ + ] curry ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry drop ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry drop ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry 3 slot ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry 3 slot ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry 3 slot drop ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry 3 slot drop ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry uncurry ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry uncurry ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry call ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry call ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ [ + ] curry call ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ [ + ] curry call ] count-unboxed-allocations ] unit-test
 
-[ 0 ] [ [ [ [ + ] curry ] [ drop [ ] ] if ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ [ [ + ] curry ] [ drop [ ] ] if ] count-unboxed-allocations ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [ [ [ + ] curry ] [ [ * ] curry ] if uncurry ] count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ [ [ + ] curry ] [ [ * ] curry ] if ] count-unboxed-allocations
 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     [ [ [ + ] curry ] [ dup [ [ * ] curry ] [ [ / ] curry ] if ] if uncurry ] count-unboxed-allocations
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [ [ [ + ] curry 4 ] [ dup [ [ * ] curry ] [ [ / ] curry ] if uncurry ] if ] count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ [ [ + ] curry ] [ dup [ [ * ] curry ] [ [ / ] curry ] if ] if ] count-unboxed-allocations
 ] unit-test
 
 TUPLE: cons { car read-only } { cdr read-only } ;
 
-[ 0 ] [
+{ 0 } [
     [
         dup 0 = [
             2 cons boa
@@ -91,7 +91,7 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     [
         dup 0 = [
             2 cons boa
@@ -105,7 +105,7 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [
         dup 0 = [
             dup 1 = [
@@ -117,7 +117,7 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [
         dup 0 = [
             2 cons boa
@@ -131,7 +131,7 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [
         dup 0 = [
             2 cons boa
@@ -145,13 +145,13 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [
         [ dup cons boa ] [ drop 1 2 cons boa ] if car>>
     ] count-unboxed-allocations
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [
         3dup
         [ cons boa ] [ cons boa 3 cons boa ] if
@@ -159,23 +159,23 @@ TUPLE: cons { car read-only } { cdr read-only } ;
     ] count-unboxed-allocations
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     [
         3dup [ cons boa ] [ cons boa . 1 2 cons boa ] if
         [ car>> ] [ cdr>> ] bi
     ] count-unboxed-allocations
 ] unit-test
 
-[ 1 ] [
+{ 1 } [
     [ [ 3 cons boa ] [ "A" throw ] if car>> ]
     count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ 10 [ drop ] each-integer ] count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [
         1 2 cons boa 10 [ drop 2 cons boa ] each-integer car>>
     ] count-unboxed-allocations
@@ -183,7 +183,7 @@ TUPLE: cons { car read-only } { cdr read-only } ;
 
 : infinite-cons-loop ( a -- b ) 2 cons boa infinite-cons-loop ; inline recursive
 
-[ 0 ] [
+{ 0 } [
     [
         1 2 cons boa infinite-cons-loop
     ] count-unboxed-allocations
@@ -193,12 +193,12 @@ TUPLE: rw-box i ;
 
 C: <rw-box> rw-box
 
-[ 0 ] [ [ <rw-box> i>> ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ <rw-box> i>> ] count-unboxed-allocations ] unit-test
 
 : fake-fib ( m -- n )
     dup i>> 1 <= [ drop 1 <rw-box> ] when ; inline recursive
 
-[ 0 ] [ [ <rw-box> fake-fib i>> ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ <rw-box> fake-fib i>> ] count-unboxed-allocations ] unit-test
 
 TUPLE: ro-box { i read-only } ;
 
@@ -216,14 +216,14 @@ C: <ro-box> ro-box
         swap i>> swap i>> + <ro-box>
     ] if ; inline recursive
 
-[ 5 ] [ [ <ro-box> tuple-fib i>> ] count-unboxed-allocations ] unit-test
+{ 5 } [ [ <ro-box> tuple-fib i>> ] count-unboxed-allocations ] unit-test
 
-[ 3 ] [ [ <ro-box> tuple-fib ] count-unboxed-allocations ] unit-test
+{ 3 } [ [ <ro-box> tuple-fib ] count-unboxed-allocations ] unit-test
 
 : tuple-fib' ( m -- n )
     dup 1 <= [ 1 - tuple-fib' i>> ] when <ro-box> ; inline recursive
 
-[ 0 ] [ [ tuple-fib' ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ tuple-fib' ] count-unboxed-allocations ] unit-test
 
 : bad-tuple-fib-1 ( m -- n )
     dup i>> 1 <= [
@@ -237,7 +237,7 @@ C: <ro-box> ro-box
         swap i>> swap i>> + <ro-box>
     ] if ; inline recursive
 
-[ 3 ] [ [ <ro-box> bad-tuple-fib-1 i>> ] count-unboxed-allocations ] unit-test
+{ 3 } [ [ <ro-box> bad-tuple-fib-1 i>> ] count-unboxed-allocations ] unit-test
 
 : bad-tuple-fib-2 ( m -- n )
     dup .
@@ -252,7 +252,7 @@ C: <ro-box> ro-box
         swap i>> swap i>> + <ro-box>
     ] if ; inline recursive
 
-[ 2 ] [ [ <ro-box> bad-tuple-fib-2 i>> ] count-unboxed-allocations ] unit-test
+{ 2 } [ [ <ro-box> bad-tuple-fib-2 i>> ] count-unboxed-allocations ] unit-test
 
 : tuple-fib-2 ( m -- n )
     dup 1 <= [
@@ -264,7 +264,7 @@ C: <ro-box> ro-box
         swap i>> swap i>> + <ro-box>
     ] if ; inline recursive
 
-[ 2 ] [ [ tuple-fib-2 i>> ] count-unboxed-allocations ] unit-test
+{ 2 } [ [ tuple-fib-2 i>> ] count-unboxed-allocations ] unit-test
 
 : tuple-fib-3 ( m -- n )
     dup 1 <= [
@@ -276,7 +276,7 @@ C: <ro-box> ro-box
         swap i>> swap i>> + <ro-box>
     ] if ; inline recursive
 
-[ 0 ] [ [ tuple-fib-3 i>> ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ tuple-fib-3 i>> ] count-unboxed-allocations ] unit-test
 
 : bad-tuple-fib-3 ( m -- n )
     dup 1 <= [
@@ -288,24 +288,24 @@ C: <ro-box> ro-box
         2drop f
     ] if ; inline recursive
 
-[ 0 ] [ [ bad-tuple-fib-3 i>> ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ bad-tuple-fib-3 i>> ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ complex boa >rect ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ complex boa >rect ] count-unboxed-allocations ] unit-test
 
-[ 0 ] [ [ 1 cons boa 2 cons boa ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ 1 cons boa 2 cons boa ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [ [ 1 cons boa 2 cons boa car>> ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ 1 cons boa 2 cons boa car>> ] count-unboxed-allocations ] unit-test
 
-[ 0 ] [ [ 1 cons boa 2 cons boa dup . car>> ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ 1 cons boa 2 cons boa dup . car>> ] count-unboxed-allocations ] unit-test
 
-[ 0 ] [ [ 1 cons boa "x" get slot ] count-unboxed-allocations ] unit-test
+{ 0 } [ [ 1 cons boa "x" get slot ] count-unboxed-allocations ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ dup -1 over >= [ 0 >= [ "A" throw ] unless ] [ drop ] if ]
     count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ \ too-many->r boa f f \ inference-error boa ]
     count-unboxed-allocations
 ] unit-test
@@ -314,18 +314,18 @@ C: <ro-box> ro-box
 
 TUPLE: empty-tuple ;
 
-[ ] [ [ empty-tuple boa layout-of ] count-unboxed-allocations drop ] unit-test
+{ } [ [ empty-tuple boa layout-of ] count-unboxed-allocations drop ] unit-test
 
 ! New feature!
 
-[ 1 ] [ [ { complex } declare real>> ] count-unboxed-allocations ] unit-test
+{ 1 } [ [ { complex } declare real>> ] count-unboxed-allocations ] unit-test
 
-[ 1 ] [
+{ 1 } [
     [ { complex } declare [ real>> ] [ imaginary>> ] bi ]
     count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ { vector } declare length>> ]
     count-unboxed-allocations
 ] unit-test
@@ -335,12 +335,12 @@ TUPLE: empty-tuple ;
 TUPLE: point-2d { x read-only } { y read-only } ;
 TUPLE: point-3d < point-2d { z read-only } ;
 
-[ 0 ] [
+{ 0 } [
     [ { point-2d } declare dup point-3d? [ z>> ] [ x>> ] if ]
     count-unboxed-allocations
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [ point-2d boa dup point-3d? [ z>> ] [ x>> ] if ]
     count-unboxed-allocations
 ] unit-test
index bb32e6e23b1a229cee60d336cacfcad359547a88..fdff28c72250187542fa1107c807164377950b78 100644 (file)
@@ -6,10 +6,10 @@ IN: compiler.tree.escape-analysis.recursive.tests
 H{ } clone allocations set
 <escaping-values> escaping-values set
 
-[ ] [ 8 [ introduce-value ] each-integer ] unit-test
+{ } [ 8 [ introduce-value ] each-integer ] unit-test
 
-[ ] [ { 1 2 } 3 record-allocation ] unit-test
+{ } [ { 1 2 } 3 record-allocation ] unit-test
 
-[ t ] [ { 1 2 } { 6 7 } congruent? ] unit-test
-[ f ] [ { 3 4 } { 6 7 } congruent? ] unit-test
-[ f ] [ { 3 4 5 } { 6 7 } congruent? ] unit-test
+{ t } [ { 1 2 } { 6 7 } congruent? ] unit-test
+{ f } [ { 3 4 } { 6 7 } congruent? ] unit-test
+{ f } [ { 3 4 5 } { 6 7 } congruent? ] unit-test
index 7369c0dcedcd581d8f7fe047dd4b25ad6198be78..d07f5fa478ccf4606e0b861b978a9cffd3737717 100644 (file)
@@ -10,18 +10,18 @@ IN: compiler.tree.modular-arithmetic.tests
 : test-modular-arithmetic ( quot -- quot' )
     cleaned-up-tree nodes>quot ;
 
-[ [ >R >fixnum R> >fixnum fixnum+fast ] ]
+{ [ >R >fixnum R> >fixnum fixnum+fast ] }
 [ [ { integer integer } declare + >fixnum ] test-modular-arithmetic ] unit-test
 
-[ [ +-integer-integer dup >fixnum ] ]
+{ [ +-integer-integer dup >fixnum ] }
 [ [ { integer integer } declare + dup >fixnum ] test-modular-arithmetic ] unit-test
 
-[ [ >R >fixnum R> >fixnum fixnum+fast 4 fixnum*fast ] ]
+{ [ >R >fixnum R> >fixnum fixnum+fast 4 fixnum*fast ] }
 [ [ { integer integer } declare + 4 * >fixnum ] test-modular-arithmetic ] unit-test
 
 TUPLE: declared-fixnum { x fixnum } ;
 
-[ t ] [
+{ t } [
     [ { declared-fixnum } declare [ 1 + ] change-x ]
     { + } inlined?
     ! XXX: As of .97, we do a bounds check and throw an error on
@@ -30,27 +30,27 @@ TUPLE: declared-fixnum { x fixnum } ;
     ! { + fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { declared-fixnum } declare x>> drop ]
     { slot } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { integer } declare -63 shift 4095 bitand ]
     \ shift inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { integer } declare 127 bitand 3 + ]
     { + +-integer-fixnum bitand } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { integer } declare 127 bitand 3 + ]
     { integer>fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare
         dup 0 >= [
@@ -59,14 +59,14 @@ TUPLE: declared-fixnum { x fixnum } ;
     ] { * + shift mod fixnum-mod fixnum* fixnum+ fixnum- } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { fixnum } declare
         615949 * 797807 + 20 2^ mod dup 19 2^ -
     ] { >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare 0 swap
         [
@@ -75,7 +75,7 @@ TUPLE: declared-fixnum { x fixnum } ;
     ] { * + shift rem mod fixnum-mod fixnum* fixnum+ fixnum- } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { fixnum } declare iota 0 swap
         [
@@ -84,213 +84,213 @@ TUPLE: declared-fixnum { x fixnum } ;
     ] { * + shift rem mod fixnum-mod fixnum* fixnum+ fixnum- >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { string sbuf } declare ] \ push-all def>> append \ + inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { string sbuf } declare ] \ push-all def>> append \ fixnum+ inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { string sbuf } declare ] \ push-all def>> append \ >fixnum inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare iota [ 256 mod ] map
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         256 mod
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         >fixnum 256 mod
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         dup 0 >= [ 256 mod ] when
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare dup 0 >= [ 256 mod ] when
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { integer } declare 256 rem
     ] { mod fixnum-mod } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         { iota-tuple } declare [ 256 rem ] map
     ] { mod fixnum-mod rem } inlined?
 ] unit-test
 
-[ [ drop 0 ] ]
+{ [ drop 0 ] }
 [ [ >integer 1 rem ] test-modular-arithmetic ] unit-test
 
-[ [ drop 0 ] ]
+{ [ drop 0 ] }
 [ [ >integer 1 mod ] test-modular-arithmetic ] unit-test
 
-[ [ >fixnum 255 >R R> fixnum-bitand ] ]
+{ [ >fixnum 255 >R R> fixnum-bitand ] }
 [ [ >integer 256 rem ] test-modular-arithmetic ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum fixnum } declare + [ 1 + >fixnum ] [ 2 + >fixnum ] bi ]
     { >fixnum } inlined?
 ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-unsigned-1 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-unsigned-1 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-unsigned-1 ] test-modular-arithmetic ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-unsigned-2 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-unsigned-2 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-unsigned-2 ] test-modular-arithmetic ] unit-test
 
 cell {
     { 4 [ [ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-unsigned-4 ] ] ] }
     { 8 [ [ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-unsigned-4 ] ] ] }
-} case
+} }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-unsigned-4 ] test-modular-arithmetic ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-unsigned-8 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-unsigned-8 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-unsigned-8 ] test-modular-arithmetic ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-signed-1 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-signed-1 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-signed-1 ] test-modular-arithmetic ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-signed-2 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-signed-2 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-signed-2 ] test-modular-arithmetic ] unit-test
 
 cell {
     { 4 [ [ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-signed-4 ] ] ] }
     { 8 [ [ [ "COMPLEX SHUFFLE" fixnum+fast "COMPLEX SHUFFLE" set-alien-signed-4 ] ] ] }
-} case
+} }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-signed-4 ] test-modular-arithmetic ] unit-test
 
-[ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-signed-8 ] ]
+{ [ "COMPLEX SHUFFLE" fixnum+ "COMPLEX SHUFFLE" set-alien-signed-8 ] }
 [ [ [ { fixnum fixnum } declare + ] 2dip set-alien-signed-8 ] test-modular-arithmetic ] unit-test
 
-[ t ] [ [ { fixnum byte-array } declare [ + ] with map ] { + fixnum+ >fixnum } inlined? ] unit-test
+{ t } [ [ { fixnum byte-array } declare [ + ] with map ] { + fixnum+ >fixnum } inlined? ] unit-test
 
-[ t ] [
+{ t } [
     [ 0 10 <byte-array> 10 [ 1 pick 0 + >fixnum pick set-nth-unsafe [ 1 + >fixnum ] dip ] times ]
     { >fixnum } inlined?
 ] unit-test
 
-[ f ] [ [ + >fixnum ] { >fixnum } inlined? ] unit-test
+{ f } [ [ + >fixnum ] { >fixnum } inlined? ] unit-test
 
-[ t ] [
+{ t } [
     [ >integer [ >fixnum ] [ >fixnum ] bi ]
     { >integer } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ >integer [ >fixnum ] [ >fixnum ] bi ]
     { >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ >integer [ 2 + >fixnum ] [ 3 + >fixnum ] bi ]
     { >integer } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ >integer [ 2 + >fixnum ] [ 3 + >fixnum ] bi ]
     { >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ >integer [ >fixnum ] [ >fixnum ] bi ]
     { >integer } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ >bignum [ >fixnum ] [ >fixnum ] bi ]
     { >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ >bignum [ >fixnum ] [ >fixnum ] bi ]
     { >bignum } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ [ { fixnum } declare 2 fixnum+ ] dip [ >fixnum 2 - ] [ ] if ]
     { fixnum+ } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum boolean } declare [ 1 + ] [ "HI" throw ] if >fixnum ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum boolean } declare [ 1 + ] [ drop 5 ] if >fixnum ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum boolean } declare [ 1 + ] [ 2 + ] if >fixnum ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ [ [ 1 ] [ 4 ] if ] ] [
+{ [ [ 1 ] [ 4 ] if ] } [
     [ [ 1.5 ] [ 4 ] if >fixnum ] test-modular-arithmetic
 ] unit-test
 
-[ [ [ 1 ] [ 2 ] if ] ] [
+{ [ [ 1 ] [ 2 ] if ] } [
     [ [ 1.5 ] [ 2.3 ] if >fixnum ] test-modular-arithmetic
 ] unit-test
 
-[ f ] [
+{ f } [
     [ { fixnum fixnum boolean } declare [ [ 3 * ] [ 1 + ] dip ] [ [ 4 - ] [ 2 + ] dip ] if >fixnum ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 0 1000 [ 1 + dup >fixnum . ] times drop ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare 3 + [ 1000 ] dip [ >fixnum . ] curry times ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ 0 1000 [ 1 + ] times >fixnum ]
     { fixnum+ >fixnum } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ f >fixnum ]
     { >fixnum } inlined?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ [ >fixnum ] 2dip set-alien-unsigned-1 ]
     { >fixnum } inlined?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { fixnum } declare 123 >bignum bitand >fixnum ]
     { >bignum fixnum>bignum bignum-bitand } inlined?
 ] unit-test
 
 ! Shifts
-[ t ] [
+{ t } [
     [
         [ 0 ] 2dip { array } declare [
             hashcode* >fixnum swap [
index 2f250fcf0867612ff518cb1d8428d51983809025..aa926e03d74a22f6f603290ff003fd276c1ec6d0 100644 (file)
@@ -6,20 +6,20 @@ compiler.tree compiler.tree.checker
 sequences accessors tools.test kernel math ;
 IN: compiler.tree.normalization.tests
 
-[ 3 ] [ [ 3drop 1 2 3 ] build-tree count-introductions ] unit-test
+{ 3 } [ [ 3drop 1 2 3 ] build-tree count-introductions ] unit-test
 
-[ 4 ] [ [ 3drop 1 2 3 3drop drop ] build-tree count-introductions ] unit-test
+{ 4 } [ [ 3drop 1 2 3 3drop drop ] build-tree count-introductions ] unit-test
 
-[ 3 ] [ [ [ drop ] [ 2drop 3 ] if ] build-tree count-introductions ] unit-test
+{ 3 } [ [ [ drop ] [ 2drop 3 ] if ] build-tree count-introductions ] unit-test
 
-[ 2 ] [ [ 3 [ drop ] [ 2drop 3 ] if ] build-tree count-introductions ] unit-test
+{ 2 } [ [ 3 [ drop ] [ 2drop 3 ] if ] build-tree count-introductions ] unit-test
 
 : foo ( ..a quot: ( ..a -- ..b ) -- ..b ) call ; inline recursive
 
 : recursive-inputs ( nodes -- n )
     [ #recursive? ] find nip child>> first in-d>> length ;
 
-[ 1 3 ] [
+{ 1 3 } [
     [ [ swap ] foo ] build-tree
     [ recursive-inputs ]
     [ analyze-recursive normalize recursive-inputs ] bi
@@ -28,24 +28,24 @@ IN: compiler.tree.normalization.tests
 : test-normalization ( quot -- )
     build-tree analyze-recursive normalize check-nodes ;
 
-[ ] [ [ [ 1 ] [ 2 ] if + * ] test-normalization ] unit-test
+{ } [ [ [ 1 ] [ 2 ] if + * ] test-normalization ] unit-test
 
 DEFER: bbb
 : aaa ( obj x -- obj ) dup [ dup [ bbb ] dip aaa ] [ drop ] if ; inline recursive
 : bbb ( obj x -- obj ) [ drop 0 ] dip aaa ; inline recursive
 
-[ ] [ [ bbb ] test-normalization ] unit-test
+{ } [ [ bbb ] test-normalization ] unit-test
 
 : ccc ( obj -- 1 ) ccc drop 1 ; inline recursive
 
-[ ] [ [ ccc ] test-normalization ] unit-test
+{ } [ [ ccc ] test-normalization ] unit-test
 
 DEFER: eee
 : ddd ( a b -- a b ) eee ; inline recursive
 : eee ( a b -- a b ) swap ddd ; inline recursive
 
-[ ] [ [ eee ] test-normalization ] unit-test
+{ } [ [ eee ] test-normalization ] unit-test
 
 : call-recursive-5 ( -- ) call-recursive-5 ; inline recursive
 
-[ ] [ [ call-recursive-5 swap ] test-normalization ] unit-test
+{ } [ [ call-recursive-5 swap ] test-normalization ] unit-test
index 762f63e4abb1d39d91e9bed90aad5f1c57c13a3a..05e24ca7fc4aa665bd3ab456cc9f6523be55bfd3 100644 (file)
@@ -71,10 +71,10 @@ IN: compiler.tree.propagation.call-effect.tests
 ] unit-test
 
 ! execute-effect-unsafe?
-[ t ] [ \ + ( a b -- c ) execute-effect-unsafe? ] unit-test
-[ t ] [ \ + ( a b c -- d e ) execute-effect-unsafe? ] unit-test
-[ f ] [ \ + ( a b c -- d ) execute-effect-unsafe? ] unit-test
-[ f ] [ \ call ( x -- ) execute-effect-unsafe? ] unit-test
+{ t } [ \ + ( a b -- c ) execute-effect-unsafe? ] unit-test
+{ t } [ \ + ( a b c -- d e ) execute-effect-unsafe? ] unit-test
+{ f } [ \ + ( a b c -- d ) execute-effect-unsafe? ] unit-test
+{ f } [ \ call ( x -- ) execute-effect-unsafe? ] unit-test
 
 ! update-inline-cache
 { t } [
@@ -92,55 +92,55 @@ IN: compiler.tree.propagation.call-effect.tests
 : compiled-execute2 ( a b word: ( a b -- c ) -- c )
     execute( a b -- c ) ;
 
-[ [ 3 ] ] [ [ 1 2 \ + execute( a b -- c ) ] optimized-quot ] unit-test
-[ [ 3 ] ] [ [ 1 2 [ + ] call( a b -- c ) ] optimized-quot ] unit-test
-[ [ 3 ] ] [ [ 1 2 '[ _ + ] call( a -- b ) ] optimized-quot ] unit-test
-[ [ 3 ] ] [ [ 1 2 '[ _ ] [ + ] compose call( a -- b ) ] optimized-quot ] unit-test
+{ [ 3 ] } [ [ 1 2 \ + execute( a b -- c ) ] optimized-quot ] unit-test
+{ [ 3 ] } [ [ 1 2 [ + ] call( a b -- c ) ] optimized-quot ] unit-test
+{ [ 3 ] } [ [ 1 2 '[ _ + ] call( a -- b ) ] optimized-quot ] unit-test
+{ [ 3 ] } [ [ 1 2 '[ _ ] [ + ] compose call( a -- b ) ] optimized-quot ] unit-test
 
 [ 1 2 { [ + ] } first compiled-call2 ] must-fail
-[ 3 ] [ 1 2 { + } first compiled-execute2 ] unit-test
-[ 3 ] [ 1 2 '[ _ + ] compiled-call2 ] unit-test
-[ 3 ] [ 1 2 '[ _ ] [ + ] compose compiled-call2 ] unit-test
-[ 3 ] [ 1 2 \ + compiled-execute2 ] unit-test
-
-[ 3 ] [ 1 2 { [ + ] } first call( a b -- c ) ] unit-test
-[ 3 ] [ 1 2 { + } first execute( a b -- c ) ] unit-test
-[ 3 ] [ 1 2 '[ _ + ] call( a -- b ) ] unit-test
-[ 3 ] [ 1 2 '[ _ ] [ + ] compose call( a -- b ) ] unit-test
-
-[ t ] [ [ 2 '[ _ ] [ + ] compose ] final-info first infer-value ( object -- object ) effect= ] unit-test
-[ t ] [ [ 2 '[ _ ] 1 '[ _ + ] compose ] final-info first infer-value ( -- object ) effect= ] unit-test
-[ t ] [ [ 2 '[ _ + ] ] final-info first infer-value ( object -- object ) effect= ] unit-test
-[ f ] [ [ [ [ ] [ 1 ] if ] ] final-info first infer-value ] unit-test
-[ t ] [ [ [ 1 ] '[ @ ] ] final-info first infer-value ( -- object ) effect= ] unit-test
-[ f ] [ [ dup drop ] final-info first infer-value ] unit-test
+{ 3 } [ 1 2 { + } first compiled-execute2 ] unit-test
+{ 3 } [ 1 2 '[ _ + ] compiled-call2 ] unit-test
+{ 3 } [ 1 2 '[ _ ] [ + ] compose compiled-call2 ] unit-test
+{ 3 } [ 1 2 \ + compiled-execute2 ] unit-test
+
+{ 3 } [ 1 2 { [ + ] } first call( a b -- c ) ] unit-test
+{ 3 } [ 1 2 { + } first execute( a b -- c ) ] unit-test
+{ 3 } [ 1 2 '[ _ + ] call( a -- b ) ] unit-test
+{ 3 } [ 1 2 '[ _ ] [ + ] compose call( a -- b ) ] unit-test
+
+{ t } [ [ 2 '[ _ ] [ + ] compose ] final-info first infer-value ( object -- object ) effect= ] unit-test
+{ t } [ [ 2 '[ _ ] 1 '[ _ + ] compose ] final-info first infer-value ( -- object ) effect= ] unit-test
+{ t } [ [ 2 '[ _ + ] ] final-info first infer-value ( object -- object ) effect= ] unit-test
+{ f } [ [ [ [ ] [ 1 ] if ] ] final-info first infer-value ] unit-test
+{ t } [ [ [ 1 ] '[ @ ] ] final-info first infer-value ( -- object ) effect= ] unit-test
+{ f } [ [ dup drop ] final-info first infer-value ] unit-test
 
 ! This should not hang
-[ ] [ [ [ dup call( quot -- ) ] dup call( quot -- ) ] final-info drop ] unit-test
-[ ] [ [ [ dup curry call( quot -- ) ] dup curry call( quot -- ) ] final-info drop ] unit-test
+{ } [ [ [ dup call( quot -- ) ] dup call( quot -- ) ] final-info drop ] unit-test
+{ } [ [ [ dup curry call( quot -- ) ] dup curry call( quot -- ) ] final-info drop ] unit-test
 
 ! This should get inlined, because the parameter to the curry is literal even though
 ! [ boa ] by itself doesn't infer
 TUPLE: a-tuple x ;
 
-[ V{ a-tuple } ] [ [ a-tuple '[ _ boa ] call( x -- tuple ) ] final-classes ] unit-test
+{ V{ a-tuple } } [ [ a-tuple '[ _ boa ] call( x -- tuple ) ] final-classes ] unit-test
 
 ! See if redefinitions are handled correctly
 : call(-redefine-test ( a -- b ) 1 + ;
 
 : test-quotatation ( -- quot ) [ call(-redefine-test ] ;
 
-[ t ] [ test-quotatation cached-effect ( a -- b ) effect<= ] unit-test
+{ t } [ test-quotatation cached-effect ( a -- b ) effect<= ] unit-test
 
-[ ] [ "IN: compiler.tree.propagation.call-effect.tests USE: math : call(-redefine-test ( a b -- c ) + ;" eval( -- ) ] unit-test
+{ } [ "IN: compiler.tree.propagation.call-effect.tests USE: math : call(-redefine-test ( a b -- c ) + ;" eval( -- ) ] unit-test
 
-[ t ] [ test-quotatation cached-effect ( a b -- c ) effect<= ] unit-test
+{ t } [ test-quotatation cached-effect ( a b -- c ) effect<= ] unit-test
 
 : inline-cache-invalidation-test ( a b c -- c ) call( a b -- c ) ;
 
-[ 4 ] [ 1 3 test-quotatation inline-cache-invalidation-test ] unit-test
+{ 4 } [ 1 3 test-quotatation inline-cache-invalidation-test ] unit-test
 
-[ ] [ "IN: compiler.tree.propagation.call-effect.tests USE: math : call(-redefine-test ( a -- c ) 1 + ;" eval( -- ) ] unit-test
+{ } [ "IN: compiler.tree.propagation.call-effect.tests USE: math : call(-redefine-test ( a -- c ) 1 + ;" eval( -- ) ] unit-test
 
 [ 1 3 test-quotatation inline-cache-invalidation-test ] [ T{ wrong-values f [ call(-redefine-test ] ( a b -- c ) } = ] must-fail-with
 
@@ -151,8 +151,8 @@ TUPLE: my-tuple a b c ;
 
 : my-word ( a b c q -- result ) call( a b c -- result ) ;
 
-[ T{ my-tuple f 1 2 3 } ] [ 1 2 3 my-quot my-word ] unit-test
+{ T{ my-tuple f 1 2 3 } } [ 1 2 3 my-quot my-word ] unit-test
 
-[ ] [ "IN: compiler.tree.propagation.call-effect.tests TUPLE: my-tuple a b ;" eval( -- ) ] unit-test
+{ } [ "IN: compiler.tree.propagation.call-effect.tests TUPLE: my-tuple a b ;" eval( -- ) ] unit-test
 
 [ 1 2 3 my-quot my-word ] [ wrong-values? ] must-fail-with
index b546e56e4ba2462746d1b7b694f9589f0563b6f7..d9d28fddabd6f951d83d6a4805fbe2b8d128c856 100644 (file)
@@ -4,22 +4,22 @@ IN: compiler.tree.propagation.copy.tests
 
 H{ } clone copies set
 
-[ ] [ 0 introduce-value ] unit-test
-[ ] [ 1 introduce-value ] unit-test
-[ ] [ 1 2 is-copy-of ] unit-test
-[ ] [ 2 3 is-copy-of ] unit-test
-[ ] [ 2 4 is-copy-of ] unit-test
-[ ] [ 4 5 is-copy-of ] unit-test
-[ ] [ 0 6 is-copy-of ] unit-test
+{ } [ 0 introduce-value ] unit-test
+{ } [ 1 introduce-value ] unit-test
+{ } [ 1 2 is-copy-of ] unit-test
+{ } [ 2 3 is-copy-of ] unit-test
+{ } [ 2 4 is-copy-of ] unit-test
+{ } [ 4 5 is-copy-of ] unit-test
+{ } [ 0 6 is-copy-of ] unit-test
 
-[ 0 ] [ 0 resolve-copy ] unit-test
-[ 1 ] [ 5 resolve-copy ] unit-test
+{ 0 } [ 0 resolve-copy ] unit-test
+{ 1 } [ 5 resolve-copy ] unit-test
 
 ! Make sure that we did path compression
-[ 1 ] [ 5 copies get at ] unit-test
+{ 1 } [ 5 copies get at ] unit-test
 
-[ 1 ] [ 1 resolve-copy ] unit-test
-[ 1 ] [ 2 resolve-copy ] unit-test
-[ 1 ] [ 3 resolve-copy ] unit-test
-[ 1 ] [ 4 resolve-copy ] unit-test
-[ 0 ] [ 6 resolve-copy ] unit-test
+{ 1 } [ 1 resolve-copy ] unit-test
+{ 1 } [ 2 resolve-copy ] unit-test
+{ 1 } [ 3 resolve-copy ] unit-test
+{ 1 } [ 4 resolve-copy ] unit-test
+{ 0 } [ 6 resolve-copy ] unit-test
index cd0f2ec97b27311c87cbcaef0157037e2f455681..6a70361ae5003ba03595d560246eef56c694226e 100644 (file)
@@ -2,9 +2,9 @@ USING: accessors math math.intervals sequences classes.algebra
 kernel tools.test compiler.tree.propagation.info arrays ;
 IN: compiler.tree.propagation.info.tests
 
-[ f ] [ 0.0 -0.0 eql? ] unit-test
+{ f } [ 0.0 -0.0 eql? ] unit-test
 
-[ t t ] [
+{ t t } [
     0 10 [a,b] <interval-info>
     5 20 [a,b] <interval-info>
     value-info-intersect
@@ -13,62 +13,62 @@ IN: compiler.tree.propagation.info.tests
     bi
 ] unit-test
 
-[ float 10.0 t ] [
+{ float 10.0 t } [
     10.0 <literal-info>
     10.0 <literal-info>
     value-info-intersect
     [ class>> ] [ >literal< ] bi
 ] unit-test
 
-[ null ] [
+{ null } [
     10 <literal-info>
     10.0 <literal-info>
     value-info-intersect
     class>>
 ] unit-test
 
-[ fixnum 10 t ] [
+{ fixnum 10 t } [
     10 <literal-info>
     10 <literal-info>
     value-info-union
     [ class>> ] [ >literal< ] bi
 ] unit-test
 
-[ 3.0 t ] [
+{ 3.0 t } [
     3 3 [a,b] <interval-info> float <class-info>
     value-info-intersect >literal<
 ] unit-test
 
-[ 3 t ] [
+{ 3 t } [
     2 3 (a,b] <interval-info> fixnum <class-info>
     value-info-intersect >literal<
 ] unit-test
 
-[ T{ value-info-state f null empty-interval f f } ] [
+{ T{ value-info-state f null empty-interval f f } } [
     fixnum -10 0 [a,b] <class/interval-info>
     fixnum 19 29 [a,b] <class/interval-info>
     value-info-intersect
 ] unit-test
 
-[ 3 t ] [
+{ 3 t } [
     3 <literal-info>
     null-info value-info-union >literal<
 ] unit-test
 
-[ ] [ { } value-infos-union drop ] unit-test
+{ } [ { } value-infos-union drop ] unit-test
 
 TUPLE: test-tuple { x read-only } ;
 
-[ t ] [
+{ t } [
     f f 3 <literal-info> 3array test-tuple <tuple-info> dup
     object-info value-info-intersect =
 ] unit-test
 
-[ t ] [
+{ t } [
     null-info 3 <literal-info> value-info<=
 ] unit-test
 
-[ t t ] [
+{ t t } [
     f <literal-info>
     fixnum 0 40 [a,b] <class/interval-info>
     value-info-union
index c8be22b5354faf68cf1b8ac27fada1868e203386..f09cfe66ccad32ae0b3cbff90a7bc30db99cacc8 100644 (file)
@@ -14,7 +14,7 @@ SPECIALIZED-ARRAY: double
 SPECIALIZED-ARRAY: void*
 IN: compiler.tree.propagation.tests
 
-[ { } ] [
+{ { } } [
     all-words [
         "input-classes" word-prop [ class? ] all? not
     ] filter
@@ -26,27 +26,27 @@ IN: compiler.tree.propagation.tests
     [ fixnum>float ] final-info first interval>> fixnum-interval =
 ] unit-test
 
-[ V{ } ] [ [ ] final-classes ] unit-test
+{ V{ } } [ [ ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 1 ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 1 ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 1 [ ] dip ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 1 [ ] dip ] final-classes ] unit-test
 
-[ V{ fixnum object } ] [ [ 1 swap ] final-classes ] unit-test
+{ V{ fixnum object } } [ [ 1 swap ] final-classes ] unit-test
 
-[ V{ array } ] [ [ 10 f <array> ] final-classes ] unit-test
+{ V{ array } } [ [ 10 f <array> ] final-classes ] unit-test
 
-[ V{ array } ] [ [ { array } declare ] final-classes ] unit-test
+{ V{ array } } [ [ { array } declare ] final-classes ] unit-test
 
-[ V{ array } ] [ [ 10 f <array> swap [ ] [ ] if ] final-classes ] unit-test
+{ V{ array } } [ [ 10 f <array> swap [ ] [ ] if ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ dup fixnum? [ ] [ drop 3 ] if ] final-classes ] unit-test
+{ V{ fixnum } } [ [ dup fixnum? [ ] [ drop 3 ] if ] final-classes ] unit-test
 
-[ V{ 69 } ] [ [ [ 69 ] [ 69 ] if ] final-literals ] unit-test
+{ V{ 69 } } [ [ [ 69 ] [ 69 ] if ] final-literals ] unit-test
 
-[ V{ integer } ] [ [ bitnot ] final-classes ] unit-test
+{ V{ integer } } [ [ bitnot ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ { fixnum } declare bitnot ] final-classes ] unit-test
+{ V{ fixnum } } [ [ { fixnum } declare bitnot ] final-classes ] unit-test
 
 ! Test type propagation for math ops
 : cleanup-math-class ( obj -- class )
@@ -56,188 +56,188 @@ IN: compiler.tree.propagation.tests
 : final-math-class ( quot -- class )
     final-classes first cleanup-math-class ;
 
-[ number ] [ [ + ] final-math-class ] unit-test
+{ number } [ [ + ] final-math-class ] unit-test
 
-[ bignum ] [ [ { fixnum bignum } declare + ] final-math-class ] unit-test
+{ bignum } [ [ { fixnum bignum } declare + ] final-math-class ] unit-test
 
-[ integer ] [ [ { fixnum integer } declare + ] final-math-class ] unit-test
+{ integer } [ [ { fixnum integer } declare + ] final-math-class ] unit-test
 
-[ bignum ] [ [ { integer bignum } declare + ] final-math-class ] unit-test
+{ bignum } [ [ { integer bignum } declare + ] final-math-class ] unit-test
 
-[ integer ] [ [ { fixnum fixnum } declare + ] final-math-class ] unit-test
+{ integer } [ [ { fixnum fixnum } declare + ] final-math-class ] unit-test
 
-[ float ] [ [ { float integer } declare + ] final-math-class ] unit-test
+{ float } [ [ { float integer } declare + ] final-math-class ] unit-test
 
-[ float ] [ [ { real float } declare + ] final-math-class ] unit-test
+{ float } [ [ { real float } declare + ] final-math-class ] unit-test
 
-[ float ] [ [ { float real } declare + ] final-math-class ] unit-test
+{ float } [ [ { float real } declare + ] final-math-class ] unit-test
 
-[ rational ] [ [ { ratio ratio } declare + ] final-math-class ] unit-test
+{ rational } [ [ { ratio ratio } declare + ] final-math-class ] unit-test
 
-[ rational ] [ [ { rational ratio } declare + ] final-math-class ] unit-test
+{ rational } [ [ { rational ratio } declare + ] final-math-class ] unit-test
 
-[ number ] [ [ { complex complex } declare + ] final-math-class ] unit-test
+{ number } [ [ { complex complex } declare + ] final-math-class ] unit-test
 
-[ float ] [ [ /f ] final-math-class ] unit-test
+{ float } [ [ /f ] final-math-class ] unit-test
 
-[ float ] [ [ { real real } declare /f ] final-math-class ] unit-test
+{ float } [ [ { real real } declare /f ] final-math-class ] unit-test
 
-[ integer ] [ [ /i ] final-math-class ] unit-test
+{ integer } [ [ /i ] final-math-class ] unit-test
 
-[ integer ] [ [ { integer float } declare /i ] final-math-class ] unit-test
+{ integer } [ [ { integer float } declare /i ] final-math-class ] unit-test
 
-[ integer ] [ [ { float float } declare /i ] final-math-class ] unit-test
+{ integer } [ [ { float float } declare /i ] final-math-class ] unit-test
 
-[ integer ] [ [ { integer } declare bitnot ] final-math-class ] unit-test
+{ integer } [ [ { integer } declare bitnot ] final-math-class ] unit-test
 
-[ null ] [ [ { null null } declare + ] final-math-class ] unit-test
+{ null } [ [ { null null } declare + ] final-math-class ] unit-test
 
-[ null ] [ [ { null fixnum } declare + ] final-math-class ] unit-test
+{ null } [ [ { null fixnum } declare + ] final-math-class ] unit-test
 
-[ float ] [ [ { float fixnum } declare + ] final-math-class ] unit-test
+{ float } [ [ { float fixnum } declare + ] final-math-class ] unit-test
 
-[ bignum ] [ [ { bignum bignum } declare bitxor ] final-math-class ] unit-test
+{ bignum } [ [ { bignum bignum } declare bitxor ] final-math-class ] unit-test
 
-[ bignum ] [ [ { integer } declare 123 >bignum bitand ] final-math-class ] unit-test
+{ bignum } [ [ { integer } declare 123 >bignum bitand ] final-math-class ] unit-test
 
-[ float ] [ [ { float float } declare mod ] final-math-class ] unit-test
+{ float } [ [ { float float } declare mod ] final-math-class ] unit-test
 
-[ V{ integer float } ] [ [ { float float } declare [ /i ] keep ] final-classes ] unit-test
+{ V{ integer float } } [ [ { float float } declare [ /i ] keep ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 255 bitand ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 255 bitand ] final-classes ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ [ 255 bitand ] [ 65535 bitand ] bi + ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [
         { fixnum } declare [ 255 bitand ] [ 65535 bitand ] bi +
     ] final-classes
 ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ { fixnum } declare [ 255 bitand ] keep + ] final-classes
 ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ { fixnum } declare 615949 * ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 255 bitand >fixnum 3 bitor ] final-classes
 ] unit-test
 
-[ V{ 0 } ] [
+{ V{ 0 } } [
     [ >fixnum 1 mod ] final-literals
 ] unit-test
 
-[ V{ 69 } ] [
+{ V{ 69 } } [
     [ >fixnum swap [ 1 mod 69 + ] [ drop 69 ] if ] final-literals
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ >fixnum dup 10 > [ 1 - ] when ] final-classes
 ] unit-test
 
-[ V{ integer } ] [ [ >fixnum 2 * ] final-classes ] unit-test
+{ V{ integer } } [ [ >fixnum 2 * ] final-classes ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ >fixnum dup 10 < drop 2 * ] final-classes
 ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ >fixnum dup 10 < [ 2 * ] when ] final-classes
 ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ >fixnum dup 10 < [ 2 * ] [ 2 * ] if ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ >fixnum dup 10 < [ dup -10 > [ 2 * ] when ] when ] final-classes
 ] unit-test
 
-[ V{ f } ] [
+{ V{ f } } [
     [ dup 10 < [ dup 8 > [ drop 9 ] unless ] [ drop 9 ] if ] final-literals
 ] unit-test
 
-[ V{ 9 } ] [
+{ V{ 9 } } [
     [
         123 bitand
         dup 10 < [ dup 8 > [ drop 9 ] unless ] [ drop 9 ] if
     ] final-literals
 ] unit-test
 
-[ V{ t } ] [ [ 40 mod 40 < ] final-literals ] unit-test
+{ V{ t } } [ [ 40 mod 40 < ] final-literals ] unit-test
 
-[ V{ f } ] [ [ 40 mod 0 >= ] final-literals ] unit-test
+{ V{ f } } [ [ 40 mod 0 >= ] final-literals ] unit-test
 
-[ V{ t } ] [ [ 40 rem 0 >= ] final-literals ] unit-test
+{ V{ t } } [ [ 40 rem 0 >= ] final-literals ] unit-test
 
-[ V{ t } ] [ [ abs 40 mod 0 >= ] final-literals ] unit-test
+{ V{ t } } [ [ abs 40 mod 0 >= ] final-literals ] unit-test
 
-[ t ] [ [ abs ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ abs ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ absq ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ absq ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { fixnum } declare abs ] final-info first interval>> [0,inf] interval-subset? ] unit-test
+{ t } [ [ { fixnum } declare abs ] final-info first interval>> [0,inf] interval-subset? ] unit-test
 
-[ t ] [ [ { fixnum } declare absq ] final-info first interval>> [0,inf] interval-subset? ] unit-test
+{ t } [ [ { fixnum } declare absq ] final-info first interval>> [0,inf] interval-subset? ] unit-test
 
-[ V{ integer } ] [ [ { fixnum } declare abs ] final-classes ] unit-test
+{ V{ integer } } [ [ { fixnum } declare abs ] final-classes ] unit-test
 
-[ V{ integer } ] [ [ { fixnum } declare absq ] final-classes ] unit-test
+{ V{ integer } } [ [ { fixnum } declare absq ] final-classes ] unit-test
 
-[ t ] [ [ { bignum } declare abs ] final-info first interval>> [0,inf] interval-subset? ] unit-test
+{ t } [ [ { bignum } declare abs ] final-info first interval>> [0,inf] interval-subset? ] unit-test
 
-[ t ] [ [ { bignum } declare absq ] final-info first interval>> [0,inf] interval-subset? ] unit-test
+{ t } [ [ { bignum } declare absq ] final-info first interval>> [0,inf] interval-subset? ] unit-test
 
-[ t ] [ [ { float } declare abs ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { float } declare abs ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { float } declare absq ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { float } declare absq ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { complex } declare abs ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { complex } declare abs ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { complex } declare absq ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { complex } declare absq ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { float float } declare rect> C{ 0.0 0.0 } + absq ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { float float } declare rect> C{ 0.0 0.0 } + absq ] final-info first interval>> [0,inf] = ] unit-test
 
-[ V{ float } ] [ [ { float float } declare rect> C{ 0.0 0.0 } + absq ] final-classes ] unit-test
+{ V{ float } } [ [ { float float } declare rect> C{ 0.0 0.0 } + absq ] final-classes ] unit-test
 
-[ t ] [ [ [ - absq ] [ + ] 2map-reduce ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ [ - absq ] [ + ] 2map-reduce ] final-info first interval>> [0,inf] = ] unit-test
 
-[ t ] [ [ { double-array double-array } declare [ - absq ] [ + ] 2map-reduce ] final-info first interval>> [0,inf] = ] unit-test
+{ t } [ [ { double-array double-array } declare [ - absq ] [ + ] 2map-reduce ] final-info first interval>> [0,inf] = ] unit-test
 
-[ V{ string } ] [
+{ V{ string } } [
     [ dup string? not [ "Oops" throw ] [ ] if ] final-classes
 ] unit-test
 
-[ V{ string } ] [
+{ V{ string } } [
     [ dup string? not not >boolean [ ] [ "Oops" throw ] if ] final-classes
 ] unit-test
 
-[ f ] [ [ t xor ] final-classes first null-class? ] unit-test
+{ f } [ [ t xor ] final-classes first null-class? ] unit-test
 
-[ t ] [ [ t or ] final-classes first true-class? ] unit-test
+{ t } [ [ t or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ t swap or ] final-classes first true-class? ] unit-test
+{ t } [ [ t swap or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ f and ] final-classes first false-class? ] unit-test
+{ t } [ [ f and ] final-classes first false-class? ] unit-test
 
-[ t ] [ [ f swap and ] final-classes first false-class? ] unit-test
+{ t } [ [ f swap and ] final-classes first false-class? ] unit-test
 
-[ t ] [ [ dup not or ] final-classes first true-class? ] unit-test
+{ t } [ [ dup not or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ dup not swap or ] final-classes first true-class? ] unit-test
+{ t } [ [ dup not swap or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ dup not and ] final-classes first false-class? ] unit-test
+{ t } [ [ dup not and ] final-classes first false-class? ] unit-test
 
-[ t ] [ [ dup not swap and ] final-classes first false-class? ] unit-test
+{ t } [ [ dup not swap and ] final-classes first false-class? ] unit-test
 
-[ t ] [ [ over [ drop f ] when [ "A" throw ] unless ] final-classes first false-class? ] unit-test
+{ t } [ [ over [ drop f ] when [ "A" throw ] unless ] final-classes first false-class? ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [
         [ { fixnum } declare ] [ drop f ] if
         dup [ dup 13 eq? [ t ] [ f ] if ] [ t ] if
@@ -245,14 +245,14 @@ IN: compiler.tree.propagation.tests
     ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [
         >fixnum
         dup [ 10 < ] [ -10 > ] bi and not [ 2 * ] unless
     ] final-classes
 ] unit-test
 
-[ ] [
+{ } [
     [
         dup dup dup [ 100 < ] [ drop f ] if dup
         [ 2drop f ] [ 2drop f ] if
@@ -260,15 +260,15 @@ IN: compiler.tree.propagation.tests
     ] final-info drop
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare (clone) ] final-classes
 ] unit-test
 
-[ V{ vector } ] [
+{ V{ vector } } [
     [ vector new ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [
         { fixnum byte-array } declare
         [ nth-unsafe ] 2keep [ nth-unsafe ] 2keep nth-unsafe
@@ -277,89 +277,89 @@ IN: compiler.tree.propagation.tests
     ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 dup 10 > [ 2 * ] when ] final-classes
 ] unit-test
 
-[ V{ f } ] [
+{ V{ f } } [
     [ [ 0.0 ] [ -0.0 ] if ] final-literals
 ] unit-test
 
-[ V{ 1.5 } ] [
+{ V{ 1.5 } } [
     [ /f 1.5 1.5 clamp ] final-literals
 ] unit-test
 
-[ V{ 1.5 } ] [
+{ V{ 1.5 } } [
     [
         /f
         dup 1.5 <= [ dup 1.5 >= [ ] [ drop 1.5 ] if ] [ drop 1.5 ] if
     ] final-literals
 ] unit-test
 
-[ V{ 1.5 } ] [
+{ V{ 1.5 } } [
     [
         /f
         dup 1.5 u<= [ dup 1.5 u>= [ ] [ drop 1.5 ] if ] [ drop 1.5 ] if
     ] final-literals
 ] unit-test
 
-[ V{ 1.5 } ] [
+{ V{ 1.5 } } [
     [
         /f
         dup 1.5 <= [ dup 10 >= [ ] [ drop 1.5 ] if ] [ drop 1.5 ] if
     ] final-literals
 ] unit-test
 
-[ V{ 1.5 } ] [
+{ V{ 1.5 } } [
     [
         /f
         dup 1.5 u<= [ dup 10 u>= [ ] [ drop 1.5 ] if ] [ drop 1.5 ] if
     ] final-literals
 ] unit-test
 
-[ V{ f } ] [
+{ V{ f } } [
     [
         /f
         dup 0.0 <= [ dup 0.0 >= [ drop 0.0 ] unless ] [ drop 0.0 ] if
     ] final-literals
 ] unit-test
 
-[ V{ f } ] [
+{ V{ f } } [
     [
         /f
         dup 0.0 u<= [ dup 0.0 u>= [ drop 0.0 ] unless ] [ drop 0.0 ] if
     ] final-literals
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 dup 10 > [ 100 * ] when ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 dup 10 > [ drop "foo" ] when ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 dup 10 u> [ 100 * ] when ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 dup 10 u> [ drop "foo" ] when ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare 3 3 - + ] final-classes
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ dup 10 < [ 3 * 30 < ] [ drop t ] if ] final-literals
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ dup 10 u< [ 3 * 30 u< ] [ drop t ] if ] final-literals
 ] unit-test
 
-[ V{ "d" } ] [
+{ V{ "d" } } [
     [
         3 {
             [ "a" ]
@@ -374,69 +374,69 @@ IN: compiler.tree.propagation.tests
     ] final-literals
 ] unit-test
 
-[ V{ "hi" } ] [
+{ V{ "hi" } } [
     [ [ "hi" ] [ 123 3 throw ] if ] final-literals
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ >fixnum dup 100 < [ 1 + ] [ "Oops" throw ] if ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ >fixnum dup 100 u< [ 1 + ] [ "Oops" throw ] if ] final-classes
 ] unit-test
 
-[ V{ -1 } ] [
+{ V{ -1 } } [
     [ 0 dup 100 < not [ 1 + ] [ 1 - ] if ] final-literals
 ] unit-test
 
-[ V{ -1 } ] [
+{ V{ -1 } } [
     [ 0 dup 100 u< not [ 1 + ] [ 1 - ] if ] final-literals
 ] unit-test
 
-[ V{ 2 } ] [
+{ V{ 2 } } [
     [ [ 1 ] [ 1 ] if 1 + ] final-literals
 ] unit-test
 
-[ V{ object } ] [
+{ V{ object } } [
     [ 0 * 10 < ] final-classes
 ] unit-test
 
-[ V{ object } ] [
+{ V{ object } } [
     [ 0 * 10 u< ] final-classes
 ] unit-test
 
-[ V{ 27 } ] [
+{ V{ 27 } } [
     [
         123 bitand dup 10 < over 8 > and [ 3 * ] [ "B" throw ] if
     ] final-literals
 ] unit-test
 
-[ V{ 27 } ] [
+{ V{ 27 } } [
     [
         123 bitand dup 10 u< over 8 u> and [ 3 * ] [ "B" throw ] if
     ] final-literals
 ] unit-test
 
-[ V{ string string } ] [
+{ V{ string string } } [
     [
         2dup [ dup string? [ "Oops" throw ] unless ] bi@ 2drop
     ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum fixnum } declare 7 bitand neg shift ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum fixnum } declare 7 bitand neg >bignum shift ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare 1 swap 7 bitand shift ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare 1 swap 7 bitand >bignum shift ] final-classes
 ] unit-test
 
@@ -448,66 +448,66 @@ cell-bits 32 = [
 ] when
 
 ! Array length propagation
-[ V{ t } ] [ [ 10 f <array> length 10 = ] final-literals ] unit-test
+{ V{ t } } [ [ 10 f <array> length 10 = ] final-literals ] unit-test
 
-[ V{ t } ] [ [ [ 10 f <array> length ] [ 10 <byte-array> length ] if 10 = ] final-literals ] unit-test
+{ V{ t } } [ [ [ 10 f <array> length ] [ 10 <byte-array> length ] if 10 = ] final-literals ] unit-test
 
-[ V{ t } ] [ [ [ 1 f <array> ] [ 2 f <array> ] if length 3 < ] final-literals ] unit-test
+{ V{ t } } [ [ [ 1 f <array> ] [ 2 f <array> ] if length 3 < ] final-literals ] unit-test
 
-[ V{ 10 } ] [
+{ V{ 10 } } [
     [ { fixnum } declare dup 10 eq? [ "A" throw ] unless ] final-literals
 ] unit-test
 
-[ V{ 3 } ] [ [ [ { 1 2 3 } ] [ { 4 5 6 } ] if length ] final-literals ] unit-test
+{ V{ 3 } } [ [ [ { 1 2 3 } ] [ { 4 5 6 } ] if length ] final-literals ] unit-test
 
-[ V{ 3 } ] [ [ [ B{ 1 2 3 } ] [ B{ 4 5 6 } ] if length ] final-literals ] unit-test
+{ V{ 3 } } [ [ [ B{ 1 2 3 } ] [ B{ 4 5 6 } ] if length ] final-literals ] unit-test
 
-[ V{ 3 } ] [ [ [ "yay" ] [ "hah" ] if length ] final-literals ] unit-test
+{ V{ 3 } } [ [ [ "yay" ] [ "hah" ] if length ] final-literals ] unit-test
 
-[ V{ 3 } ] [ [ 3 <byte-array> length ] final-literals ] unit-test
+{ V{ 3 } } [ [ 3 <byte-array> length ] final-literals ] unit-test
 
-[ V{ 3 } ] [ [ 3 f <string> length ] final-literals ] unit-test
+{ V{ 3 } } [ [ 3 f <string> length ] final-literals ] unit-test
 
 ! Slot propagation
 TUPLE: prop-test-tuple { x integer } ;
 
-[ V{ integer } ] [ [ { prop-test-tuple } declare x>> ] final-classes ] unit-test
+{ V{ integer } } [ [ { prop-test-tuple } declare x>> ] final-classes ] unit-test
 
 TUPLE: fold-boa-test-tuple { x read-only } { y read-only } { z read-only } ;
 
-[ V{ T{ fold-boa-test-tuple f 1 2 3 } } ]
+{ V{ T{ fold-boa-test-tuple f 1 2 3 } } }
 [ [ 1 2 3 fold-boa-test-tuple boa ] final-literals ]
 unit-test
 
 TUPLE: don't-fold-boa-test-tuple < identity-tuple ;
 
-[ V{ f } ]
+{ V{ f } }
 [ [ don't-fold-boa-test-tuple boa ] final-literals ]
 unit-test
 
 TUPLE: immutable-prop-test-tuple { x sequence read-only } ;
 
-[ V{ T{ immutable-prop-test-tuple f "hey" } } ] [
+{ V{ T{ immutable-prop-test-tuple f "hey" } } } [
     [ "hey" immutable-prop-test-tuple boa ] final-literals
 ] unit-test
 
-[ V{ { 1 2 } } ] [
+{ V{ { 1 2 } } } [
     [ { 1 2 } immutable-prop-test-tuple boa x>> ] final-literals
 ] unit-test
 
-[ V{ array } ] [
+{ V{ array } } [
     [ { array } declare immutable-prop-test-tuple boa x>> ] final-classes
 ] unit-test
 
-[ V{ complex } ] [
+{ V{ complex } } [
     [ complex boa ] final-classes
 ] unit-test
 
-[ V{ complex } ] [
+{ V{ complex } } [
     [ { float float } declare dup 0.0 <= [ "Oops" throw ] [ rect> ] if ] final-classes
 ] unit-test
 
-[ V{ float float } ] [
+{ V{ float float } } [
     [
         { float float } declare
         dup 0.0 <= [ "Oops" throw ] when rect>
@@ -515,53 +515,53 @@ TUPLE: immutable-prop-test-tuple { x sequence read-only } ;
     ] final-classes
 ] unit-test
 
-[ V{ complex } ] [
+{ V{ complex } } [
     [
         { float float object } declare
         [ "Oops" throw ] [ complex boa ] if
     ] final-classes
 ] unit-test
 
-[ ] [ [ dup 3 slot swap 4 slot dup 3 slot swap 4 slot ] final-info drop ] unit-test
+{ } [ [ dup 3 slot swap 4 slot dup 3 slot swap 4 slot ] final-info drop ] unit-test
 
-[ V{ number } ] [ [ [ "Oops" throw ] [ 2 + ] if ] final-classes ] unit-test
-[ V{ number } ] [ [ [ 2 + ] [ "Oops" throw ] if ] final-classes ] unit-test
+{ V{ number } } [ [ [ "Oops" throw ] [ 2 + ] if ] final-classes ] unit-test
+{ V{ number } } [ [ [ 2 + ] [ "Oops" throw ] if ] final-classes ] unit-test
 
-[ V{ POSTPONE: f } ] [
+{ V{ POSTPONE: f } } [
     [ dup 1.0 <= [ drop f ] [ 0 number= ] if ] final-classes
 ] unit-test
 
 ! Don't fold this
 TUPLE: mutable-tuple-test { x sequence } ;
 
-[ V{ sequence } ] [
+{ V{ sequence } } [
     [ "hey" mutable-tuple-test boa x>> ] final-classes
 ] unit-test
 
-[ V{ sequence } ] [
+{ V{ sequence } } [
     [ T{ mutable-tuple-test f "hey" } x>> ] final-classes
 ] unit-test
 
-[ V{ array } ] [
+{ V{ array } } [
     [ T{ mutable-tuple-test f "hey" } layout-of ] final-classes
 ] unit-test
 
 ! Mixed mutable and immutable slots
 TUPLE: mixed-mutable-immutable { x integer } { y sequence read-only } ;
 
-[ V{ integer array } ] [
+{ V{ integer array } } [
     [
         3 { 2 1 } mixed-mutable-immutable boa [ x>> ] [ y>> ] bi
     ] final-classes
 ] unit-test
 
-[ V{ array integer } ] [
+{ V{ array integer } } [
     [
         3 { 2 1 } mixed-mutable-immutable boa [ y>> ] [ x>> ] bi
     ] final-classes
 ] unit-test
 
-[ V{ integer array } ] [
+{ V{ integer array } } [
     [
         [ 2drop T{ mixed-mutable-immutable f 3 { } } ]
         [ { array } declare mixed-mutable-immutable boa ] if
@@ -569,7 +569,7 @@ TUPLE: mixed-mutable-immutable { x integer } { y sequence read-only } ;
     ] final-classes
 ] unit-test
 
-[ V{ f { } } ] [
+{ V{ f { } } } [
     [
         T{ mixed-mutable-immutable f 3 { } }
         [ x>> ] [ y>> ] bi
@@ -579,57 +579,57 @@ TUPLE: mixed-mutable-immutable { x integer } { y sequence read-only } ;
 ! Recursive propagation
 : recursive-test-1 ( a -- b ) recursive-test-1 ; inline recursive
 
-[ V{ null } ] [ [ recursive-test-1 ] final-classes ] unit-test
+{ V{ null } } [ [ recursive-test-1 ] final-classes ] unit-test
 
 : recursive-test-2 ( a -- b ) dup 10 < [ recursive-test-2 ] when ; inline recursive
 
-[ V{ real } ] [ [ recursive-test-2 ] final-classes ] unit-test
+{ V{ real } } [ [ recursive-test-2 ] final-classes ] unit-test
 
 : recursive-test-3 ( a -- b ) dup 10 < drop ; inline recursive
 
-[ V{ real } ] [ [ recursive-test-3 ] final-classes ] unit-test
+{ V{ real } } [ [ recursive-test-3 ] final-classes ] unit-test
 
-[ V{ real } ] [ [ [ dup 10 < ] [ ] while ] final-classes ] unit-test
+{ V{ real } } [ [ [ dup 10 < ] [ ] while ] final-classes ] unit-test
 
-[ V{ float } ] [
+{ V{ float } } [
     [ { float } declare 10 [ 2.3 * ] times ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ 0 10 [ nip ] each-integer ] final-classes
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ t 10 [ nip 0 >= ] each-integer ] final-literals
 ] unit-test
 
 : recursive-test-4 ( i n -- )
     2dup < [ [ 1 + ] dip recursive-test-4 ] [ 2drop ] if ; inline recursive
 
-[ ] [ [ recursive-test-4 ] final-info drop ] unit-test
+{ } [ [ recursive-test-4 ] final-info drop ] unit-test
 
 : recursive-test-5 ( a -- b )
     dup 1 <= [ drop 1 ] [ dup 1 - recursive-test-5 * ] if ; inline recursive
 
-[ V{ integer } ] [ [ { integer } declare recursive-test-5 ] final-classes ] unit-test
+{ V{ integer } } [ [ { integer } declare recursive-test-5 ] final-classes ] unit-test
 
 : recursive-test-6 ( a -- b )
     dup 1 <= [ drop 1 ] [ dup 1 - recursive-test-6 swap 2 - recursive-test-6 + ] if ; inline recursive
 
-[ V{ integer } ] [ [ { fixnum } declare recursive-test-6 ] final-classes ] unit-test
+{ V{ integer } } [ [ { fixnum } declare recursive-test-6 ] final-classes ] unit-test
 
 : recursive-test-7 ( a -- b )
     dup 10 < [ 1 + recursive-test-7 ] when ; inline recursive
 
-[ V{ fixnum } ] [ [ 0 recursive-test-7 ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 0 recursive-test-7 ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 1 10 [ dup 10 < [ 2 * ] when ] times ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 1 10 [ dup 10 < [ 2 * ] when ] times ] final-classes ] unit-test
 
-[ V{ integer } ] [ [ 0 2 100 ^ [ nip ] each-integer ] final-classes ] unit-test
+{ V{ integer } } [ [ 0 2 100 ^ [ nip ] each-integer ] final-classes ] unit-test
 
-[ ] [ [ [ ] [ ] compose curry call ] final-info drop ] unit-test
+{ } [ [ [ ] [ ] compose curry call ] final-info drop ] unit-test
 
-[ V{ } ] [
+{ V{ } } [
     [ [ drop ] [ drop ] compose curry (each-integer) ] final-classes
 ] unit-test
 
@@ -640,12 +640,12 @@ M: array iterate first t ; inline
 : dead-loop ( obj -- final-obj )
     iterate [ dead-loop ] when ; inline recursive
 
-[ V{ fixnum } ] [ [ { fixnum } declare dead-loop ] final-classes ] unit-test
+{ V{ fixnum } } [ [ { fixnum } declare dead-loop ] final-classes ] unit-test
 
 : hang-1 ( m -- x )
     dup 0 number= [ hang-1 ] unless ; inline recursive
 
-[ ] [ [ 3 hang-1 ] final-info drop ] unit-test
+{ } [ [ 3 hang-1 ] final-info drop ] unit-test
 
 : hang-2 ( m n -- x )
     over 0 number= [
@@ -658,43 +658,43 @@ M: array iterate first t ; inline
         ] if
     ] if ; inline recursive
 
-[ ] [ [ 3 over hang-2 ] final-info drop ] unit-test
+{ } [ [ 3 over hang-2 ] final-info drop ] unit-test
 
-[ ] [
+{ } [
     [
         dup fixnum? [ 3 over hang-2 ] [ 3 over hang-2 ] if
     ] final-info drop
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ { hashtable } declare hashtable instance? ] final-classes
 ] unit-test
 
-[ V{ POSTPONE: f } ] [
+{ V{ POSTPONE: f } } [
     [ { vector } declare hashtable instance? ] final-classes
 ] unit-test
 
-[ V{ object } ] [
+{ V{ object } } [
     [ { assoc } declare hashtable instance? ] final-classes
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ { string } declare string? ] final-classes
 ] unit-test
 
-[ V{ POSTPONE: f } ] [
+{ V{ POSTPONE: f } } [
     [ 3 string? ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare [ ] curry obj>> ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum fixnum } declare iota [ nth-unsafe ] curry call ] final-classes
 ] unit-test
 
-[ V{ f } ] [
+{ V{ f } } [
     [ 10 eq? [ drop 3 ] unless ] final-literals
 ] unit-test
 
@@ -702,9 +702,9 @@ GENERIC: bad-generic ( a -- b )
 M: fixnum bad-generic 1 fixnum+fast ; inline
 : bad-behavior ( -- b ) 4 bad-generic ; inline recursive
 
-[ V{ fixnum } ] [ [ bad-behavior ] final-classes ] unit-test
+{ V{ fixnum } } [ [ bad-behavior ] final-classes ] unit-test
 
-[ V{ number } ] [
+{ V{ number } } [
     [
         0 10 [ bad-generic dup 123 bitand drop bad-generic 1 + ] times
     ] final-classes
@@ -713,32 +713,32 @@ M: fixnum bad-generic 1 fixnum+fast ; inline
 GENERIC: infinite-loop ( a -- b )
 M: integer infinite-loop infinite-loop ;
 
-[ ] [ [ { integer } declare infinite-loop ] final-classes drop ] unit-test
+{ } [ [ { integer } declare infinite-loop ] final-classes drop ] unit-test
 
-[ V{ tuple } ] [ [ tuple-layout <tuple> ] final-classes ] unit-test
+{ V{ tuple } } [ [ tuple-layout <tuple> ] final-classes ] unit-test
 
-[ ] [ [ instance? ] final-classes drop ] unit-test
+{ } [ [ instance? ] final-classes drop ] unit-test
 
-[ f ] [ [ V{ } clone ] final-info first literal?>> ] unit-test
+{ f } [ [ V{ } clone ] final-info first literal?>> ] unit-test
 
 : fold-throw-test ( a -- b ) "A" throw ; foldable
 
-[ ] [ [ 0 fold-throw-test ] final-info drop ] unit-test
+{ } [ [ 0 fold-throw-test ] final-info drop ] unit-test
 
 : too-deep ( a b -- c )
     dup [ drop ] [ 2dup too-deep too-deep * ] if ; inline recursive
 
-[ ] [ [ too-deep ] final-info drop ] unit-test
+{ } [ [ too-deep ] final-info drop ] unit-test
 
-[ ] [ [ reversed boa slice boa nth-unsafe * ] final-info drop ] unit-test
+{ } [ [ reversed boa slice boa nth-unsafe * ] final-info drop ] unit-test
 
 MIXIN: empty-mixin
 
-[ ] [ [ { empty-mixin } declare empty-mixin? ] final-info drop ] unit-test
+{ } [ [ { empty-mixin } declare empty-mixin? ] final-info drop ] unit-test
 
-[ V{ fixnum } ] [ [ [ bignum-shift drop ] keep ] final-classes ] unit-test
+{ V{ fixnum } } [ [ [ bignum-shift drop ] keep ] final-classes ] unit-test
 
-[ V{ float } ] [
+{ V{ float } } [
     [
         [ { float float } declare complex boa ]
         [ 2drop C{ 0.0 0.0 } ]
@@ -746,7 +746,7 @@ MIXIN: empty-mixin
     ] final-classes
 ] unit-test
 
-[ V{ POSTPONE: f } ] [
+{ V{ POSTPONE: f } } [
     [ { float } declare 0 eq? ] final-classes
 ] unit-test
 
@@ -788,63 +788,63 @@ MIXIN: empty-mixin
     [ fixnum-mod ] final-classes
 ] unit-test
 
-[ V{ integer } ] [
+{ V{ integer } } [
     [ { fixnum integer } declare bitand ] final-classes
 ] unit-test
 
-[ V{ double-array } ] [ [| | double-array{ } ] final-classes ] unit-test
+{ V{ double-array } } [ [| | double-array{ } ] final-classes ] unit-test
 
-[ V{ t } ] [ [ macosx unix? ] final-literals ] unit-test
+{ V{ t } } [ [ macosx unix? ] final-literals ] unit-test
 
-[ V{ array } ] [ [ [ <=> ] sort [ <=> ] sort ] final-classes ] unit-test
+{ V{ array } } [ [ [ <=> ] sort [ <=> ] sort ] final-classes ] unit-test
 
-[ V{ float } ] [ [ fsqrt ] final-classes ] unit-test
+{ V{ float } } [ [ fsqrt ] final-classes ] unit-test
 
-[ V{ t } ] [ [ { fixnum } declare 10 mod >float -20 > ] final-literals ] unit-test
+{ V{ t } } [ [ { fixnum } declare 10 mod >float -20 > ] final-literals ] unit-test
 
-[ T{ interval f { 0 t } { 127 t } } ] [
+{ T{ interval f { 0 t } { 127 t } } } [
     [ { integer } declare 127 bitand ] final-info first interval>>
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ [ 123 bitand ] [ drop f ] if dup [ 0 >= ] [ not ] if ] final-literals
 ] unit-test
 
-[ V{ bignum } ] [
+{ V{ bignum } } [
     [ { bignum } declare dup 1 - bitxor ] final-classes
 ] unit-test
 
-[ V{ bignum integer } ] [
+{ V{ bignum integer } } [
     [ { bignum integer } declare [ shift ] keep ] final-classes
 ] unit-test
 
-[ V{ fixnum } ] [ [ >fixnum 15 bitand 1 swap shift ] final-classes ] unit-test
+{ V{ fixnum } } [ [ >fixnum 15 bitand 1 swap shift ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 15 bitand 1 swap shift ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 15 bitand 1 swap shift ] final-classes ] unit-test
 
-[ V{ fixnum } ] [
+{ V{ fixnum } } [
     [ { fixnum } declare log2 ] final-classes
 ] unit-test
 
-[ V{ t } ] [
+{ V{ t } } [
     [ { fixnum } declare log2 0 >= ] final-classes
 ] unit-test
 
-[ V{ POSTPONE: f } ] [
+{ V{ POSTPONE: f } } [
     [ { word object } declare equal? ] final-classes
 ] unit-test
 
-[ V{ string } ] [
+{ V{ string } } [
     [ dup string? t xor [ "A" throw ] [ ] if ] final-classes
 ] unit-test
 
-[ t ] [ [ dup t xor or ] final-classes first true-class? ] unit-test
+{ t } [ [ dup t xor or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ dup t xor swap or ] final-classes first true-class? ] unit-test
+{ t } [ [ dup t xor swap or ] final-classes first true-class? ] unit-test
 
-[ t ] [ [ dup t xor and ] final-classes first false-class? ] unit-test
+{ t } [ [ dup t xor and ] final-classes first false-class? ] unit-test
 
-[ t ] [ [ dup t xor swap and ] final-classes first false-class? ] unit-test
+{ t } [ [ dup t xor swap and ] final-classes first false-class? ] unit-test
 
 ! generalize-counter-interval wasn't being called in all the right places.
 ! bug found by littledan
@@ -855,7 +855,7 @@ TUPLE: littledan-1 { a read-only } ;
 
 : littledan-1-test ( -- ) 0 littledan-1 boa (littledan-1-test) ; inline
 
-[ ] [ [ littledan-1-test ] final-classes drop ] unit-test
+{ } [ [ littledan-1-test ] final-classes drop ] unit-test
 
 TUPLE: littledan-2 { from read-only } { to read-only } ;
 
@@ -865,7 +865,7 @@ TUPLE: littledan-2 { from read-only } { to read-only } ;
 : littledan-2-test ( x -- i elt )
     [ 0 ] dip { array-capacity } declare littledan-2 boa (littledan-2-test) ; inline
 
-[ ] [ [ littledan-2-test ] final-classes drop ] unit-test
+{ } [ [ littledan-2-test ] final-classes drop ] unit-test
 
 : (littledan-3-test) ( x -- )
     length 1 + f <array> (littledan-3-test) ; inline recursive
@@ -873,73 +873,73 @@ TUPLE: littledan-2 { from read-only } { to read-only } ;
 : littledan-3-test ( -- )
     0 f <array> (littledan-3-test) ; inline
 
-[ ] [ [ littledan-3-test ] final-classes drop ] unit-test
+{ } [ [ littledan-3-test ] final-classes drop ] unit-test
 
-[ V{ 0 } ] [ [ { } length ] final-literals ] unit-test
+{ V{ 0 } } [ [ { } length ] final-literals ] unit-test
 
-[ V{ 1 } ] [ [ { } length 1 + f <array> length ] final-literals ] unit-test
+{ V{ 1 } } [ [ { } length 1 + f <array> length ] final-literals ] unit-test
 
 ! generalize-counter is not tight enough
-[ V{ fixnum } ] [ [ 0 10 [ 1 + >fixnum ] times ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 0 10 [ 1 + >fixnum ] times ] final-classes ] unit-test
 
-[ V{ fixnum } ] [ [ 0 10 [ 1 + >fixnum ] times 0 + ] final-classes ] unit-test
+{ V{ fixnum } } [ [ 0 10 [ 1 + >fixnum ] times 0 + ] final-classes ] unit-test
 
 ! Coercions need to update intervals
-[ V{ f } ] [ [ 1 2 ? 100 shift >fixnum 1 = ] final-literals ] unit-test
+{ V{ f } } [ [ 1 2 ? 100 shift >fixnum 1 = ] final-literals ] unit-test
 
-[ V{ t } ] [ [ >fixnum 1 + >fixnum most-positive-fixnum <= ] final-literals ] unit-test
+{ V{ t } } [ [ >fixnum 1 + >fixnum most-positive-fixnum <= ] final-literals ] unit-test
 
-[ V{ t } ] [ [ >fixnum 1 + >fixnum most-negative-fixnum >= ] final-literals ] unit-test
+{ V{ t } } [ [ >fixnum 1 + >fixnum most-negative-fixnum >= ] final-literals ] unit-test
 
-[ V{ f } ] [ [ >fixnum 1 + >fixnum most-negative-fixnum > ] final-literals ] unit-test
+{ V{ f } } [ [ >fixnum 1 + >fixnum most-negative-fixnum > ] final-literals ] unit-test
 
 ! Mutable tuples with circularity should not cause problems
 TUPLE: circle me ;
 
-[ ] [ circle new dup >>me 1quotation final-info drop ] unit-test
+{ } [ circle new dup >>me 1quotation final-info drop ] unit-test
 
 ! Joe found an oversight
-[ V{ integer } ] [ [ >integer ] final-classes ] unit-test
+{ V{ integer } } [ [ >integer ] final-classes ] unit-test
 
 TUPLE: foo bar ;
 
-[ t ] [ [ foo new ] { new } inlined? ] unit-test
+{ t } [ [ foo new ] { new } inlined? ] unit-test
 
 GENERIC: whatever ( x -- y )
 M: number whatever drop foo ; inline
 
-[ t ] [ [ 1 whatever new ] { new } inlined? ] unit-test
+{ t } [ [ 1 whatever new ] { new } inlined? ] unit-test
 
 : that-thing ( -- class ) foo ;
 
-[ f ] [ [ that-thing new ] { new } inlined? ] unit-test
+{ f } [ [ that-thing new ] { new } inlined? ] unit-test
 
 GENERIC: whatever2 ( x -- y )
 M: number whatever2 drop H{ { 1 1 } { 2 2 } { 3 3 } { 4 4 } { 5 6 } } ; inline
 M: f whatever2 ; inline
 
-[ t ] [ [ 1 whatever2 at ] { at* hashcode* } inlined? ] unit-test
-[ f ] [ [ whatever2 at ] { at* hashcode* } inlined? ] unit-test
+{ t } [ [ 1 whatever2 at ] { at* hashcode* } inlined? ] unit-test
+{ f } [ [ whatever2 at ] { at* hashcode* } inlined? ] unit-test
 
 SYMBOL: not-an-assoc
 
-[ f ] [ [ not-an-assoc at ] { at* } inlined? ] unit-test
+{ f } [ [ not-an-assoc at ] { at* } inlined? ] unit-test
 
-[ t ] [ [ { 1 2 3 } member? ] { member? } inlined? ] unit-test
-[ f ] [ [ { 1 2 3 } swap member? ] { member? } inlined? ] unit-test
+{ t } [ [ { 1 2 3 } member? ] { member? } inlined? ] unit-test
+{ f } [ [ { 1 2 3 } swap member? ] { member? } inlined? ] unit-test
 
-[ t ] [ [ { 1 2 3 } member-eq? ] { member-eq? } inlined? ] unit-test
-[ f ] [ [ { 1 2 3 } swap member-eq? ] { member-eq? } inlined? ] unit-test
+{ t } [ [ { 1 2 3 } member-eq? ] { member-eq? } inlined? ] unit-test
+{ f } [ [ { 1 2 3 } swap member-eq? ] { member-eq? } inlined? ] unit-test
 
-[ t ] [ [ V{ } clone ] { clone (clone) } inlined? ] unit-test
-[ f ] [ [ { } clone ] { clone (clone) } inlined? ] unit-test
+{ t } [ [ V{ } clone ] { clone (clone) } inlined? ] unit-test
+{ f } [ [ { } clone ] { clone (clone) } inlined? ] unit-test
 
-[ f ] [ [ instance? ] { instance? } inlined? ] unit-test
-[ f ] [ [ 5 instance? ] { instance? } inlined? ] unit-test
-[ t ] [ [ array instance? ] { instance? } inlined? ] unit-test
+{ f } [ [ instance? ] { instance? } inlined? ] unit-test
+{ f } [ [ 5 instance? ] { instance? } inlined? ] unit-test
+{ t } [ [ array instance? ] { instance? } inlined? ] unit-test
 
-[ t ] [ [ ( a b c -- c b a ) shuffle ] { shuffle } inlined? ] unit-test
-[ f ] [ [ { 1 2 3 } swap shuffle ] { shuffle } inlined? ] unit-test
+{ t } [ [ ( a b c -- c b a ) shuffle ] { shuffle } inlined? ] unit-test
+{ f } [ [ { 1 2 3 } swap shuffle ] { shuffle } inlined? ] unit-test
 
 ! Type function for 'clone' had a subtle issue
 TUPLE: tuple-with-read-only-slot { x read-only } ;
@@ -947,114 +947,114 @@ TUPLE: tuple-with-read-only-slot { x read-only } ;
 M: tuple-with-read-only-slot clone
     x>> clone tuple-with-read-only-slot boa ; inline
 
-[ V{ object } ] [
+{ V{ object } } [
     [ { 1 2 3 } dup tuple-with-read-only-slot boa clone x>> eq? ] final-classes
 ] unit-test
 
 ! alien-cell outputs a alien or f
-[ t ] [
+{ t } [
     [ { byte-array fixnum } declare alien-cell dup [ "OOPS" throw ] unless ] final-classes
     first alien class=
 ] unit-test
 
 ! Don't crash if bad literal inputs are passed to unsafe words
-[ f ] [ [ { } 1 fixnum+fast ] final-info first literal?>> ] unit-test
+{ f } [ [ { } 1 fixnum+fast ] final-info first literal?>> ] unit-test
 
 ! Converting /i to shift
-[ t ] [ [ >fixnum dup 0 >= [ 16 /i ] when ] { /i fixnum/i fixnum/i-fast } inlined? ] unit-test
-[ f ] [ [ >fixnum dup 0 >= [ 16 /i ] when ] { fixnum-shift-fast } inlined? ] unit-test
-[ f ] [ [ >float dup 0 >= [ 16 /i ] when ] { /i float/f } inlined? ] unit-test
+{ t } [ [ >fixnum dup 0 >= [ 16 /i ] when ] { /i fixnum/i fixnum/i-fast } inlined? ] unit-test
+{ f } [ [ >fixnum dup 0 >= [ 16 /i ] when ] { fixnum-shift-fast } inlined? ] unit-test
+{ f } [ [ >float dup 0 >= [ 16 /i ] when ] { /i float/f } inlined? ] unit-test
 
 ! We want this to inline
-[ t ] [ [ void* <c-direct-array> ] { <c-direct-array> } inlined? ] unit-test
-[ V{ void*-array } ] [ [ void* <c-direct-array> ] final-classes ] unit-test
+{ t } [ [ void* <c-direct-array> ] { <c-direct-array> } inlined? ] unit-test
+{ V{ void*-array } } [ [ void* <c-direct-array> ] final-classes ] unit-test
 
 ! bitand identities
-[ t ] [ [ alien-unsigned-1 255 bitand ] { bitand fixnum-bitand } inlined? ] unit-test
-[ t ] [ [ alien-unsigned-1 255 swap bitand ] { bitand fixnum-bitand } inlined? ] unit-test
+{ t } [ [ alien-unsigned-1 255 bitand ] { bitand fixnum-bitand } inlined? ] unit-test
+{ t } [ [ alien-unsigned-1 255 swap bitand ] { bitand fixnum-bitand } inlined? ] unit-test
 
-[ t ] [ [ { fixnum } declare 256 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
-[ t ] [ [ { fixnum } declare 250 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
-[ f ] [ [ { fixnum } declare 257 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
+{ t } [ [ { fixnum } declare 256 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
+{ t } [ [ { fixnum } declare 250 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
+{ f } [ [ { fixnum } declare 257 rem -256 bitand ] { fixnum-bitand } inlined? ] unit-test
 
-[ V{ fixnum } ] [ [ >bignum 10 mod 2^ ] final-classes ] unit-test
-[ V{ bignum } ] [ [ >bignum 10 bitand ] final-classes ] unit-test
-[ V{ bignum } ] [ [ >bignum 10 >bignum bitand ] final-classes ] unit-test
-[ V{ fixnum } ] [ [ >bignum 10 mod ] final-classes ] unit-test
-[ V{ bignum } ] [ [ { fixnum } declare -1 >bignum bitand ] final-classes ] unit-test
-[ V{ bignum } ] [ [ { fixnum } declare -1 >bignum swap bitand ] final-classes ] unit-test
+{ V{ fixnum } } [ [ >bignum 10 mod 2^ ] final-classes ] unit-test
+{ V{ bignum } } [ [ >bignum 10 bitand ] final-classes ] unit-test
+{ V{ bignum } } [ [ >bignum 10 >bignum bitand ] final-classes ] unit-test
+{ V{ fixnum } } [ [ >bignum 10 mod ] final-classes ] unit-test
+{ V{ bignum } } [ [ { fixnum } declare -1 >bignum bitand ] final-classes ] unit-test
+{ V{ bignum } } [ [ { fixnum } declare -1 >bignum swap bitand ] final-classes ] unit-test
 
 ! Could be bignum not integer but who cares
-[ V{ integer } ] [ [ 10 >bignum bitand ] final-classes ] unit-test
+{ V{ integer } } [ [ 10 >bignum bitand ] final-classes ] unit-test
 
-[ t ] [ [ { fixnum fixnum } declare min ] { min } inlined? ] unit-test
-[ f ] [ [ { fixnum fixnum } declare min ] { fixnum-min } inlined? ] unit-test
+{ t } [ [ { fixnum fixnum } declare min ] { min } inlined? ] unit-test
+{ f } [ [ { fixnum fixnum } declare min ] { fixnum-min } inlined? ] unit-test
 
-[ t ] [ [ { float float } declare min ] { min } inlined? ] unit-test
-[ f ] [ [ { float float } declare min ] { float-min } inlined? ] unit-test
+{ t } [ [ { float float } declare min ] { min } inlined? ] unit-test
+{ f } [ [ { float float } declare min ] { float-min } inlined? ] unit-test
 
-[ t ] [ [ { fixnum fixnum } declare max ] { max } inlined? ] unit-test
-[ f ] [ [ { fixnum fixnum } declare max ] { fixnum-max } inlined? ] unit-test
+{ t } [ [ { fixnum fixnum } declare max ] { max } inlined? ] unit-test
+{ f } [ [ { fixnum fixnum } declare max ] { fixnum-max } inlined? ] unit-test
 
-[ t ] [ [ { float float } declare max ] { max } inlined? ] unit-test
-[ f ] [ [ { float float } declare max ] { float-max } inlined? ] unit-test
+{ t } [ [ { float float } declare max ] { max } inlined? ] unit-test
+{ f } [ [ { float float } declare max ] { float-max } inlined? ] unit-test
 
 ! Propagation should not call equal?, hashcode, etc on literals in user code
-[ V{ } ] [ [ 4 <reversed> [ 2drop ] with each ] final-info ] unit-test
+{ V{ } } [ [ 4 <reversed> [ 2drop ] with each ] final-info ] unit-test
 
 ! Reduction
-[ 1 ] [ [ 4 <reversed> [ nth-unsafe ] [ ] unless ] final-info length ] unit-test
+{ 1 } [ [ 4 <reversed> [ nth-unsafe ] [ ] unless ] final-info length ] unit-test
 
 ! Optimization on bit?
-[ t ] [ [ 3 bit? ] { bit? } inlined? ] unit-test
-[ f ] [ [ 500 bit? ] { bit? } inlined? ] unit-test
+{ t } [ [ 3 bit? ] { bit? } inlined? ] unit-test
+{ f } [ [ 500 bit? ] { bit? } inlined? ] unit-test
 
-[ t ] [ [ { 1 } intersect ] { intersect } inlined? ] unit-test
-[ f ] [ [ { 1 } swap intersect ] { intersect } inlined? ] unit-test ! We could do this
+{ t } [ [ { 1 } intersect ] { intersect } inlined? ] unit-test
+{ f } [ [ { 1 } swap intersect ] { intersect } inlined? ] unit-test ! We could do this
 
-[ t ] [ [ { 1 } intersects? ] { intersects? } inlined? ] unit-test
-[ f ] [ [ { 1 } swap intersects? ] { intersects? } inlined? ] unit-test ! We could do this
+{ t } [ [ { 1 } intersects? ] { intersects? } inlined? ] unit-test
+{ f } [ [ { 1 } swap intersects? ] { intersects? } inlined? ] unit-test ! We could do this
 
-[ t ] [ [ { 1 } diff ] { diff } inlined? ] unit-test
-[ f ] [ [ { 1 } swap diff ] { diff } inlined? ] unit-test ! We could do this
+{ t } [ [ { 1 } diff ] { diff } inlined? ] unit-test
+{ f } [ [ { 1 } swap diff ] { diff } inlined? ] unit-test ! We could do this
 
 ! Output range for string-nth now that string-nth is a library word and
 ! not a primitive
-[ t ] [
+{ t } [
     ! Should actually be 0 23 2^ 1 - [a,b]
     [ string-nth ] final-info first interval>> 0 23 2^ [a,b] =
 ] unit-test
 
 ! Non-zero displacement for <displaced-alien> restricts the output type
-[ t ] [
+{ t } [
     [ { byte-array } declare <displaced-alien> ] final-classes
     first byte-array alien class-or class=
 ] unit-test
 
-[ V{ alien } ] [
+{ V{ alien } } [
     [ { alien } declare <displaced-alien> ] final-classes
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { POSTPONE: f } declare <displaced-alien> ] final-classes
     first \ f alien class-or class=
 ] unit-test
 
-[ V{ alien } ] [
+{ V{ alien } } [
     [ { byte-array } declare [ 10 bitand 2 + ] dip <displaced-alien> ] final-classes
 ] unit-test
 
 ! 'tag' should have a declared output interval
-[ V{ t } ] [
+{ V{ t } } [
     [ tag 0 15 between? ] final-literals
 ] unit-test
 
-[ t ] [
+{ t } [
     [ maybe{ integer } instance? ] { instance? } inlined?
 ] unit-test
 
 TUPLE: inline-please a ;
-[ t ] [
+{ t } [
     [ maybe{ inline-please } instance? ] { instance? } inlined?
 ] unit-test
 
@@ -1063,7 +1063,7 @@ GENERIC: derp ( obj -- obj' )
 M: integer derp 5 + ;
 M: f derp drop t ;
 
-[ t ]
+{ t }
 [
     [ dup maybe{ integer } instance? [ derp ] when ] { instance? } inlined?
 ] unit-test
index af2bdbda601215c3d67243212ce1807e84c72939..2f004e5011fba9ab35eccfd7ef52d52900886a3f 100644 (file)
@@ -2,51 +2,51 @@ USING: tools.test compiler.tree.propagation.recursive
 math.intervals kernel math literals layouts ;
 IN: compiler.tree.propagation.recursive.tests
 
-[ T{ interval f { 0 t } { 1/0. t } } ] [
+{ T{ interval f { 0 t } { 1/0. t } } } [
     T{ interval f { 1 t } { 1 t } }
     T{ interval f { 0 t } { 0 t } }
     integer generalize-counter-interval
 ] unit-test
 
-[ T{ interval f { 0 t } { $[ max-array-capacity ] t } } ] [
+{ T{ interval f { 0 t } { $[ max-array-capacity ] t } } } [
     T{ interval f { 1 t } { 1 t } }
     T{ interval f { 0 t } { 0 t } }
     fixnum generalize-counter-interval
 ] unit-test
 
-[ T{ interval f { -1/0. t } { 10 t } } ] [
+{ T{ interval f { -1/0. t } { 10 t } } } [
     T{ interval f { -1 t } { -1 t } }
     T{ interval f { 10 t } { 10 t } }
     integer generalize-counter-interval
 ] unit-test
 
-[ T{ interval f { $[ most-negative-fixnum ] t } { 10 t } } ] [
+{ T{ interval f { $[ most-negative-fixnum ] t } { 10 t } } } [
     T{ interval f { -1 t } { -1 t } }
     T{ interval f { 10 t } { 10 t } }
     fixnum generalize-counter-interval
 ] unit-test
 
-[ t ] [
+{ t } [
     T{ interval f { -268435456 t } { 268435455 t } }
     T{ interval f { 1 t } { 268435455 t } }
     over
     integer generalize-counter-interval =
 ] unit-test
 
-[ t ] [
+{ t } [
     T{ interval f { -268435456 t } { 268435455 t } }
     T{ interval f { 1 t } { 268435455 t } }
     over
     fixnum generalize-counter-interval =
 ] unit-test
 
-[ full-interval ] [
+{ full-interval } [
     T{ interval f { -5 t } { 3 t } }
     T{ interval f { 2 t } { 11 t } }
     integer generalize-counter-interval
 ] unit-test
 
-[ $[ fixnum-interval ] ] [
+{ $[ fixnum-interval ] } [
     T{ interval f { -5 t } { 3 t } }
     T{ interval f { 2 t } { 11 t } }
     fixnum generalize-counter-interval
index 3389d20dbb1bf502e3086c6ca8caa18bb50a2d3b..ce69216cfc6757a32f9e819911176844e9045d6a 100644 (file)
@@ -6,10 +6,10 @@ compiler.tree.recursive
 compiler.tree.recursive.private ;
 IN: compiler.tree.recursive.tests
 
-[ { f f f f } ] [ f { f t f f } (tail-calls) ] unit-test
-[ { f f f t } ] [ t { f t f f } (tail-calls) ] unit-test
-[ { f t t t } ] [ t { f f t t } (tail-calls) ] unit-test
-[ { f f f t } ] [ t { f f t f } (tail-calls) ] unit-test
+{ { f f f f } } [ f { f t f f } (tail-calls) ] unit-test
+{ { f f f t } } [ t { f t f f } (tail-calls) ] unit-test
+{ { f t t t } } [ t { f f t t } (tail-calls) ] unit-test
+{ { f f f t } } [ t { f f t f } (tail-calls) ] unit-test
 
 : label-is-loop? ( nodes word -- ? )
     swap [
@@ -34,22 +34,22 @@ IN: compiler.tree.recursive.tests
 : loop-test-1 ( a -- )
     dup [ 1 + loop-test-1 ] [ drop ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ loop-test-1 ] build-tree analyze-recursive
     \ loop-test-1 label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ loop-test-1 1 2 3 ] build-tree analyze-recursive
     \ loop-test-1 label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ [ loop-test-1 ] each ] build-tree analyze-recursive
     \ loop-test-1 label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ [ loop-test-1 ] each ] build-tree analyze-recursive
     \ (each-integer) label-is-loop?
 ] unit-test
@@ -57,7 +57,7 @@ IN: compiler.tree.recursive.tests
 : loop-test-2 ( a b -- a' )
     dup [ 1 + loop-test-2 1 - ] [ drop ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ loop-test-2 ] build-tree analyze-recursive
     \ loop-test-2 label-is-not-loop?
 ] unit-test
@@ -65,12 +65,12 @@ IN: compiler.tree.recursive.tests
 : loop-test-3 ( a -- )
     dup [ [ loop-test-3 ] each ] [ drop ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ loop-test-3 ] build-tree analyze-recursive
     \ loop-test-3 label-is-not-loop?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ [ [ ] map ] map ] build-tree analyze-recursive
     [
         dup #recursive? [ label>> loop?>> not ] [ drop f ] if
@@ -87,22 +87,22 @@ DEFER: a
 : a ( -- )
     blah [ b ] [ a ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ a ] build-tree analyze-recursive
     \ a label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ a ] build-tree analyze-recursive
     \ b label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ b ] build-tree analyze-recursive
     \ a label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ a ] build-tree analyze-recursive
     \ b label-is-loop?
 ] unit-test
@@ -115,12 +115,12 @@ DEFER: a'
 : a' ( -- )
     blah [ b' ] [ a' ] if ; inline recursive
 
-[ f ] [
+{ f } [
     [ a' ] build-tree analyze-recursive
     \ a' label-is-loop?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ b' ] build-tree analyze-recursive
     \ b' label-is-loop?
 ] unit-test
@@ -129,12 +129,12 @@ DEFER: a'
 ! paper almost convinced me that a loop conversion here is
 ! sound.
 
-[ t ] [
+{ t } [
     [ b' ] build-tree analyze-recursive
     \ a' label-is-loop?
 ] unit-test
 
-[ f ] [
+{ f } [
     [ a' ] build-tree analyze-recursive
     \ b' label-is-loop?
 ] unit-test
@@ -147,22 +147,22 @@ DEFER: a''
 : a'' ( a -- b )
     dup [ b'' a'' ] when ; inline recursive
 
-[ t ] [
+{ t } [
     [ a'' ] build-tree analyze-recursive
     \ a'' label-is-not-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ a'' ] build-tree analyze-recursive
     \ b'' label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ b'' ] build-tree analyze-recursive
     \ a'' label-is-loop?
 ] unit-test
 
-[ t ] [
+{ t } [
     [ b'' ] build-tree analyze-recursive
     \ b'' label-is-not-loop?
 ] unit-test
@@ -172,7 +172,7 @@ DEFER: a''
         [ [ 1 - ] dip loop-in-non-loop ] [ call ] 2bi
     ] [ 2drop ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ 10 [ [ drop ] each-integer ] loop-in-non-loop ]
     build-tree analyze-recursive
     \ (each-integer) label-is-loop?
@@ -186,7 +186,7 @@ DEFER: a'''
 : a''' ( -- )
     blah [ b''' ] [ a''' ] if ; inline recursive
 
-[ t ] [
+{ t } [
     [ b''' ] build-tree analyze-recursive
     \ a''' label-is-loop?
 ] unit-test
@@ -197,7 +197,7 @@ DEFER: b4
 
 : b4 ( a -- b ) dup [ a4 reverse ] when ; inline recursive
 
-[ t ] [ [ b4 ] build-tree analyze-recursive \ a4 label-is-loop? ] unit-test
-[ t ] [ [ b4 ] build-tree analyze-recursive \ b4 label-is-not-loop? ] unit-test
-[ t ] [ [ a4 ] build-tree analyze-recursive \ a4 label-is-not-loop? ] unit-test
-[ t ] [ [ a4 ] build-tree analyze-recursive \ b4 label-is-loop? ] unit-test
+{ t } [ [ b4 ] build-tree analyze-recursive \ a4 label-is-loop? ] unit-test
+{ t } [ [ b4 ] build-tree analyze-recursive \ b4 label-is-not-loop? ] unit-test
+{ t } [ [ a4 ] build-tree analyze-recursive \ a4 label-is-not-loop? ] unit-test
+{ t } [ [ a4 ] build-tree analyze-recursive \ b4 label-is-loop? ] unit-test
index 1adff3b95bf00fb09cc67e16b35f0e2706375127..331b2016907447890addc3d4655a91c5471f4861 100644 (file)
@@ -45,11 +45,11 @@ TUPLE: empty-tuple ;
 : bleach-node ( quot: ( ..a -- ..b ) -- )
     [ bleach-node ] curry [ ] compose impeach-node ; inline recursive
 
-[ ] [ [ [ ] bleach-node ] test-unboxing ] unit-test
+{ } [ [ [ ] bleach-node ] test-unboxing ] unit-test
 
 TUPLE: box { i read-only } ;
 
 : box-test ( m -- n )
     dup box-test i>> swap box-test drop box boa ; inline recursive
 
-[ ] [ [ T{ box f 34 } box-test i>> ] test-unboxing ] unit-test
+{ } [ [ T{ box f 34 } box-test i>> ] test-unboxing ] unit-test
index 7bda94a999bca7e0149a802bbaf3b457448dbffc..443ca46e2a15475ebc2e0440cd4cd88229758851 100644 (file)
@@ -3,7 +3,7 @@
 USING: tools.test compression.inflate ;
 IN: compression.inflate.tests
 
-[
+{
 B{
     1 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 122 121 94 119
@@ -58,7 +58,7 @@ B{
     255 255 255 0 255 255 255 0 255 255 255 0 255 255 255 0 255
     255 255 0
 }
-] [
+} [
 B{
     56 141 99 252 255 255 63 3 41 160 170 50 174 252 253 219
     199 17 2 2 92 172 2 130 82 107 152 69 132 191 138 153 153
index 9411ac0f1f78d5f397cb05f150bea2ff129b2db2..c6352f30609faeb38790e67474bdab5b3e9bc49c 100644 (file)
@@ -3,22 +3,22 @@
 USING: arrays byte-arrays compression.snappy kernel tools.test ;
 IN: compression.snappy.tests
 
-[ t ] [
+{ t } [
     1000 2 <array> >byte-array [ snappy-compress snappy-uncompress ] keep =
 ] unit-test
 
-[ t ] [
+{ t } [
     B{ } [ snappy-compress snappy-uncompress ] keep =
 ] unit-test
 
-[ t ] [
+{ t } [
     B{ 1 } [ snappy-compress snappy-uncompress ] keep =
 ] unit-test
 
-[ t ] [
+{ t } [
     B{ 1 2 } [ snappy-compress snappy-uncompress ] keep =
 ] unit-test
 
-[ t ] [
+{ t } [
     B{ 1 2 3 } [ snappy-compress snappy-uncompress ] keep =
 ] unit-test
index d4a8ed73645f01eb05d64752584d2156a20d55dd..034f71c35b71471594979170bf5b71384cf1ab76 100644 (file)
@@ -6,6 +6,6 @@ IN: compression.zlib.tests
 
 : compress-me ( -- byte-array ) B{ 1 2 3 4 5 } ;
 
-[ t ] [ compress-me [ compress uncompress ] keep = ] unit-test
+{ t } [ compress-me [ compress uncompress ] keep = ] unit-test
 
 [ ffi:Z_DATA_ERROR zlib-error-message ] [ string>> "data error" = ] must-fail-with
index 15bfc152afc2d46652d66708eb4c5663df9c27b3..54e343f88acd904827cd0e89861ac64c4cea3619 100644 (file)
@@ -9,28 +9,28 @@ IN: concurrency.combinators.tests
 { 2 1 } [ [ 2array ] 2parallel-map ] must-infer-as
 [ [ ] parallel-filter ] must-infer
 
-[ { 1 4 9 } ] [ { 1 2 3 } [ sq ] parallel-map ] unit-test
+{ { 1 4 9 } } [ { 1 2 3 } [ sq ] parallel-map ] unit-test
 
-[ { 1 4 9 } ] [ { 1 2 3 } [ 1000000 random sleep sq ] parallel-map ] unit-test
+{ { 1 4 9 } } [ { 1 2 3 } [ 1000000 random sleep sq ] parallel-map ] unit-test
 
 [ { 1 2 3 } [ dup 2 mod 0 = [ "Even" throw ] when ] parallel-map ]
 [ error>> "Even" = ] must-fail-with
 
-[ V{ 0 3 6 9 } ]
+{ V{ 0 3 6 9 } }
 [ 10 iota [ 3 mod zero? ] parallel-filter ] unit-test
 
-[ 10 ]
+{ 10 }
 [
     V{ } clone
     10 iota over [ push ] curry parallel-each
     length
 ] unit-test
 
-[ { 10 20 30 } ] [
+{ { 10 20 30 } } [
     { 1 4 3 } { 10 5 10 } [ * ] 2parallel-map
 ] unit-test
 
-[ { -9 -1 -7 } ] [
+{ { -9 -1 -7 } } [
     { 1 4 3 } { 10 5 10 } [ - ] 2parallel-map
 ] unit-test
 
@@ -38,7 +38,7 @@ IN: concurrency.combinators.tests
     { 1 4 3 } { 1 0 1 } [ / drop ] 2parallel-each
 ] must-fail
 
-[ 20 ]
+{ 20 }
 [
     V{ } clone
     10 iota 10 iota pick [ [ push ] [ push ] bi ] curry 2parallel-each
@@ -47,7 +47,7 @@ IN: concurrency.combinators.tests
 
 [ { f } [ "OOPS" throw ] parallel-each ] must-fail
 
-[ "1a" "4b" "3c" ] [
+{ "1a" "4b" "3c" } [
     2
     { [ 1 - ] [ sq ] [ 1 + ] } parallel-cleave
     [ number>string ] 3 parallel-napply
index 153a0556855244f2f826715dac421ec5613179d3..d03245bd25ef44ea988fb4b7713632e714311eee 100644 (file)
@@ -1,11 +1,11 @@
 USING: concurrency.count-downs threads kernel tools.test ;
 IN: concurrency.count-downs.tests`
 
-[ ] [ 0 <count-down> await ] unit-test
+{ } [ 0 <count-down> await ] unit-test
 
 [ 1 <count-down> dup count-down count-down ] must-fail
 
-[ ] [
+{ } [
     1 <count-down>
     3 <count-down>
     2dup [ await count-down ] 2curry "Master" spawn drop
index 426a930d2059080040bb38549c1894d19a21d494..7bb1469fa336544e6aa6fdd7a2d32c63c673604d 100644 (file)
@@ -20,7 +20,7 @@ CONSTANT: test-ip "127.0.0.1"
     } cond ;
 
 
-[ ] [ [ "distributed-concurrency-test" temp-file delete-file ] ignore-errors ] unit-test
+{ } [ [ "distributed-concurrency-test" temp-file delete-file ] ignore-errors ] unit-test
 
 test-node-server [
     [ ] [
index 8360d1ffe1cefc068d8c36e4201a954152a02816..30afbef74e8ed6de0d0767f3efb92ffb7127d4ce 100644 (file)
@@ -26,4 +26,4 @@ IN: concurrency.exchangers.tests
 
     pr ?promise ;
 
-[ "Hello world, Goodbye world" ] [ exchanger-test ] unit-test
+{ "Hello world, Goodbye world" } [ exchanger-test ] unit-test
index 4ea2105b35ecc987e6ece6e332ddbc9402d8b8b4..20748ec6b06fce504475d65a179c5d991760006f 100644 (file)
@@ -8,7 +8,7 @@ IN: concurrency.flags.tests
     f lower-flag
     f value>> ;
 
-[ f ] [ flag-test-1 ] unit-test
+{ f } [ flag-test-1 ] unit-test
 
 :: flag-test-2 ( -- ? )
     <flag> :> f
@@ -16,14 +16,14 @@ IN: concurrency.flags.tests
     f lower-flag
     f value>> ;
 
-[ f ] [ flag-test-2 ] unit-test
+{ f } [ flag-test-2 ] unit-test
 
 :: flag-test-3 ( -- val )
     <flag> :> f
     f raise-flag
     f value>> ;
 
-[ t ] [ flag-test-3 ] unit-test
+{ t } [ flag-test-3 ] unit-test
 
 :: flag-test-4 ( -- val )
     <flag> :> f
@@ -31,7 +31,7 @@ IN: concurrency.flags.tests
     f wait-for-flag
     f value>> ;
 
-[ t ] [ flag-test-4 ] unit-test
+{ t } [ flag-test-4 ] unit-test
 
 :: flag-test-5 ( -- val )
     <flag> :> f
@@ -39,9 +39,9 @@ IN: concurrency.flags.tests
     f wait-for-flag
     f value>> ;
 
-[ t ] [ flag-test-5 ] unit-test
+{ t } [ flag-test-5 ] unit-test
 
-[ ] [
+{ } [
     { 1 2 } <flag>
     [ [ 1 seconds sleep raise-flag ] curry "Flag test" spawn drop ]
     [ [ wait-for-flag drop ] curry parallel-each ] bi
index df2764c175e3ba7ab69533f8cd76c74b4ef92515..6cdcdb7c67c6e1c22adacaa8e08664c0f02750cf 100644 (file)
@@ -1,7 +1,7 @@
 USING: concurrency.futures kernel tools.test threads ;
 IN: concurrency.futures.tests
 
-[ 50 ] [
+{ 50 } [
     [ 50 ] future ?future
 ] unit-test
 
@@ -9,17 +9,17 @@ IN: concurrency.futures.tests
     [ "this should propogate" throw ] future ?future
 ] must-fail
 
-[ ] [
+{ } [
     [ "this should not propogate" throw ] future drop
 ] unit-test
 
 ! Race condition with futures
-[ 3 3 ] [
+{ 3 3 } [
     [ 3 ] future
     dup ?future swap ?future
 ] unit-test
 
 ! Another race
-[ 3 ] [
+{ 3 } [
     [ 3 yield ] future ?future
 ] unit-test
index 84573e7bd3ea0fe0fe315dfb9f7c7a751c07af0e..78aa3791825550093a5fca305fb2311b4027ea95 100644 (file)
@@ -54,10 +54,10 @@ IN: concurrency.locks.tests
     c await
     v ;
 
-[ V{ 1 3 2 4 } ] [ lock-test-0 ] unit-test
-[ V{ 1 2 3 4 } ] [ lock-test-1 ] unit-test
+{ V{ 1 3 2 4 } } [ lock-test-0 ] unit-test
+{ V{ 1 2 3 4 } } [ lock-test-1 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     <reentrant-lock> dup [
         [
             3
@@ -65,17 +65,17 @@ IN: concurrency.locks.tests
     ] with-lock
 ] unit-test
 
-[ ] [ <rw-lock> drop ] unit-test
+{ } [ <rw-lock> drop ] unit-test
 
-[ ] [ <rw-lock> [ ] with-read-lock ] unit-test
+{ } [ <rw-lock> [ ] with-read-lock ] unit-test
 
-[ ] [ <rw-lock> dup [ [ ] with-read-lock ] with-read-lock ] unit-test
+{ } [ <rw-lock> dup [ [ ] with-read-lock ] with-read-lock ] unit-test
 
-[ ] [ <rw-lock> [ ] with-write-lock ] unit-test
+{ } [ <rw-lock> [ ] with-write-lock ] unit-test
 
-[ ] [ <rw-lock> dup [ [ ] with-write-lock ] with-write-lock ] unit-test
+{ } [ <rw-lock> dup [ [ ] with-write-lock ] with-write-lock ] unit-test
 
-[ ] [ <rw-lock> dup [ [ ] with-read-lock ] with-write-lock ] unit-test
+{ } [ <rw-lock> dup [ [ ] with-read-lock ] with-write-lock ] unit-test
 
 :: rw-lock-test-1 ( -- v )
     <rw-lock> :> l
@@ -124,7 +124,7 @@ IN: concurrency.locks.tests
     c'' await
     v ;
 
-[ V{ 1 2 3 4 5 6 } ] [ rw-lock-test-1 ] unit-test
+{ V{ 1 2 3 4 5 6 } } [ rw-lock-test-1 ] unit-test
 
 :: rw-lock-test-2 ( -- v )
     <rw-lock> :> l
@@ -153,7 +153,7 @@ IN: concurrency.locks.tests
     c' await
     v ;
 
-[ V{ 1 2 3 } ] [ rw-lock-test-2 ] unit-test
+{ V{ 1 2 3 } } [ rw-lock-test-2 ] unit-test
 
 ! Test lock timeouts
 :: lock-timeout-test ( -- v )
@@ -187,7 +187,7 @@ IN: concurrency.locks.tests
     ] with-write-lock
 ] must-fail
 
-[ ] [
+{ } [
     <rw-lock> dup [
         dup [
             1 seconds [ ] with-read-lock-timeout
index 9acce4971a93110796e53d10dc0bb1d73665cd77..bf790d0ca863231141f176289b6b6c99efbcf303 100644 (file)
@@ -5,7 +5,7 @@ IN: concurrency.mailboxes.tests
 
 { 1 1 } [ [ integer? ] mailbox-get? ] must-infer-as
 
-[ V{ 1 2 3 } ] [
+{ V{ 1 2 3 } } [
     0 <vector>
     <mailbox>
     [ mailbox-get swap push ] in-thread
@@ -16,7 +16,7 @@ IN: concurrency.mailboxes.tests
     3 swap mailbox-put
 ] unit-test
 
-[ V{ 1 2 3 } ] [
+{ V{ 1 2 3 } } [
     0 <vector>
     <mailbox>
     [ [ integer? ] mailbox-get? swap push ] in-thread
@@ -27,7 +27,7 @@ IN: concurrency.mailboxes.tests
     3 swap mailbox-put
 ] unit-test
 
-[ V{ 1 "junk" 3 "junk2" } [ 456 ] ] [
+{ V{ 1 "junk" 3 "junk2" } [ 456 ] } [
     0 <vector>
     <mailbox>
     [ [ integer? ] mailbox-get? swap push ] in-thread
@@ -42,7 +42,7 @@ IN: concurrency.mailboxes.tests
     mailbox-get
 ] unit-test
 
-[ { "foo" "bar" } ] [
+{ { "foo" "bar" } } [
     <mailbox>
     "foo" over mailbox-put
     "bar" over mailbox-put
index 28a2db1e086a658953d7e3cd129f486b2a3307cb..10c8c32229bb06a907250787cfe0de8ba5a24c6b 100644 (file)
@@ -6,16 +6,16 @@ quotations concurrency.messaging concurrency.mailboxes
 concurrency.count-downs accessors ;
 IN: concurrency.messaging.tests
 
-[ ] [ my-mailbox data>> clear-deque ] unit-test
+{ } [ my-mailbox data>> clear-deque ] unit-test
 
-[ "received" ] [
+{ "received" } [
     [
         receive "received" swap reply-synchronous
     ] "Synchronous test" spawn
     "sent" swap send-synchronous
 ] unit-test
 
-[ 1 3 2 ] [
+{ 1 3 2 } [
     1 self send
     2 self send
     3 self send
@@ -45,7 +45,7 @@ SYMBOL: exit
         { exit                 [ f ] }
     } match-cond ;
 
-[ -5 ] [
+{ -5 } [
     [ 0 [ counter ] loop ] "Counter" spawn "counter" set
     { increment 10 } "counter" get send
     { decrement 15 } "counter" get send
index 9115e8644dc94126e5fbb86e7d3ee3fd60338c42..fc88594f36162d003b4da9e0734a85aff79c3cea 100644 (file)
@@ -2,7 +2,7 @@ USING: vectors concurrency.promises kernel threads sequences
 tools.test ;
 IN: concurrency.promises.tests
 
-[ V{ 50 50 50 } ] [
+{ V{ 50 50 50 } } [
     0 <vector>
     <promise>
     [ ?promise swap push ] in-thread
index 8415f0324e579d1bbd3c1bd6c577433d97876260..28fbeaf99049824edea457d42b491061894fe960 100644 (file)
@@ -2,7 +2,7 @@ IN: core-foundation.arrays.tests
 USING: core-foundation core-foundation.arrays
 core-foundation.strings destructors sequences tools.test ;
 
-[ { "1" "2" "3" } ] [
+{ { "1" "2" "3" } } [
     [
         { "1" "2" "3" }
         [ <CFString> &CFRelease ] map
index b766ad6b95cc7ddd125d63725a2131a8d1cf53ce..660a9a3774daaf8d4fcedb3906eccdadd62f4732 100644 (file)
@@ -4,4 +4,4 @@ USING: tools.test core-foundation.attributed-strings
 core-foundation ;
 IN: core-foundation.attributed-strings.tests
 
-[ ] [ "Hello world" H{ } <CFAttributedString> CFRelease ] unit-test
+{ } [ "Hello world" H{ } <CFAttributedString> CFRelease ] unit-test
index f967e45d9cf5c33655859ffe6c7d94656124e9b9..dff788491841133624c5aabd9e5bf6805d9c54a2 100644 (file)
@@ -4,9 +4,9 @@ USING: tools.test core-foundation core-foundation.dictionaries
 arrays destructors core-foundation.strings kernel namespaces ;
 IN: core-foundation.dictionaries.tests
 
-[ ] [ { } <CFDictionary> CFRelease ] unit-test
+{ } [ { } <CFDictionary> CFRelease ] unit-test
 
-[ "raps in the back of cars and doesn't afraid of anything" ] [
+{ "raps in the back of cars and doesn't afraid of anything" } [
     [
         "cpst" <CFString> &CFRelease dup "key" set
         "raps in the back of cars and doesn't afraid of anything" <CFString> &CFRelease
index 743666a76513d80c908a8c522cbb218d2386bb5a..4b07fbcb91f4ff6383341081ae59f440397ace3d 100644 (file)
@@ -4,12 +4,12 @@ USING: core-foundation.strings core-foundation tools.test kernel
 strings ;
 IN: core-foundation
 
-[ ] [ "Hello" <CFString> CFRelease ] unit-test
-[ "Hello" ] [ "Hello" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
-[ "Hello\u003456" ] [ "Hello\u003456" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
-[ "Hello\u013456" ] [ "Hello\u013456" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
-[ ] [ "\0" <CFString> CFRelease ] unit-test
-[ "\0" ] [ "\0" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
+{ } [ "Hello" <CFString> CFRelease ] unit-test
+{ "Hello" } [ "Hello" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
+{ "Hello\u003456" } [ "Hello\u003456" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
+{ "Hello\u013456" } [ "Hello\u013456" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
+{ } [ "\0" <CFString> CFRelease ] unit-test
+{ "\0" } [ "\0" <CFString> [ CF>string ] [ CFRelease ] bi ] unit-test
 
 ! This shouldn't fail
-[ ] [ { 0x123456 } >string <CFString> CFRelease ] unit-test
+{ } [ { 0x123456 } >string <CFString> CFRelease ] unit-test
index 8d604f8d0521265aa3b3c81e56a9c201e05bff00..ba19cb75276ff3b13422a798312ec8c91687310e 100644 (file)
@@ -3,6 +3,6 @@
 USING: tools.test core-graphics kernel images ;
 IN: core-graphics.tests
 
-[ t ] [ { 100 200 } [ drop ] make-bitmap-image image? ] unit-test
+{ t } [ { 100 200 } [ drop ] make-bitmap-image image? ] unit-test
 
-[ ] [ dummy-context drop ] unit-test
+{ } [ dummy-context drop ] unit-test
index b6b54df7c3b567865a3926ce0c6d2a7a0967adfa..e694282faa58cd8e8c8e8b5a07bcbdcda3ca3c8b 100644 (file)
@@ -9,9 +9,9 @@ IN: core-text.tests
 : test-font ( name -- font )
     [ >cf &CFRelease 0.0 f CTFontCreateWithName ] with-destructors ;
 
-[ ] [ "Helvetica" test-font CFRelease ] unit-test
+{ } [ "Helvetica" test-font CFRelease ] unit-test
 
-[ ] [
+{ } [
     [
         kCTFontAttributeName "Helvetica" test-font &CFRelease 2array 1array
         <CFDictionary> &CFRelease drop
@@ -30,8 +30,8 @@ IN: core-text.tests
         } cleave and and and
     ] with-destructors ;
 
-[ t ] [ "Hello world" "Helvetica" test-typographic-bounds ] unit-test
+{ t } [ "Hello world" "Helvetica" test-typographic-bounds ] unit-test
 
-[ t ] [ "Hello world" "Chicago" test-typographic-bounds ] unit-test
+{ t } [ "Hello world" "Chicago" test-typographic-bounds ] unit-test
 
-[ t ] [ "日本語" "Helvetica" test-typographic-bounds ] unit-test
+{ t } [ "日本語" "Helvetica" test-typographic-bounds ] unit-test
index 072c7d4506591ac670f0ac77b29f78ab9e13c537..af8c2b98f70c336b0d1b1d222d991b78c03d759f 100644 (file)
@@ -3,13 +3,13 @@ kernel tools.test namespaces make layouts ;
 IN: cpu.x86.assembler.tests
 
 ! small registers
-[ { 128 192 12 } ] [ [ AL 12 <byte> ADD ] { } make ] unit-test
-[ { 128 196 12 } ] [ [ AH 12 <byte> ADD ] { } make ] unit-test
-[ { 176 12 } ] [ [ AL 12 <byte> MOV ] { } make ] unit-test
-[ { 180 12 } ] [ [ AH 12 <byte> MOV ] { } make ] unit-test
-[ { 198 0 12 } ] [ [ EAX [] 12 <byte> MOV ] { } make ] unit-test
-[ { 0 235 } ] [ [ BL CH ADD ] { } make ] unit-test
-[ { 136 235 } ] [ [ BL CH MOV ] { } make ] unit-test
+{ { 128 192 12 } } [ [ AL 12 <byte> ADD ] { } make ] unit-test
+{ { 128 196 12 } } [ [ AH 12 <byte> ADD ] { } make ] unit-test
+{ { 176 12 } } [ [ AL 12 <byte> MOV ] { } make ] unit-test
+{ { 180 12 } } [ [ AH 12 <byte> MOV ] { } make ] unit-test
+{ { 198 0 12 } } [ [ EAX [] 12 <byte> MOV ] { } make ] unit-test
+{ { 0 235 } } [ [ BL CH ADD ] { } make ] unit-test
+{ { 136 235 } } [ [ BL CH MOV ] { } make ] unit-test
 
 ! immediate operands
 cell 4 = [
@@ -18,220 +18,220 @@ cell 4 = [
     [ { 0xb9 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 } ] [ [ ECX 1 MOV ] { } make ] unit-test
 ] if
 
-[ { 0x83 0xc1 0x01 } ] [ [ ECX 1 ADD ] { } make ] unit-test
-[ { 0x81 0xc1 0x96 0x00 0x00 0x00 } ] [ [ ECX 150 ADD ] { } make ] unit-test
-[ { 0xf7 0xc1 0xd2 0x04 0x00 0x00 } ] [ [ ECX 1234 TEST ] { } make ] unit-test
+{ { 0x83 0xc1 0x01 } } [ [ ECX 1 ADD ] { } make ] unit-test
+{ { 0x81 0xc1 0x96 0x00 0x00 0x00 } } [ [ ECX 150 ADD ] { } make ] unit-test
+{ { 0xf7 0xc1 0xd2 0x04 0x00 0x00 } } [ [ ECX 1234 TEST ] { } make ] unit-test
 
 ! 64-bit registers
-[ { 0x40 0x8a 0x2a } ] [ [ BPL RDX [] MOV ] { } make ] unit-test
+{ { 0x40 0x8a 0x2a } } [ [ BPL RDX [] MOV ] { } make ] unit-test
 
-[ { 0x49 0x89 0x04 0x24 } ] [ [ R12 [] RAX MOV ] { } make ] unit-test
-[ { 0x49 0x8b 0x06 } ] [ [ RAX R14 [] MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x04 0x24 } } [ [ R12 [] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x8b 0x06 } } [ [ RAX R14 [] MOV ] { } make ] unit-test
 
-[ { 0x89 0xca } ] [ [ EDX ECX MOV ] { } make ] unit-test
-[ { 0x4c 0x89 0xe2 } ] [ [ RDX R12 MOV ] { } make ] unit-test
-[ { 0x49 0x89 0xd4 } ] [ [ R12 RDX MOV ] { } make ] unit-test
+{ { 0x89 0xca } } [ [ EDX ECX MOV ] { } make ] unit-test
+{ { 0x4c 0x89 0xe2 } } [ [ RDX R12 MOV ] { } make ] unit-test
+{ { 0x49 0x89 0xd4 } } [ [ R12 RDX MOV ] { } make ] unit-test
 
 ! memory address modes
-[ { 0x8a 0x18         } ] [ [ BL RAX [] MOV ] { } make ] unit-test
-[ { 0x66 0x8b 0x18 } ] [ [ BX RAX [] MOV ] { } make ] unit-test
-[ { 0x8b 0x18         } ] [ [ EBX RAX [] MOV ] { } make ] unit-test
-[ { 0x48 0x8b 0x18 } ] [ [ RBX RAX [] MOV ] { } make ] unit-test
-[ { 0x88 0x18         } ] [ [ RAX [] BL MOV ] { } make ] unit-test
-[ { 0x66 0x89 0x18 } ] [ [ RAX [] BX MOV ] { } make ] unit-test
-[ { 0x89 0x18         } ] [ [ RAX [] EBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x18 } ] [ [ RAX [] RBX MOV ] { } make ] unit-test
+{ { 0x8a 0x18         } } [ [ BL RAX [] MOV ] { } make ] unit-test
+{ { 0x66 0x8b 0x18 } } [ [ BX RAX [] MOV ] { } make ] unit-test
+{ { 0x8b 0x18         } } [ [ EBX RAX [] MOV ] { } make ] unit-test
+{ { 0x48 0x8b 0x18 } } [ [ RBX RAX [] MOV ] { } make ] unit-test
+{ { 0x88 0x18         } } [ [ RAX [] BL MOV ] { } make ] unit-test
+{ { 0x66 0x89 0x18 } } [ [ RAX [] BX MOV ] { } make ] unit-test
+{ { 0x89 0x18         } } [ [ RAX [] EBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x18 } } [ [ RAX [] RBX MOV ] { } make ] unit-test
 
-[ { 0x0f 0xbe 0xc3 } ] [ [ EAX BL MOVSX ] { } make ] unit-test
-[ { 0x0f 0xbf 0xc3 } ] [ [ EAX BX MOVSX ] { } make ] unit-test
+{ { 0x0f 0xbe 0xc3 } } [ [ EAX BL MOVSX ] { } make ] unit-test
+{ { 0x0f 0xbf 0xc3 } } [ [ EAX BX MOVSX ] { } make ] unit-test
 
-[ { 0x80 0x08 0x05 } ] [ [ EAX [] 5 <byte> OR ] { } make ] unit-test
-[ { 0xc6 0x00 0x05 } ] [ [ EAX [] 5 <byte> MOV ] { } make ] unit-test
+{ { 0x80 0x08 0x05 } } [ [ EAX [] 5 <byte> OR ] { } make ] unit-test
+{ { 0xc6 0x00 0x05 } } [ [ EAX [] 5 <byte> MOV ] { } make ] unit-test
 
-[ { 0x49 0x89 0x04 0x1a } ] [ [ R10 RBX [+] RAX MOV ] { } make ] unit-test
-[ { 0x49 0x89 0x04 0x1b } ] [ [ R11 RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x04 0x1a } } [ [ R10 RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x04 0x1b } } [ [ R11 RBX [+] RAX MOV ] { } make ] unit-test
 
-[ { 0x49 0x89 0x04 0x1c } ] [ [ R12 RBX [+] RAX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x04 0x1c } ] [ [ RSP RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x04 0x1c } } [ [ R12 RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x04 0x1c } } [ [ RSP RBX [+] RAX MOV ] { } make ] unit-test
 
-[ { 0x49 0x89 0x44 0x1d 0x00 } ] [ [ R13 RBX [+] RAX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x44 0x1d 0x00 } ] [ [ RBP RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x44 0x1d 0x00 } } [ [ R13 RBX [+] RAX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x44 0x1d 0x00 } } [ [ RBP RBX [+] RAX MOV ] { } make ] unit-test
 
-[ { 0x4a 0x89 0x04 0x23 } ] [ [ RBX R12 [+] RAX MOV ] { } make ] unit-test
-[ { 0x4a 0x89 0x04 0x2b } ] [ [ RBX R13 [+] RAX MOV ] { } make ] unit-test
+{ { 0x4a 0x89 0x04 0x23 } } [ [ RBX R12 [+] RAX MOV ] { } make ] unit-test
+{ { 0x4a 0x89 0x04 0x2b } } [ [ RBX R13 [+] RAX MOV ] { } make ] unit-test
 
-[ { 0x4b 0x89 0x44 0x25 0x00 } ] [ [ R13 R12 [+] RAX MOV ] { } make ] unit-test
-[ { 0x4b 0x89 0x04 0x2c } ] [ [ R12 R13 [+] RAX MOV ] { } make ] unit-test
+{ { 0x4b 0x89 0x44 0x25 0x00 } } [ [ R13 R12 [+] RAX MOV ] { } make ] unit-test
+{ { 0x4b 0x89 0x04 0x2c } } [ [ R12 R13 [+] RAX MOV ] { } make ] unit-test
 
-[ { 0x49 0x89 0x04 0x2c } ] [ [ R12 RBP [+] RAX MOV ] { } make ] unit-test
+{ { 0x49 0x89 0x04 0x2c } } [ [ R12 RBP [+] RAX MOV ] { } make ] unit-test
 [ [ R12 RSP [+] RAX MOV ] { } make ] must-fail
 
-[ { 0x89 0x1c 0x11 } ] [ [ ECX EDX [+] EBX MOV ] { } make ] unit-test
-[ { 0x89 0x1c 0x51 } ] [ [ ECX EDX 1 0 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x1c 0x91 } ] [ [ ECX EDX 2 0 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x1c 0xd1 } ] [ [ ECX EDX 3 0 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x5c 0x11 0x64 } ] [ [ ECX EDX 0 100 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x5c 0x51 0x64 } ] [ [ ECX EDX 1 100 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x5c 0x91 0x64 } ] [ [ ECX EDX 2 100 <indirect> EBX MOV ] { } make ] unit-test
-[ { 0x89 0x5c 0xd1 0x64 } ] [ [ ECX EDX 3 100 <indirect> EBX MOV ] { } make ] unit-test
-
-[ { 0x48 0x89 0x1c 0x11 } ] [ [ RCX RDX [+] RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x1c 0x51 } ] [ [ RCX RDX 1 0 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x1c 0x91 } ] [ [ RCX RDX 2 0 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x1c 0xd1 } ] [ [ RCX RDX 3 0 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x5c 0x11 0x64 } ] [ [ RCX RDX 0 100 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x5c 0x51 0x64 } ] [ [ RCX RDX 1 100 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x5c 0x91 0x64 } ] [ [ RCX RDX 2 100 <indirect> RBX MOV ] { } make ] unit-test
-[ { 0x48 0x89 0x5c 0xd1 0x64 } ] [ [ RCX RDX 3 100 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x89 0x1c 0x11 } } [ [ ECX EDX [+] EBX MOV ] { } make ] unit-test
+{ { 0x89 0x1c 0x51 } } [ [ ECX EDX 1 0 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x1c 0x91 } } [ [ ECX EDX 2 0 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x1c 0xd1 } } [ [ ECX EDX 3 0 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x5c 0x11 0x64 } } [ [ ECX EDX 0 100 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x5c 0x51 0x64 } } [ [ ECX EDX 1 100 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x5c 0x91 0x64 } } [ [ ECX EDX 2 100 <indirect> EBX MOV ] { } make ] unit-test
+{ { 0x89 0x5c 0xd1 0x64 } } [ [ ECX EDX 3 100 <indirect> EBX MOV ] { } make ] unit-test
+
+{ { 0x48 0x89 0x1c 0x11 } } [ [ RCX RDX [+] RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x1c 0x51 } } [ [ RCX RDX 1 0 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x1c 0x91 } } [ [ RCX RDX 2 0 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x1c 0xd1 } } [ [ RCX RDX 3 0 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x5c 0x11 0x64 } } [ [ RCX RDX 0 100 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x5c 0x51 0x64 } } [ [ RCX RDX 1 100 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x5c 0x91 0x64 } } [ [ RCX RDX 2 100 <indirect> RBX MOV ] { } make ] unit-test
+{ { 0x48 0x89 0x5c 0xd1 0x64 } } [ [ RCX RDX 3 100 <indirect> RBX MOV ] { } make ] unit-test
 
 ! r-rm / m-r sse instruction
-[ { 0x0f 0x10 0xc1 } ] [ [ XMM0 XMM1 MOVUPS ] { } make ] unit-test
-[ { 0x0f 0x10 0x01 } ] [ [ XMM0 ECX [] MOVUPS ] { } make ] unit-test
-[ { 0x0f 0x11 0x08 } ] [ [ EAX [] XMM1 MOVUPS ] { } make ] unit-test
+{ { 0x0f 0x10 0xc1 } } [ [ XMM0 XMM1 MOVUPS ] { } make ] unit-test
+{ { 0x0f 0x10 0x01 } } [ [ XMM0 ECX [] MOVUPS ] { } make ] unit-test
+{ { 0x0f 0x11 0x08 } } [ [ EAX [] XMM1 MOVUPS ] { } make ] unit-test
 
-[ { 0xf3 0x0f 0x10 0xc1 } ] [ [ XMM0 XMM1 MOVSS ] { } make ] unit-test
-[ { 0xf3 0x0f 0x10 0x01 } ] [ [ XMM0 ECX [] MOVSS ] { } make ] unit-test
-[ { 0xf3 0x0f 0x11 0x08 } ] [ [ EAX [] XMM1 MOVSS ] { } make ] unit-test
+{ { 0xf3 0x0f 0x10 0xc1 } } [ [ XMM0 XMM1 MOVSS ] { } make ] unit-test
+{ { 0xf3 0x0f 0x10 0x01 } } [ [ XMM0 ECX [] MOVSS ] { } make ] unit-test
+{ { 0xf3 0x0f 0x11 0x08 } } [ [ EAX [] XMM1 MOVSS ] { } make ] unit-test
 
-[ { 0x66 0x0f 0x6f 0xc1 } ] [ [ XMM0 XMM1 MOVDQA ] { } make ] unit-test
-[ { 0x66 0x0f 0x6f 0x01 } ] [ [ XMM0 ECX [] MOVDQA ] { } make ] unit-test
-[ { 0x66 0x0f 0x7f 0x08 } ] [ [ EAX [] XMM1 MOVDQA ] { } make ] unit-test
+{ { 0x66 0x0f 0x6f 0xc1 } } [ [ XMM0 XMM1 MOVDQA ] { } make ] unit-test
+{ { 0x66 0x0f 0x6f 0x01 } } [ [ XMM0 ECX [] MOVDQA ] { } make ] unit-test
+{ { 0x66 0x0f 0x7f 0x08 } } [ [ EAX [] XMM1 MOVDQA ] { } make ] unit-test
 
 ! r-rm only sse instruction
-[ { 0x66 0x0f 0x2e 0xc1 } ] [ [ XMM0 XMM1 UCOMISD ] { } make ] unit-test
-[ { 0x66 0x0f 0x2e 0x01 } ] [ [ XMM0 ECX [] UCOMISD ] { } make ] unit-test
+{ { 0x66 0x0f 0x2e 0xc1 } } [ [ XMM0 XMM1 UCOMISD ] { } make ] unit-test
+{ { 0x66 0x0f 0x2e 0x01 } } [ [ XMM0 ECX [] UCOMISD ] { } make ] unit-test
 [ [ EAX [] XMM1 UCOMISD ] { } make ] must-fail
-[ { 0x66 0x0f 0x38 0x2a 0x01 } ] [ [ XMM0 ECX [] MOVNTDQA ] { } make ] unit-test
+{ { 0x66 0x0f 0x38 0x2a 0x01 } } [ [ XMM0 ECX [] MOVNTDQA ] { } make ] unit-test
 
-[ { 0x66 0x48 0x0f 0x6e 0xc8 } ] [ [ XMM1 RAX MOVD ] { } make ] unit-test
-[ { 0x66 0x0f 0x6e 0xc8 } ] [ [ XMM1 EAX MOVD ] { } make ] unit-test
-[ { 0x66 0x48 0x0f 0x7e 0xc8 } ] [ [ RAX XMM1 MOVD ] { } make ] unit-test
-[ { 0x66 0x0f 0x7e 0xc8 } ] [ [ EAX XMM1 MOVD ] { } make ] unit-test
+{ { 0x66 0x48 0x0f 0x6e 0xc8 } } [ [ XMM1 RAX MOVD ] { } make ] unit-test
+{ { 0x66 0x0f 0x6e 0xc8 } } [ [ XMM1 EAX MOVD ] { } make ] unit-test
+{ { 0x66 0x48 0x0f 0x7e 0xc8 } } [ [ RAX XMM1 MOVD ] { } make ] unit-test
+{ { 0x66 0x0f 0x7e 0xc8 } } [ [ EAX XMM1 MOVD ] { } make ] unit-test
 
-[ { 0xf3 0x0f 0x7e 0x08 } ] [ [ XMM1 EAX [] MOVQ ] { } make ] unit-test
-[ { 0xf3 0x0f 0x7e 0x08 } ] [ [ XMM1 EAX [] MOVQ ] { } make ] unit-test
-[ { 0xf3 0x0f 0x7e 0xca } ] [ [ XMM1 XMM2 MOVQ ] { } make ] unit-test
+{ { 0xf3 0x0f 0x7e 0x08 } } [ [ XMM1 EAX [] MOVQ ] { } make ] unit-test
+{ { 0xf3 0x0f 0x7e 0x08 } } [ [ XMM1 EAX [] MOVQ ] { } make ] unit-test
+{ { 0xf3 0x0f 0x7e 0xca } } [ [ XMM1 XMM2 MOVQ ] { } make ] unit-test
 
 ! rm-r only sse instructions
-[ { 0x0f 0x2b 0x08 } ] [ [ EAX [] XMM1 MOVNTPS ] { } make ] unit-test
-[ { 0x66 0x0f 0xe7 0x08 } ] [ [ EAX [] XMM1 MOVNTDQ ] { } make ] unit-test
+{ { 0x0f 0x2b 0x08 } } [ [ EAX [] XMM1 MOVNTPS ] { } make ] unit-test
+{ { 0x66 0x0f 0xe7 0x08 } } [ [ EAX [] XMM1 MOVNTDQ ] { } make ] unit-test
 
 ! three-byte-opcode ssse3 instruction
-[ { 0x66 0x0f 0x38 0x02 0xc1 } ] [ [ XMM0 XMM1 PHADDD ] { } make ] unit-test
+{ { 0x66 0x0f 0x38 0x02 0xc1 } } [ [ XMM0 XMM1 PHADDD ] { } make ] unit-test
 
 ! int/sse conversion instruction
-[ { 0xf2 0x0f 0x2c 0xc0 } ] [ [ EAX XMM0 CVTTSD2SI ] { } make ] unit-test
-[ { 0xf2 0x48 0x0f 0x2c 0xc0 } ] [ [ RAX XMM0 CVTTSD2SI ] { } make ] unit-test
-[ { 0xf2 0x4c 0x0f 0x2c 0xe0 } ] [ [ R12 XMM0 CVTTSD2SI ] { } make ] unit-test
-[ { 0xf2 0x0f 0x2a 0xc0 } ] [ [ XMM0 EAX CVTSI2SD ] { } make ] unit-test
-[ { 0xf2 0x48 0x0f 0x2a 0xc0 } ] [ [ XMM0 RAX CVTSI2SD ] { } make ] unit-test
-[ { 0xf2 0x48 0x0f 0x2a 0xc1 } ] [ [ XMM0 RCX CVTSI2SD ] { } make ] unit-test
-[ { 0xf2 0x48 0x0f 0x2a 0xd9 } ] [ [ XMM3 RCX CVTSI2SD ] { } make ] unit-test
-[ { 0xf2 0x48 0x0f 0x2a 0xc0 } ] [ [ XMM0 RAX CVTSI2SD ] { } make ] unit-test
-[ { 0xf2 0x49 0x0f 0x2a 0xc4 } ] [ [ XMM0 R12 CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x0f 0x2c 0xc0 } } [ [ EAX XMM0 CVTTSD2SI ] { } make ] unit-test
+{ { 0xf2 0x48 0x0f 0x2c 0xc0 } } [ [ RAX XMM0 CVTTSD2SI ] { } make ] unit-test
+{ { 0xf2 0x4c 0x0f 0x2c 0xe0 } } [ [ R12 XMM0 CVTTSD2SI ] { } make ] unit-test
+{ { 0xf2 0x0f 0x2a 0xc0 } } [ [ XMM0 EAX CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x48 0x0f 0x2a 0xc0 } } [ [ XMM0 RAX CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x48 0x0f 0x2a 0xc1 } } [ [ XMM0 RCX CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x48 0x0f 0x2a 0xd9 } } [ [ XMM3 RCX CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x48 0x0f 0x2a 0xc0 } } [ [ XMM0 RAX CVTSI2SD ] { } make ] unit-test
+{ { 0xf2 0x49 0x0f 0x2a 0xc4 } } [ [ XMM0 R12 CVTSI2SD ] { } make ] unit-test
 
 ! 3-operand r-rm-imm sse instructions
-[ { 0x66 0x0f 0x70 0xc1 0x02 } ]
+{ { 0x66 0x0f 0x70 0xc1 0x02 } }
 [ [ XMM0 XMM1 2 PSHUFD ] { } make ] unit-test
 
-[ { 0x0f 0xc6 0xc1 0x02 } ]
+{ { 0x0f 0xc6 0xc1 0x02 } }
 [ [ XMM0 XMM1 2 SHUFPS ] { } make ] unit-test
 
 ! shufflers with arrays of indexes
-[ { 0x66 0x0f 0x70 0xc1 0x02 } ]
+{ { 0x66 0x0f 0x70 0xc1 0x02 } }
 [ [ XMM0 XMM1 { 2 0 0 0 } PSHUFD ] { } make ] unit-test
 
-[ { 0x0f 0xc6 0xc1 0x63 } ]
+{ { 0x0f 0xc6 0xc1 0x63 } }
 [ [ XMM0 XMM1 { 3 0 2 1 } SHUFPS ] { } make ] unit-test
 
-[ { 0x66 0x0f 0xc6 0xc1 0x2 } ]
+{ { 0x66 0x0f 0xc6 0xc1 0x2 } }
 [ [ XMM0 XMM1 { 0 1 } SHUFPD ] { } make ] unit-test
 
-[ { 0x66 0x0f 0xc6 0xc1 0x1 } ]
+{ { 0x66 0x0f 0xc6 0xc1 0x1 } }
 [ [ XMM0 XMM1 { 1 0 } SHUFPD ] { } make ] unit-test
 
 ! scalar register insert/extract sse instructions
-[ { 0x66 0x0f 0xc4 0xc1 0x02 } ] [ [ XMM0 ECX 2 PINSRW ] { } make ] unit-test
-[ { 0x66 0x0f 0xc4 0x04 0x11 0x03 } ] [ [ XMM0 ECX EDX [+] 3 PINSRW ] { } make ] unit-test
+{ { 0x66 0x0f 0xc4 0xc1 0x02 } } [ [ XMM0 ECX 2 PINSRW ] { } make ] unit-test
+{ { 0x66 0x0f 0xc4 0x04 0x11 0x03 } } [ [ XMM0 ECX EDX [+] 3 PINSRW ] { } make ] unit-test
 
-[ { 0x66 0x0f 0xc5 0xc1 0x02 } ] [ [ EAX XMM1 2 PEXTRW ] { } make ] unit-test
-[ { 0x66 0x0f 0x3a 0x15 0x08 0x02 } ] [ [ EAX [] XMM1 2 PEXTRW ] { } make ] unit-test
-[ { 0x66 0x0f 0x3a 0x15 0x14 0x08 0x03 } ] [ [ EAX ECX [+] XMM2 3 PEXTRW ] { } make ] unit-test
-[ { 0x66 0x0f 0x3a 0x14 0xc8 0x02 } ] [ [ EAX XMM1 2 PEXTRB ] { } make ] unit-test
-[ { 0x66 0x0f 0x3a 0x14 0x08 0x02 } ] [ [ EAX [] XMM1 2 PEXTRB ] { } make ] unit-test
+{ { 0x66 0x0f 0xc5 0xc1 0x02 } } [ [ EAX XMM1 2 PEXTRW ] { } make ] unit-test
+{ { 0x66 0x0f 0x3a 0x15 0x08 0x02 } } [ [ EAX [] XMM1 2 PEXTRW ] { } make ] unit-test
+{ { 0x66 0x0f 0x3a 0x15 0x14 0x08 0x03 } } [ [ EAX ECX [+] XMM2 3 PEXTRW ] { } make ] unit-test
+{ { 0x66 0x0f 0x3a 0x14 0xc8 0x02 } } [ [ EAX XMM1 2 PEXTRB ] { } make ] unit-test
+{ { 0x66 0x0f 0x3a 0x14 0x08 0x02 } } [ [ EAX [] XMM1 2 PEXTRB ] { } make ] unit-test
 
 ! sse shift instructions
-[ { 0x66 0x0f 0x71 0xd0 0x05 } ] [ [ XMM0 5 PSRLW ] { } make ] unit-test
-[ { 0x66 0x0f 0xd1 0xc1 } ] [ [ XMM0 XMM1 PSRLW ] { } make ] unit-test
+{ { 0x66 0x0f 0x71 0xd0 0x05 } } [ [ XMM0 5 PSRLW ] { } make ] unit-test
+{ { 0x66 0x0f 0xd1 0xc1 } } [ [ XMM0 XMM1 PSRLW ] { } make ] unit-test
 
 ! sse comparison instructions 
-[ { 0x66 0x0f 0xc2 0xc1 0x02 } ] [ [ XMM0 XMM1 CMPLEPD ] { } make ] unit-test
+{ { 0x66 0x0f 0xc2 0xc1 0x02 } } [ [ XMM0 XMM1 CMPLEPD ] { } make ] unit-test
 
 ! unique sse instructions
-[ { 0x0f 0x18 0x00 } ] [ [ EAX [] PREFETCHNTA ] { } make ] unit-test
-[ { 0x0f 0x18 0x08 } ] [ [ EAX [] PREFETCHT0 ] { } make ] unit-test
-[ { 0x0f 0x18 0x10 } ] [ [ EAX [] PREFETCHT1 ] { } make ] unit-test
-[ { 0x0f 0x18 0x18 } ] [ [ EAX [] PREFETCHT2 ] { } make ] unit-test
-[ { 0x0f 0xae 0x10 } ] [ [ EAX [] LDMXCSR ] { } make ] unit-test
-[ { 0x0f 0xae 0x18 } ] [ [ EAX [] STMXCSR ] { } make ] unit-test
+{ { 0x0f 0x18 0x00 } } [ [ EAX [] PREFETCHNTA ] { } make ] unit-test
+{ { 0x0f 0x18 0x08 } } [ [ EAX [] PREFETCHT0 ] { } make ] unit-test
+{ { 0x0f 0x18 0x10 } } [ [ EAX [] PREFETCHT1 ] { } make ] unit-test
+{ { 0x0f 0x18 0x18 } } [ [ EAX [] PREFETCHT2 ] { } make ] unit-test
+{ { 0x0f 0xae 0x10 } } [ [ EAX [] LDMXCSR ] { } make ] unit-test
+{ { 0x0f 0xae 0x18 } } [ [ EAX [] STMXCSR ] { } make ] unit-test
 
-[ { 0x0f 0xc3 0x08 } ] [ [ EAX [] ECX MOVNTI ] { } make ] unit-test
+{ { 0x0f 0xc3 0x08 } } [ [ EAX [] ECX MOVNTI ] { } make ] unit-test
 
-[ { 0x0f 0x50 0xc1 } ] [ [ EAX XMM1 MOVMSKPS ] { } make ] unit-test
-[ { 0x66 0x0f 0x50 0xc1 } ] [ [ EAX XMM1 MOVMSKPD ] { } make ] unit-test
+{ { 0x0f 0x50 0xc1 } } [ [ EAX XMM1 MOVMSKPS ] { } make ] unit-test
+{ { 0x66 0x0f 0x50 0xc1 } } [ [ EAX XMM1 MOVMSKPD ] { } make ] unit-test
 
-[ { 0xf3 0x0f 0xb8 0xc1 } ] [ [ EAX ECX POPCNT ] { } make ] unit-test
-[ { 0xf3 0x48 0x0f 0xb8 0xc1 } ] [ [ RAX RCX POPCNT ] { } make ] unit-test
-[ { 0xf3 0x0f 0xb8 0x01 } ] [ [ EAX ECX [] POPCNT ] { } make ] unit-test
-[ { 0xf3 0x0f 0xb8 0x04 0x11 } ] [ [ EAX ECX EDX [+] POPCNT ] { } make ] unit-test
+{ { 0xf3 0x0f 0xb8 0xc1 } } [ [ EAX ECX POPCNT ] { } make ] unit-test
+{ { 0xf3 0x48 0x0f 0xb8 0xc1 } } [ [ RAX RCX POPCNT ] { } make ] unit-test
+{ { 0xf3 0x0f 0xb8 0x01 } } [ [ EAX ECX [] POPCNT ] { } make ] unit-test
+{ { 0xf3 0x0f 0xb8 0x04 0x11 } } [ [ EAX ECX EDX [+] POPCNT ] { } make ] unit-test
 
-[ { 0xf2 0x0f 0x38 0xf0 0xc1 } ] [ [ EAX CL CRC32B ] { } make ] unit-test
-[ { 0xf2 0x0f 0x38 0xf0 0x01 } ] [ [ EAX ECX [] CRC32B ] { } make ] unit-test
-[ { 0xf2 0x0f 0x38 0xf1 0xc1 } ] [ [ EAX ECX CRC32 ] { } make ] unit-test
-[ { 0xf2 0x0f 0x38 0xf1 0x01 } ] [ [ EAX ECX [] CRC32 ] { } make ] unit-test
+{ { 0xf2 0x0f 0x38 0xf0 0xc1 } } [ [ EAX CL CRC32B ] { } make ] unit-test
+{ { 0xf2 0x0f 0x38 0xf0 0x01 } } [ [ EAX ECX [] CRC32B ] { } make ] unit-test
+{ { 0xf2 0x0f 0x38 0xf1 0xc1 } } [ [ EAX ECX CRC32 ] { } make ] unit-test
+{ { 0xf2 0x0f 0x38 0xf1 0x01 } } [ [ EAX ECX [] CRC32 ] { } make ] unit-test
 
 ! shifts
-[ { 0x48 0xd3 0xe0 } ] [ [ RAX CL SHL ] { } make ] unit-test
-[ { 0x48 0xd3 0xe1 } ] [ [ RCX CL SHL ] { } make ] unit-test
-[ { 0x48 0xd3 0xe8 } ] [ [ RAX CL SHR ] { } make ] unit-test
-[ { 0x48 0xd3 0xe9 } ] [ [ RCX CL SHR ] { } make ] unit-test
+{ { 0x48 0xd3 0xe0 } } [ [ RAX CL SHL ] { } make ] unit-test
+{ { 0x48 0xd3 0xe1 } } [ [ RCX CL SHL ] { } make ] unit-test
+{ { 0x48 0xd3 0xe8 } } [ [ RAX CL SHR ] { } make ] unit-test
+{ { 0x48 0xd3 0xe9 } } [ [ RCX CL SHR ] { } make ] unit-test
 
-[ { 0xc1 0xe0 0x05 } ] [ [ EAX 5 SHL ] { } make ] unit-test
-[ { 0xc1 0xe1 0x05 } ] [ [ ECX 5 SHL ] { } make ] unit-test
-[ { 0xc1 0xe8 0x05 } ] [ [ EAX 5 SHR ] { } make ] unit-test
-[ { 0xc1 0xe9 0x05 } ] [ [ ECX 5 SHR ] { } make ] unit-test
+{ { 0xc1 0xe0 0x05 } } [ [ EAX 5 SHL ] { } make ] unit-test
+{ { 0xc1 0xe1 0x05 } } [ [ ECX 5 SHL ] { } make ] unit-test
+{ { 0xc1 0xe8 0x05 } } [ [ EAX 5 SHR ] { } make ] unit-test
+{ { 0xc1 0xe9 0x05 } } [ [ ECX 5 SHR ] { } make ] unit-test
 
 ! multiplication
-[ { 0x4d 0x6b 0xc0 0x03 } ] [ [ R8 R8 3 IMUL3 ] { } make ] unit-test
-[ { 0x49 0x6b 0xc0 0x03 } ] [ [ RAX R8 3 IMUL3 ] { } make ] unit-test
-[ { 0x4c 0x6b 0xc0 0x03 } ] [ [ R8 RAX 3 IMUL3 ] { } make ] unit-test
-[ { 0x48 0x6b 0xc1 0x03 } ] [ [ RAX RCX 3 IMUL3 ] { } make ] unit-test
-[ { 0x48 0x69 0xc1 0x44 0x03 0x00 0x00 } ] [ [ RAX RCX 0x344 IMUL3 ] { } make ] unit-test
+{ { 0x4d 0x6b 0xc0 0x03 } } [ [ R8 R8 3 IMUL3 ] { } make ] unit-test
+{ { 0x49 0x6b 0xc0 0x03 } } [ [ RAX R8 3 IMUL3 ] { } make ] unit-test
+{ { 0x4c 0x6b 0xc0 0x03 } } [ [ R8 RAX 3 IMUL3 ] { } make ] unit-test
+{ { 0x48 0x6b 0xc1 0x03 } } [ [ RAX RCX 3 IMUL3 ] { } make ] unit-test
+{ { 0x48 0x69 0xc1 0x44 0x03 0x00 0x00 } } [ [ RAX RCX 0x344 IMUL3 ] { } make ] unit-test
 
 ! BT family instructions
-[ { 0x0f 0xba 0xe0 0x01 } ] [ [ EAX 1 BT ] { } make ] unit-test
-[ { 0x0f 0xba 0xf8 0x01 } ] [ [ EAX 1 BTC ] { } make ] unit-test
-[ { 0x0f 0xba 0xe8 0x01 } ] [ [ EAX 1 BTS ] { } make ] unit-test
-[ { 0x0f 0xba 0xf0 0x01 } ] [ [ EAX 1 BTR ] { } make ] unit-test
-[ { 0x48 0x0f 0xba 0xe0 0x01 } ] [ [ RAX 1 BT ] { } make ] unit-test
-[ { 0x0f 0xba 0x20 0x01 } ] [ [ EAX [] 1 BT ] { } make ] unit-test
-
-[ { 0x0f 0xa3 0xd8 } ] [ [ EAX EBX BT ] { } make ] unit-test
-[ { 0x0f 0xbb 0xd8 } ] [ [ EAX EBX BTC ] { } make ] unit-test
-[ { 0x0f 0xab 0xd8 } ] [ [ EAX EBX BTS ] { } make ] unit-test
-[ { 0x0f 0xb3 0xd8 } ] [ [ EAX EBX BTR ] { } make ] unit-test
-[ { 0x0f 0xa3 0x18 } ] [ [ EAX [] EBX BT ] { } make ] unit-test
+{ { 0x0f 0xba 0xe0 0x01 } } [ [ EAX 1 BT ] { } make ] unit-test
+{ { 0x0f 0xba 0xf8 0x01 } } [ [ EAX 1 BTC ] { } make ] unit-test
+{ { 0x0f 0xba 0xe8 0x01 } } [ [ EAX 1 BTS ] { } make ] unit-test
+{ { 0x0f 0xba 0xf0 0x01 } } [ [ EAX 1 BTR ] { } make ] unit-test
+{ { 0x48 0x0f 0xba 0xe0 0x01 } } [ [ RAX 1 BT ] { } make ] unit-test
+{ { 0x0f 0xba 0x20 0x01 } } [ [ EAX [] 1 BT ] { } make ] unit-test
+
+{ { 0x0f 0xa3 0xd8 } } [ [ EAX EBX BT ] { } make ] unit-test
+{ { 0x0f 0xbb 0xd8 } } [ [ EAX EBX BTC ] { } make ] unit-test
+{ { 0x0f 0xab 0xd8 } } [ [ EAX EBX BTS ] { } make ] unit-test
+{ { 0x0f 0xb3 0xd8 } } [ [ EAX EBX BTR ] { } make ] unit-test
+{ { 0x0f 0xa3 0x18 } } [ [ EAX [] EBX BT ] { } make ] unit-test
 
 ! x87 instructions
-[ { 0xD8 0xC5 } ] [ [ ST0 ST5 FADD ] { } make ] unit-test
-[ { 0xDC 0xC5 } ] [ [ ST5 ST0 FADD ] { } make ] unit-test
-[ { 0xD8 0x00 } ] [ [ ST0 EAX [] FADD ] { } make ] unit-test
+{ { 0xD8 0xC5 } } [ [ ST0 ST5 FADD ] { } make ] unit-test
+{ { 0xDC 0xC5 } } [ [ ST5 ST0 FADD ] { } make ] unit-test
+{ { 0xD8 0x00 } } [ [ ST0 EAX [] FADD ] { } make ] unit-test
 
-[ { 0xD9 0xC2 } ] [ [ ST2 FLD  ] { } make ] unit-test
-[ { 0xDD 0xD2 } ] [ [ ST2 FST  ] { } make ] unit-test
-[ { 0xDD 0xDA } ] [ [ ST2 FSTP ] { } make ] unit-test
+{ { 0xD9 0xC2 } } [ [ ST2 FLD  ] { } make ] unit-test
+{ { 0xDD 0xD2 } } [ [ ST2 FST  ] { } make ] unit-test
+{ { 0xDD 0xDA } } [ [ ST2 FSTP ] { } make ] unit-test
 
-[ { 15 183 195 } ] [ [ EAX BX MOVZX ] { } make ] unit-test
+{ { 15 183 195 } } [ [ EAX BX MOVZX ] { } make ] unit-test
 
 bootstrap-cell 4 = [
     [ { 100 199 5 0 0 0 0 123 0 0 0 } ] [ [ 0 [] FS 123 MOV ] { } make ] unit-test
index 5beefe283c156bc884b21ec36e600a232a8e0e9a..67087b5c9e58a23dc7ea8e44d8cac4ffa93bade8 100644 (file)
@@ -48,10 +48,10 @@ IN: csv.tests
 
 ! !!!!!!!!  other tests
 
-[ { { "Phil Dawes" } } ]
+{ { { "Phil Dawes" } } }
 [ "\"Phil Dawes\"" string>csv ] unit-test
 
-[ { { "1" "2" "3" } { "4" "5" "6" } } ]
+{ { { "1" "2" "3" } { "4" "5" "6" } } }
 [ "1,2,3\n4,5,6\n" string>csv ] unit-test
 
 "trims leading and trailing whitespace - n.b. this isn't really conformant, but lots of csv seems to assume this"
@@ -77,19 +77,19 @@ IN: csv.tests
 [ "\"fo\"\"o1\",bar1\n\"fo\no2\",\"b,ar2\"\n" ]
 [ { { "fo\"o1" "bar1" } { "fo\no2" "b,ar2" } } csv>string ] named-unit-test ! "
 
-[ { { "writing" "some" "csv" "tests" } } ]
+{ { { "writing" "some" "csv" "tests" } } }
 [
     "writing,some,csv,tests"
     "csv-test1-" unique-file utf8
     [ set-file-contents ] [ file>csv ] [ drop delete-file ] 2tri
 ] unit-test
 
-[ t ] [
+{ t } [
     { { "writing,some,csv,tests" } } dup "csv-test2-"
     unique-file utf8 [ csv>file ] [ file>csv ] 2bi =
 ] unit-test
 
-[ { { "hello" "" "" "" "goodbye" "" } } ]
+{ { { "hello" "" "" "" "goodbye" "" } } }
 [ "hello,,\"\",,goodbye," string>csv ] unit-test
 
 { { { "asd\"f\"" "asdf" } } } [ "asd\"f\",asdf" string>csv ] unit-test
@@ -101,11 +101,11 @@ IN: csv.tests
 ! FIXME: { { { "asd\"f\"" "asdf" } } } [ "\"asd\"\"\"f\",asdf" string>csv ] unit-test
 { { { "as,d\"f" "asdf" } } } [ "\"as,\"d\"\"\"\"f,asdf" string>csv ] unit-test
 
-[ { } ] [ "" string>csv ] unit-test
+{ { } } [ "" string>csv ] unit-test
 
-[
+{
     { { "Year" "Make" "Model" }
       { "1997" "Ford" "E350" }
     }
-]
+}
 [ "Year,Make,\"Model\"\r\n1997,Ford,E350" string>csv ] unit-test
index 334ff9e11a4c9bdcb490302583055b6a57635fa7..8fba5cf26449a8cf6b0884b89cb114b8ec9d0eb3 100644 (file)
@@ -11,10 +11,10 @@ USE: db.sqlite
 
 [ "pool-test.db" temp-file delete-file ] ignore-errors
 
-[ ] [ "pool-test.db" temp-file <sqlite-db> <db-pool> "pool" set ] unit-test
+{ } [ "pool-test.db" temp-file <sqlite-db> <db-pool> "pool" set ] unit-test
 
-[ ] [ "pool" get expired>> t >>expired drop ] unit-test
+{ } [ "pool" get expired>> t >>expired drop ] unit-test
 
-[ ] [ 1000 [ "pool" get [ ] with-pooled-db ] times ] unit-test
+{ } [ 1000 [ "pool" get [ ] with-pooled-db ] times ] unit-test
 
-[ ] [ "pool" get dispose ] unit-test
+{ } [ "pool" get dispose ] unit-test
index 66e1bd8b649bbdeff51e31e90e901fed9ce13382..57bb401854fbbe2b1c1f256c62334db498df8ce6 100644 (file)
@@ -11,7 +11,7 @@ IN: db.postgresql.tests
         "dont-exist" >>database ;
 
 ! Don't leak connections
-[ ] [
+{ } [
     2000 [ [ nonexistant-db [ ] with-db ] ignore-errors ] times
 ] unit-test
 
@@ -30,7 +30,7 @@ postgresql-template1-db [
     ! ] with-db
 ! ] [ sql-unknown-error? ] must-fail-with
 
-[ ] [
+{ } [
     postgresql-test-db [
         [ "drop table person;" sql-command ] ignore-errors
         "create table person (name varchar(30), country varchar(30));"
@@ -41,39 +41,39 @@ postgresql-template1-db [
     ] with-db
 ] unit-test
 
-[
+{
     {
         { "John" "America" }
         { "Jane" "New Zealand" }
     }
-] [
+} [
     postgresql-test-db [
         "select * from person" sql-query
     ] with-db
 ] unit-test
 
-[
+{
     {
         { "John" "America" }
         { "Jane" "New Zealand" }
     }
-] [ postgresql-test-db [ "select * from person" sql-query ] with-db ] unit-test
+} [ postgresql-test-db [ "select * from person" sql-query ] with-db ] unit-test
 
-[
-] [
+{
+} [
     postgresql-test-db [
         "insert into person(name, country) values('Jimmy', 'Canada')"
         sql-command
     ] with-db
 ] unit-test
 
-[
+{
     {
         { "John" "America" }
         { "Jane" "New Zealand" }
         { "Jimmy" "Canada" }
     }
-] [ postgresql-test-db [ "select * from person" sql-query ] with-db ] unit-test
+} [ postgresql-test-db [ "select * from person" sql-query ] with-db ] unit-test
 
 [
     postgresql-test-db [
@@ -85,14 +85,14 @@ postgresql-template1-db [
     ] with-db
 ] must-fail
 
-[ 3 ] [
+{ 3 } [
     postgresql-test-db [
         "select * from person" sql-query length
     ] with-db
 ] unit-test
 
-[
-] [
+{
+} [
     postgresql-test-db [
         [
             "insert into person(name, country) values('Jose', 'Mexico')"
@@ -103,7 +103,7 @@ postgresql-template1-db [
     ] with-db
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     postgresql-test-db [
         "select * from person" sql-query length
     ] with-db
index bb2eb267aeae44345cf56b7528554a585c002e54..46ce17bfdefd70ac43156bb23253edc50ae5b958 100644 (file)
@@ -7,9 +7,9 @@ IN: db.sqlite.tests
 : db-path ( -- path ) "test-" cell number>string ".db" 3append temp-file ;
 : test.db ( -- sqlite-db ) db-path <sqlite-db> ;
 
-[ ] [ [ db-path delete-file ] ignore-errors ] unit-test
+{ } [ [ db-path delete-file ] ignore-errors ] unit-test
 
-[ ] [
+{ } [
     test.db [
         "create table person (name varchar(30), country varchar(30))" sql-command
         "insert into person values('John', 'America')" sql-command
@@ -18,29 +18,29 @@ IN: db.sqlite.tests
 ] unit-test
 
 
-[ { { "John" "America" } { "Jane" "New Zealand" } } ] [
+{ { { "John" "America" } { "Jane" "New Zealand" } } } [
     test.db [
         "select * from person" sql-query
     ] with-db
 ] unit-test
 
-[ { { "1" "John" "America" } { "2" "Jane" "New Zealand" } } ]
+{ { { "1" "John" "America" } { "2" "Jane" "New Zealand" } } }
 [ test.db [ "select rowid, * from person" sql-query ] with-db ] unit-test
 
-[ ] [
+{ } [
     test.db [
         "insert into person(name, country) values('Jimmy', 'Canada')"
         sql-command
     ] with-db
 ] unit-test
 
-[
+{
     {
         { "1" "John" "America" }
         { "2" "Jane" "New Zealand" }
         { "3" "Jimmy" "Canada" }
     }
-] [ test.db [ "select rowid, * from person" sql-query ] with-db ] unit-test
+} [ test.db [ "select rowid, * from person" sql-query ] with-db ] unit-test
 
 [
     test.db [
@@ -52,13 +52,13 @@ IN: db.sqlite.tests
     ] with-db
 ] must-fail
 
-[ 3 ] [
+{ 3 } [
     test.db [
         "select * from person" sql-query length
     ] with-db
 ] unit-test
 
-[ ] [
+{ } [
     test.db [
         [
             "insert into person(name, country) values('Jose', 'Mexico')"
@@ -69,7 +69,7 @@ IN: db.sqlite.tests
     ] with-db
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     test.db [
         "select * from person" sql-query length
     ] with-db
@@ -85,7 +85,7 @@ things "THINGS" {
     { "two" "TWO" INTEGER +not-null+ }
 } define-persistent
 
-[ { { 0 0 } { 0 1 } { 1 0 } { 1 1 } } ] [
+{ { { 0 0 } { 0 1 } { 1 0 } { 1 1 } } } [
     test.db [
        things create-table
         0 0 things boa insert-tuple
@@ -110,7 +110,7 @@ hi "HELLO" {
     { "try" "RETHROW" INTEGER { +foreign-id+ foo "SOMETHING" } }
 } define-persistent
 
-[ T{ foo { slot 1 } } T{ hi { bye 1 } { try 1 } } ] [
+{ T{ foo { slot 1 } } T{ hi { bye 1 } { try 1 } } } [
     test.db [
         foo create-table
         hi create-table
@@ -146,7 +146,7 @@ watch "WATCH" {
         { +foreign-id+ show "ID" } }
 } define-persistent
 
-[ T{ user { username "littledan" } { data "foo" } } ] [
+{ T{ user { username "littledan" } { data "foo" } } } [
     test.db [
         user create-table
         show create-table
index 6b39a7e218c2a74c40e90506a237b52a0a4213ea..596760dffc529aad9bc6f3ec3de34caa99ef990f 100644 (file)
@@ -3,5 +3,5 @@
 USING: tools.test db.tester ;
 IN: db.tester.tests
 
-[ ] [ sqlite-test-db db-tester ] unit-test
-[ ] [ sqlite-test-db db-tester2 ] unit-test
+{ } [ sqlite-test-db db-tester ] unit-test
+{ } [ sqlite-test-db db-tester2 ] unit-test
index 5f96ae9b433d3e9570edb037912893a388640729..16a41798e2601a001e97df86a306db051472385a 100644 (file)
@@ -2,12 +2,12 @@ USING: accessors alien.syntax continuations debugger kernel
 namespaces tools.test ;
 IN: debugger.tests
 
-[ ] [ [ drop ] [ error. ] recover ] unit-test
+{ } [ [ drop ] [ error. ] recover ] unit-test
 
-[ f ] [ { } vm-error? ] unit-test
-[ f ] [ { "A" "B" } vm-error? ] unit-test
+{ f } [ { } vm-error? ] unit-test
+{ f } [ { "A" "B" } vm-error? ] unit-test
 
-[ ] [
+{ } [
 T{ test-failure
     { error
         {
@@ -40,6 +40,6 @@ T{ test-failure
 } error.
 ] unit-test
 
-[ "foo" { 1 2 3 "foo" } ] [
+{ "foo" { 1 2 3 "foo" } } [
     [ 1 2 3 "foo" throw ] [ ] recover error-continuation get data>>
 ] unit-test
index 28fbabf66fcff4cd95760827d35f7b0c366e7664..9c79c5e8e511fb0e62d64405c1a96a9eb15ff03b 100644 (file)
@@ -28,18 +28,18 @@ PROTOCOL: bee bing ;
 CONSULT: hello goodbye those>> ;
 M: hello bing hello-test ;
 
-[ 1 { t 1 0 } ] [ 1 0 <hello> [ foo ] [ bar ] bi ] unit-test
-[ { t 1 0 } ] [ 1 0 <hello> bing ] unit-test
-[ 1 ] [ 1 0 <hello> f <goodbye> foo ] unit-test
-[ { t 1 0 } ] [ 1 0 <hello> f <goodbye> bar ] unit-test
-[ 3 ] [ 1 0 <hello> 2 whoa ] unit-test
-[ 3 ] [ 1 0 <hello> f <goodbye> 2 whoa ] unit-test
+{ 1 { t 1 0 } } [ 1 0 <hello> [ foo ] [ bar ] bi ] unit-test
+{ { t 1 0 } } [ 1 0 <hello> bing ] unit-test
+{ 1 } [ 1 0 <hello> f <goodbye> foo ] unit-test
+{ { t 1 0 } } [ 1 0 <hello> f <goodbye> bar ] unit-test
+{ 3 } [ 1 0 <hello> 2 whoa ] unit-test
+{ 3 } [ 1 0 <hello> f <goodbye> 2 whoa ] unit-test
 
-[ ] [ 3 [ "USING: accessors delegate ; IN: delegate.tests CONSULT: baz goodbye these>> ;" eval( -- ) ] times ] unit-test
-[ H{ { goodbye T{ consultation f baz goodbye [ these>> ] } } } ] [ baz protocol-consult ] unit-test
-[ H{ } ] [ bee protocol-consult ] unit-test
+{ } [ 3 [ "USING: accessors delegate ; IN: delegate.tests CONSULT: baz goodbye these>> ;" eval( -- ) ] times ] unit-test
+{ H{ { goodbye T{ consultation f baz goodbye [ these>> ] } } } } [ baz protocol-consult ] unit-test
+{ H{ } } [ bee protocol-consult ] unit-test
 
-[ "USING: delegate ;\nIN: delegate.tests\nPROTOCOL: baz foo bar { whoa 1 } ; inline\n" ] [ [ baz see ] with-string-writer ] unit-test
+{ "USING: delegate ;\nIN: delegate.tests\nPROTOCOL: baz foo bar { whoa 1 } ; inline\n" } [ [ baz see ] with-string-writer ] unit-test
 
 GENERIC: one ( a -- b )
 M: integer one ;
@@ -58,28 +58,28 @@ C: <hey> hey
 CONSULT: alpha hey value>> 1 + ;
 CONSULT: beta hey value>> 1 - ;
 
-[ 2 ] [ 1 <hey> one ] unit-test
-[ 2 ] [ 1 <hey> two ] unit-test
-[ 0 ] [ 1 <hey> three ] unit-test
-[ { hey } ] [ alpha protocol-users ] unit-test
-[ { hey } ] [ beta protocol-users ] unit-test
-[ ] [ "USE: delegate IN: delegate.tests PROTOCOL: alpha one ;" eval( -- ) ] unit-test
-[ f ] [ hey \ two ?lookup-method ] unit-test
-[ f ] [ hey \ four ?lookup-method ] unit-test
-[ ] [ "USE: delegate IN: delegate.tests PROTOCOL: beta two three four ;" eval( -- ) ] unit-test
-[ { hey } ] [ alpha protocol-users ] unit-test
-[ { hey } ] [ beta protocol-users ] unit-test
-[ 2 ] [ 1 <hey> one ] unit-test
-[ 0 ] [ 1 <hey> two ] unit-test
-[ 0 ] [ 1 <hey> three ] unit-test
-[ 0 ] [ 1 <hey> four ] unit-test
-[ ] [ "USING: math accessors delegate ; IN: delegate.tests CONSULT: beta hey value>> 2 - ;" eval( -- ) ] unit-test
-[ 2 ] [ 1 <hey> one ] unit-test
-[ -1 ] [ 1 <hey> two ] unit-test
-[ -1 ] [ 1 <hey> three ] unit-test
-[ -1 ] [ 1 <hey> four ] unit-test
-[ ] [ "IN: delegate.tests FORGET: alpha" eval( -- ) ] unit-test
-[ f ] [ hey \ one ?lookup-method ] unit-test
+{ 2 } [ 1 <hey> one ] unit-test
+{ 2 } [ 1 <hey> two ] unit-test
+{ 0 } [ 1 <hey> three ] unit-test
+{ { hey } } [ alpha protocol-users ] unit-test
+{ { hey } } [ beta protocol-users ] unit-test
+{ } [ "USE: delegate IN: delegate.tests PROTOCOL: alpha one ;" eval( -- ) ] unit-test
+{ f } [ hey \ two ?lookup-method ] unit-test
+{ f } [ hey \ four ?lookup-method ] unit-test
+{ } [ "USE: delegate IN: delegate.tests PROTOCOL: beta two three four ;" eval( -- ) ] unit-test
+{ { hey } } [ alpha protocol-users ] unit-test
+{ { hey } } [ beta protocol-users ] unit-test
+{ 2 } [ 1 <hey> one ] unit-test
+{ 0 } [ 1 <hey> two ] unit-test
+{ 0 } [ 1 <hey> three ] unit-test
+{ 0 } [ 1 <hey> four ] unit-test
+{ } [ "USING: math accessors delegate ; IN: delegate.tests CONSULT: beta hey value>> 2 - ;" eval( -- ) ] unit-test
+{ 2 } [ 1 <hey> one ] unit-test
+{ -1 } [ 1 <hey> two ] unit-test
+{ -1 } [ 1 <hey> three ] unit-test
+{ -1 } [ 1 <hey> four ] unit-test
+{ } [ "IN: delegate.tests FORGET: alpha" eval( -- ) ] unit-test
+{ f } [ hey \ one ?lookup-method ] unit-test
 
 TUPLE: slot-protocol-test-1 a b ;
 TUPLE: slot-protocol-test-2 < slot-protocol-test-1 { c integer } ;
@@ -88,7 +88,7 @@ TUPLE: slot-protocol-test-3 d ;
 
 CONSULT: slot-protocol-test-2 slot-protocol-test-3 d>> ;
 
-[ "a" "b" 5 ] [
+{ "a" "b" 5 } [
     T{ slot-protocol-test-3 f T{ slot-protocol-test-2 f "a" "b" 5 } }
     [ a>> ] [ b>> ] [ c>> ] tri
 ] unit-test
@@ -99,7 +99,7 @@ TUPLE: slot-protocol-test-5 { a-read-only-slot read-only } ;
 
 CONSULT: slot-protocol-test-5 slot-protocol-test-4 x>> ;
 
-[ "hey" ] [
+{ "hey" } [
     "hey" slot-protocol-test-5 boa slot-protocol-test-4 boa
     a-read-only-slot>>
 ] unit-test
@@ -108,24 +108,24 @@ GENERIC: do-me ( x -- )
 
 M: f do-me drop ;
 
-[ ] [ f do-me ] unit-test
+{ } [ f do-me ] unit-test
 
 TUPLE: a-tuple ;
 
 PROTOCOL: silly-protocol do-me ;
 
 ! Replacing a method definition with a consultation would cause problems
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
     USE: kernel
 
     M: a-tuple do-me drop ;" <string-reader> "delegate-test" parse-stream
 ] unit-test
 
-[ ] [ T{ a-tuple } do-me ] unit-test
+{ } [ T{ a-tuple } do-me ] unit-test
 
 ! Change method definition to consultation
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
     USE: kernel
     USE: delegate
@@ -133,10 +133,10 @@ PROTOCOL: silly-protocol do-me ;
 ] unit-test
 
 ! Method should be there
-[ ] [ T{ a-tuple } do-me ] unit-test
+{ } [ T{ a-tuple } do-me ] unit-test
 
 ! Now try removing the consultation
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests" <string-reader> "delegate-test" parse-stream
 ] unit-test
 
@@ -147,9 +147,9 @@ PROTOCOL: silly-protocol do-me ;
 DEFER: slot-protocol-test-3
 SLOT: y
 
-[ f ] [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
+{ f } [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
 USING: accessors delegate ;
 TUPLE: slot-protocol-test-3 x ;
@@ -157,9 +157,9 @@ CONSULT: y>> slot-protocol-test-3 x>> ;"
     <string-reader> "delegate-test-1" parse-stream
 ] unit-test
 
-[ t ] [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
+{ t } [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
 TUPLE: slot-protocol-test-3 x y ;"
     <string-reader> "delegate-test-1" parse-stream
@@ -167,10 +167,10 @@ TUPLE: slot-protocol-test-3 x y ;"
 
 ! We now have a real accessor for the y slot; we don't want it to
 ! get lost
-[ t ] [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
+{ t } [ \ slot-protocol-test-3 \ y>> ?lookup-method >boolean ] unit-test
 
 ! We want to be able to override methods after consultation
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
     USING: delegate kernel sequences delegate.protocols accessors ;
     TUPLE: override-method-test seq ;
@@ -182,7 +182,7 @@ TUPLE: slot-protocol-test-3 x y ;"
 DEFER: seq-delegate
 
 ! See if removing a consultation updates protocol-consult word prop
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
     USING: accessors delegate delegate.protocols ;
     TUPLE: seq-delegate seq ;
@@ -190,20 +190,20 @@ DEFER: seq-delegate
     <string-reader> "remove-consult-test" parse-stream
 ] unit-test
 
-[ t ] [
+{ t } [
     seq-delegate
     sequence-protocol \ protocol-consult word-prop
     key?
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: delegate.tests
     USING: delegate delegate.protocols ;
     TUPLE: seq-delegate seq ;"
     <string-reader> "remove-consult-test" parse-stream
 ] unit-test
 
-[ f ] [
+{ f } [
     seq-delegate
     sequence-protocol \ protocol-consult word-prop
     key?
@@ -221,5 +221,5 @@ M: integer broadcastable 1 + , ;
 [ "USING: accessors delegate ; IN: delegate.tests BROADCAST: nonbroadcastable broadcaster targets>> ;" eval( -- ) ]
 [ error>> broadcast-words-must-have-no-outputs? ] must-fail-with
 
-[ { 2 3 4 } ]
+{ { 2 3 4 } }
 [ { 1 2 3 } broadcaster boa [ broadcastable ] { } make ] unit-test
index 92fd2b26ce2edafdf2b96ef826823738936157c9..e34f9e3b72ff21ca449246d7caad5db9ffd82973 100644 (file)
@@ -6,11 +6,11 @@ SYMBOL: +blah+
 
 SYMBOL: uf
 
-[ ] [
+{ } [
     <disjoint-set> uf set
     +blah+ uf get add-atom
     19026 uf get add-atom
     19026 +blah+ uf get equate
 ] unit-test
 
-[ 2 ] [ 19026 uf get equiv-set-size ] unit-test
+{ 2 } [ 19026 uf get equiv-set-size ] unit-test
index 5c650adabe7bf07a5c15ce2b7c27f0ce0c48e506..eaf4924f632a09780cc1744c058000ee0fd7ba5e 100644 (file)
@@ -2,103 +2,103 @@ USING: accessors arrays classes deques dlists kernel locals
 math sequences tools.test ;
 IN: dlists.tests
 
-[ t ] [ <dlist> deque-empty? ] unit-test
+{ t } [ <dlist> deque-empty? ] unit-test
 
-[ T{ dlist f T{ dlist-node f f f 1 } T{ dlist-node f f f 1 } } ]
+{ T{ dlist f T{ dlist-node f f f 1 } T{ dlist-node f f f 1 } } }
 [ <dlist> 1 over push-front ] unit-test
 
 ! Make sure empty lists are empty
-[ t ] [ <dlist> deque-empty? ] unit-test
-[ f ] [ <dlist> 1 over push-front deque-empty? ] unit-test
-[ f ] [ <dlist> 1 over push-back deque-empty? ] unit-test
-
-[ 1 ] [ <dlist> 1 over push-front pop-front ] unit-test
-[ 1 ] [ <dlist> 1 over push-front pop-back ] unit-test
-[ 1 ] [ <dlist> 1 over push-back pop-front ] unit-test
-[ 1 ] [ <dlist> 1 over push-back pop-back ] unit-test
-[ T{ dlist f f f } ] [ <dlist> 1 over push-front dup pop-front* ] unit-test
-[ T{ dlist f f f } ] [ <dlist> 1 over push-front dup pop-back* ] unit-test
-[ T{ dlist f f f } ] [ <dlist> 1 over push-back dup pop-front* ] unit-test
-[ T{ dlist f f f } ] [ <dlist> 1 over push-back dup pop-back* ] unit-test
+{ t } [ <dlist> deque-empty? ] unit-test
+{ f } [ <dlist> 1 over push-front deque-empty? ] unit-test
+{ f } [ <dlist> 1 over push-back deque-empty? ] unit-test
+
+{ 1 } [ <dlist> 1 over push-front pop-front ] unit-test
+{ 1 } [ <dlist> 1 over push-front pop-back ] unit-test
+{ 1 } [ <dlist> 1 over push-back pop-front ] unit-test
+{ 1 } [ <dlist> 1 over push-back pop-back ] unit-test
+{ T{ dlist f f f } } [ <dlist> 1 over push-front dup pop-front* ] unit-test
+{ T{ dlist f f f } } [ <dlist> 1 over push-front dup pop-back* ] unit-test
+{ T{ dlist f f f } } [ <dlist> 1 over push-back dup pop-front* ] unit-test
+{ T{ dlist f f f } } [ <dlist> 1 over push-back dup pop-back* ] unit-test
 
 ! Test the prev,next links for two nodes
-[ f ] [
+{ f } [
     <dlist> 1 over push-back 2 over push-back
     front>> prev>>
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     <dlist> 1 over push-back 2 over push-back
     front>> next>> obj>>
 ] unit-test
 
-[ 1 ] [
+{ 1 } [
     <dlist> 1 over push-back 2 over push-back
     front>> next>> prev>> obj>>
 ] unit-test
 
-[ f ] [
+{ f } [
     <dlist> 1 over push-back 2 over push-back
     front>> next>> next>>
 ] unit-test
 
-[ f f ] [ <dlist> [ 1 = ] dlist-find ] unit-test
-[ 1 t ] [ <dlist> 1 over push-back [ 1 = ] dlist-find ] unit-test
-[ f f ] [ <dlist> 1 over push-back [ 2 = ] dlist-find ] unit-test
-[ f ] [ <dlist> 1 over push-back [ 2 = ] dlist-any? ] unit-test
-[ t ] [ <dlist> 1 over push-back [ 1 = ] dlist-any? ] unit-test
+{ f f } [ <dlist> [ 1 = ] dlist-find ] unit-test
+{ 1 t } [ <dlist> 1 over push-back [ 1 = ] dlist-find ] unit-test
+{ f f } [ <dlist> 1 over push-back [ 2 = ] dlist-find ] unit-test
+{ f } [ <dlist> 1 over push-back [ 2 = ] dlist-any? ] unit-test
+{ t } [ <dlist> 1 over push-back [ 1 = ] dlist-any? ] unit-test
 
-[ 1 ] [ <dlist> 1 over push-back [ 1 = ] delete-node-if ] unit-test
-[ t ] [ <dlist> 1 over push-back dup [ 1 = ] delete-node-if drop deque-empty? ] unit-test
-[ t ] [ <dlist> 1 over push-back dup [ 1 = ] delete-node-if drop deque-empty? ] unit-test
+{ 1 } [ <dlist> 1 over push-back [ 1 = ] delete-node-if ] unit-test
+{ t } [ <dlist> 1 over push-back dup [ 1 = ] delete-node-if drop deque-empty? ] unit-test
+{ t } [ <dlist> 1 over push-back dup [ 1 = ] delete-node-if drop deque-empty? ] unit-test
 
-[ t ] [ <dlist> 4 over push-back 5 over push-back [ obj>> 4 = ] dlist-find-node class-of dlist-node = ] unit-test
-[ t ] [ <dlist> 4 over push-back 5 over push-back [ obj>> 5 = ] dlist-find-node class-of dlist-node = ] unit-test
-[ t ] [ <dlist> 4 over push-back 5 over push-back* [ = ] curry dlist-find-node class-of dlist-node = ] unit-test
-[ ] [ <dlist> 4 over push-back 5 over push-back [ drop ] dlist-each ] unit-test
+{ t } [ <dlist> 4 over push-back 5 over push-back [ obj>> 4 = ] dlist-find-node class-of dlist-node = ] unit-test
+{ t } [ <dlist> 4 over push-back 5 over push-back [ obj>> 5 = ] dlist-find-node class-of dlist-node = ] unit-test
+{ t } [ <dlist> 4 over push-back 5 over push-back* [ = ] curry dlist-find-node class-of dlist-node = ] unit-test
+{ } [ <dlist> 4 over push-back 5 over push-back [ drop ] dlist-each ] unit-test
 
-[ f ] [ <dlist> ?peek-front ] unit-test
-[ 1 ] [ <dlist> 1 over push-front ?peek-front ] unit-test
-[ f ] [ <dlist> ?peek-back ] unit-test
-[ 1 ] [ <dlist> 1 over push-back ?peek-back ] unit-test
+{ f } [ <dlist> ?peek-front ] unit-test
+{ 1 } [ <dlist> 1 over push-front ?peek-front ] unit-test
+{ f } [ <dlist> ?peek-back ] unit-test
+{ 1 } [ <dlist> 1 over push-back ?peek-back ] unit-test
 
 [ <dlist> peek-front ] [ empty-deque? ] must-fail-with
 [ <dlist> peek-back ] [ empty-deque? ] must-fail-with
 [ <dlist> pop-front ] [ empty-deque? ] must-fail-with
 [ <dlist> pop-back ] [ empty-deque? ] must-fail-with
 
-[ t ] [ <dlist> 3 over push-front 4 over push-back 3 swap deque-member? ] unit-test
+{ t } [ <dlist> 3 over push-front 4 over push-back 3 swap deque-member? ] unit-test
 
-[ f ] [ <dlist> 3 over push-front 4 over push-back -1 swap deque-member? ] unit-test
+{ f } [ <dlist> 3 over push-front 4 over push-back -1 swap deque-member? ] unit-test
 
-[ f ] [ <dlist> 0 swap deque-member? ] unit-test
+{ f } [ <dlist> 0 swap deque-member? ] unit-test
 
 ! Make sure clone does the right thing
-[ V{ 2 1 } V{ 2 1 3 } ] [
+{ V{ 2 1 } V{ 2 1 3 } } [
     <dlist> 1 over push-front 2 over push-front
     dup clone 3 over push-back
     [ dlist>sequence ] bi@
 ] unit-test
 
-[ V{ f 3 1 f } ] [ <dlist> 1 over push-front 3 over push-front f over push-front f over push-back dlist>sequence ] unit-test
+{ V{ f 3 1 f } } [ <dlist> 1 over push-front 3 over push-front f over push-front f over push-back dlist>sequence ] unit-test
 
-[ V{ } ] [ <dlist> dlist>sequence ] unit-test
+{ V{ } } [ <dlist> dlist>sequence ] unit-test
 
-[ V{ 0 2 4 } ] [ <dlist> { 0 1 2 3 4 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
-[ V{ 2 4 } ] [ <dlist> { 1 2 3 4 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
-[ V{ 2 4 } ] [ <dlist> { 1 2 3 4 5 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
-[ V{ 0 2 4 } ] [ <dlist> { 0 1 2 3 4 5 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
+{ V{ 0 2 4 } } [ <dlist> { 0 1 2 3 4 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
+{ V{ 2 4 } } [ <dlist> { 1 2 3 4 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
+{ V{ 2 4 } } [ <dlist> { 1 2 3 4 5 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
+{ V{ 0 2 4 } } [ <dlist> { 0 1 2 3 4 5 } over push-all-back [ even? ] dlist-filter dlist>sequence ] unit-test
 
-[ t ] [ DL{ } DL{ } = ] unit-test
-[ t ] [ DL{ 1 } DL{ 1 } = ] unit-test
-[ t ] [ DL{ 1 2 } DL{ 1 2 } = ] unit-test
-[ t ] [ DL{ 1 1 } DL{ 1 1 } = ] unit-test
-[ f ] [ DL{ 1 2 3 } DL{ 1 2 } = ] unit-test
-[ f ] [ DL{ 1 2 } DL{ 1 2 3 } = ] unit-test
-[ f ] [ DL{ } DL{ 1 } = ] unit-test
-[ f ] [ DL{ f } DL{ 1 } = ] unit-test
-[ f ] [ f DL{ } = ] unit-test
-[ f ] [ DL{ } f = ] unit-test
+{ t } [ DL{ } DL{ } = ] unit-test
+{ t } [ DL{ 1 } DL{ 1 } = ] unit-test
+{ t } [ DL{ 1 2 } DL{ 1 2 } = ] unit-test
+{ t } [ DL{ 1 1 } DL{ 1 1 } = ] unit-test
+{ f } [ DL{ 1 2 3 } DL{ 1 2 } = ] unit-test
+{ f } [ DL{ 1 2 } DL{ 1 2 3 } = ] unit-test
+{ f } [ DL{ } DL{ 1 } = ] unit-test
+{ f } [ DL{ f } DL{ 1 } = ] unit-test
+{ f } [ f DL{ } = ] unit-test
+{ f } [ DL{ } f = ] unit-test
 
 TUPLE: my-node < dlist-link { obj fixnum } ;
 
@@ -106,18 +106,18 @@ TUPLE: my-node < dlist-link { obj fixnum } ;
     my-node new
         swap >>obj ; inline
 
-[ V{ 1 } ] [ <dlist> 1 <my-node> over push-node-front dlist>sequence ] unit-test
-[ V{ 2 1 } ] [ <dlist> 1 <my-node> over push-node-front 2 <my-node> over push-node-front dlist>sequence ] unit-test
+{ V{ 1 } } [ <dlist> 1 <my-node> over push-node-front dlist>sequence ] unit-test
+{ V{ 2 1 } } [ <dlist> 1 <my-node> over push-node-front 2 <my-node> over push-node-front dlist>sequence ] unit-test
 
-[ V{ 1 } ] [ <dlist> 1 <my-node> over push-node-back dlist>sequence ] unit-test
-[ V{ 1 2 } ] [ <dlist> 1 <my-node> over push-node-back 2 <my-node> over push-node-back dlist>sequence ] unit-test
-[ V{ 1 2 3 } ] [ <dlist> 1 <my-node> over push-node-back 2 <my-node> over push-node-back 3 <my-node> over push-node-back dlist>sequence ] unit-test
+{ V{ 1 } } [ <dlist> 1 <my-node> over push-node-back dlist>sequence ] unit-test
+{ V{ 1 2 } } [ <dlist> 1 <my-node> over push-node-back 2 <my-node> over push-node-back dlist>sequence ] unit-test
+{ V{ 1 2 3 } } [ <dlist> 1 <my-node> over push-node-back 2 <my-node> over push-node-back 3 <my-node> over push-node-back dlist>sequence ] unit-test
 
 : assert-links ( dlist-node -- )
     [ prev>> ] [ next>> ] bi 2array { f f } assert= ;
 
-[ V{ } ] [ <dlist> 1 <my-node> over push-node-back [ [ back>> ] [ ] bi delete-node ] [ ] bi dlist>sequence ] unit-test
-[ V{ 1 2 } t ] [| |
+{ V{ } } [ <dlist> 1 <my-node> over push-node-back [ [ back>> ] [ ] bi delete-node ] [ ] bi dlist>sequence ] unit-test
+{ V{ 1 2 } t } [| |
     <dlist> :> dl
         1 <my-node> :> n1 n1 dl push-node-back
         2 <my-node> :> n2 n2 dl push-node-back
@@ -127,7 +127,7 @@ TUPLE: my-node < dlist-link { obj fixnum } ;
     dl dlist>sequence dup >dlist dl =
 ] unit-test
 
-[ V{ 1 3 } t ] [| |
+{ V{ 1 3 } t } [| |
     <dlist> :> dl
         1 <my-node> :> n1 n1 dl push-node-back
         2 <my-node> :> n2 n2 dl push-node-back
@@ -137,7 +137,7 @@ TUPLE: my-node < dlist-link { obj fixnum } ;
     dl dlist>sequence dup >dlist dl =
 ] unit-test
 
-[ V{ 2 3 } t ] [| |
+{ V{ 2 3 } t } [| |
     <dlist> :> dl
         1 <my-node> :> n1 n1 dl push-node-back
         2 <my-node> :> n2 n2 dl push-node-back
index 41d93c889ec4acf9c5f32b56f85f4a7f53337014..2bbab6db971ebf6beef8d6b10f5dc79b009cd841 100644 (file)
@@ -4,28 +4,28 @@ IN: documents.tests
 
 ! Tests
 
-[ { } ] [
+{ { } } [
     [
         { 1 10 }
         { 1 10 } [ , "HI" , ] each-line
     ] { } make
 ] unit-test
 
-[ { 1 "HI" } ] [
+{ { 1 "HI" } } [
     [
         { 1 10 }
         { 1 11 } [ , "HI" , ] each-line
     ] { } make
 ] unit-test
 
-[ { 1 "HI" 2 "HI" } ] [
+{ { 1 "HI" 2 "HI" } } [
     [
         { 1 10 }
         { 2 11 } [ , "HI" , ] each-line
     ] { } make
 ] unit-test
 
-[ { { t f 1 } { t f 2 } } ] [
+{ { { t f 1 } { t f 2 } } } [
     [
         { 1 10 } { 2 11 }
         t f
@@ -33,31 +33,31 @@ IN: documents.tests
     ] { } make
 ] unit-test
 
-[ { 10 4 } ] [ { "a" } { 10 3 } text+loc ] unit-test
-[ { 10 4 } ] [ { "a" } { 10 3 } text+loc ] unit-test
+{ { 10 4 } } [ { "a" } { 10 3 } text+loc ] unit-test
+{ { 10 4 } } [ { "a" } { 10 3 } text+loc ] unit-test
 
-[ { 2 9 } ] [
+{ { 2 9 } } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
     { 10 0 } "doc" get validate-loc
 ] unit-test
 
-[ { 1 12 } ] [
+{ { 1 12 } } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
     { 1 20 } "doc" get validate-loc
 ] unit-test
 
-[ " world,\nhow are you?\nMore" ] [
+{ " world,\nhow are you?\nMore" } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
     { 0 5 } { 2 4 } "doc" get doc-range
 ] unit-test
 
-[ "Hello world,\nhow you?\nMore text" ] [
+{ "Hello world,\nhow you?\nMore text" } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
@@ -65,7 +65,7 @@ IN: documents.tests
     "doc" get doc-string
 ] unit-test
 
-[ "Hello world,\nhow text" ] [
+{ "Hello world,\nhow text" } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
@@ -73,7 +73,7 @@ IN: documents.tests
     "doc" get doc-string
 ] unit-test
 
-[ "Hello world,\nhow you?\nMore text" ] [
+{ "Hello world,\nhow you?\nMore text" } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
@@ -81,7 +81,7 @@ IN: documents.tests
     "doc" get doc-string
 ] unit-test
 
-[ "Hello world,\nhow text" ] [
+{ "Hello world,\nhow text" } [
     <document> "doc" set
     "Hello world,\nhow are you?\nMore text"
     "doc" get set-doc-string
@@ -92,14 +92,14 @@ IN: documents.tests
 <document> "doc" set
 "Hello\nworld, how are\nyou?" "doc" get set-doc-string
 
-[ { 2 4 } ] [ "doc" get doc-end ] unit-test
+{ { 2 4 } } [ "doc" get doc-end ] unit-test
 
 ! Undo/redo
-[ ] [ <document> "d" set ] unit-test
+{ } [ <document> "d" set ] unit-test
 
-[ ] [ "Hello, world." "d" get set-doc-string ] unit-test
+{ } [ "Hello, world." "d" get set-doc-string ] unit-test
 
-[
+{
     T{ edit
        { old-string "" }
        { new-string "Hello, world." }
@@ -107,47 +107,47 @@ IN: documents.tests
        { old-to { 0 0 } }
        { new-to { 0 13 } }
     }
-] [ "d" get undos>> first ] unit-test
+} [ "d" get undos>> first ] unit-test
 
-[ ] [ "Goodbye" { 0 0 } { 0 5 } "d" get set-doc-range ] unit-test
+{ } [ "Goodbye" { 0 0 } { 0 5 } "d" get set-doc-range ] unit-test
 
-[ "Goodbye, world." ] [ "d" get doc-string ] unit-test
+{ "Goodbye, world." } [ "d" get doc-string ] unit-test
 
-[ ] [ "cruel " { 0 9 } { 0 9 } "d" get set-doc-range ] unit-test
+{ } [ "cruel " { 0 9 } { 0 9 } "d" get set-doc-range ] unit-test
 
-[ 3 ] [ "d" get undos>> length ] unit-test
+{ 3 } [ "d" get undos>> length ] unit-test
 
-[ "Goodbye, cruel world." ] [ "d" get doc-string ] unit-test
+{ "Goodbye, cruel world." } [ "d" get doc-string ] unit-test
 
-[ "" { 0 9 } { 0 15 } ] [
+{ "" { 0 9 } { 0 15 } } [
     "d" get undos>> last
     [ old-string>> ] [ from>> ] [ new-to>> ] tri
 ] unit-test
 
-[ ] [ "d" get undo ] unit-test
+{ } [ "d" get undo ] unit-test
 
-[ "Goodbye, world." ] [ "d" get doc-string ] unit-test
+{ "Goodbye, world." } [ "d" get doc-string ] unit-test
 
-[ ] [ "d" get undo ] unit-test
+{ } [ "d" get undo ] unit-test
 
-[ "Hello, world." ] [ "d" get doc-string ] unit-test
+{ "Hello, world." } [ "d" get doc-string ] unit-test
 
-[ ] [ "d" get redo ] unit-test
+{ } [ "d" get redo ] unit-test
 
-[ "Goodbye, world." ] [ "d" get doc-string ] unit-test
+{ "Goodbye, world." } [ "d" get doc-string ] unit-test
 
-[ ] [ <document> "d" set ] unit-test
+{ } [ <document> "d" set ] unit-test
 
-[ ] [ "d" get clear-doc ] unit-test
+{ } [ "d" get clear-doc ] unit-test
 
-[ ] [ "d" get clear-doc ] unit-test
+{ } [ "d" get clear-doc ] unit-test
 
-[ 0 ] [ "d" get undos>> length ] unit-test
+{ 0 } [ "d" get undos>> length ] unit-test
 
-[ ] [ <document> "d" set ] unit-test
+{ } [ <document> "d" set ] unit-test
 
-[ ] [ "d" get value>> "value" set ] unit-test
+{ } [ "d" get value>> "value" set ] unit-test
 
-[ ] [ "Hello world" "d" get set-doc-string ] unit-test
+{ } [ "Hello world" "d" get set-doc-string ] unit-test
 
-[ { "" } ] [ "value" get ] unit-test
+{ { "" } } [ "value" get ] unit-test
index 70476e16a95f336f67b01fe077b68bed0456b777..c8266394bb143ff14760ef82efa5b5e4228dc67c 100644 (file)
@@ -8,51 +8,51 @@ SYMBOL: doc
 "123\nabcé" doc get set-doc-string
 
 ! char-elt
-[ { 0 0 } ] [ { 0 0 } doc get char-elt prev-elt ] unit-test
-[ { 0 0 } ] [ { 0 1 } doc get char-elt prev-elt ] unit-test
-[ { 0 3 } ] [ { 1 0 } doc get char-elt prev-elt ] unit-test
-[ { 1 3 } ] [ { 1 5 } doc get char-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 0 } doc get char-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 1 } doc get char-elt prev-elt ] unit-test
+{ { 0 3 } } [ { 1 0 } doc get char-elt prev-elt ] unit-test
+{ { 1 3 } } [ { 1 5 } doc get char-elt prev-elt ] unit-test
 
-[ { 1 5 } ] [ { 1 5 } doc get char-elt next-elt ] unit-test
-[ { 0 2 } ] [ { 0 1 } doc get char-elt next-elt ] unit-test
-[ { 1 0 } ] [ { 0 3 } doc get char-elt next-elt ] unit-test
-[ { 1 5 } ] [ { 1 3 } doc get char-elt next-elt ] unit-test
+{ { 1 5 } } [ { 1 5 } doc get char-elt next-elt ] unit-test
+{ { 0 2 } } [ { 0 1 } doc get char-elt next-elt ] unit-test
+{ { 1 0 } } [ { 0 3 } doc get char-elt next-elt ] unit-test
+{ { 1 5 } } [ { 1 3 } doc get char-elt next-elt ] unit-test
 
 ! word-elt
 <document> doc set
 "Hello world\nanother line" doc get set-doc-string
 
-[ { 0 0 } ] [ { 0 0 } doc get word-elt prev-elt ] unit-test
-[ { 0 0 } ] [ { 0 2 } doc get word-elt prev-elt ] unit-test
-[ { 0 0 } ] [ { 0 5 } doc get word-elt prev-elt ] unit-test
-[ { 0 5 } ] [ { 0 6 } doc get word-elt prev-elt ] unit-test
-[ { 0 6 } ] [ { 0 8 } doc get word-elt prev-elt ] unit-test
-[ { 0 11 } ] [ { 1 0 } doc get word-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 0 } doc get word-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 2 } doc get word-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 5 } doc get word-elt prev-elt ] unit-test
+{ { 0 5 } } [ { 0 6 } doc get word-elt prev-elt ] unit-test
+{ { 0 6 } } [ { 0 8 } doc get word-elt prev-elt ] unit-test
+{ { 0 11 } } [ { 1 0 } doc get word-elt prev-elt ] unit-test
 
-[ { 0 5 } ] [ { 0 0 } doc get word-elt next-elt ] unit-test
-[ { 0 6 } ] [ { 0 5 } doc get word-elt next-elt ] unit-test
-[ { 0 11 } ] [ { 0 6 } doc get word-elt next-elt ] unit-test
-[ { 1 0 } ] [ { 0 11 } doc get word-elt next-elt ] unit-test
+{ { 0 5 } } [ { 0 0 } doc get word-elt next-elt ] unit-test
+{ { 0 6 } } [ { 0 5 } doc get word-elt next-elt ] unit-test
+{ { 0 11 } } [ { 0 6 } doc get word-elt next-elt ] unit-test
+{ { 1 0 } } [ { 0 11 } doc get word-elt next-elt ] unit-test
 
 
 ! one-word-elt
-[ { 0 0 } ] [ { 0 0 } doc get one-word-elt prev-elt ] unit-test
-[ { 0 0 } ] [ { 0 2 } doc get one-word-elt prev-elt ] unit-test
-[ { 0 0 } ] [ { 0 5 } doc get one-word-elt prev-elt ] unit-test
-[ { 0 5 } ] [ { 0 2 } doc get one-word-elt next-elt ] unit-test
-[ { 0 5 } ] [ { 0 5 } doc get one-word-elt next-elt ] unit-test
+{ { 0 0 } } [ { 0 0 } doc get one-word-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 2 } doc get one-word-elt prev-elt ] unit-test
+{ { 0 0 } } [ { 0 5 } doc get one-word-elt prev-elt ] unit-test
+{ { 0 5 } } [ { 0 2 } doc get one-word-elt next-elt ] unit-test
+{ { 0 5 } } [ { 0 5 } doc get one-word-elt next-elt ] unit-test
 
 ! line-elt
 <document> doc set
 "Hello\nworld, how are\nyou?" doc get set-doc-string
 
-[ { 0 0 } ] [ { 0 3 } doc get line-elt prev-elt ] unit-test
-[ { 0 3 } ] [ { 1 3 } doc get line-elt prev-elt ] unit-test
-[ { 2 4 } ] [ { 2 1 } doc get line-elt next-elt ] unit-test
+{ { 0 0 } } [ { 0 3 } doc get line-elt prev-elt ] unit-test
+{ { 0 3 } } [ { 1 3 } doc get line-elt prev-elt ] unit-test
+{ { 2 4 } } [ { 2 1 } doc get line-elt next-elt ] unit-test
 
 ! one-line-elt
-[ { 1 0 } ] [ { 1 3 } doc get one-line-elt prev-elt ] unit-test
-[ { 1 14 } ] [ { 1 3 } doc get one-line-elt next-elt ] unit-test
+{ { 1 0 } } [ { 1 3 } doc get one-line-elt prev-elt ] unit-test
+{ { 1 14 } } [ { 1 3 } doc get one-line-elt next-elt ] unit-test
 
 ! page-elt
 <document> doc set
@@ -63,12 +63,12 @@ Fourth line
 Fifth line
 Sixth line" doc get set-doc-string
 
-[ { 0 0 } ] [ { 3 3 } doc get 4 <page-elt> prev-elt ] unit-test
-[ { 1 2 } ] [ { 5 2 } doc get 4 <page-elt> prev-elt ] unit-test
+{ { 0 0 } } [ { 3 3 } doc get 4 <page-elt> prev-elt ] unit-test
+{ { 1 2 } } [ { 5 2 } doc get 4 <page-elt> prev-elt ] unit-test
 
-[ { 4 3 } ] [ { 0 3 } doc get 4 <page-elt> next-elt ] unit-test
-[ { 5 10 } ] [ { 4 2 } doc get 4 <page-elt> next-elt ] unit-test
+{ { 4 3 } } [ { 0 3 } doc get 4 <page-elt> next-elt ] unit-test
+{ { 5 10 } } [ { 4 2 } doc get 4 <page-elt> next-elt ] unit-test
 
 ! doc-elt
-[ { 0 0 } ] [ { 3 4 } doc get doc-elt prev-elt ] unit-test
-[ { 5 10 } ] [ { 3 4 } doc get doc-elt next-elt ] unit-test
+{ { 0 0 } } [ { 3 4 } doc get doc-elt prev-elt ] unit-test
+{ { 5 10 } } [ { 3 4 } doc get doc-elt next-elt ] unit-test
index b066ce6995a2ddb8dc5faf98bf67bb5496d50b0c..e90bac691e01197577136b4ca6ca20af66f0d298 100644 (file)
@@ -3,5 +3,5 @@
 USING: kernel namespaces tools.test endian ;
 IN: endian.tests
 
-[ t ] [ [ endianness get big-endian = ] with-big-endian ] unit-test
-[ t ] [ [ endianness get little-endian = ] with-little-endian ] unit-test
+{ t } [ [ endianness get big-endian = ] with-big-endian ] unit-test
+{ t } [ [ endianness get little-endian = ] with-little-endian ] unit-test
index a34d1db45245af1f9edc78a0507cd5ce71ba9c39..51aedca9ade63ffb7f4c79dead82e78e3814f615 100644 (file)
@@ -4,7 +4,7 @@ USING: kernel namespaces prettyprint system tools.test
 environment strings sequences ;
 IN: environment.tests
 
-[ ] [ os-envs . ] unit-test
+{ } [ os-envs . ] unit-test
 
 os unix? [
     [ ] [ os-envs "envs" set ] unit-test
@@ -14,27 +14,27 @@ os unix? [
     [ t ] [ os-envs "envs" get = ] unit-test
 ] when
 
-[ ] [ "factor-test-key-1" unset-os-env ] unit-test
-[ ] [ "ps3" "factor-test-key-1" set-os-env ] unit-test
-[ "ps3" ] [ "factor-test-key-1" os-env ] unit-test
-[ ] [ "factor-test-key-1" unset-os-env ] unit-test
-[ f ] [ "factor-test-key-1" os-env ] unit-test
+{ } [ "factor-test-key-1" unset-os-env ] unit-test
+{ } [ "ps3" "factor-test-key-1" set-os-env ] unit-test
+{ "ps3" } [ "factor-test-key-1" os-env ] unit-test
+{ } [ "factor-test-key-1" unset-os-env ] unit-test
+{ f } [ "factor-test-key-1" os-env ] unit-test
 
-[ ] [
+{ } [
     32766 CHAR: a <string> "factor-test-key-long" set-os-env
 ] unit-test
-[ 32766 ] [ "factor-test-key-long" os-env length ] unit-test
-[ ] [ "factor-test-key-long" unset-os-env ] unit-test
+{ 32766 } [ "factor-test-key-long" os-env length ] unit-test
+{ } [ "factor-test-key-long" unset-os-env ] unit-test
 
-[ "abc" ] [
+{ "abc" } [
     "a" "factor-test-key-change" set-os-env
     "factor-test-key-change" [ "bc" append ] change-os-env
     "factor-test-key-change" os-env
 ] unit-test
-[ ] [ "factor-test-key-change" unset-os-env ] unit-test
+{ } [ "factor-test-key-change" unset-os-env ] unit-test
 
 ! Issue #794, setting something to ``f`` is a memory protection fault on mac
-[ ] [ f "dummy-env-variable-for-factor-test" set-os-env ] unit-test
+{ } [ f "dummy-env-variable-for-factor-test" set-os-env ] unit-test
 
 { f "value" f } [
     "factor-test-key" os-env
index 09c7533b285e2def0e58f91208be90a210a42275..0eaeac66c72b56db57d8c7c627fc71f1b2dbfe8f 100644 (file)
@@ -1,6 +1,6 @@
 USING: eval tools.test ;
 IN: eval.tests
 
-[ 4 ] [ "USE: math 2 2 +" eval( -- result ) ] unit-test
+{ 4 } [ "USE: math 2 2 +" eval( -- result ) ] unit-test
 [ "USE: math 2 2 +" eval( -- ) ] must-fail
-[ "4\n" ] [ "USING: math prettyprint ; 2 2 + ." eval>string ] unit-test
+{ "4\n" } [ "USING: math prettyprint ; 2 2 + ." eval>string ] unit-test
index 716c80db68f813dc5733a73a4738fb22913a3fe9..34c1c59ab52e22204a0307eca44081f40853f374 100644 (file)
@@ -9,180 +9,180 @@ relative-link-prefix off
 disable-images? off
 link-no-follow? off
 
-[ "Baz" ] [ "Foo/Bar/Baz" simple-link-title ] unit-test
-[ "Baz" ] [ "Baz" simple-link-title ] unit-test
+{ "Baz" } [ "Foo/Bar/Baz" simple-link-title ] unit-test
+{ "Baz" } [ "Baz" simple-link-title ] unit-test
 
-[ ] [
+{ } [
     "abcd-*strong*\nasdifj\nweouh23ouh23" parse-farkup drop
 ] unit-test
 
-[ ] [
+{ } [
     "abcd-*strong*\nasdifj\nweouh23ouh23\n" parse-farkup drop
 ] unit-test
 
-[ "<p>a-b</p>" ] [ "a-b" convert-farkup ] unit-test
-[ "<p><strong>foo</strong></p><p>bar</p>" ] [ "*foo\nbar\n" convert-farkup ] unit-test
-[ "<p><strong>Wow!</strong></p>" ] [ "*Wow!*" convert-farkup ] unit-test
-[ "<p><em>Wow.</em></p>" ] [ "_Wow._" convert-farkup ] unit-test
+{ "<p>a-b</p>" } [ "a-b" convert-farkup ] unit-test
+{ "<p><strong>foo</strong></p><p>bar</p>" } [ "*foo\nbar\n" convert-farkup ] unit-test
+{ "<p><strong>Wow!</strong></p>" } [ "*Wow!*" convert-farkup ] unit-test
+{ "<p><em>Wow.</em></p>" } [ "_Wow._" convert-farkup ] unit-test
 
-[ "<p><strong></strong></p>" ] [ "*" convert-farkup ] unit-test
-[ "<p>*</p>" ] [ "\\*" convert-farkup ] unit-test
-[ "<p>*<strong></strong></p>" ] [ "\\**" convert-farkup ] unit-test
+{ "<p><strong></strong></p>" } [ "*" convert-farkup ] unit-test
+{ "<p>*</p>" } [ "\\*" convert-farkup ] unit-test
+{ "<p>*<strong></strong></p>" } [ "\\**" convert-farkup ] unit-test
 
-[ "<ul><li>a-b</li></ul>" ] [ "-a-b" convert-farkup ] unit-test
-[ "<ul><li>foo</li></ul>" ] [ "-foo" convert-farkup ] unit-test
-[ "<ul><li>foo</li></ul>" ] [ "-foo\n" convert-farkup ] unit-test
-[ "<ul><li>foo</li><li>bar</li></ul>" ] [ "-foo\n-bar" convert-farkup ] unit-test
-[ "<ul><li>foo</li><li>bar</li></ul>" ] [ "-foo\n-bar\n" convert-farkup ] unit-test
+{ "<ul><li>a-b</li></ul>" } [ "-a-b" convert-farkup ] unit-test
+{ "<ul><li>foo</li></ul>" } [ "-foo" convert-farkup ] unit-test
+{ "<ul><li>foo</li></ul>" } [ "-foo\n" convert-farkup ] unit-test
+{ "<ul><li>foo</li><li>bar</li></ul>" } [ "-foo\n-bar" convert-farkup ] unit-test
+{ "<ul><li>foo</li><li>bar</li></ul>" } [ "-foo\n-bar\n" convert-farkup ] unit-test
 
-[ "<ul><li>foo</li></ul><p>bar</p>" ] [ "-foo\nbar\n" convert-farkup ] unit-test
+{ "<ul><li>foo</li></ul><p>bar</p>" } [ "-foo\nbar\n" convert-farkup ] unit-test
 
-[ "<ol><li>a-b</li></ol>" ] [ "#a-b" convert-farkup ] unit-test
-[ "<ol><li>foo</li></ol>" ] [ "#foo" convert-farkup ] unit-test
-[ "<ol><li>foo</li></ol>" ] [ "#foo\n" convert-farkup ] unit-test
-[ "<ol><li>foo</li><li>bar</li></ol>" ] [ "#foo\n#bar" convert-farkup ] unit-test
-[ "<ol><li>foo</li><li>bar</li></ol>" ] [ "#foo\n#bar\n" convert-farkup ] unit-test
+{ "<ol><li>a-b</li></ol>" } [ "#a-b" convert-farkup ] unit-test
+{ "<ol><li>foo</li></ol>" } [ "#foo" convert-farkup ] unit-test
+{ "<ol><li>foo</li></ol>" } [ "#foo\n" convert-farkup ] unit-test
+{ "<ol><li>foo</li><li>bar</li></ol>" } [ "#foo\n#bar" convert-farkup ] unit-test
+{ "<ol><li>foo</li><li>bar</li></ol>" } [ "#foo\n#bar\n" convert-farkup ] unit-test
 
-[ "<ol><li>foo</li></ol><p>bar</p>" ] [ "#foo\nbar\n" convert-farkup ] unit-test
+{ "<ol><li>foo</li></ol><p>bar</p>" } [ "#foo\nbar\n" convert-farkup ] unit-test
 
 
-[ "" ] [ "\n\n" convert-farkup ] unit-test
-[ "" ] [ "\r\n\r\n" convert-farkup ] unit-test
-[ "" ] [ "\r\r\r\r" convert-farkup ] unit-test
-[ "" ] [ "\r\r\r" convert-farkup ] unit-test
-[ "" ] [ "\n\n\n" convert-farkup ] unit-test
-[ "<p>foo</p><p>bar</p>" ] [ "foo\n\nbar" convert-farkup ] unit-test
-[ "<p>foo</p><p>bar</p>" ] [ "foo\r\n\r\nbar" convert-farkup ] unit-test
-[ "<p>foo</p><p>bar</p>" ] [ "foo\r\rbar" convert-farkup ] unit-test
-[ "<p>foo</p><p>bar</p>" ] [ "foo\r\r\nbar" convert-farkup ] unit-test
+{ "" } [ "\n\n" convert-farkup ] unit-test
+{ "" } [ "\r\n\r\n" convert-farkup ] unit-test
+{ "" } [ "\r\r\r\r" convert-farkup ] unit-test
+{ "" } [ "\r\r\r" convert-farkup ] unit-test
+{ "" } [ "\n\n\n" convert-farkup ] unit-test
+{ "<p>foo</p><p>bar</p>" } [ "foo\n\nbar" convert-farkup ] unit-test
+{ "<p>foo</p><p>bar</p>" } [ "foo\r\n\r\nbar" convert-farkup ] unit-test
+{ "<p>foo</p><p>bar</p>" } [ "foo\r\rbar" convert-farkup ] unit-test
+{ "<p>foo</p><p>bar</p>" } [ "foo\r\r\nbar" convert-farkup ] unit-test
 
-[ "<p>bar</p>" ] [ "\nbar\n" convert-farkup ] unit-test
-[ "<p>bar</p>" ] [ "\rbar\r" convert-farkup ] unit-test
-[ "<p>bar</p>" ] [ "\r\nbar\r\n" convert-farkup ] unit-test
+{ "<p>bar</p>" } [ "\nbar\n" convert-farkup ] unit-test
+{ "<p>bar</p>" } [ "\rbar\r" convert-farkup ] unit-test
+{ "<p>bar</p>" } [ "\r\nbar\r\n" convert-farkup ] unit-test
 
-[ "<p>foo</p><p>bar</p>" ] [ "foo\n\n\nbar" convert-farkup ] unit-test
+{ "<p>foo</p><p>bar</p>" } [ "foo\n\n\nbar" convert-farkup ] unit-test
 
-[ "" ] [ "" convert-farkup ] unit-test
+{ "" } [ "" convert-farkup ] unit-test
 
-[ "<table><tr><td>a</td></tr></table>" ]
+{ "<table><tr><td>a</td></tr></table>" }
 [ "|a" convert-farkup ] unit-test
 
-[ "<table><tr><td>a</td></tr></table>" ]
+{ "<table><tr><td>a</td></tr></table>" }
 [ "|a|" convert-farkup ] unit-test
 
-[ "<table><tr><td>a</td><td>b</td></tr></table>" ]
+{ "<table><tr><td>a</td><td>b</td></tr></table>" }
 [ "|a|b|" convert-farkup ] unit-test
 
-[ "<table><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>" ]
+{ "<table><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>" }
 [ "|a|b|\n|c|d|" convert-farkup ] unit-test
 
-[ "<table><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>" ]
+{ "<table><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></table>" }
 [ "|a|b|\n|c|d|\n" convert-farkup ] unit-test
 
-[ "<p><strong>foo</strong></p><h1>aheading</h1><p>adfasd</p>" ]
+{ "<p><strong>foo</strong></p><h1>aheading</h1><p>adfasd</p>" }
 [ "*foo*\n=aheading=\nadfasd" convert-farkup ] unit-test
 
-[ "<h1>foo</h1>" ] [ "=foo=\n" convert-farkup ] unit-test
-[ "<p>lol=foo=</p>" ] [ "lol=foo=\n" convert-farkup ] unit-test
-[ "<p>=foo</p>" ] [ "=foo\n" convert-farkup ] unit-test
-[ "<p>=foo</p>" ] [ "=foo" convert-farkup ] unit-test
-[ "<p>==foo</p>" ] [ "==foo" convert-farkup ] unit-test
-[ "<h1>foo</h1>" ] [ "==foo=" convert-farkup ] unit-test
-[ "<h2>foo</h2>" ] [ "==foo==" convert-farkup ] unit-test
-[ "<h2>foo</h2>" ] [ "==foo==" convert-farkup ] unit-test
-[ "<h2>foo</h2>" ] [ "===foo==" convert-farkup ] unit-test
-[ "<h1>foo</h1>" ] [ "=foo==" convert-farkup ] unit-test
-
-[ "<pre><span class=\"KEYWORD3\">int</span> <span class=\"FUNCTION\">main</span><span class=\"OPERATOR\">(</span><span class=\"OPERATOR\">)</span></pre>" ]
+{ "<h1>foo</h1>" } [ "=foo=\n" convert-farkup ] unit-test
+{ "<p>lol=foo=</p>" } [ "lol=foo=\n" convert-farkup ] unit-test
+{ "<p>=foo</p>" } [ "=foo\n" convert-farkup ] unit-test
+{ "<p>=foo</p>" } [ "=foo" convert-farkup ] unit-test
+{ "<p>==foo</p>" } [ "==foo" convert-farkup ] unit-test
+{ "<h1>foo</h1>" } [ "==foo=" convert-farkup ] unit-test
+{ "<h2>foo</h2>" } [ "==foo==" convert-farkup ] unit-test
+{ "<h2>foo</h2>" } [ "==foo==" convert-farkup ] unit-test
+{ "<h2>foo</h2>" } [ "===foo==" convert-farkup ] unit-test
+{ "<h1>foo</h1>" } [ "=foo==" convert-farkup ] unit-test
+
+{ "<pre><span class=\"KEYWORD3\">int</span> <span class=\"FUNCTION\">main</span><span class=\"OPERATOR\">(</span><span class=\"OPERATOR\">)</span></pre>" }
 [ "[c{int main()}]" convert-farkup ] unit-test
 
-[ "<p><img src=\"lol.jpg\" alt=\"lol.jpg\"/></p>" ] [ "[[image:lol.jpg]]" convert-farkup ] unit-test
-[ "<p><img src=\"lol.jpg\" alt=\"teh lol\"/></p>" ] [ "[[image:lol.jpg|teh lol]]" convert-farkup ] unit-test
-[ "<p><a href=\"http://lol.com\">http://lol.com</a></p>" ] [ "[[http://lol.com]]" convert-farkup ] unit-test
-[ "<p><a href=\"http://lol.com\">haha</a></p>" ] [ "[[http://lol.com|haha]]" convert-farkup ] unit-test
-[ "<p><a href=\"http://lol.com/search?q=sex\">haha</a></p>" ] [ "[[http://lol.com/search?q=sex|haha]]" convert-farkup ] unit-test
-[ "<p><a href=\"Foo/Bar\">Bar</a></p>" ] [ "[[Foo/Bar]]" convert-farkup ] unit-test
+{ "<p><img src=\"lol.jpg\" alt=\"lol.jpg\"/></p>" } [ "[[image:lol.jpg]]" convert-farkup ] unit-test
+{ "<p><img src=\"lol.jpg\" alt=\"teh lol\"/></p>" } [ "[[image:lol.jpg|teh lol]]" convert-farkup ] unit-test
+{ "<p><a href=\"http://lol.com\">http://lol.com</a></p>" } [ "[[http://lol.com]]" convert-farkup ] unit-test
+{ "<p><a href=\"http://lol.com\">haha</a></p>" } [ "[[http://lol.com|haha]]" convert-farkup ] unit-test
+{ "<p><a href=\"http://lol.com/search?q=sex\">haha</a></p>" } [ "[[http://lol.com/search?q=sex|haha]]" convert-farkup ] unit-test
+{ "<p><a href=\"Foo/Bar\">Bar</a></p>" } [ "[[Foo/Bar]]" convert-farkup ] unit-test
 
 "/wiki/view/" relative-link-prefix [
     [ "<p><a href=\"/wiki/view/Foo/Bar\">Bar</a></p>" ] [ "[[Foo/Bar]]" convert-farkup ] unit-test
 ] with-variable
 
-[ ] [ "[{}]" convert-farkup drop ] unit-test
+{ } [ "[{}]" convert-farkup drop ] unit-test
 
-[ "<pre>hello</pre>" ] [ "[{hello}]" convert-farkup ] unit-test
+{ "<pre>hello</pre>" } [ "[{hello}]" convert-farkup ] unit-test
 
-[
+{
     "<p>Feature comparison:</p><table><tr><td>a</td><td>Factor</td><td>Java</td><td>Lisp</td></tr><tr><td>Coolness</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>Badass</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>Enterprise</td><td>Yes</td><td>Yes</td><td>No</td></tr><tr><td>Kosher</td><td>Yes</td><td>No</td><td>Yes</td></tr></table>"
-] [ "Feature comparison:\n|a|Factor|Java|Lisp|\n|Coolness|Yes|No|No|\n|Badass|Yes|No|No|\n|Enterprise|Yes|Yes|No|\n|Kosher|Yes|No|Yes|\n" convert-farkup ] unit-test
+} [ "Feature comparison:\n|a|Factor|Java|Lisp|\n|Coolness|Yes|No|No|\n|Badass|Yes|No|No|\n|Enterprise|Yes|Yes|No|\n|Kosher|Yes|No|Yes|\n" convert-farkup ] unit-test
 
-[
+{
     "<p>Feature comparison:</p><table><tr><td>a</td><td>Factor</td><td>Java</td><td>Lisp</td></tr><tr><td>Coolness</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>Badass</td><td>Yes</td><td>No</td><td>No</td></tr><tr><td>Enterprise</td><td>Yes</td><td>Yes</td><td>No</td></tr><tr><td>Kosher</td><td>Yes</td><td>No</td><td>Yes</td></tr></table>"
-] [ "Feature comparison:\n\n|a|Factor|Java|Lisp|\n|Coolness|Yes|No|No|\n|Badass|Yes|No|No|\n|Enterprise|Yes|Yes|No|\n|Kosher|Yes|No|Yes|\n" convert-farkup ] unit-test
+} [ "Feature comparison:\n\n|a|Factor|Java|Lisp|\n|Coolness|Yes|No|No|\n|Badass|Yes|No|No|\n|Enterprise|Yes|Yes|No|\n|Kosher|Yes|No|Yes|\n" convert-farkup ] unit-test
 
-[
+{
     "<p>This wiki is written in <a href=\"Factor\">Factor</a> and is hosted on a <a href=\"http://linode.com\">http://linode.com</a> virtual server.</p>"
-] [
+} [
     "This wiki is written in [[Factor]] and is hosted on a [[http://linode.com|http://linode.com]] virtual server."
     convert-farkup
 ] unit-test
 
-[ "<p><a href=\"a\">a</a> <a href=\"b\">c</a></p>" ] [ "[[a]] [[b|c]]" convert-farkup ] unit-test
+{ "<p><a href=\"a\">a</a> <a href=\"b\">c</a></p>" } [ "[[a]] [[b|c]]" convert-farkup ] unit-test
 
-[ "<p><a href=\"C%2B%2B\">C++</a></p>" ] [ "[[C++]]" convert-farkup ] unit-test
+{ "<p><a href=\"C%2B%2B\">C++</a></p>" } [ "[[C++]]" convert-farkup ] unit-test
 
-[ "<p>&lt;foo&gt;</p>" ] [ "<foo>" convert-farkup ] unit-test
+{ "<p>&lt;foo&gt;</p>" } [ "<foo>" convert-farkup ] unit-test
 
-[ "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" ] [ "asdf\n-lol\n-haha" convert-farkup ] unit-test
+{ "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" } [ "asdf\n-lol\n-haha" convert-farkup ] unit-test
 
-[ "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" ]
+{ "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" }
  [ "asdf\n\n-lol\n-haha" convert-farkup ] unit-test
 
-[ "<hr/>" ] [ "___" convert-farkup ] unit-test
-[ "<hr/>" ] [ "___\n" convert-farkup ] unit-test
+{ "<hr/>" } [ "___" convert-farkup ] unit-test
+{ "<hr/>" } [ "___\n" convert-farkup ] unit-test
 
-[ "<p>before:</p><pre><span class=\"OPERATOR\">{</span> <span class=\"DIGIT\">1</span> <span class=\"DIGIT\">2</span> <span class=\"DIGIT\">3</span> <span class=\"OPERATOR\">}</span> <span class=\"DIGIT\">1</span> tail</pre>" ]
+{ "<p>before:</p><pre><span class=\"OPERATOR\">{</span> <span class=\"DIGIT\">1</span> <span class=\"DIGIT\">2</span> <span class=\"DIGIT\">3</span> <span class=\"OPERATOR\">}</span> <span class=\"DIGIT\">1</span> tail</pre>" }
 [ "before:\n[factor{{ 1 2 3 } 1 tail}]" convert-farkup ] unit-test
 
-[ "<p><a href=\"Factor\">Factor</a>-rific!</p>" ]
+{ "<p><a href=\"Factor\">Factor</a>-rific!</p>" }
 [ "[[Factor]]-rific!" convert-farkup ] unit-test
 
-[ "<pre> 1 2 3 </pre>" ]
+{ "<pre> 1 2 3 </pre>" }
 [ "[ factor { 1 2 3 }]" convert-farkup ] unit-test
 
-[ "<p>paragraph</p><hr/>" ]
+{ "<p>paragraph</p><hr/>" }
 [ "paragraph\n___" convert-farkup ] unit-test
 
-[ "<p>paragraph</p><p> a <em></em><em> b</em></p>" ]
+{ "<p>paragraph</p><p> a <em></em><em> b</em></p>" }
 [ "paragraph\n a ___ b" convert-farkup ] unit-test
 
-[ "<ul><li> a</li></ul><hr/>" ]
+{ "<ul><li> a</li></ul><hr/>" }
 [ "\n- a\n___" convert-farkup ] unit-test
 
-[ "<p>hello<em>world how are you today?</em></p><ul><li> hello<em>world how are you today?</em></li></ul>" ]
+{ "<p>hello<em>world how are you today?</em></p><ul><li> hello<em>world how are you today?</em></li></ul>" }
 [ "hello_world how are you today?\n- hello_world how are you today?" convert-farkup ] unit-test
 
 : check-link-escaping ( string -- link )
     convert-farkup string>xml-chunk
     "a" deep-tag-named "href" attr url-decode ;
 
-[ "Trader Joe\"s" ] [ "[[Trader Joe\"s]]" check-link-escaping ] unit-test
-[ "<foo>" ] [ "[[<foo>]]" check-link-escaping ] unit-test
-[ "&blah;" ] [ "[[&blah;]]" check-link-escaping ] unit-test
-[ "C++" ] [ "[[C++]]" check-link-escaping ] unit-test
+{ "Trader Joe\"s" } [ "[[Trader Joe\"s]]" check-link-escaping ] unit-test
+{ "<foo>" } [ "[[<foo>]]" check-link-escaping ] unit-test
+{ "&blah;" } [ "[[&blah;]]" check-link-escaping ] unit-test
+{ "C++" } [ "[[C++]]" check-link-escaping ] unit-test
 
-[ "<h1>The <em>important</em> thing</h1>" ] [ "=The _important_ thing=" convert-farkup ] unit-test
-[ "<p><a href=\"Foo\"><strong>emphasized</strong> text</a></p>" ] [ "[[Foo|*emphasized* text]]" convert-farkup ] unit-test
-[ "<table><tr><td><strong>bold</strong></td><td><em>italics</em></td></tr></table>" ]
+{ "<h1>The <em>important</em> thing</h1>" } [ "=The _important_ thing=" convert-farkup ] unit-test
+{ "<p><a href=\"Foo\"><strong>emphasized</strong> text</a></p>" } [ "[[Foo|*emphasized* text]]" convert-farkup ] unit-test
+{ "<table><tr><td><strong>bold</strong></td><td><em>italics</em></td></tr></table>" }
 [ "|*bold*|_italics_|" convert-farkup ] unit-test
-[ "<p><em>italics<strong>both</strong></em></p>" ] [ "_italics*both" convert-farkup ] unit-test
-[ "<p><em>italics<strong>both</strong></em></p>" ] [ "_italics*both*" convert-farkup ] unit-test
-[ "<p><em>italics<strong>both</strong></em></p>" ] [ "_italics*both*_" convert-farkup ] unit-test
-[ "<p><em>italics<strong>both</strong></em></p>" ] [ "_italics*both_" convert-farkup ] unit-test
-[ "<p><em>italics<strong>both</strong></em>after<strong></strong></p>" ] [ "_italics*both_after*" convert-farkup ] unit-test
-[ "<table><tr><td>foo|bar</td></tr></table>" ] [ "|foo\\|bar|" convert-farkup ] unit-test
-[ "<p></p>" ] [ "\\" convert-farkup ] unit-test
+{ "<p><em>italics<strong>both</strong></em></p>" } [ "_italics*both" convert-farkup ] unit-test
+{ "<p><em>italics<strong>both</strong></em></p>" } [ "_italics*both*" convert-farkup ] unit-test
+{ "<p><em>italics<strong>both</strong></em></p>" } [ "_italics*both*_" convert-farkup ] unit-test
+{ "<p><em>italics<strong>both</strong></em></p>" } [ "_italics*both_" convert-farkup ] unit-test
+{ "<p><em>italics<strong>both</strong></em>after<strong></strong></p>" } [ "_italics*both_after*" convert-farkup ] unit-test
+{ "<table><tr><td>foo|bar</td></tr></table>" } [ "|foo\\|bar|" convert-farkup ] unit-test
+{ "<p></p>" } [ "\\" convert-farkup ] unit-test
 
-[ "<p>[abc]</p>" ] [ "[abc]" convert-farkup ] unit-test
+{ "<p>[abc]</p>" } [ "[abc]" convert-farkup ] unit-test
 
 : random-markup ( -- string )
     10 [
@@ -201,11 +201,11 @@ link-no-follow? off
         ] if
     ] replicate concat ;
 
-[ t ] [
+{ t } [
     100 [
         drop random-markup
         [ convert-farkup drop t ] [ drop print f ] recover
     ] all-integers?
 ] unit-test
 
-[ "<p><a href=\"http://foo.com/~foo\">http://foo.com/~foo</a></p>" ] [ "[[http://foo.com/~foo]]" convert-farkup ] unit-test
+{ "<p><a href=\"http://foo.com/~foo\">http://foo.com/~foo</a></p>" } [ "[[http://foo.com/~foo]]" convert-farkup ] unit-test
index d5810f5073c731a6cd6dfad40d53c317daf4891a..8433ac5fe7b106c3480ac3bb80e794b2419e3827 100755 (executable)
@@ -6,71 +6,71 @@ IN: formatting.tests
 [ "%s" printf ] must-infer
 [ "%s" sprintf ] must-infer
 
-[ "" ] [ "" sprintf ] unit-test
-[ "asdf" ] [ "asdf" sprintf ] unit-test
-[ "10" ] [ 10 "%d" sprintf ] unit-test
-[ "+10" ] [ 10 "%+d" sprintf ] unit-test
-[ "-10" ] [ -10 "%d" sprintf ] unit-test
-[ " 23" ] [ 23 "% d" sprintf ] unit-test
-[ "-23" ] [ -23 "% d" sprintf ] unit-test
-[ "  -10" ] [ -10 "%5d" sprintf ] unit-test
-[ "-0010" ] [ -10 "%05d" sprintf ] unit-test
-[ "+0010" ] [ 10 "%+05d" sprintf ] unit-test
-[ "123.456000" ] [ 123.456 "%f" sprintf ] unit-test
-[ "2.44" ] [ 2.436 "%.2f" sprintf ] unit-test
-[ "8.950" ] [ 8.950179003580072 "%.3f" sprintf ] unit-test
-[ "123.10" ] [ 123.1 "%01.2f" sprintf ] unit-test
-[ "1.2346" ] [ 1.23456789 "%.4f" sprintf ] unit-test
-[ "  1.23" ] [ 1.23456789 "%6.2f" sprintf ] unit-test
-[ "001100" ] [ 12 "%06b" sprintf ] unit-test
-[ "==14" ] [ 12 "%'=4o" sprintf ] unit-test
+{ "" } [ "" sprintf ] unit-test
+{ "asdf" } [ "asdf" sprintf ] unit-test
+{ "10" } [ 10 "%d" sprintf ] unit-test
+{ "+10" } [ 10 "%+d" sprintf ] unit-test
+{ "-10" } [ -10 "%d" sprintf ] unit-test
+{ " 23" } [ 23 "% d" sprintf ] unit-test
+{ "-23" } [ -23 "% d" sprintf ] unit-test
+{ "  -10" } [ -10 "%5d" sprintf ] unit-test
+{ "-0010" } [ -10 "%05d" sprintf ] unit-test
+{ "+0010" } [ 10 "%+05d" sprintf ] unit-test
+{ "123.456000" } [ 123.456 "%f" sprintf ] unit-test
+{ "2.44" } [ 2.436 "%.2f" sprintf ] unit-test
+{ "8.950" } [ 8.950179003580072 "%.3f" sprintf ] unit-test
+{ "123.10" } [ 123.1 "%01.2f" sprintf ] unit-test
+{ "1.2346" } [ 1.23456789 "%.4f" sprintf ] unit-test
+{ "  1.23" } [ 1.23456789 "%6.2f" sprintf ] unit-test
+{ "001100" } [ 12 "%06b" sprintf ] unit-test
+{ "==14" } [ 12 "%'=4o" sprintf ] unit-test
 
 { "foo: 1 bar: 2" } [ { 1 2 3 } "foo: %d bar: %s" vsprintf ] unit-test
 
-[ "1.234000e+08" ] [ 123400000 "%e" sprintf ] unit-test
-[ "-1.234000e+08" ] [ -123400000 "%e" sprintf ] unit-test
-[ "1.234567e+08" ] [ 123456700 "%e" sprintf ] unit-test
-[ "3.625e+08" ] [ 362525200 "%.3e" sprintf ] unit-test
-[ "2.500000e-03" ] [ 0.0025 "%e" sprintf ] unit-test
-[ "2.500000E-03" ] [ 0.0025 "%E" sprintf ] unit-test
-[ "   1.0E+01" ] [ 10 "%10.1E" sprintf ] unit-test
-[ "  -1.0E+01" ] [ -10 "%10.1E" sprintf ] unit-test
-[ "  -1.0E+01" ] [ -10 "%+10.1E" sprintf ] unit-test
-[ "  +1.0E+01" ] [ 10 "%+10.1E" sprintf ] unit-test
-[ "-001.0E+01" ] [ -10 "%+010.1E" sprintf ] unit-test
-[ "+001.0E+01" ] [ 10 "%+010.1E" sprintf ] unit-test
+{ "1.234000e+08" } [ 123400000 "%e" sprintf ] unit-test
+{ "-1.234000e+08" } [ -123400000 "%e" sprintf ] unit-test
+{ "1.234567e+08" } [ 123456700 "%e" sprintf ] unit-test
+{ "3.625e+08" } [ 362525200 "%.3e" sprintf ] unit-test
+{ "2.500000e-03" } [ 0.0025 "%e" sprintf ] unit-test
+{ "2.500000E-03" } [ 0.0025 "%E" sprintf ] unit-test
+{ "   1.0E+01" } [ 10 "%10.1E" sprintf ] unit-test
+{ "  -1.0E+01" } [ -10 "%10.1E" sprintf ] unit-test
+{ "  -1.0E+01" } [ -10 "%+10.1E" sprintf ] unit-test
+{ "  +1.0E+01" } [ 10 "%+10.1E" sprintf ] unit-test
+{ "-001.0E+01" } [ -10 "%+010.1E" sprintf ] unit-test
+{ "+001.0E+01" } [ 10 "%+010.1E" sprintf ] unit-test
 
-[ "ff" ] [ 0xff "%x" sprintf ] unit-test
-[ "FF" ] [ 0xff "%X" sprintf ] unit-test
-[ "0f" ] [ 0xf "%02x" sprintf ] unit-test
-[ "0F" ] [ 0xf "%02X" sprintf ] unit-test
-[ "2008-09-10" ] [ 2008 9 10 "%04d-%02d-%02d" sprintf ] unit-test
-[ "Hello, World!" ] [ "Hello, World!" "%s" sprintf ] unit-test
-[ "printf test" ] [ "printf test" sprintf ] unit-test
-[ "char a = 'a'" ] [ CHAR: a "char %c = 'a'" sprintf ] unit-test
-[ "00" ] [ 0x0 "%02x" sprintf ] unit-test
-[ "ff" ] [ 0xff "%02x" sprintf ] unit-test
-[ "0 message(s)" ] [ 0 "message" "%d %s(s)" sprintf ] unit-test
-[ "0 message(s) with %" ] [ 0 "message" "%d %s(s) with %%" sprintf ] unit-test
-[ "justif: \"left      \"" ] [ "left" "justif: \"%-10s\"" sprintf ] unit-test
-[ "justif: \"     right\"" ] [ "right" "justif: \"%10s\"" sprintf ] unit-test
-[ " 3: 0003 zero padded" ] [ 3 " 3: %04d zero padded" sprintf ] unit-test
-[ " 3: 3    left justif" ] [ 3 " 3: %-4d left justif" sprintf ] unit-test
-[ " 3:    3 right justif" ] [ 3 " 3: %4d right justif" sprintf ] unit-test
-[ " -3: -003 zero padded" ] [ -3 " -3: %04d zero padded" sprintf ] unit-test
-[ " -3: -3   left justif" ] [ -3 " -3: %-4d left justif" sprintf ] unit-test
-[ " -3:   -3 right justif" ] [ -3 " -3: %4d right justif" sprintf ] unit-test
-[ "There are 10 monkeys in the kitchen" ] [ 10 "kitchen" "There are %d monkeys in the %s" sprintf ] unit-test
-[ "10" ] [ 10 "%d" sprintf ] unit-test
-[ "[monkey]" ] [ "monkey" "[%s]" sprintf ] unit-test
-[ "[    monkey]" ] [ "monkey" "[%10s]" sprintf ] unit-test
-[ "[monkey    ]" ] [ "monkey" "[%-10s]" sprintf ] unit-test
-[ "[0000monkey]" ] [ "monkey" "[%010s]" sprintf ] unit-test
-[ "[####monkey]" ] [ "monkey" "[%'#10s]" sprintf ] unit-test
-[ "[many monke]" ] [ "many monkeys" "[%10.10s]" sprintf ] unit-test
+{ "ff" } [ 0xff "%x" sprintf ] unit-test
+{ "FF" } [ 0xff "%X" sprintf ] unit-test
+{ "0f" } [ 0xf "%02x" sprintf ] unit-test
+{ "0F" } [ 0xf "%02X" sprintf ] unit-test
+{ "2008-09-10" } [ 2008 9 10 "%04d-%02d-%02d" sprintf ] unit-test
+{ "Hello, World!" } [ "Hello, World!" "%s" sprintf ] unit-test
+{ "printf test" } [ "printf test" sprintf ] unit-test
+{ "char a = 'a'" } [ CHAR: a "char %c = 'a'" sprintf ] unit-test
+{ "00" } [ 0x0 "%02x" sprintf ] unit-test
+{ "ff" } [ 0xff "%02x" sprintf ] unit-test
+{ "0 message(s)" } [ 0 "message" "%d %s(s)" sprintf ] unit-test
+{ "0 message(s) with %" } [ 0 "message" "%d %s(s) with %%" sprintf ] unit-test
+{ "justif: \"left      \"" } [ "left" "justif: \"%-10s\"" sprintf ] unit-test
+{ "justif: \"     right\"" } [ "right" "justif: \"%10s\"" sprintf ] unit-test
+{ " 3: 0003 zero padded" } [ 3 " 3: %04d zero padded" sprintf ] unit-test
+{ " 3: 3    left justif" } [ 3 " 3: %-4d left justif" sprintf ] unit-test
+{ " 3:    3 right justif" } [ 3 " 3: %4d right justif" sprintf ] unit-test
+{ " -3: -003 zero padded" } [ -3 " -3: %04d zero padded" sprintf ] unit-test
+{ " -3: -3   left justif" } [ -3 " -3: %-4d left justif" sprintf ] unit-test
+{ " -3:   -3 right justif" } [ -3 " -3: %4d right justif" sprintf ] unit-test
+{ "There are 10 monkeys in the kitchen" } [ 10 "kitchen" "There are %d monkeys in the %s" sprintf ] unit-test
+{ "10" } [ 10 "%d" sprintf ] unit-test
+{ "[monkey]" } [ "monkey" "[%s]" sprintf ] unit-test
+{ "[    monkey]" } [ "monkey" "[%10s]" sprintf ] unit-test
+{ "[monkey    ]" } [ "monkey" "[%-10s]" sprintf ] unit-test
+{ "[0000monkey]" } [ "monkey" "[%010s]" sprintf ] unit-test
+{ "[####monkey]" } [ "monkey" "[%'#10s]" sprintf ] unit-test
+{ "[many monke]" } [ "many monkeys" "[%10.10s]" sprintf ] unit-test
 
-[ "{ 1, 2, 3 }" ] [ { 1 2 3 } "%[%s, %]" sprintf ] unit-test
-[ "{ 1:2, 3:4 }" ] [ H{ { 1 2 } { 3 4 } } "%[%s: %s %]" sprintf ] unit-test
+{ "{ 1, 2, 3 }" } [ { 1 2 3 } "%[%s, %]" sprintf ] unit-test
+{ "{ 1:2, 3:4 }" } [ H{ { 1 2 } { 3 4 } } "%[%s: %s %]" sprintf ] unit-test
 
 
 [ "%H:%M:%S" strftime ] must-infer
@@ -78,14 +78,14 @@ IN: formatting.tests
 : testtime ( -- timestamp )
     2008 10 9 12 3 15 instant <timestamp> ;
 
-[ t ] [ "12:03:15" testtime "%H:%M:%S" strftime = ] unit-test
-[ t ] [ "12:03:15" testtime "%X" strftime = ] unit-test
-[ t ] [ "10/09/2008" testtime "%m/%d/%Y" strftime = ] unit-test
-[ t ] [ "10/09/2008" testtime "%x" strftime = ] unit-test
-[ t ] [ "10/09/08" testtime "%m/%d/%y" strftime = ] unit-test
-[ t ] [ "Thu" testtime "%a" strftime = ] unit-test
-[ t ] [ "Thursday" testtime "%A" strftime = ] unit-test
-[ t ] [ "Oct" testtime "%b" strftime = ] unit-test
-[ t ] [ "October" testtime "%B" strftime = ] unit-test
-[ t ] [ "Thu Oct 09 12:03:15 2008" testtime "%c" strftime = ] unit-test
-[ t ] [ "PM" testtime "%p" strftime = ] unit-test
+{ t } [ "12:03:15" testtime "%H:%M:%S" strftime = ] unit-test
+{ t } [ "12:03:15" testtime "%X" strftime = ] unit-test
+{ t } [ "10/09/2008" testtime "%m/%d/%Y" strftime = ] unit-test
+{ t } [ "10/09/2008" testtime "%x" strftime = ] unit-test
+{ t } [ "10/09/08" testtime "%m/%d/%y" strftime = ] unit-test
+{ t } [ "Thu" testtime "%a" strftime = ] unit-test
+{ t } [ "Thursday" testtime "%A" strftime = ] unit-test
+{ t } [ "Oct" testtime "%b" strftime = ] unit-test
+{ t } [ "October" testtime "%B" strftime = ] unit-test
+{ t } [ "Thu Oct 09 12:03:15 2008" testtime "%c" strftime = ] unit-test
+{ t } [ "PM" testtime "%p" strftime = ] unit-test
index 48e267bc528c6ab1c2175737259c3e2bee29cad9..dc778636731a680b31f1a0d7ef1bea0b73bfad8c 100644 (file)
@@ -6,85 +6,85 @@ IN: fry.tests
 
 SYMBOLS: a b c d e f g h ;
 
-[ [ ] ] [ '[ ] ] unit-test
-[ [ + ] ] [ '[ + ] ] unit-test
-[ [ 1 ] ] [ 1 '[ _ ] ] unit-test
-[ [ 1 ] ] [ [ 1 ] '[ @ ] ] unit-test
-[ [ 1 2 ] ] [ [ 1 ] [ 2 ] '[ @ @ ] ] unit-test
+{ [ ] } [ '[ ] ] unit-test
+{ [ + ] } [ '[ + ] ] unit-test
+{ [ 1 ] } [ 1 '[ _ ] ] unit-test
+{ [ 1 ] } [ [ 1 ] '[ @ ] ] unit-test
+{ [ 1 2 ] } [ [ 1 ] [ 2 ] '[ @ @ ] ] unit-test
 
-[ [ 1 2 a ] ] [ 1 2 '[ _ _ a ] ] unit-test
-[ [ 1 2 ] ] [ 1 2 '[ _ _ ] ] unit-test
-[ [ a 1 2 ] ] [ 1 2 '[ a _ _ ] ] unit-test
-[ [ 1 2 a ] ] [ [ 1 ] [ 2 ] '[ @ @ a ] ] unit-test
-[ [ 1 a 2 b ] ] [ 1 2 '[ _ a _ b ] ] unit-test
-[ [ 1 a 2 b ] ] [ 1 [ 2 ] '[ _ a @ b ] ] unit-test
-[ [ a 1 b ] ] [ 1 '[ a _ b ] ] unit-test
+{ [ 1 2 a ] } [ 1 2 '[ _ _ a ] ] unit-test
+{ [ 1 2 ] } [ 1 2 '[ _ _ ] ] unit-test
+{ [ a 1 2 ] } [ 1 2 '[ a _ _ ] ] unit-test
+{ [ 1 2 a ] } [ [ 1 ] [ 2 ] '[ @ @ a ] ] unit-test
+{ [ 1 a 2 b ] } [ 1 2 '[ _ a _ b ] ] unit-test
+{ [ 1 a 2 b ] } [ 1 [ 2 ] '[ _ a @ b ] ] unit-test
+{ [ a 1 b ] } [ 1 '[ a _ b ] ] unit-test
 
-[ [ a 1 b ] ] [ [ 1 ] '[ a @ b ] ] unit-test
-[ [ a 1 2 ] ] [ [ 1 ] [ 2 ] '[ a @ @ ] ] unit-test
+{ [ a 1 b ] } [ [ 1 ] '[ a @ b ] ] unit-test
+{ [ a 1 2 ] } [ [ 1 ] [ 2 ] '[ a @ @ ] ] unit-test
 
-[ [ a [ 1 ] b ] ] [ 1 '[ a [ _ ] b ] ] unit-test
-[ [ a 1 b [ c 2 d ] e 3 f ] ] [ 1 2 3 '[ a _ b [ c _ d ] e _ f ] ] unit-test
-[ [ a 1 b [ c 2 d [ e 3 f ] ] g 4 h ] ] [ 1 2 3 4 '[ a _ b [ c _ d [ e _ f ] ] g _ h ] ] unit-test
-[ [ a 1 b [ [ c 2 d ] e 3 f ] g 4 h ] ] [ 1 2 3 4 '[ a _ b [ [ c _ d ] e _ f ] g _ h ] ] unit-test
+{ [ a [ 1 ] b ] } [ 1 '[ a [ _ ] b ] ] unit-test
+{ [ a 1 b [ c 2 d ] e 3 f ] } [ 1 2 3 '[ a _ b [ c _ d ] e _ f ] ] unit-test
+{ [ a 1 b [ c 2 d [ e 3 f ] ] g 4 h ] } [ 1 2 3 4 '[ a _ b [ c _ d [ e _ f ] ] g _ h ] ] unit-test
+{ [ a 1 b [ [ c 2 d ] e 3 f ] g 4 h ] } [ 1 2 3 4 '[ a _ b [ [ c _ d ] e _ f ] g _ h ] ] unit-test
 
-[ [ 3 + ] ] [ 3 '[ _ + ] ] unit-test
+{ [ 3 + ] } [ 3 '[ _ + ] ] unit-test
 
-[ [ 1 3 + ] ] [ 1 3 '[ _ _ + ] ] unit-test
+{ [ 1 3 + ] } [ 1 3 '[ _ _ + ] ] unit-test
 
-[ [ 1 + ] ] [ 1 [ + ] '[ _ @ ] ] unit-test
+{ [ 1 + ] } [ 1 [ + ] '[ _ @ ] ] unit-test
 
-[ [ 1 + . ] ] [ 1 [ + ] '[ _ @ . ] ] unit-test
+{ [ 1 + . ] } [ 1 [ + ] '[ _ @ . ] ] unit-test
 
-[ [ + - ] ] [ [ + ] [ - ] '[ @ @ ] ] unit-test
+{ [ + - ] } [ [ + ] [ - ] '[ @ @ ] ] unit-test
 
-[ [ "a" write "b" print ] ]
+{ [ "a" write "b" print ] }
 [ "a" "b" '[ _ write _ print ] ] unit-test
 
-[ 1/2 ] [
+{ 1/2 } [
     1 '[ [ _ ] dip / ] 2 swap call
 ] unit-test
 
-[ { { 1 "a" "A" } { 1 "b" "B" } { 1 "c" "C" } } ] [
+{ { { 1 "a" "A" } { 1 "b" "B" } { 1 "c" "C" } } } [
     1 '[ [ _ ] 2dip 3array ]
     { "a" "b" "c" } { "A" "B" "C" } rot 2map
 ] unit-test
 
-[ { { 1 "a" } { 1 "b" } { 1 "c" } } ] [
+{ { { 1 "a" } { 1 "b" } { 1 "c" } } } [
     '[ [ 1 ] dip 2array ]
     { "a" "b" "c" } swap map
 ] unit-test
 
-[ { { 1 "a" 2 } { 1 "b" 2 } { 1 "c" 2 } } ] [
+{ { { 1 "a" 2 } { 1 "b" 2 } { 1 "c" 2 } } } [
     1 2 '[ [ _ ] dip _ 3array ]
     { "a" "b" "c" } swap map
 ] unit-test
 
 : funny-dip ( obj quot -- ) '[ [ @ ] dip ] call ; inline
 
-[ "hi" 3 ] [ "h" "i" 3 [ append ] funny-dip ] unit-test
+{ "hi" 3 } [ "h" "i" 3 [ append ] funny-dip ] unit-test
 
-[ { 1 2 3 } ] [
+{ { 1 2 3 } } [
     3 1 '[ _ iota [ _ + ] map ] call
 ] unit-test
 
-[ { 1 { 2 { 3 } } } ] [
+{ { 1 { 2 { 3 } } } } [
     1 2 3 '[ _ [ _ [ _ 1array ] call 2array ] call 2array ] call
 ] unit-test
 
 { 1 1 } [ '[ [ [ _ ] ] ] ] must-infer-as
 
-[ { { { 3 } } } ] [
+{ { { { 3 } } } } [
     3 '[ [ [ _ 1array ] call 1array ] call 1array ] call
 ] unit-test
 
-[ { { { 3 } } } ] [
+{ { { { 3 } } } } [
     3 '[ [ [ _ 1array ] call 1array ] call 1array ] call
 ] unit-test
 
 [ "USING: fry locals.backend ; f '[ load-local _ ]" eval( -- quot ) ]
 [ error>> >r/r>-in-fry-error? ] must-fail-with
 
-[ { { "a" 1 } { "b" 2 } { "c" 3 } { "d" 4 } } ] [
+{ { { "a" 1 } { "b" 2 } { "c" 3 } { "d" 4 } } } [
     1 2 3 4 '[ "a" _ 2array "b" _ 2array "c" _ 2array "d" _ 2array 4array ] call
 ] unit-test
index 56b21097e0cf23dc3cf3a2b1b6384240182fe86d..a87580b51f15c8fabfdf00ac0dbfb30964a762aa 100644 (file)
@@ -24,7 +24,7 @@ CONSTANT: test-file-contents "Files are so boring anymore."
         ] with-threaded-server
     ] cleanup-unique-directory ; inline
 
-[ t ]
+{ t }
 [
     [
         [
index b5a8c6351cc9e32081c8bc417f84857f946a14fc..64100b5ee65d5515b05d7f0d3498d9020b4dd403 100644 (file)
@@ -13,7 +13,7 @@ GET http://foo/bar?a=12&b=13 HTTP/1.1
 blah
 ;
 
-[ 25 ] [
+{ 25 } [
     action-request-test-1 lf>crlf
     [ read-request ] with-string-reader
     init-request
@@ -31,7 +31,7 @@ GET http://foo/bar/123 HTTP/1.1
 blah
 ;
 
-[ 25 ] [
+{ 25 } [
     action-request-test-2 lf>crlf
     [ read-request ] with-string-reader
     init-request
index 7ff5b2c3938e526e8c44a024b97d1118c0a49503..32fa64b9c4c55368dece9da55bad86e0768a597e 100644 (file)
@@ -7,7 +7,7 @@ IN: furnace.auth.providers.assoc.tests
     <users-in-memory> >>users
 realm set
 
-[ t ] [
+{ t } [
     "slava" <user>
         "foobar" >>encoded-password
         "slava@factorcode.org" >>email
@@ -16,20 +16,20 @@ realm set
     username>> "slava" =
 ] unit-test
 
-[ f ] [
+{ f } [
     "slava" <user>
         H{ } clone >>profile
     users new-user
 ] unit-test
 
-[ f ] [ "fdasf" "slava" check-login >boolean ] unit-test
+{ f } [ "fdasf" "slava" check-login >boolean ] unit-test
 
-[ ] [ "foobar" "slava" check-login "user" set ] unit-test
+{ } [ "foobar" "slava" check-login "user" set ] unit-test
 
-[ t ] [ "user" get >boolean ] unit-test
+{ t } [ "user" get >boolean ] unit-test
 
-[ ] [ "user" get "fdasf" >>encoded-password drop ] unit-test
+{ } [ "user" get "fdasf" >>encoded-password drop ] unit-test
 
-[ t ] [ "fdasf" "slava" check-login >boolean ] unit-test
+{ t } [ "fdasf" "slava" check-login >boolean ] unit-test
 
-[ f ] [ "foobar" "slava" check-login >boolean ] unit-test
+{ f } [ "foobar" "slava" check-login >boolean ] unit-test
index f172ce36f63a17fae14e45009edbedea4fd9f477..747fdd3c1fc86374197cdfcbf3bad0f5f3417f79 100644 (file)
@@ -1,17 +1,17 @@
 USING: html.forms furnace.chloe-tags tools.test ;
 IN: furnace.chloe-tags.tests
 
-[ f ] [ f parse-query-attr ] unit-test
+{ f } [ f parse-query-attr ] unit-test
 
-[ f ] [ "" parse-query-attr ] unit-test
+{ f } [ "" parse-query-attr ] unit-test
 
-[ H{ { "a" "b" } } ] [
+{ H{ { "a" "b" } } } [
     begin-form
     "b" "a" set-value
     "a" parse-query-attr
 ] unit-test
 
-[ H{ { "a" "b" } { "c" "d" } } ] [
+{ H{ { "a" "b" } { "c" "d" } } } [
     begin-form
     "b" "a" set-value
     "d" "c" set-value
index ca1faa7729e9cdbe0deb6553dc1f127b7ca14707..92e91ab3c908366bcca2db206ba63ccfb9cc41d9 100644 (file)
@@ -16,7 +16,7 @@ M: base-path-check-responder call-responder*
     "$funny-dispatcher" resolve-base-path
     <text-content> ;
 
-[ ] [
+{ } [
     <dispatcher>
         <dispatcher>
             <funny-dispatcher>
@@ -26,17 +26,17 @@ M: base-path-check-responder call-responder*
     main-responder set
 ] unit-test
 
-[ "/a/b/" ] [
+{ "/a/b/" } [
     V{ } responder-nesting set
     "a/b/c" split-path main-responder get call-responder body>>
 ] unit-test
 
-[ "<input type=\"hidden\" value=\"&amp;&amp;&amp;\" name=\"foo\"/>" ]
+{ "<input type=\"hidden\" value=\"&amp;&amp;&amp;\" name=\"foo\"/>" }
 [ "&&&" "foo" hidden-form-field xml>string ]
 unit-test
 
-[ f ] [ <request> request [ referrer ] with-variable ] unit-test
+{ f } [ <request> request [ referrer ] with-variable ] unit-test
 
-[ t ] [ URL" http://foo" dup url [ same-host? ] with-variable ] unit-test
+{ t } [ URL" http://foo" dup url [ same-host? ] with-variable ] unit-test
 
-[ f ] [ f URL" http://foo" url [ same-host? ] with-variable ] unit-test
+{ f } [ f URL" http://foo" url [ same-host? ] with-variable ] unit-test
index 923815328e74c094a17e59c59236ea7b45fd26d1..8cd3daa1d76d5448dc26ee49a9186c073582f42c 100644 (file)
@@ -8,13 +8,13 @@ os { [ windows? ] [ macosx? ] } 1|| [
     [ ] [ close-game-input ] unit-test
 ] when
 
-[ f        ] [ t t button-delta ] unit-test
-[ pressed  ] [ f t button-delta ] unit-test
-[ released ] [ t f button-delta ] unit-test
+{ f        } [ t t button-delta ] unit-test
+{ pressed  } [ f t button-delta ] unit-test
+{ released } [ t f button-delta ] unit-test
 
-[ f        ] [ 0.5 1.0 button-delta ] unit-test
-[ pressed  ] [ f   0.7 button-delta ] unit-test
-[ released ] [ 0.2 f   button-delta ] unit-test
+{ f        } [ 0.5 1.0 button-delta ] unit-test
+{ pressed  } [ f   0.7 button-delta ] unit-test
+{ released } [ 0.2 f   button-delta ] unit-test
 
-[  { pressed f f released } ] [ { f t f t } { t t f f }      buttons-delta    ] unit-test
-[ V{ pressed f f released } ] [ { f t f t } { t t f f } V{ } buttons-delta-as ] unit-test
+{  { pressed f f released } } [ { f t f t } { t t f f }      buttons-delta    ] unit-test
+{ V{ pressed f f released } } [ { f t f t } { t t f f } V{ } buttons-delta-as ] unit-test
index 68ae642f45d54119c2473a9a170b277c8fb7cf5d..360c3e5dbee2265559069a954f87cd2d99e3302c 100644 (file)
@@ -48,7 +48,7 @@ IN: generalizations.tests
 { 17 } [ 3 1 3 3 7 5 nsum ] unit-test
 { 4 1 } [ 4 nsum ] must-infer-as
 
-[ "e1" "o1" "o2" "e2" "o1" "o2" ] [ "e1" "e2" "o1" "o2" 2 nweave ] unit-test
+{ "e1" "o1" "o2" "e2" "o1" "o2" } [ "e1" "e2" "o1" "o2" 2 nweave ] unit-test
 { 3 5 } [ 2 nweave ] must-infer-as
 
 { { 0 1 2 } { 3 5 4 } { 7 8 6 } }
index 1abc074438b384f6890c1ce4ea1e6ae442a11bc1..5bcbd48e07fca54c155c3ced3cfca90a618c27ac 100755 (executable)
@@ -1,40 +1,40 @@
 USING: arrays tools.test globs io.pathnames sequences ;
 IN: globs.tests
 
-[ f ] [ "abd" "fdf" glob-matches? ] unit-test
-[ f ] [ "fdsafas" "?" glob-matches? ] unit-test
-[ t ] [ "fdsafas" "*as" glob-matches? ] unit-test
-[ t ] [ "fdsafas" "*a*" glob-matches? ] unit-test
-[ t ] [ "fdsafas" "*a?" glob-matches? ] unit-test
-[ t ] [ "fdsafas" "*?" glob-matches? ] unit-test
-[ f ] [ "fdsafas" "*s?" glob-matches? ] unit-test
-[ t ] [ "a" "[abc]" glob-matches? ] unit-test
-[ f ] [ "a" "[^abc]" glob-matches? ] unit-test
-[ t ] [ "d" "[^abc]" glob-matches? ] unit-test
-[ f ] [ "foo.java" "*.{xml,txt}" glob-matches? ] unit-test
-[ t ] [ "foo.txt" "*.{xml,txt}" glob-matches? ] unit-test
-[ t ] [ "foo.xml" "*.{xml,txt}" glob-matches? ] unit-test
-[ f ] [ "foo." "*.{xml,txt}" glob-matches? ] unit-test
-[ t ] [ "foo." "*.{,xml,txt}" glob-matches? ] unit-test
-[ t ] [ "foo.{" "*.{" glob-matches? ] unit-test
+{ f } [ "abd" "fdf" glob-matches? ] unit-test
+{ f } [ "fdsafas" "?" glob-matches? ] unit-test
+{ t } [ "fdsafas" "*as" glob-matches? ] unit-test
+{ t } [ "fdsafas" "*a*" glob-matches? ] unit-test
+{ t } [ "fdsafas" "*a?" glob-matches? ] unit-test
+{ t } [ "fdsafas" "*?" glob-matches? ] unit-test
+{ f } [ "fdsafas" "*s?" glob-matches? ] unit-test
+{ t } [ "a" "[abc]" glob-matches? ] unit-test
+{ f } [ "a" "[^abc]" glob-matches? ] unit-test
+{ t } [ "d" "[^abc]" glob-matches? ] unit-test
+{ f } [ "foo.java" "*.{xml,txt}" glob-matches? ] unit-test
+{ t } [ "foo.txt" "*.{xml,txt}" glob-matches? ] unit-test
+{ t } [ "foo.xml" "*.{xml,txt}" glob-matches? ] unit-test
+{ f } [ "foo." "*.{xml,txt}" glob-matches? ] unit-test
+{ t } [ "foo." "*.{,xml,txt}" glob-matches? ] unit-test
+{ t } [ "foo.{" "*.{" glob-matches? ] unit-test
 
-[ f ] [ "foo" "bar" append-path "*" glob-matches? ] unit-test
-[ t ] [ "foo" "bar" append-path "*" "*" append-path glob-matches? ] unit-test
-[ f ] [ "foo" "bar" append-path "foo?bar" glob-matches? ] unit-test
-[ t ] [ "foo" "bar" append-path "fo?" "bar" append-path glob-matches? ] unit-test
+{ f } [ "foo" "bar" append-path "*" glob-matches? ] unit-test
+{ t } [ "foo" "bar" append-path "*" "*" append-path glob-matches? ] unit-test
+{ f } [ "foo" "bar" append-path "foo?bar" glob-matches? ] unit-test
+{ t } [ "foo" "bar" append-path "fo?" "bar" append-path glob-matches? ] unit-test
 
-[ f ] [ "foo" glob-pattern? ] unit-test
-[ t ] [ "fo?" glob-pattern? ] unit-test
-[ t ] [ "fo*" glob-pattern? ] unit-test
-[ t ] [ "fo[mno]" glob-pattern? ] unit-test
-[ t ] [ "fo\\*" glob-pattern? ] unit-test
-[ t ] [ "fo{o,bro}" glob-pattern? ] unit-test
+{ f } [ "foo" glob-pattern? ] unit-test
+{ t } [ "fo?" glob-pattern? ] unit-test
+{ t } [ "fo*" glob-pattern? ] unit-test
+{ t } [ "fo[mno]" glob-pattern? ] unit-test
+{ t } [ "fo\\*" glob-pattern? ] unit-test
+{ t } [ "fo{o,bro}" glob-pattern? ] unit-test
 
-{ "foo" "bar" } path-separator join 1array
+{ "foo" "bar" } path-separator join }
 [ { "foo" "bar" "ba?" } path-separator join glob-parent-directory ] unit-test
 
-[ "foo" ]
+{ "foo" }
 [ { "foo" "b?r" "bas" } path-separator join glob-parent-directory ] unit-test
 
-[ "" ]
+{ "" }
 [ { "f*" "bar" "bas" } path-separator join glob-parent-directory ] unit-test
index 992c5f28f2c767aa84512477b839c9014aaff494..9e06078535a75f8c99ab86fcefc1630ee79cd2bd 100644 (file)
@@ -3,9 +3,9 @@ USING: graphs tools.test namespaces kernel sorting assocs ;
 H{ } "g" set
 { 1 2 3 } "v" set
 
-[ ] [ "v" dup get "g" get add-vertex ] unit-test
+{ } [ "v" dup get "g" get add-vertex ] unit-test
 
-[ { "v" } ] [ 1 "g" get at keys ] unit-test
+{ { "v" } } [ 1 "g" get at keys ] unit-test
 
 H{
     { 1 H{ { 1 1 } { 2 2 } } }
@@ -13,38 +13,38 @@ H{
     { 4 H{ { 4 4 } { 5 5 } } }
 } "g" set
 
-[ { 2 3 4 5 } ] [
+{ { 2 3 4 5 } } [
     2 [ "g" get at ] closure keys natural-sort
 ] unit-test
 
 H{ } "g" set
 
-[ ] [
+{ } [
     "mary"
     H{ { "billy" "one" } { "joey" "two" } }
     "g" get add-vertex*
 ] unit-test
 
-[ H{ { "mary" "one" } } ] [
+{ H{ { "mary" "one" } } } [
     "billy" "g" get at
 ] unit-test
 
-[ ] [
+{ } [
     "liz"
     H{ { "billy" "four" } { "fred" "three" } }
     "g" get add-vertex*
 ] unit-test
 
-[ H{ { "mary" "one" } { "liz" "four" } } ] [
+{ H{ { "mary" "one" } { "liz" "four" } } } [
     "billy" "g" get at
 ] unit-test
 
-[ ] [
+{ } [
     "mary"
     H{ { "billy" "one" } { "joey" "two" } }
     "g" get remove-vertex*
 ] unit-test
 
-[ H{ { "liz" "four" } } ] [
+{ H{ { "liz" "four" } } } [
     "billy" "g" get at
 ] unit-test
index a6e30d9d61588b2d378ed6657f8e21ca3fa12271..ea3b995e4e6b904503741097f6f176e222a56198 100644 (file)
@@ -4,12 +4,12 @@ IN: grouping.tests
 
 [ { 1 2 3 } 0 group ] must-fail
 
-[ { "hell" "o wo" "rld" } ] [ "hello world" 4 group ] unit-test
+{ { "hell" "o wo" "rld" } } [ "hello world" 4 group ] unit-test
 
-[ 0 ] [ { } 2 <clumps> length ] unit-test
-[ 0 ] [ { 1 } 2 <clumps> length ] unit-test
-[ 1 ] [ { 1 2 } 2 <clumps> length ] unit-test
-[ 2 ] [ { 1 2 3 } 2 <clumps> length ] unit-test
+{ 0 } [ { } 2 <clumps> length ] unit-test
+{ 0 } [ { 1 } 2 <clumps> length ] unit-test
+{ 1 } [ { 1 2 } 2 <clumps> length ] unit-test
+{ 2 } [ { 1 2 3 } 2 <clumps> length ] unit-test
 
 { { } } [ { 1 } 2 clump ] unit-test
 { { { 1 2 } } } [ { 1 2 } 2 clump ] unit-test
@@ -18,23 +18,23 @@ IN: grouping.tests
 { 0 } [ { } 2 <circular-clumps> length ] unit-test
 { 1 } [ { 1 } 2 <circular-clumps> length ] unit-test
 
-[ 2 ] [ { 1 2 } 2 <circular-clumps> length ] unit-test
-[ 3 ] [ { 1 2 3 } 2 <circular-clumps> length ] unit-test
+{ 2 } [ { 1 2 } 2 <circular-clumps> length ] unit-test
+{ 3 } [ { 1 2 3 } 2 <circular-clumps> length ] unit-test
 
-[ { { 1 1 }                 } ] [ { 1     } 2 circular-clump ] unit-test
-[ { { 1 2 } { 2 1 }         } ] [ { 1 2   } 2 circular-clump ] unit-test
-[ { { 1 2 } { 2 3 } { 3 1 } } ] [ { 1 2 3 } 2 circular-clump ] unit-test
+{ { { 1 1 }                 } } [ { 1     } 2 circular-clump ] unit-test
+{ { { 1 2 } { 2 1 }         } } [ { 1 2   } 2 circular-clump ] unit-test
+{ { { 1 2 } { 2 3 } { 3 1 } } } [ { 1 2 3 } 2 circular-clump ] unit-test
 
-[ 1 ] [ V{ } 2 <clumps> 0 over set-length seq>> length ] unit-test
-[ 2 ] [ V{ } 2 <clumps> 1 over set-length seq>> length ] unit-test
-[ 3 ] [ V{ } 2 <clumps> 2 over set-length seq>> length ] unit-test
+{ 1 } [ V{ } 2 <clumps> 0 over set-length seq>> length ] unit-test
+{ 2 } [ V{ } 2 <clumps> 1 over set-length seq>> length ] unit-test
+{ 3 } [ V{ } 2 <clumps> 2 over set-length seq>> length ] unit-test
 
-[ { { 1 2 } { 2 3 } } ] [ { 1 2 3 } 2 <clumps> [ >array ] map ] unit-test
+{ { { 1 2 } { 2 3 } } } [ { 1 2 3 } 2 <clumps> [ >array ] map ] unit-test
 
-[ f ] [ [ { } { } "Hello" ] all-equal? ] unit-test
-[ f ] [ [ { 2 } { } { } ] all-equal? ] unit-test
-[ t ] [ [ ] all-equal? ] unit-test
-[ t ] [ [ 1234 ] all-equal? ] unit-test
-[ f ] [ [ 1.0 1 1 ] all-equal? ] unit-test
-[ t ] [ { 1 2 3 4 } [ < ] monotonic? ] unit-test
-[ f ] [ { 1 2 3 4 } [ > ] monotonic? ] unit-test
+{ f } [ [ { } { } "Hello" ] all-equal? ] unit-test
+{ f } [ [ { 2 } { } { } ] all-equal? ] unit-test
+{ t } [ [ ] all-equal? ] unit-test
+{ t } [ [ 1234 ] all-equal? ] unit-test
+{ f } [ [ 1.0 1 1 ] all-equal? ] unit-test
+{ t } [ { 1 2 3 4 } [ < ] monotonic? ] unit-test
+{ f } [ { 1 2 3 4 } [ > ] monotonic? ] unit-test
index 22405132c332a45884a7780302173aa2e0429b26..fac1da352e8d2f031b695cabd5275f453ac96fa8 100644 (file)
@@ -12,11 +12,11 @@ CONSTANT: will
 : please-stand-up ( set obj -- ? )
     swap in? ;
 
-[ t ] [ will the-real-slim-shady please-stand-up ] unit-test
-[ t ] [ will clone the-real-slim-shady please-stand-up ] unit-test
+{ t } [ will the-real-slim-shady please-stand-up ] unit-test
+{ t } [ will clone the-real-slim-shady please-stand-up ] unit-test
 
-[ 2 ] [ will cardinality ] unit-test
-[ { "marshall mathers" } ] [
+{ 2 } [ will cardinality ] unit-test
+{ { "marshall mathers" } } [
     the-real-slim-shady will clone
     [ delete ] [ members ] bi
 ] unit-test
index 82703a0d20e469c49f4d5d0ee31527c17f71ff14..4dd7caa4fdf42438c8509ce32e417a250a918521 100644 (file)
@@ -6,15 +6,15 @@ tools.test ;
 
 IN: hash-sets.sequences.tests
 
-[ t ] [ 0 4 "asdf" <slice> SHS{ "asdf" } in? ] unit-test
+{ t } [ 0 4 "asdf" <slice> SHS{ "asdf" } in? ] unit-test
 
-[ SHS{ "asdf" } ] [
+{ SHS{ "asdf" } } [
     0 4 "asdf" <slice> SHS{ "asdf" } [ adjoin ] keep
 ] unit-test
 
-[ t ] [
+{ t } [
     SHS{ } clone 0 4 "asdf" <slice> over adjoin
     "asdf" swap in?
 ] unit-test
 
-[ { "asdf" } ] [ SHS{ "asdf" } members ] unit-test
+{ { "asdf" } } [ SHS{ "asdf" } members ] unit-test
index 4e773c2413a23e66ee09a86184e0483f498578af..a098bcf7c95dfb85ea791da6954842874f2945e9 100644 (file)
@@ -13,19 +13,19 @@ CONSTANT: will
 : please-stand-up ( assoc key -- value )
     of ;
 
-[ t ] [ will the-real-slim-shady please-stand-up ] unit-test
-[ t ] [ will clone the-real-slim-shady please-stand-up ] unit-test
+{ t } [ will the-real-slim-shady please-stand-up ] unit-test
+{ t } [ will clone the-real-slim-shady please-stand-up ] unit-test
 
-[ 2 ] [ will assoc-size ] unit-test
-[ { { "marshall mathers" f } } ] [
+{ 2 } [ will assoc-size ] unit-test
+{ { { "marshall mathers" f } } } [
     the-real-slim-shady will clone
     [ delete-at ] [ >alist ] bi
 ] unit-test
-[ t ] [
+{ t } [
     t the-real-slim-shady identity-associate
     t the-real-slim-shady identity-associate =
 ] unit-test
-[ f ] [
+{ f } [
     t the-real-slim-shady identity-associate
     t "marshall mathers"  identity-associate =
 ] unit-test
index f846378ddbcc730edc46749ef9d156a284d7c5dc..979d53e8621aabd3703ba149c4a373b861dbd346 100644 (file)
@@ -6,16 +6,16 @@ tools.test ;
 
 IN: hashtables.sequences.tests
 
-[ 1000 ] [ 0 4 "asdf" <slice> SH{ { "asdf" 1000 } } at ] unit-test
+{ 1000 } [ 0 4 "asdf" <slice> SH{ { "asdf" 1000 } } at ] unit-test
 
-[ 1001 ] [
+{ 1001 } [
     1001 0 4 "asdf" <slice> SH{ { "asdf" 1000 } }
     [ set-at ] [ at ] 2bi
 ] unit-test
 
-[ 1001 ] [
+{ 1001 } [
     SH{ } clone 1001 0 4 "asdf" <slice> pick set-at
     "asdf" of
 ] unit-test
 
-[ { { "asdf" 1000 } } ] [ SH{ { "asdf" 1000 } } >alist ] unit-test
+{ { { "asdf" 1000 } } } [ SH{ { "asdf" 1000 } } >alist ] unit-test
index 64871a69e5df7ba055213115f19f3a839b788e95..7fa0d5fae0ca16a41e1bd84185d33ccf2e5c0079 100644 (file)
@@ -8,24 +8,24 @@ IN: heaps.tests
 [ <min-heap> heap-pop ] must-fail
 [ <max-heap> heap-pop ] must-fail
 
-[ t ] [ <min-heap> heap-empty? ] unit-test
-[ f ] [ <min-heap> 1 t pick heap-push heap-empty? ] unit-test
-[ t ] [ <max-heap> heap-empty? ] unit-test
-[ f ] [ <max-heap> 1 t pick heap-push heap-empty? ] unit-test
+{ t } [ <min-heap> heap-empty? ] unit-test
+{ f } [ <min-heap> 1 t pick heap-push heap-empty? ] unit-test
+{ t } [ <max-heap> heap-empty? ] unit-test
+{ f } [ <max-heap> 1 t pick heap-push heap-empty? ] unit-test
 
 ! Binary Min Heap
 { 1 2 3 4 5 6 } [ 0 left 0 right 1 left 1 right 2 left 2 right ] unit-test
 { t } [ t 5 f <entry> t 3 f <entry> T{ min-heap } heap-compare ] unit-test
 { f } [ t 5 f <entry> t 3 f <entry> T{ max-heap } heap-compare ] unit-test
 
-[ t 2 ] [ <min-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push heap-pop ] unit-test
+{ t 2 } [ <min-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push heap-pop ] unit-test
 
-[ t 1 ] [ <min-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push t 1 pick heap-push heap-pop ] unit-test
+{ t 1 } [ <min-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push t 1 pick heap-push heap-pop ] unit-test
 
-[ t 400 ] [ <max-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push t 1 pick heap-push heap-pop ] unit-test
+{ t 400 } [ <max-heap> t 300 pick heap-push t 200 pick heap-push t 400 pick heap-push t 3 pick heap-push t 2 pick heap-push t 1 pick heap-push heap-pop ] unit-test
 
-[ 0 ] [ <max-heap> heap-size ] unit-test
-[ 1 ] [ <max-heap> t 1 pick heap-push heap-size ] unit-test
+{ 0 } [ <max-heap> heap-size ] unit-test
+{ 1 } [ <max-heap> t 1 pick heap-push heap-size ] unit-test
 
 : heap-sort ( alist heap -- keys )
     [ heap-push-all ] keep heap-pop-all ;
index 6fa4217522590af3b737a37b80ebdb20848a8533..f18ef7fc2ebd73b99fb916f8c48040638cc86b4a 100644 (file)
@@ -1,4 +1,4 @@
 USING: help.apropos tools.test ;
 IN: help.apropos.tests
 
-[ ] [ "swp" apropos ] unit-test
+{ } [ "swp" apropos ] unit-test
index 4ed3f72140cbb5d819c58c080992e7189473fa72..7a415c0f52c8772bc955c977f0d4bdfb4ca92649 100644 (file)
@@ -4,57 +4,57 @@ io.streams.string continuations debugger compiler.units eval
 help.syntax ;
 IN: help.crossref.tests
 
-[ ] [
+{ } [
     "IN: help.crossref.tests USING: help.syntax help.markup ; : foo ( -- ) ; HELP: foo \"foo is great\" ; ARTICLE: \"foo\" \"Foo\" { $subsection foo } ;" eval( -- )
 ] unit-test
 
-[ $subsection ] [
+{ $subsection } [
     "foo" article-content first first
 ] unit-test
 
-[ t ] [
+{ t } [
     "foo" article-children
     "foo" "help.crossref.tests" lookup-word >link 1array sequence=
 ] unit-test
 
-[ "foo" ] [ "foo" "help.crossref.tests" lookup-word article-parent ] unit-test
+{ "foo" } [ "foo" "help.crossref.tests" lookup-word article-parent ] unit-test
 
-[ ] [
+{ } [
     [ "foo" "help.crossref.tests" lookup-word forget ] with-compilation-unit
 ] unit-test
 
-[ ] [
+{ } [
     "IN: help.crossref.tests USING: help.syntax help.markup ; : bar ( -- ) ; HELP: bar \"bar is great\" ; ARTICLE: \"bar\" \"Bar\" { $subsection bar } ;" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "IN: ayy USE: help.syntax ARTICLE: \"b\" \"B\" ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: azz USE: help.syntax USE: help.markup ARTICLE: \"a\" \"A\" { $subsection \"b\" } ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: ayy USE: help.syntax ARTICLE: \"c\" \"C\" ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: azz USE: help.syntax USE: help.markup ARTICLE: \"a\" \"A\" { $subsection \"c\" } ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     [
         "IN: azz USE: help.syntax USE: help.markup ARTICLE: \"yyy\" \"YYY\" ; ARTICLE: \"xxx\" \"XXX\" { $subsection \"yyy\" } ; ARTICLE: \"yyy\" \"YYY\" ;"
         <string-reader> "parent-test" parse-stream drop
     ] [ :1 ] recover
 ] unit-test
 
-[ "xxx" ] [ "yyy" article-parent ] unit-test
+{ "xxx" } [ "yyy" article-parent ] unit-test
 
 ARTICLE: "crossref-test-1" "Crossref test 1"
 "Hello world" ;
@@ -62,4 +62,4 @@ ARTICLE: "crossref-test-1" "Crossref test 1"
 ARTICLE: "crossref-test-2" "Crossref test 2"
 { $markup-example { $subsection "crossref-test-1" } } ;
 
-[ { } ] [ "crossref-test-2" >link article-children ] unit-test
+{ { } } [ "crossref-test-2" >link article-children ] unit-test
index b230cf0f5633e5399052fdcb93bfc144685d7a8a..9cbeff31d8d60607c5f4b77e302a24621e2d006c 100644 (file)
@@ -3,7 +3,7 @@ prettyprint parser io.streams.string kernel source-files
 assocs namespaces words io sequences eval accessors see ;
 IN: help.definitions.tests
 
-[ ] [ \ + >link see ] unit-test
+{ } [ \ + >link see ] unit-test
 
 [
     [ 4 ] [
index 157d4c76e0a5d2ef1cf6cbb2e3aa2ed50833c2dc..a4891adf76654398c6dc005b5f7f60d1703d34d3 100644 (file)
@@ -1,7 +1,7 @@
 USING: help tools.test ;
 IN: help.handbook.tests
 
-[ ] [ "article-index" print-topic ] unit-test
-[ ] [ "primitive-index" print-topic ] unit-test
-[ ] [ "error-index" print-topic ] unit-test
-[ ] [ "class-index" print-topic ] unit-test
+{ } [ "article-index" print-topic ] unit-test
+{ } [ "primitive-index" print-topic ] unit-test
+{ } [ "error-index" print-topic ] unit-test
+{ } [ "class-index" print-topic ] unit-test
index d8c5a32f3dbd17dfd7ba76a97f2ab4f209aaf270..bd2f87c3bfd3161efc204a00f63a33f7dba42534 100644 (file)
@@ -2,5 +2,5 @@ USING: tools.test help kernel ;
 IN: help.tests
 
 [ 3 throw ] must-fail
-[ ] [ :help ] unit-test
-[ ] [ f print-topic ] unit-test
+{ } [ :help ] unit-test
+{ } [ f print-topic ] unit-test
index 1fe7ed5611c4f9cd0902f1f8956dff34bef03fbf..839b2d3ce20d0749a1e6a3e361c5fb761559bed7 100644 (file)
@@ -2,28 +2,28 @@ USING: help.html help.vocabs tools.test help.topics kernel sequences vocabs
 math ;
 IN: help.html.tests
 
-[ ] [ "xml" >link help>html drop ] unit-test
+{ } [ "xml" >link help>html drop ] unit-test
 
-[ ] [ "foobar" >link topic>filename drop ] unit-test
+{ } [ "foobar" >link topic>filename drop ] unit-test
 
-[ ] [ { "foo" "bar" } >link topic>filename drop ] unit-test
+{ } [ { "foo" "bar" } >link topic>filename drop ] unit-test
 
-[ ] [ \ + topic>filename drop ] unit-test
+{ } [ \ + topic>filename drop ] unit-test
 
-[ ] [ \ + >link topic>filename drop ] unit-test
+{ } [ \ + >link topic>filename drop ] unit-test
 
-[ ] [ "doesnotexist" >vocab-link topic>filename drop ] unit-test
+{ } [ "doesnotexist" >vocab-link topic>filename drop ] unit-test
 
-[ ] [ "kernel" lookup-vocab topic>filename drop ] unit-test
+{ } [ "kernel" lookup-vocab topic>filename drop ] unit-test
 
-[ ] [ "io" <vocab-tag> topic>filename drop ] unit-test
+{ } [ "io" <vocab-tag> topic>filename drop ] unit-test
 
-[ ] [ "Steve Jobs" <vocab-author> topic>filename drop ] unit-test
+{ } [ "Steve Jobs" <vocab-author> topic>filename drop ] unit-test
 
-[ ] [ f topic>filename drop ] unit-test
+{ } [ f topic>filename drop ] unit-test
 
-[ t ] [ all-vocabs-really [ vocab-spec? ] all? ] unit-test
+{ t } [ all-vocabs-really [ vocab-spec? ] all? ] unit-test
 
-[ t ] [ all-vocabs-really [ vocab-name "sequences.private" = ] any? ] unit-test
+{ t } [ all-vocabs-really [ vocab-name "sequences.private" = ] any? ] unit-test
 
-[ f ] [ all-vocabs-really [ vocab-name "scratchpad" = ] any? ] unit-test
+{ f } [ all-vocabs-really [ vocab-name "scratchpad" = ] any? ] unit-test
index 658f7c98cd97ac6a427b98634adb47e9ad4eb671..730a9a3b6d6cc31c22fba50bf92d5904dc715a27 100644 (file)
@@ -10,69 +10,69 @@ IN: help.markup.tests
 
 TUPLE: blahblah quux ;
 
-[ "int" ] [ [ { "int" } $instance ] with-markup-test ] unit-test
+{ "int" } [ [ { "int" } $instance ] with-markup-test ] unit-test
 
-[ ] [ \ quux>> print-topic ] unit-test
-[ ] [ \ >>quux print-topic ] unit-test
-[ ] [ \ blahblah? print-topic ] unit-test
+{ } [ \ quux>> print-topic ] unit-test
+{ } [ \ >>quux print-topic ] unit-test
+{ } [ \ blahblah? print-topic ] unit-test
 
 : fooey ( -- * ) "fooey" throw ;
 
-[ ] [ \ fooey print-topic ] unit-test
+{ } [ \ fooey print-topic ] unit-test
 
-[ ] [ gensym print-topic ] unit-test
+{ } [ gensym print-topic ] unit-test
 
-[ "a string" ]
+{ "a string" }
 [ [ { $or string } print-element ] with-markup-test ] unit-test
 
-[ "a string or an integer" ]
+{ "a string or an integer" }
 [ [ { $or string integer } print-element ] with-markup-test ] unit-test
 
-[ "a string, a fixnum, or an integer" ]
+{ "a string, a fixnum, or an integer" }
 [ [ { $or string fixnum integer } print-element ] with-markup-test ] unit-test
 
 ! Layout
 
-[ "span" ]
+{ "span" }
 [ [ { "span" } print-content ] with-markup-test ] unit-test
 
-[ "span1span2" ]
+{ "span1span2" }
 [ [ { "span1" "span2" } print-content ] with-markup-test ] unit-test
 
-[ "span1\n\nspan2" ]
+{ "span1\n\nspan2" }
 [ [ { "span1" { $nl } "span2" } print-content ] with-markup-test ] unit-test
 
-[ "\nspan" ]
+{ "\nspan" }
 [ [ { { $nl } "span" } print-content ] with-markup-test ] unit-test
 
-[ "2 2 +\nspan" ]
+{ "2 2 +\nspan" }
 [ [ { { $code "2 2 +" } "span" } print-content ] with-markup-test ] unit-test
 
-[ "2 2 +" ]
+{ "2 2 +" }
 [ [ { { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
 
-[ "span\n2 2 +" ]
+{ "span\n2 2 +" }
 [ [ { "span" { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
 
-[ "\n2 2 +" ]
+{ "\n2 2 +" }
 [ [ { { $nl } { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
 
-[ "span\n\n2 2 +" ]
+{ "span\n\n2 2 +" }
 [ [ { "span" { $nl } { $code "2 2 +" } } print-content ] with-markup-test ] unit-test
 
-[ "Heading" ]
+{ "Heading" }
 [ [ { { $heading "Heading" } } print-content ] with-markup-test ] unit-test
 
-[ "Heading1\n\nHeading2" ]
+{ "Heading1\n\nHeading2" }
 [ [ { { $heading "Heading1" } { $heading "Heading2" } } print-content ] with-markup-test ] unit-test
 
-[ "span\n\nHeading" ]
+{ "span\n\nHeading" }
 [ [ { "span" { $heading "Heading" } } print-content ] with-markup-test ] unit-test
 
-[ "\nHeading" ]
+{ "\nHeading" }
 [ [ { { $nl } { $heading "Heading" } } print-content ] with-markup-test ] unit-test
 
-[ "span\n\nHeading" ]
+{ "span\n\nHeading" }
 [ [ { "span" { $nl } { $heading "Heading" } } print-content ] with-markup-test ] unit-test
 
 : word-related-words ( word -- word related-words )
index cafeb009a40962d9bdefe02369118126567eeb3f..0291243dd5a4ccb1bdb9781080b6d967ec3930da 100644 (file)
@@ -5,17 +5,17 @@ IN: help.topics.tests
 
 ! Test help cross-referencing
 
-[ ] [ "Test B" { "Hello world." } <article> { "test" "b" } add-article ] unit-test
+{ } [ "Test B" { "Hello world." } <article> { "test" "b" } add-article ] unit-test
 
-[ ] [ "Test A" { { $subsection { "test" "b" } } } <article> { "test" "a" } add-article ] unit-test
+{ } [ "Test A" { { $subsection { "test" "b" } } } <article> { "test" "a" } add-article ] unit-test
 
 SYMBOL: foo
 
-[ ] [ "Test A" { { $subsection foo } } <article> { "test" "a" } add-article ] unit-test
+{ } [ "Test A" { { $subsection foo } } <article> { "test" "a" } add-article ] unit-test
 
 ! Test article location recording
 
-[ ] [
+{ } [
     {
         "USE: help.syntax"
         "ARTICLE: { \"test\" 1 } \"Hello\""
@@ -28,7 +28,7 @@ SYMBOL: foo
     ] with-scope
 ] unit-test
 
-[ { "testfile" 2 } ]
+{ { "testfile" 2 } }
 [ { "test" 1 } articles get at loc>> ] unit-test
 
-[ ] [ { "test" 1 } remove-article ] unit-test
+{ } [ { "test" 1 } remove-article ] unit-test
index bb7096824b2fcfd4dd0b36c743ff8698df74971e..c94792fc8c49e8661f6830fea476a6dc8f2b1079 100644 (file)
@@ -1,6 +1,6 @@
 USING: help.vocabs tools.test help.markup help vocabs io ;
 IN: help.vocabs.tests
 
-[ ] [ { $vocab "scratchpad" } print-content ] unit-test
-[ ] [ "classes" lookup-vocab print-topic ] unit-test
-[ ] [ nl ] unit-test
+{ } [ { $vocab "scratchpad" } print-content ] unit-test
+{ } [ "classes" lookup-vocab print-topic ] unit-test
+{ } [ nl ] unit-test
index fcceab18785e50df333102e6de7a476f9e07c841..940edf6f0ae9fd2d638a7887e98ebd7c93e56bcf 100644 (file)
@@ -9,4 +9,4 @@ M: hashtable blahblah 2nip [ 1 + ] change-count drop ;
 
 HINTS: M\ hashtable blahblah { object fixnum object } { object word object } ;
 
-[ t ] [ M\ hashtable blahblah { count>> count<< } inlined? ] unit-test
+{ t } [ M\ hashtable blahblah { count>> count<< } inlined? ] unit-test
index 2870619ce93031f397b172f11045ce2d15f5614c..80409fbcd513f9be03562cb8484ac6eb483985f0 100644 (file)
@@ -5,78 +5,78 @@ xml.writer xml.syntax ;
 FROM: html.components => inspector ;
 IN: html.components.tests
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [ 3 "hi" set-value ] unit-test
+{ } [ 3 "hi" set-value ] unit-test
 
-[ 3 ] [ "hi" value ] unit-test
+{ 3 } [ "hi" value ] unit-test
 
 TUPLE: color red green blue ;
 
-[ ] [ 1 2 3 color boa from-object ] unit-test
+{ } [ 1 2 3 color boa from-object ] unit-test
 
-[ 1 ] [ "red" value ] unit-test
+{ 1 } [ "red" value ] unit-test
 
-[ ] [ "jimmy" "red" set-value ] unit-test
+{ } [ "jimmy" "red" set-value ] unit-test
 
-[ "jimmy" ] [
+{ "jimmy" } [
     [
         "red" label render
     ] with-string-writer
 ] unit-test
 
-[ ] [ "<jimmy>" "red" set-value ] unit-test
+{ } [ "<jimmy>" "red" set-value ] unit-test
 
-[ "&lt;jimmy&gt;" ] [
+{ "&lt;jimmy&gt;" } [
     [
         "red" label render
     ] with-string-writer
 ] unit-test
 
-[ "<input value=\"&lt;jimmy>\" name=\"red\" type=\"hidden\"/>" ] [
+{ "<input value=\"&lt;jimmy>\" name=\"red\" type=\"hidden\"/>" } [
     [
         "red" hidden render
     ] with-string-writer
 ] unit-test
-[ "<input value=\"&lt;jimmy>\" name=\"red\" type=\"hidden\"/>" ] [
+{ "<input value=\"&lt;jimmy>\" name=\"red\" type=\"hidden\"/>" } [
     [
         "red" hidden render
     ] with-string-writer
 ] unit-test
 
-[ ] [ "'jimmy'" "red" set-value ] unit-test
+{ } [ "'jimmy'" "red" set-value ] unit-test
 
-[ "<input value=\"&apos;jimmy&apos;\" name=\"red\" size=\"5\" type=\"text\"/>" ] [
+{ "<input value=\"&apos;jimmy&apos;\" name=\"red\" size=\"5\" type=\"text\"/>" } [
     [
         "red" <field> 5 >>size render
     ] with-string-writer
 ] unit-test
 
-[ "<input value=\"\" name=\"red\" size=\"5\" type=\"password\"/>" ] [
+{ "<input value=\"\" name=\"red\" size=\"5\" type=\"password\"/>" } [
     [
         "red" <password> 5 >>size render
     ] with-string-writer
 ] unit-test
 
-[ ] [
+{ } [
     [
         "green" <textarea> render
     ] with-null-writer
 ] unit-test
 
-[ ] [
+{ } [
     [
         "green" <textarea> 25 >>rows 30 >>cols render
     ] with-null-writer
 ] unit-test
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [ "new york" "city1" set-value ] unit-test
+{ } [ "new york" "city1" set-value ] unit-test
 
-[ ] [ { "new york" "los angeles" "chicago" } "cities" set-value ] unit-test
+{ } [ { "new york" "los angeles" "chicago" } "cities" set-value ] unit-test
 
-[ ] [
+{ } [
     [
         "city1"
         <choice>
@@ -85,9 +85,9 @@ TUPLE: color red green blue ;
     ] with-null-writer
 ] unit-test
 
-[ ] [ { "los angeles" "new york" } "city2" set-value ] unit-test
+{ } [ { "los angeles" "new york" } "city2" set-value ] unit-test
 
-[ ] [
+{ } [
     [
         "city2"
         <choice>
@@ -97,7 +97,7 @@ TUPLE: color red green blue ;
     ] with-null-writer
 ] unit-test
 
-[ ] [
+{ } [
     [
         "city2"
         <choice>
@@ -108,11 +108,11 @@ TUPLE: color red green blue ;
     ] with-null-writer
 ] unit-test
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [ t "delivery" set-value ] unit-test
+{ } [ t "delivery" set-value ] unit-test
 
-[ "<input type=\"checkbox\" checked=\"true\" name=\"delivery\">Delivery</input>" ] [
+{ "<input type=\"checkbox\" checked=\"true\" name=\"delivery\">Delivery</input>" } [
     [
         "delivery"
         <checkbox>
@@ -121,9 +121,9 @@ TUPLE: color red green blue ;
     ] with-string-writer
 ] unit-test
 
-[ ] [ f "delivery" set-value ] unit-test
+{ } [ f "delivery" set-value ] unit-test
 
-[ "<input type=\"checkbox\" name=\"delivery\">Delivery</input>" ] [
+{ "<input type=\"checkbox\" name=\"delivery\">Delivery</input>" } [
     [
         "delivery"
         <checkbox>
@@ -138,71 +138,71 @@ M: link-test link-title drop "<Link Title>" ;
 
 M: link-test link-href drop "http://www.apple.com/foo&bar" ;
 
-[ ] [ link-test "link" set-value ] unit-test
+{ } [ link-test "link" set-value ] unit-test
 
-[ "<a href=\"http://www.apple.com/foo&amp;bar\">&lt;Link Title&gt;</a>" ] [
+{ "<a href=\"http://www.apple.com/foo&amp;bar\">&lt;Link Title&gt;</a>" } [
     [ "link" link new render ] with-string-writer
 ] unit-test
 
-[ ] [
+{ } [
     "<html>arbitrary <b>markup</b> for the win!</html>" "html" set-value
 ] unit-test
 
-[ "<html>arbitrary <b>markup</b> for the win!</html>" ] [
+{ "<html>arbitrary <b>markup</b> for the win!</html>" } [
     [ "html" html render ] with-string-writer
 ] unit-test
 
-[ ] [ "int x = 4;" "code" set-value ] unit-test
+{ } [ "int x = 4;" "code" set-value ] unit-test
 
-[ ] [ "java" "mode" set-value ] unit-test
+{ } [ "java" "mode" set-value ] unit-test
 
-[ "<span class=\"KEYWORD3\">int</span> x <span class=\"OPERATOR\">=</span> <span class=\"DIGIT\">4</span>;" ] [
+{ "<span class=\"KEYWORD3\">int</span> x <span class=\"OPERATOR\">=</span> <span class=\"DIGIT\">4</span>;" } [
     [ "code" <code> "mode" >>mode render ] with-string-writer
 ] unit-test
 
-[ ] [ "-foo\n-bar" "farkup" set-value ] unit-test
+{ } [ "-foo\n-bar" "farkup" set-value ] unit-test
 
-[ "<ul><li>foo</li><li>bar</li></ul>" ] [
+{ "<ul><li>foo</li><li>bar</li></ul>" } [
     [ "farkup" T{ farkup } render ] with-string-writer
 ] unit-test
 
-[ ] [ { 1 2 3 } "object" set-value ] unit-test
+{ } [ { 1 2 3 } "object" set-value ] unit-test
 
-[ t ] [
+{ t } [
     [ "object" inspector render ] with-string-writer
     "object" value [ describe ] with-html-writer xml>string
     =
 ] unit-test
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [
+{ } [
     "factor" [
         "concatenative" "model" set-value
     ] nest-form
 ] unit-test
 
-[
+{
     H{
         {
             "factor"
             T{ form f V{ } H{ { "model" "concatenative" } } }
         }
     }
-] [ values ] unit-test
+} [ values ] unit-test
 
-[ ] [ "error" "blah" <validation-error-state> "error" set-value ] unit-test
+{ } [ "error" "blah" <validation-error-state> "error" set-value ] unit-test
 
-[ ] [
+{ } [
     "error" hidden render
 ] unit-test
 
 ! Test xml in html components
-[ ] [
+{ } [
     [XML <foo/> XML] "xmltest" set-value
 ] unit-test
 
-[ "<foo/>" ] [
+{ "<foo/>" } [
     [
         "xmltest" html render
     ] with-string-writer
index d311e57bab1bdafceba37d7219fadd066657c993..9be0b2cec2097a6e19e5724b0e08de925fba0762 100644 (file)
@@ -9,13 +9,13 @@ IN: html.forms.tests
         call
     ] with-scope ; inline
 
-[ 14 ] [
+{ 14 } [
     [
         "14" [ v-number 13 v-min-value 100 v-max-value ] validate
     ] with-validation
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         "140" [ v-number 13 v-min-value 100 v-max-value ] validate
         [ validation-error-state? ]
@@ -31,7 +31,7 @@ person {
     { "age" [ v-number 13 v-min-value 100 v-max-value ] }
 } define-validators
 
-[ t t ] [
+{ t t } [
     [
         { { "age" "" } }
         { { "age" [ v-required ] } }
@@ -44,7 +44,7 @@ person {
     ] with-validation
 ] unit-test
 
-[ H{ { "a" 123 } } f ] [
+{ H{ { "a" 123 } } f } [
     [
         H{
             { "a" "123" }
@@ -59,7 +59,7 @@ person {
     ] with-validation
 ] unit-test
 
-[ t "foo" ] [
+{ t "foo" } [
     [
         "foo" validation-error
         validation-failed?
index 10d99f31a264fec2e1efcc8fcaa3442cc891797e..29cb81e8a5cb3c469c6a176474693db111408570 100644 (file)
@@ -9,15 +9,15 @@ IN: html.streams.tests
 
 [ [ ] make-html-string ] must-infer
 
-[ "" ] [
+{ "" } [
     [ "" write ] make-html-string
 ] unit-test
 
-[ "a" ] [
+{ "a" } [
     [ CHAR: a write1 ] make-html-string
 ] unit-test
 
-[ "&lt;" ] [
+{ "&lt;" } [
     [ "<" write ] make-html-string
 ] unit-test
 
@@ -25,13 +25,13 @@ TUPLE: funky town ;
 
 M: funky url-of "http://www.funky-town.com/" swap town>> append ;
 
-[ "<a href=\"http://www.funky-town.com/austin\">&lt;</a>" ] [
+{ "<a href=\"http://www.funky-town.com/austin\">&lt;</a>" } [
     [
         "<" "austin" funky boa write-object
     ] make-html-string
 ] unit-test
 
-[ "<span style=\"font-family: monospace; \">car</span>" ]
+{ "<span style=\"font-family: monospace; \">car</span>" }
 [
     [
         "car"
@@ -40,7 +40,7 @@ M: funky url-of "http://www.funky-town.com/" swap town>> append ;
     ] make-html-string
 ] unit-test
 
-[ "<span style=\"color: #ff00ff; \">car</span>" ]
+{ "<span style=\"color: #ff00ff; \">car</span>" }
 [
     [
         "car"
@@ -49,7 +49,7 @@ M: funky url-of "http://www.funky-town.com/" swap town>> append ;
     ] make-html-string
 ] unit-test
 
-[ "<div style=\"background-color: #ff00ff; white-space: pre; font-family: monospace; display: inline-block;\">cdr</div>" ]
+{ "<div style=\"background-color: #ff00ff; white-space: pre; font-family: monospace; display: inline-block;\">cdr</div>" }
 [
     [
         H{ { page-color T{ rgba f 1 0 1 1 } } }
@@ -57,13 +57,13 @@ M: funky url-of "http://www.funky-town.com/" swap town>> append ;
     ] make-html-string
 ] unit-test
 
-[ "<div style=\"white-space: pre; font-family: monospace; display: inline-block;\"></div><br/>" ] [
+{ "<div style=\"white-space: pre; font-family: monospace; display: inline-block;\"></div><br/>" } [
     [ H{ } [ ] with-nesting nl ] make-html-string
 ] unit-test
 
-[ ] [ [ { 1 2 3 } describe ] with-html-writer drop ] unit-test
+{ } [ [ { 1 2 3 } describe ] with-html-writer drop ] unit-test
 
-[ "<img src=\"/icons/class-word.tiff\"/>" ] [
+{ "<img src=\"/icons/class-word.tiff\"/>" } [
     [
         "text"
         { { image "vocab:definitions/icons/class-word.tiff" } }
index b27d706bca5c731fc8398887339ec79c72a1b0a4..891e32826a0c8f8442b82de20905c95183c0fc1e 100644 (file)
@@ -6,7 +6,7 @@ html.templates.chloe.compiler ;
 IN: html.templates.chloe.tests
 
 ! So that changes to code are reflected
-[ ] [ reset-cache ] unit-test
+{ } [ reset-cache ] unit-test
 
 : run-template ( quot -- string )
     with-string-writer [ "\r\n\t" member? ] reject
@@ -16,13 +16,13 @@ IN: html.templates.chloe.tests
     "vocab:html/templates/chloe/test/"
     prepend <chloe> ;
 
-[ "Hello world" ] [
+{ "Hello world" } [
     [
         "test1" test-template call-template
     ] run-template
 ] unit-test
 
-[ "Blah blah" "Hello world" ] [
+{ "Blah blah" "Hello world" } [
     [
         <box> title set
         [
@@ -32,7 +32,7 @@ IN: html.templates.chloe.tests
     ] with-scope
 ] unit-test
 
-[ "<html><head><title>Hello world</title></head><body>Blah blah</body></html>" ] [
+{ "<html><head><title>Hello world</title></head><body>Blah blah</body></html>" } [
     [
         [
             "test2" test-template call-template
@@ -42,7 +42,7 @@ IN: html.templates.chloe.tests
 
 : test4-aux? ( -- ? ) t ;
 
-[ "True" ] [
+{ "True" } [
     [
         "test4" test-template call-template
     ] run-template
@@ -50,15 +50,15 @@ IN: html.templates.chloe.tests
 
 : test5-aux? ( -- ? ) f ;
 
-[ "" ] [
+{ "" } [
     [
         "test5" test-template call-template
     ] run-template
 ] unit-test
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [ "A label" "label" set-value ] unit-test
+{ } [ "A label" "label" set-value ] unit-test
 
 SINGLETON: link-test
 
@@ -66,35 +66,35 @@ M: link-test link-title drop "<Link Title>" ;
 
 M: link-test link-href drop "http://www.apple.com/foo&bar" ;
 
-[ ] [ link-test "link" set-value ] unit-test
+{ } [ link-test "link" set-value ] unit-test
 
-[ ] [ "int x = 5;" "code" set-value ] unit-test
+{ } [ "int x = 5;" "code" set-value ] unit-test
 
-[ ] [ "c" "mode" set-value ] unit-test
+{ } [ "c" "mode" set-value ] unit-test
 
-[ ] [ { 1 2 3 } "inspector" set-value ] unit-test
+{ } [ { 1 2 3 } "inspector" set-value ] unit-test
 
-[ ] [ "<p>a paragraph</p>" "html" set-value ] unit-test
+{ } [ "<p>a paragraph</p>" "html" set-value ] unit-test
 
-[ ] [ "sheeple" "field" set-value ] unit-test
+{ } [ "sheeple" "field" set-value ] unit-test
 
-[ ] [ "a password" "password" set-value ] unit-test
+{ } [ "a password" "password" set-value ] unit-test
 
-[ ] [ "a\nb\nc" "textarea" set-value ] unit-test
+{ } [ "a\nb\nc" "textarea" set-value ] unit-test
 
-[ ] [ "new york" "choice" set-value ] unit-test
+{ } [ "new york" "choice" set-value ] unit-test
 
-[ ] [ { "new york" "detroit" "minneapolis" } "choices" set-value ] unit-test
+{ } [ { "new york" "detroit" "minneapolis" } "choices" set-value ] unit-test
 
-[ ] [
+{ } [
     [
         "test8" test-template call-template
     ] run-template drop
 ] unit-test
 
-[ ] [ { 1 2 3 } "numbers" set-value ] unit-test
+{ } [ { 1 2 3 } "numbers" set-value ] unit-test
 
-[ "<ul><li>1</li><li>2</li><li>3</li></ul>" ] [
+{ "<ul><li>1</li><li>2</li><li>3</li></ul>" } [
     [
         "test7" test-template call-template
     ] run-template [ blank? ] reject
@@ -102,67 +102,67 @@ M: link-test link-href drop "http://www.apple.com/foo&bar" ;
 
 TUPLE: person first-name last-name ;
 
-[ ] [
+{ } [
     {
         T{ person f "RBaxter" "Unknown" }
         T{ person f "Doug" "Coleman" }
     } "people" set-value
 ] unit-test
 
-[ "<table><tr><td>RBaxter</td><td>Unknown</td></tr><tr><td>Doug</td><td>Coleman</td></tr></table>" ] [
+{ "<table><tr><td>RBaxter</td><td>Unknown</td></tr><tr><td>Doug</td><td>Coleman</td></tr></table>" } [
     [
         "test8" test-template call-template
     ] run-template [ blank? ] reject
 ] unit-test
 
-[ ] [
+{ } [
     {
         H{ { "first-name" "RBaxter" } { "last-name" "Unknown" } }
         H{ { "first-name" "Doug"    } { "last-name" "Coleman" } }
     } "people" set-value
 ] unit-test
 
-[ "<table><tr><td>RBaxter</td><td>Unknown</td></tr><tr><td>Doug</td><td>Coleman</td></tr></table>" ] [
+{ "<table><tr><td>RBaxter</td><td>Unknown</td></tr><tr><td>Doug</td><td>Coleman</td></tr></table>" } [
     [
         "test8" test-template call-template
     ] run-template [ blank? ] reject
 ] unit-test
 
-[ ] [ 1 "id" set-value ] unit-test
+{ } [ 1 "id" set-value ] unit-test
 
-[ "<a name=\"1\">Hello</a>" ] [
+{ "<a name=\"1\">Hello</a>" } [
     [
         "test9" test-template call-template
     ] run-template
 ] unit-test
 
-[ ] [ H{ { "a" H{ { "b" "c" } } } } values set ] unit-test
+{ } [ H{ { "a" H{ { "b" "c" } } } } values set ] unit-test
 
-[ "<form method=\"post\" action=\"foo\"><div style=\"display: none;\"><input type=\"hidden\" value=\"a\" name=\"__n\"/></div></form>" ] [
+{ "<form method=\"post\" action=\"foo\"><div style=\"display: none;\"><input type=\"hidden\" value=\"a\" name=\"__n\"/></div></form>" } [
     [
         "test10" test-template call-template
     ] run-template
 ] unit-test
 
-[ ] [ begin-form ] unit-test
+{ } [ begin-form ] unit-test
 
-[ ] [
+{ } [
     <form> H{ { "first-name" "RBaxter" } { "last-name" "Unknown" } } >>values "person" set-value
 ] unit-test
 
-[ "<table><tr><td>RBaxter</td><td>Unknown</td></tr></table>" ] [
+{ "<table><tr><td>RBaxter</td><td>Unknown</td></tr></table>" } [
     [
         "test11" test-template call-template
     ] run-template [ blank? ] reject
 ] unit-test
 
-[ ] [
+{ } [
     begin-form
     { "a" "b" } "choices" set-value
     "true" "b" set-value
 ] unit-test
 
-[ "<input type=\"checkbox\" name=\"a\">a</input><input type=\"checkbox\" checked=\"true\" name=\"b\">b</input>" ] [
+{ "<input type=\"checkbox\" name=\"a\">a</input><input type=\"checkbox\" checked=\"true\" name=\"b\">b</input>" } [
     [
         "test12" test-template call-template
     ] run-template
@@ -174,7 +174,7 @@ TUPLE: person first-name last-name ;
     ] run-template
 ] [ error>> T{ unknown-chloe-tag f "this-tag-does-not-exist" } = ] must-fail-with
 
-[ "Hello &lt;world&gt; &amp;escaping test;" "Hello <world> &escaping test;" ] [
+{ "Hello &lt;world&gt; &amp;escaping test;" "Hello <world> &escaping test;" } [
     [
         <box> title set
         [
index 6179e0785956f305d9d337b37f471a0fe65dec25..7a8fec3022f67e499c904743be6eaf31fcedbbe4 100644 (file)
@@ -10,9 +10,9 @@ IN: html.templates.fhtml.tests
     [ ".html" append utf8 file-contents ] bi
     [ . . ] [ = ] 2bi ;
 
-[ t ] [ "example" test-template ] unit-test
-[ t ] [ "bug" test-template ] unit-test
-[ t ] [ "stack" test-template ] unit-test
+{ t } [ "example" test-template ] unit-test
+{ t } [ "bug" test-template ] unit-test
+{ t } [ "stack" test-template ] unit-test
 
 [
     [ ] [ "<%\n%>" parse-template drop ] unit-test
index d2d4fb5abe3c3057c69b7489a24dd5a08b7f87aa..8e59ae4fd47640212daccee5cc52458a48de0b53 100644 (file)
@@ -2,15 +2,15 @@ USING: accessors http.client http.client.private http
 io.streams.string kernel namespaces sequences tools.test urls ;
 IN: http.client.tests
 
-[ "localhost" f ] [ "localhost" parse-host ] unit-test
-[ "localhost" 8888 ] [ "localhost:8888" parse-host ] unit-test
+{ "localhost" f } [ "localhost" parse-host ] unit-test
+{ "localhost" 8888 } [ "localhost:8888" parse-host ] unit-test
 
-[ "foo.txt" ] [ "http://www.paulgraham.com/foo.txt" download-name ] unit-test
-[ "foo.txt" ] [ "http://www.arc.com/foo.txt?xxx" download-name ] unit-test
-[ "foo.txt" ] [ "http://www.arc.com/foo.txt/" download-name ] unit-test
-[ "www.arc.com" ] [ "http://www.arc.com////" download-name ] unit-test
+{ "foo.txt" } [ "http://www.paulgraham.com/foo.txt" download-name ] unit-test
+{ "foo.txt" } [ "http://www.arc.com/foo.txt?xxx" download-name ] unit-test
+{ "foo.txt" } [ "http://www.arc.com/foo.txt/" download-name ] unit-test
+{ "www.arc.com" } [ "http://www.arc.com////" download-name ] unit-test
 
-[
+{
     T{ request
         { url T{ url { protocol "http" } { host "www.apple.com" } { port 80 } { path "/index.html" } } }
         { method "GET" }
@@ -19,12 +19,12 @@ IN: http.client.tests
         { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
         { redirects 10 }
     }
-] [
+} [
     "http://www.apple.com/index.html"
     <get-request>
 ] unit-test
 
-[
+{
     T{ request
         { url T{ url { protocol "https" } { host "www.amazon.com" } { port 443 } { path "/index.html" } } }
         { method "GET" }
@@ -33,17 +33,17 @@ IN: http.client.tests
         { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
         { redirects 10 }
     }
-] [
+} [
     "https://www.amazon.com/index.html"
     <get-request>
 ] unit-test
 
-[ "HEAD" ] [ "http://google.com" <head-request> method>> ] unit-test
-[ "DELETE" ] [ "http://arc.com" <delete-request> method>> ] unit-test
-[ "TRACE" ] [ "http://concatenative.org" <trace-request> method>> ] unit-test
-[ "OPTIONS" ] [ "http://factorcode.org" <options-request> method>> ] unit-test
+{ "HEAD" } [ "http://google.com" <head-request> method>> ] unit-test
+{ "DELETE" } [ "http://arc.com" <delete-request> method>> ] unit-test
+{ "TRACE" } [ "http://concatenative.org" <trace-request> method>> ] unit-test
+{ "OPTIONS" } [ "http://factorcode.org" <options-request> method>> ] unit-test
 
-[ t ] [
+{ t } [
     {
         "HTTP/1.1 200 Document follows"
         "connection: close"
index fda88dd42aad8dad040de89a4e64b530308a2406..1b82e787bcfc96d5f76c8a6465d695728436586a 100644 (file)
@@ -6,24 +6,24 @@ db.sqlite make continuations urls hashtables accessors namespaces xml.data
 io.encodings.8-bit.latin1 random combinators.short-circuit ;
 IN: http.tests
 
-[ "text/plain" "UTF-8" ] [ "text/plain" parse-content-type ] unit-test
+{ "text/plain" "UTF-8" } [ "text/plain" parse-content-type ] unit-test
 
-[ "text/html" "ASCII" ] [ "text/html;  charset=ASCII" parse-content-type ] unit-test
+{ "text/html" "ASCII" } [ "text/html;  charset=ASCII" parse-content-type ] unit-test
 
-[ "text/html" "utf-8" ] [ "text/html; charset=\"utf-8\"" parse-content-type ] unit-test
+{ "text/html" "utf-8" } [ "text/html; charset=\"utf-8\"" parse-content-type ] unit-test
 
-[ "application/octet-stream" f ] [ "application/octet-stream" parse-content-type ] unit-test
+{ "application/octet-stream" f } [ "application/octet-stream" parse-content-type ] unit-test
 
-[ "localhost" f ] [ "localhost" parse-host ] unit-test
-[ "localhost" 8888 ] [ "localhost:8888" parse-host ] unit-test
-[ "::1" 8888 ] [ "::1:8888" parse-host ] unit-test
-[ "127.0.0.1" 8888 ] [ "127.0.0.1:8888" parse-host ] unit-test
+{ "localhost" f } [ "localhost" parse-host ] unit-test
+{ "localhost" 8888 } [ "localhost:8888" parse-host ] unit-test
+{ "::1" 8888 } [ "::1:8888" parse-host ] unit-test
+{ "127.0.0.1" 8888 } [ "127.0.0.1:8888" parse-host ] unit-test
 
-[ "localhost" ] [ T{ url { protocol "http" } { host "localhost" } } unparse-host ] unit-test
-[ "localhost" ] [ T{ url { protocol "http" } { host "localhost" } { port 80 } } unparse-host ] unit-test
-[ "localhost" ] [ T{ url { protocol "https" } { host "localhost" } { port 443 } } unparse-host ] unit-test
-[ "localhost:8080" ] [ T{ url { protocol "http" } { host "localhost" } { port 8080 } } unparse-host ] unit-test
-[ "localhost:8443" ] [ T{ url { protocol "https" } { host "localhost" } { port 8443 } } unparse-host ] unit-test
+{ "localhost" } [ T{ url { protocol "http" } { host "localhost" } } unparse-host ] unit-test
+{ "localhost" } [ T{ url { protocol "http" } { host "localhost" } { port 80 } } unparse-host ] unit-test
+{ "localhost" } [ T{ url { protocol "https" } { host "localhost" } { port 443 } } unparse-host ] unit-test
+{ "localhost:8080" } [ T{ url { protocol "http" } { host "localhost" } { port 8080 } } unparse-host ] unit-test
+{ "localhost:8443" } [ T{ url { protocol "https" } { host "localhost" } { port 8443 } } unparse-host ] unit-test
 
 STRING: read-request-test-1
 POST /bar HTTP/1.1
@@ -35,7 +35,7 @@ Content-type: application/octet-stream
 blah
 ;
 
-[
+{
     T{ request
         { url T{ url { path "/bar" } } }
         { method "POST" }
@@ -45,7 +45,7 @@ blah
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     read-request-test-1 lf>crlf [
         read-request
     ] with-string-reader
@@ -60,7 +60,7 @@ some-header: 1; 2
 blah
 ;
 
-read-request-test-1' 1array [
+read-request-test-1' }      [
     read-request-test-1 lf>crlf
     [ read-request ] with-string-reader
     [ write-request ] with-string-writer
@@ -74,7 +74,7 @@ Host: www.sex.com
 
 ;
 
-[
+{
     T{ request
         { url T{ url { host "www.sex.com" } { path "/bar" } } }
         { method "HEAD" }
@@ -83,7 +83,7 @@ Host: www.sex.com
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     read-request-test-2 lf>crlf [
         read-request
     ] with-string-reader
@@ -95,7 +95,7 @@ Host: www.sex.com:101
 
 ;
 
-[
+{
     T{ request
         { url T{ url { host "www.sex.com" } { port 101 } { path "/bar" } } }
         { method "HEAD" }
@@ -104,7 +104,7 @@ Host: www.sex.com:101
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     read-request-test-2' lf>crlf [
         read-request
     ] with-string-reader
@@ -120,7 +120,7 @@ GET /blah HTTP/1.0
 Host: "www.amazon.com"
 ;
 
-[ "www.amazon.com" ]
+{ "www.amazon.com" }
 [
     read-request-test-4 lf>crlf [ read-request ] with-string-reader
     "host" header
@@ -133,7 +133,7 @@ Content-Type: text/html; charset=UTF-8
 blah
 ;
 
-[
+{
     T{ response
         { version "1.1" }
         { code 404 }
@@ -144,7 +144,7 @@ blah
         { content-charset "UTF-8" }
         { content-encoding utf8 }
     }
-] [
+} [
     read-response-test-1 lf>crlf
     [ read-response ] with-string-reader
 ] unit-test
@@ -157,7 +157,7 @@ content-type: text/html; charset=UTF-8
 
 ;
 
-read-response-test-1' 1array [
+read-response-test-1' }      [
     URL" http://localhost/" url set
     read-response-test-1 lf>crlf
     [ read-response ] with-string-reader
@@ -166,12 +166,12 @@ read-response-test-1' 1array [
     string-lines "\n" join
 ] unit-test
 
-[ t ] [
+{ t } [
     "rmid=732423sdfs73242; path=/; domain=.example.net; expires=Fri, 31-Dec-2010 23:59:59 GMT"
     dup parse-set-cookie first unparse-set-cookie =
 ] unit-test
 
-[ t ] [
+{ t } [
     "a="
     dup parse-set-cookie first unparse-set-cookie =
 ] unit-test
@@ -183,7 +183,7 @@ Set-Cookie: oo="bar; a=b"; httponly=yes; sid=123456
 
 ;
 
-[ 2 ] [
+{ 2 } [
     read-response-test-2 lf>crlf
     [ read-response ] with-string-reader
     cookies>> length
@@ -196,7 +196,7 @@ Set-Cookie: oo="bar; a=b"; comment="your mom"; httponly=yes
 
 ;
 
-[ 1 ] [
+{ 1 } [
     read-response-test-3 lf>crlf
     [ read-response ] with-string-reader
     cookies>> length
@@ -226,7 +226,7 @@ http.server.dispatchers db.tuples ;
     "http://localhost/quit" add-addr http-get nip
     "Goodbye" assert= ;
 
-[ ] [
+{ } [
     [ test-db-file delete-file ] ignore-errors
 
     test-db [
@@ -391,11 +391,11 @@ test-db <db-persistence> [
 ] test-with-db-persistence
 
 ! Test cloning
-[ f ] [ <404> dup clone "b" "a" set-header drop "a" header ] unit-test
-[ f ] [ <404> dup clone "b" "a" <cookie> put-cookie drop "a" get-cookie ] unit-test
+{ f } [ <404> dup clone "b" "a" set-header drop "a" header ] unit-test
+{ f } [ <404> dup clone "b" "a" <cookie> put-cookie drop "a" get-cookie ] unit-test
 
 ! Test basic auth
-[ "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" ] [
+{ "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" } [
     <request> "Aladdin" "open sesame" set-basic-auth "Authorization" header
 ] unit-test
 
index 438f15a7a318609a1f47d45797c0542ce16f22ab..6be33002fbb1c59bdeb49fe6fccc3f3a4496fdc2 100644 (file)
@@ -1,20 +1,20 @@
 USING: http http.parsers tools.test ;
 IN: http.parsers.tests
 
-[ { } ] [ "" parse-cookie ] unit-test
-[ { } ] [ "" parse-set-cookie ] unit-test
+{ { } } [ "" parse-cookie ] unit-test
+{ { } } [ "" parse-set-cookie ] unit-test
 
 ! Make sure that totally invalid cookies don't confuse us
-[ { } ] [ "hello world; how are you" parse-cookie ] unit-test
+{ { } } [ "hello world; how are you" parse-cookie ] unit-test
 
-[ { T{ cookie { name "__s" } { value "12345567" } } } ]
+{ { T{ cookie { name "__s" } { value "12345567" } } } }
 [ "__s=12345567" parse-cookie ]
 unit-test
 
-[ { T{ cookie { name "CaseSensitive" } { value "aBc" } } } ]
+{ { T{ cookie { name "CaseSensitive" } { value "aBc" } } } }
 [ "CaseSensitive=aBc" parse-cookie ]
 unit-test
 
-[ { T{ cookie { name "__s" } { value "12345567" } } } ]
+{ { T{ cookie { name "__s" } { value "12345567" } } } }
 [ "__s=12345567;" parse-cookie ]
 unit-test
index da4c4c78ec9f73463d0c75d298d48749900b57e1..8ea09bd4a240560f37f626c7d93f62cd6f25034a 100644 (file)
@@ -63,7 +63,7 @@ M: path-check-responder call-responder*
     drop
     >array "text/plain" <content> ;
 
-[ { "c" } ] [
+{ { "c" } } [
     V{ } clone responder-nesting set
 
     { "b" "c" }
@@ -76,7 +76,7 @@ M: path-check-responder call-responder*
 ] unit-test
 
 ! Test that "" dispatcher works with default>>
-[ ] [
+{ } [
     <dispatcher>
         "" <mock-responder> "" add-responder
         "bar" <mock-responder> "bar" add-responder
index bfa3acbc46de1e0b5305bf532e872cb55f0ac2c9..6b777ff9f1ffcb5cfdf0b1900702524798d4f5df 100644 (file)
@@ -130,7 +130,7 @@ hello
 ! line(s) received where a Request-Line is expected. In other words, if
 ! the server is reading the protocol stream at the beginning of a
 ! message and receives a CRLF first, it should ignore the CRLF.
-[
+{
     T{ request
         { method "GET" }
         { url URL" /" }
@@ -139,7 +139,7 @@ hello
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     "\r\n\r\n\r\nGET / HTTP/1.0\r\n\r\n" [ read-request ] with-string-reader
 ] unit-test
 
@@ -147,7 +147,7 @@ hello
 ! The line terminator for message-header fields is the sequence CRLF.
 ! However, we recommend that applications, when parsing such headers,
 ! recognize a single LF as a line terminator and ignore the leading CR.
-[ t ] [
+{ t } [
     {
         "GET / HTTP/1.1"
         "connection: close"
index 410ab7ca3e55a7cac45180808be56f26ed8ac999..a3fbe2fe5497f7b6be6ea8c0b65ac0b96e7751a2 100644 (file)
@@ -21,9 +21,9 @@ H{ } clone params set
     "rewritten-param" >>param
 "rewrite" set
 
-[ { { } "DEFAULT!" } ] [ { } "rewrite" get call-responder ] unit-test
-[ { { } "xxx" } ] [ { "xxx" } "rewrite" get call-responder ] unit-test
-[ { { "blah" } "xxx" } ] [ { "xxx" "blah" } "rewrite" get call-responder ] unit-test
+{ { { } "DEFAULT!" } } [ { } "rewrite" get call-responder ] unit-test
+{ { { } "xxx" } } [ { "xxx" } "rewrite" get call-responder ] unit-test
+{ { { "blah" } "xxx" } } [ { "xxx" "blah" } "rewrite" get call-responder ] unit-test
 
 <vhost-rewrite>
     rewrite-test-child new >>child
@@ -32,17 +32,17 @@ H{ } clone params set
     "blogs.vegan.net" >>suffix
 "rewrite" set
 
-[ { { } "DEFAULT!" } ] [
+{ { { } "DEFAULT!" } } [
     URL" http://blogs.vegan.net" url set
     { } "rewrite" get call-responder
 ] unit-test
 
-[ { { } "DEFAULT!" } ] [
+{ { { } "DEFAULT!" } } [
     URL" http://www.blogs.vegan.net" url set
     { } "rewrite" get call-responder
 ] unit-test
 
-[ { { } "erg" } ] [
+{ { { } "erg" } } [
     URL" http://erg.blogs.vegan.net" url set
     { } "rewrite" get call-responder
 ] unit-test
index 83362e12aeff48a82d7f0dcf1c363df918b5cf87..fcc58d7e2970489715833d0c64e3c1f3070a0aeb 100644 (file)
@@ -3,28 +3,28 @@ http.server.requests io.encodings.utf8 io.encodings.binary 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
 
-[ "text/plain; charset=ASCII" ] [
+{ "text/plain; charset=ASCII" } [
     <response>
         "text/plain" >>content-type
         "ASCII" >>content-charset
     unparse-content-type
 ] unit-test
 
-[ "text/xml; charset=UTF-8" ] [
+{ "text/xml; charset=UTF-8" } [
     <response>
         "text/xml" >>content-type
     unparse-content-type
 ] unit-test
 
-[ "image/jpeg" ] [
+{ "image/jpeg" } [
     <response>
         "image/jpeg" >>content-type
     unparse-content-type
 ] unit-test
 
-[ "application/octet-stream" ] [
+{ "application/octet-stream" } [
     <response>
     unparse-content-type
 ] unit-test
@@ -33,7 +33,7 @@ IN: http.server.tests
 ! The line terminator for message-header fields is the sequence CRLF.
 ! However, we recommend that applications, when parsing such headers,
 ! recognize a single LF as a line terminator and ignore the leading CR.
-[ t ] [
+{ t } [
     {
         "GET / HTTP/1.1"
         "connection: close"
@@ -48,7 +48,7 @@ IN: http.server.tests
 ! line(s) received where a Request-Line is expected. In other words, if
 ! the server is reading the protocol stream at the beginning of a
 ! message and receives a CRLF first, it should ignore the CRLF.
-[
+{
     T{ request
         { method "GET" }
         { url URL" /" }
@@ -57,7 +57,7 @@ IN: http.server.tests
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     "\r\n\r\n\r\nGET / HTTP/1.0\r\n\r\n"
     [ read-request ] with-string-reader
 ] unit-test
@@ -65,7 +65,7 @@ IN: http.server.tests
 ! RFC 1945; Section 4.1
 ! Implement a version of Simple-Request, although rather than
 ! parse version 0.9, we parse 1.0 to return a Full-Response.
-[
+{
     T{ request
         { method "GET" }
         { url URL" /" }
@@ -74,7 +74,7 @@ IN: http.server.tests
         { cookies V{ } }
         { redirects 10 }
     }
-] [
+} [
     "\r\n\r\n\r\nGET /\r\n\r\n"
     [ read-request ] with-string-reader
 ] unit-test
index 185b0eb36194c016d12646e51b064212f432ad8a..0df3ca8501f926a0c8561502950bdb52d6c04e3f 100644 (file)
@@ -1,4 +1,4 @@
 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
index 0c647c62086bb75fbe7e35bba518b5958d190c4d..c2f83f4e4c21bf5ea2ab75ed2d617eaddf343f7f 100644 (file)
@@ -3,7 +3,7 @@
 USING: images tools.test kernel accessors ;
 IN: images.tests
 
-[ B{ 57 57 57 255 } ] [ 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{
+{ B{ 57 57 57 255 } } [ 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{
     0 0 0 0
     0 0 0 0
     0 0 0 0
@@ -12,14 +12,14 @@ IN: images.tests
     0 0 0 0
 } } pixel-at ] unit-test
 
-[ B{
+{ B{
     0 0 0 0
     0 0 0 0
     0 0 0 0
     57 57 57 255
     0 0 0 0
     0 0 0 0
-} ] [ B{ 57 57 57 255 } 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{
+} } [ B{ 57 57 57 255 } 1 1 T{ image f { 2 3 } RGBA ubyte-components f f B{
     0 0 0 0
     0 0 0 0
     0 0 0 0
index 799c14faebe259e07aca63119ff01b0cd2d61dd6..ada2194fe17ebd12f1047c4d73d4935e0c302da5 100644 (file)
@@ -6,14 +6,14 @@ IN: images.loader.gtk.tests
 : open-png-image ( -- image )
     "vocab:images/testing/png/basi0g01.png" load-image ;
 
-[ t ] [
+{ t } [
     open-png-image [ dim>> ] [
         image>GdkPixbuf &g_object_unref
         [ gdk_pixbuf_get_width ] [ gdk_pixbuf_get_height ] bi 2array
     ] bi =
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         open-png-image image>GdkPixbuf &g_object_unref
         "frob" GdkPixbuf>byte-array
index 778df760268e6573b6a8ec5eb2f18e650bc30021..7f7c17d7cbca9012342ecbc41af47d801808e452 100644 (file)
@@ -6,87 +6,87 @@ IN: images.normalization.tests
 
 ! 1>x
 
-[ B{ 255 255 } ]
+{ B{ 255 255 } }
 [ B{ 0 1 } 2 2 A L permute ] unit-test
 
-[ B{ 255 255 255 255 } ]
+{ B{ 255 255 255 255 } }
 [ B{ 0 1 } 2 2 A RG permute ] unit-test
 
-[ B{ 255 255 255 255 255 255 } ]
+{ B{ 255 255 255 255 255 255 } }
 [ B{ 0 1 } 2 2 A BGR permute ] unit-test
 
-[ B{ 0 255 255 255 1 255 255 255 } ]
+{ B{ 0 255 255 255 1 255 255 255 } }
 [ B{ 0 1 } 2 2 A ABGR permute ] unit-test
 
 ! Difference stride
 ! The last byte is padding, so it should not end up in the image
 
-[ B{ 255 255 } ]
+{ B{ 255 255 } }
 [ B{ 0 1 0 } 2 3 A L permute ] unit-test
 
-[ B{ 255 255 255 255 } ]
+{ B{ 255 255 255 255 } }
 [ B{ 0 1 0 } 2 3 A RG permute ] unit-test
 
-[ B{ 255 255 255 255 255 255 } ]
+{ B{ 255 255 255 255 255 255 } }
 [ B{ 0 1 0 } 2 3 A BGR permute ] unit-test
 
-[ B{ 0 255 255 255 1 255 255 255 } ]
+{ B{ 0 255 255 255 1 255 255 255 } }
 [ B{ 0 1 0 } 2 3 A ABGR permute ] unit-test
 
 ! 2>x
 
-[ B{ 0 2 } ]
+{ B{ 0 2 } }
 [ B{ 0 1 2 3 } 2 4 LA L permute ] unit-test
 
-[ B{ 255 255 255 255 } ]
+{ B{ 255 255 255 255 } }
 [ B{ 0 1 2 3 } 2 4 LA RG permute ] unit-test
 
-[ B{ 255 255 255 255 255 255 } ]
+{ B{ 255 255 255 255 255 255 } }
 [ B{ 0 1 2 3 } 2 4 LA BGR permute ] unit-test
 
-[ B{ 1 255 255 255 3 255 255 255 } ]
+{ B{ 1 255 255 255 3 255 255 255 } }
 [ B{ 0 1 2 3 } 2 4 LA ABGR permute ] unit-test
 
 ! 3>x
 
-[ B{ 255 255 } ]
+{ B{ 255 255 } }
 [ B{ 0 1 2 3 4 5 } 2 6 RGB L permute ] unit-test
 
-[ B{ 0 1 3 4 } ]
+{ B{ 0 1 3 4 } }
 [ B{ 0 1 2 3 4 5 } 2 6 RGB RG permute ] unit-test
 
-[ B{ 2 1 0 5 4 3 } ]
+{ B{ 2 1 0 5 4 3 } }
 [ B{ 0 1 2 3 4 5 } 2 6 RGB BGR permute ] unit-test
 
-[ B{ 255 2 1 0 255 5 4 3 } ]
+{ B{ 255 2 1 0 255 5 4 3 } }
 [ B{ 0 1 2 3 4 5 } 2 6 RGB ABGR permute ] unit-test
 
 ! 4>x
 
-[ B{ 255 255 } ]
+{ B{ 255 255 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA L permute ] unit-test
 
-[ B{ 0 1 4 5 } ]
+{ B{ 0 1 4 5 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA RG permute ] unit-test
 
-[ B{ 2 1 0 6 5 4 } ]
+{ B{ 2 1 0 6 5 4 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA BGR permute ] unit-test
 
-[ B{ 3 2 1 0 7 6 5 4 } ]
+{ B{ 3 2 1 0 7 6 5 4 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA ABGR permute ] unit-test
 
 ! Edge cases
 
-[ B{ 0 4 } ]
+{ B{ 0 4 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA R permute ] unit-test
 
-[ B{ 255 0 1 2 255 4 5 6 } ]
+{ B{ 255 0 1 2 255 4 5 6 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 RGBA XRGB permute ] unit-test
 
-[ B{ 1 2 3 255 5 6 7 255 } ]
+{ B{ 1 2 3 255 5 6 7 255 } }
 [ B{ 0 1 2 3 4 5 6 7 } 2 8 XRGB RGBA permute ] unit-test
 
-[ B{ 255 255 255 255 255 255 255 255 } ]
+{ B{ 255 255 255 255 255 255 255 255 } }
 [ B{ 0 1 } 2 2 L RGBA permute ] unit-test
 
 ! Invalid inputs
index bfde13f4c44dd735656195dbbf09ba79c6b5525f..74b9d1b14646d46f64d02d406338ff706d20fba3 100644 (file)
@@ -3,11 +3,11 @@ byte-arrays ;
 IN: images.tessellation
 
 ! Check an invariant we depend on
-[ t ] [
+{ t } [
     <image> B{ 1 2 3 } >>bitmap dup clone [ bitmap>> ] bi@ eq?
 ] unit-test
 
-[
+{
     {
         {
             T{ image f { 2 2 } L ubyte-components f f B{ 1 2 5 6 } }
@@ -18,7 +18,7 @@ IN: images.tessellation
             T{ image f { 2 2 } L ubyte-components f f B{ 11 12 15 16 } }
         }
     }
-] [
+} [
     <image>
         1 16 [a,b] >byte-array >>bitmap
         { 4 4 } >>dim
@@ -27,7 +27,7 @@ IN: images.tessellation
     { 2 2 } tesselate
 ] unit-test
 
-[
+{
     {
         {
             T{ image f { 2 2 } L ubyte-components f f B{ 1 2 4 5 } }
@@ -38,7 +38,7 @@ IN: images.tessellation
             T{ image f { 1 1 } L ubyte-components f f B{ 9 } }
         }
     }
-] [
+} [
     <image>
         1 9 [a,b] >byte-array >>bitmap
         { 3 3 } >>dim
index 9be32a2240cbba13229fa407314961f3b3721732..cc3532e214858c67fc60f9a52afe8921cd397649 100644 (file)
@@ -8,28 +8,28 @@ f describe
 H{ } describe
 H{ } describe
 
-[ "fixnum\n\n" ] [ [ 3 describe ] with-string-writer ] unit-test
+{ "fixnum\n\n" } [ [ 3 describe ] with-string-writer ] unit-test
 
-[ ] [ H{ } clone inspect ] unit-test
+{ } [ H{ } clone inspect ] unit-test
 
-[ ] [ "a" "b" &add ] unit-test
+{ } [ "a" "b" &add ] unit-test
 
-[ H{ { "b" "a" } } ] [ me get ] unit-test
+{ H{ { "b" "a" } } } [ me get ] unit-test
 
-[ ] [ "x" 0 &put ] unit-test
+{ } [ "x" 0 &put ] unit-test
 
-[ H{ { "b" "x" } } ] [ me get ] unit-test
+{ H{ { "b" "x" } } } [ me get ] unit-test
 
-[ ] [ 0 &at ] unit-test
+{ } [ 0 &at ] unit-test
 
-[ "x" ] [ me get ] unit-test
+{ "x" } [ me get ] unit-test
 
-[ ] [ &back ] unit-test
+{ } [ &back ] unit-test
 
-[ ] [ "y" 0 &rename ] unit-test
+{ } [ "y" 0 &rename ] unit-test
 
-[ H{ { "y" "x" } } ] [ me get ] unit-test
+{ H{ { "y" "x" } } } [ me get ] unit-test
 
-[ ] [ 0 &delete ] unit-test
+{ } [ 0 &delete ] unit-test
 
-[ H{ } ] [ me get ] unit-test
+{ H{ } } [ me get ] unit-test
index 01d64699720bd91f89539784609f2d2bdcccb296..79af789da7fb2c7ea4ece8a4a052a7bb3dd56fe9 100644 (file)
@@ -37,9 +37,9 @@ IN: interpolate.tests
     "Sup ${name}, we heard you liked ${noun}, so we put ${noun} on your ${noun} so you can ${verb} while you ${verb}." interpolate>string
 ] unit-test
 
-{ "Oops, I accidentally the whole economy..." } [
+{ "Oops, I accidentally the whole economy..." } {
     [let
         "economy" :> noun
         "accidentally" [ I[ Oops, I ${0} the whole ${noun}...]I ] with-string-writer
-    ]
+    }
 ] unit-test
index 19c6b64571a961f2ab226ceae69d45d0fde70d62..5438bd030b7c6c2c64fb8a52d47bc54256bde512 100644 (file)
@@ -3,16 +3,16 @@ IN: interval-maps.test
 
 SYMBOL: test
 
-[ ] [ { { { 4 8 } 3 } { 1 2 } } <interval-map> test set ] unit-test
-[ 3 ] [ 5 test get interval-at ] unit-test
-[ 3 ] [ 8 test get interval-at ] unit-test
-[ 3 ] [ 4 test get interval-at ] unit-test
-[ f ] [ 9 test get interval-at ] unit-test
-[ 2 ] [ 1 test get interval-at ] unit-test
-[ f ] [ 2 test get interval-at ] unit-test
-[ f ] [ 0 test get interval-at ] unit-test
+{ } [ { { { 4 8 } 3 } { 1 2 } } <interval-map> test set ] unit-test
+{ 3 } [ 5 test get interval-at ] unit-test
+{ 3 } [ 8 test get interval-at ] unit-test
+{ 3 } [ 4 test get interval-at ] unit-test
+{ f } [ 9 test get interval-at ] unit-test
+{ 2 } [ 1 test get interval-at ] unit-test
+{ f } [ 2 test get interval-at ] unit-test
+{ f } [ 0 test get interval-at ] unit-test
 
 [ { { { 1 4 } 3 } { { 4 8 } 6 } } <interval-map> ] must-fail
 
-[ { { { 1 3 } 2 } { { 4 5 } 4 } { { 7 8 } 4 } } ]
+{ { { { 1 3 } 2 } { { 4 5 } 4 } { { 7 8 } 4 } } }
 [ { { 1 2 } { 2 2 } { 3 2 } { 4 4 } { 5 4 } { 7 4 } { 8 4 } } coalesce ] unit-test
index 2d454eeb6182dda411531f3ed9b9a599372947e0..236d29b4a8304a3e96f631ffdd9a32f0b558b53e 100644 (file)
@@ -4,85 +4,85 @@ USING: tools.test interval-sets math grouping sequences accessors
 combinators.short-circuit literals ;
 IN: interval-sets.tests
 
-[ f ] [ 0 T{ interval-set } in? ] unit-test
-[ f ] [ 2 T{ interval-set } in? ] unit-test
+{ f } [ 0 T{ interval-set } in? ] unit-test
+{ f } [ 2 T{ interval-set } in? ] unit-test
 
 CONSTANT: i1 $[
     { { 3 4 } } <interval-set> ]
 
-[ f ] [ 2 i1 in? ] unit-test
-[ t ] [ 3 i1 in? ] unit-test
-[ t ] [ 4 i1 in? ] unit-test
-[ f ] [ 5 i1 in? ] unit-test
+{ f } [ 2 i1 in? ] unit-test
+{ t } [ 3 i1 in? ] unit-test
+{ t } [ 4 i1 in? ] unit-test
+{ f } [ 5 i1 in? ] unit-test
 
 CONSTANT: i2 $[
     { { 3 4 } } <interval-set>
     0x10FFFF <interval-not> ] ! unicode-max
 
-[ t ] [ 2 i2 in? ] unit-test
-[ f ] [ 3 i2 in? ] unit-test
-[ f ] [ 4 i2 in? ] unit-test
-[ t ] [ 5 i2 in? ] unit-test
+{ t } [ 2 i2 in? ] unit-test
+{ f } [ 3 i2 in? ] unit-test
+{ f } [ 4 i2 in? ] unit-test
+{ t } [ 5 i2 in? ] unit-test
 
 CONSTANT: i3 $[
     { { 2 4 } } <interval-set>
     { { 6 8 } } <interval-set>
     <interval-or> ]
 
-[ f ] [ 1 i3 in? ] unit-test
-[ t ] [ 2 i3 in? ] unit-test
-[ t ] [ 3 i3 in? ] unit-test
-[ t ] [ 4 i3 in? ] unit-test
-[ f ] [ 5 i3 in? ] unit-test
-[ t ] [ 6 i3 in? ] unit-test
-[ t ] [ 7 i3 in? ] unit-test
-[ t ] [ 8 i3 in? ] unit-test
-[ f ] [ 9 i3 in? ] unit-test
+{ f } [ 1 i3 in? ] unit-test
+{ t } [ 2 i3 in? ] unit-test
+{ t } [ 3 i3 in? ] unit-test
+{ t } [ 4 i3 in? ] unit-test
+{ f } [ 5 i3 in? ] unit-test
+{ t } [ 6 i3 in? ] unit-test
+{ t } [ 7 i3 in? ] unit-test
+{ t } [ 8 i3 in? ] unit-test
+{ f } [ 9 i3 in? ] unit-test
 
 CONSTANT: i4 $[
     { { 2 4 } } <interval-set>
     { { 6 8 } } <interval-set>
     <interval-and> ]
 
-[ f ] [ 1 i4 in? ] unit-test
-[ f ] [ 2 i4 in? ] unit-test
-[ f ] [ 3 i4 in? ] unit-test
-[ f ] [ 4 i4 in? ] unit-test
-[ f ] [ 5 i4 in? ] unit-test
-[ f ] [ 6 i4 in? ] unit-test
-[ f ] [ 7 i4 in? ] unit-test
-[ f ] [ 8 i4 in? ] unit-test
-[ f ] [ 9 i4 in? ] unit-test
+{ f } [ 1 i4 in? ] unit-test
+{ f } [ 2 i4 in? ] unit-test
+{ f } [ 3 i4 in? ] unit-test
+{ f } [ 4 i4 in? ] unit-test
+{ f } [ 5 i4 in? ] unit-test
+{ f } [ 6 i4 in? ] unit-test
+{ f } [ 7 i4 in? ] unit-test
+{ f } [ 8 i4 in? ] unit-test
+{ f } [ 9 i4 in? ] unit-test
 
 CONSTANT: i5 $[
     { { 2 5 } } <interval-set>
     { { 4 8 } } <interval-set>
     <interval-or> ]
 
-[ f ] [ 1 i5 in? ] unit-test
-[ t ] [ 2 i5 in? ] unit-test
-[ t ] [ 3 i5 in? ] unit-test
-[ t ] [ 4 i5 in? ] unit-test
-[ t ] [ 5 i5 in? ] unit-test
-[ t ] [ 6 i5 in? ] unit-test
-[ t ] [ 7 i5 in? ] unit-test
-[ t ] [ 8 i5 in? ] unit-test
-[ f ] [ 9 i5 in? ] unit-test
+{ f } [ 1 i5 in? ] unit-test
+{ t } [ 2 i5 in? ] unit-test
+{ t } [ 3 i5 in? ] unit-test
+{ t } [ 4 i5 in? ] unit-test
+{ t } [ 5 i5 in? ] unit-test
+{ t } [ 6 i5 in? ] unit-test
+{ t } [ 7 i5 in? ] unit-test
+{ t } [ 8 i5 in? ] unit-test
+{ f } [ 9 i5 in? ] unit-test
 
 CONSTANT: i6 $[
     { { 2 5 } } <interval-set>
     { { 4 8 } } <interval-set>
     <interval-and> ]
 
-[ f ] [ 1 i6 in? ] unit-test
-[ f ] [ 2 i6 in? ] unit-test
-[ f ] [ 3 i6 in? ] unit-test
-[ t ] [ 4 i6 in? ] unit-test
-[ t ] [ 5 i6 in? ] unit-test
-[ f ] [ 6 i6 in? ] unit-test
-[ f ] [ 7 i6 in? ] unit-test
-[ f ] [ 8 i6 in? ] unit-test
-[ f ] [ 9 i6 in? ] unit-test
+{ f } [ 1 i6 in? ] unit-test
+{ f } [ 2 i6 in? ] unit-test
+{ f } [ 3 i6 in? ] unit-test
+{ t } [ 4 i6 in? ] unit-test
+{ t } [ 5 i6 in? ] unit-test
+{ f } [ 6 i6 in? ] unit-test
+{ f } [ 7 i6 in? ] unit-test
+{ f } [ 8 i6 in? ] unit-test
+{ f } [ 9 i6 in? ] unit-test
 
 : criterion ( interval-set -- ? )
     array>> {
@@ -90,9 +90,9 @@ CONSTANT: i6 $[
         [ length even? ]
     } 1&& ;
 
-[ t ] [ i1 criterion ] unit-test
-[ t ] [ i2 criterion ] unit-test
-[ t ] [ i3 criterion ] unit-test
-[ t ] [ i4 criterion ] unit-test
-[ t ] [ i5 criterion ] unit-test
-[ t ] [ i6 criterion ] unit-test
+{ t } [ i1 criterion ] unit-test
+{ t } [ i2 criterion ] unit-test
+{ t } [ i3 criterion ] unit-test
+{ t } [ i4 criterion ] unit-test
+{ t } [ i5 criterion ] unit-test
+{ t } [ i6 criterion ] unit-test
index 571957cf4c9d23465b243229526793cfd4d20ee0..824dc3b0ece32b9b8b67e949c3be7b393afa2bb3 100644 (file)
@@ -4,19 +4,19 @@ USING: inverse tools.test arrays math kernel sequences
 math.functions math.constants continuations combinators.smart ;
 IN: inverse-tests
 
-[ 2 ] [ { 3 2 } [ 3 swap 2array ] undo ] unit-test
+{ 2 } [ { 3 2 } [ 3 swap 2array ] undo ] unit-test
 [ { 3 4 } [ dup 2array ] undo ] must-fail
 
 TUPLE: foo bar baz ;
 
 C: <foo> foo
 
-[ 1 2 ] [ 1 2 <foo> [ <foo> ] undo ] unit-test
+{ 1 2 } [ 1 2 <foo> [ <foo> ] undo ] unit-test
 
 : 2same ( x -- {x,x} ) dup 2array ;
 
-[ t ] [ { 3 3 } [ 2same ] matches? ] unit-test
-[ f ] [ { 3 4 } [ 2same ] matches? ] unit-test
+{ t } [ { 3 3 } [ 2same ] matches? ] unit-test
+{ f } [ { 3 4 } [ 2same ] matches? ] unit-test
 [ [ 2same ] matches? ] must-fail
 
 : something ( array -- num )
@@ -25,8 +25,8 @@ C: <foo> foo
         { [ 3array ] [ + + ] }
     } switch ;
 
-[ 5 ] [ { 1 2 2 } something ] unit-test
-[ 6 ] [ { 2 3 } something ] unit-test
+{ 5 } [ { 1 2 2 } something ] unit-test
+{ 6 } [ { 2 3 } something ] unit-test
 [ { 1 } something ] must-fail
 
 [ 1 2 [ eq? ] undo ] must-fail
@@ -34,12 +34,12 @@ C: <foo> foo
 : f>c ( *fahrenheit -- *celsius )
     32 - 1.8 / ;
 
-[ { 212.0 32.0 } ] [ { 100 0 } [ [ f>c ] map ] undo ] unit-test
-[ { t t f } ] [ { t f 1 } [ [ >boolean ] matches? ] map ] unit-test
-[ { t f } ] [ { { 1 2 3 } 4 } [ [ >array ] matches? ] map ] unit-test
-[ 9 9 ] [ 3 [ 1/2 ^ ] undo 3 [ sqrt ] undo ] unit-test
-[ 5 ] [ 6 5 - [ 6 swap - ] undo ] unit-test
-[ 6 ] [ 6 5 - [ 5 - ] undo ] unit-test
+{ { 212.0 32.0 } } [ { 100 0 } [ [ f>c ] map ] undo ] unit-test
+{ { t t f } } [ { t f 1 } [ [ >boolean ] matches? ] map ] unit-test
+{ { t f } } [ { { 1 2 3 } 4 } [ [ >array ] matches? ] map ] unit-test
+{ 9 9 } [ 3 [ 1/2 ^ ] undo 3 [ sqrt ] undo ] unit-test
+{ 5 } [ 6 5 - [ 6 swap - ] undo ] unit-test
+{ 6 } [ 6 5 - [ 5 - ] undo ] unit-test
 
 TUPLE: cons car cdr ;
 
@@ -56,41 +56,41 @@ C: <nil> nil
         [ "Malformed list" throw ]
     } switch ;
 
-[ 10 ] [ 1 2 3 4 <nil> <cons> <cons> <cons> <cons> list-sum ] unit-test
-[ ] [ <nil> [ <nil> ] undo ] unit-test
-[ 1 2 ] [ 1 2 <cons> [ <cons> ] undo ] unit-test
-[ t ] [ 1 2 <cons> [ <cons> ] matches? ] unit-test
-[ f ] [ 1 2 <cons> [ <foo> ] matches? ] unit-test
-[ "Malformed list" ] [ [ f list-sum ] [ ] recover ] unit-test
+{ 10 } [ 1 2 3 4 <nil> <cons> <cons> <cons> <cons> list-sum ] unit-test
+{ } [ <nil> [ <nil> ] undo ] unit-test
+{ 1 2 } [ 1 2 <cons> [ <cons> ] undo ] unit-test
+{ t } [ 1 2 <cons> [ <cons> ] matches? ] unit-test
+{ f } [ 1 2 <cons> [ <foo> ] matches? ] unit-test
+{ "Malformed list" } [ [ f list-sum ] [ ] recover ] unit-test
 
 : empty-cons ( -- cons ) cons new ;
 : cons* ( cdr car -- cons ) cons boa ;
 
-[ ] [ T{ cons f f f } [ empty-cons ] undo ] unit-test
-[ 1 2 ] [ 1 2 <cons> [ cons* ] undo ] unit-test
+{ } [ T{ cons f f f } [ empty-cons ] undo ] unit-test
+{ 1 2 } [ 1 2 <cons> [ cons* ] undo ] unit-test
 
-[ t ] [ pi [ pi ] matches? ] unit-test
-[ 0.0 ] [ 0.0 pi + [ pi + ] undo ] unit-test
-[ ] [ 3 [ __ ] undo ] unit-test
+{ t } [ pi [ pi ] matches? ] unit-test
+{ 0.0 } [ 0.0 pi + [ pi + ] undo ] unit-test
+{ } [ 3 [ __ ] undo ] unit-test
 
-[ 2.0 ] [ 2 3 ^ [ 3 ^ ] undo ] unit-test
-[ 3.0 ] [ 2 3 ^ [ 2 swap ^ ] undo ] unit-test
+{ 2.0 } [ 2 3 ^ [ 3 ^ ] undo ] unit-test
+{ 3.0 } [ 2 3 ^ [ 2 swap ^ ] undo ] unit-test
 
-[ { 1 } ] [ { 1 2 3 } [ { 2 3 } append ] undo ] unit-test
-[ { 3 } ] [ { 1 2 3 } [ { 1 2 } prepend ] undo ] unit-test
+{ { 1 } } [ { 1 2 3 } [ { 2 3 } append ] undo ] unit-test
+{ { 3 } } [ { 1 2 3 } [ { 1 2 } prepend ] undo ] unit-test
 [ { 1 2 3 } [ { 1 2 } append ] undo ] must-fail
 [ { 1 2 3 } [ { 2 3 } prepend ] undo ] must-fail
 
-[ [ sq ] ] [ [ sqrt ] [undo] ] unit-test
-[ [ sqrt ] ] [ [ sq ] [undo] ] unit-test
-[ [ not ] ] [ [ not ] [undo] ] unit-test
-[ { 3 2 1 } ] [ { 1 2 3 } [ reverse ] undo ] unit-test
+{ [ sq ] } [ [ sqrt ] [undo] ] unit-test
+{ [ sqrt ] } [ [ sq ] [undo] ] unit-test
+{ [ not ] } [ [ not ] [undo] ] unit-test
+{ { 3 2 1 } } [ { 1 2 3 } [ reverse ] undo ] unit-test
 
 TUPLE: funny-tuple ;
 : <funny-tuple> ( -- funny-tuple ) \ funny-tuple boa ;
 : funny-tuple ( -- ) "OOPS" throw ;
 
-[ ] [ [ <funny-tuple> ] [undo] drop ] unit-test
+{ } [ [ <funny-tuple> ] [undo] drop ] unit-test
 
-[ 0 ] [ { 1 2 } [ [ 1 + 2 ] { } output>sequence ] undo ] unit-test
-[ { 0 1 } ] [ 1 2 [ [ [ 1 + ] bi@ ] input<sequence ] undo ] unit-test
+{ 0 } [ { 1 2 } [ [ 1 + 2 ] { } output>sequence ] undo ] unit-test
+{ { 0 1 } } [ 1 2 [ [ [ 1 + ] bi@ ] input<sequence ] undo ] unit-test
index caf4c3691adccb2a1e6e0cfeeeb91a647b6d5116..0e9493ce5dd052781e8d3e18f3aed88b650bc451 100644 (file)
@@ -23,7 +23,7 @@ IN: io.backend.unix.tests
 
 yield
 
-[ { "Hello world" "FOO" } ] [
+{ { "Hello world" "FOO" } } [
     [
         socket-server <local> ascii [
             readln ,
@@ -73,33 +73,33 @@ yield
 
 [ datagram-client delete-file ] ignore-errors
 
-[ ] [ datagram-client <local> <datagram> "d" set ] unit-test
+{ } [ datagram-client <local> <datagram> "d" set ] unit-test
 
-[ ] [
+{ } [
     "hello" >byte-array
     datagram-server <local>
     "d" get send
 ] unit-test
 
-[ "olleh" t ] [
+{ "olleh" t } [
     "d" get receive
     datagram-server <local> =
     [ >string ] dip
 ] unit-test
 
-[ ] [
+{ } [
     "hello" >byte-array
     datagram-server <local>
     "d" get send
 ] unit-test
 
-[ "hello world" t ] [
+{ "hello world" t } [
     "d" get receive
     datagram-server <local> =
     [ >string ] dip
 ] unit-test
 
-[ ] [ "d" get dispose ] unit-test
+{ } [ "d" get dispose ] unit-test
 
 ! Test error behavior
 : another-datagram ( -- path ) "unix-domain-datagram-test-3" temp-file ;
@@ -108,11 +108,11 @@ yield
 
 datagram-client delete-file
 
-[ ] [ datagram-client <local> <datagram> "d" set ] unit-test
+{ } [ datagram-client <local> <datagram> "d" set ] unit-test
 
 [ B{ 1 2 3 } another-datagram <local> "d" get send ] must-fail
 
-[ ] [ "d" get dispose ] unit-test
+{ } [ "d" get dispose ] unit-test
 
 ! See what happens on send/receive after close
 
@@ -138,7 +138,7 @@ datagram-client delete-file
 ] must-fail
 
 ! closing stdin caused some problems
-[ ] [
+{ } [
     [
         vm ,
         "-i=" image append ,
index ab8afc19b68e7a2f08b15a042041e7c72fd85979..c8b1d4abb0d06808b4307033db1060df3534193b 100644 (file)
@@ -13,14 +13,14 @@ io.buffers kernel libc namespaces sequences strings tools.test ;
 : buffer-read-all ( buffer -- byte-array )
     [ buffer@ ] [ buffer-length ] bi memory>byte-array ;
 
-[ B{ } 65536 ] [
+{ B{ } 65536 } [
     65536 <buffer>
     dup buffer-read-all
     over buffer-capacity
     rot dispose
 ] unit-test
 
-[ "hello world" "" ] [
+{ "hello world" "" } [
     "hello world" string>buffer
     dup buffer-read-all >string
     0 pick buffer-reset
@@ -28,29 +28,29 @@ io.buffers kernel libc namespaces sequences strings tools.test ;
     rot dispose
 ] unit-test
 
-[ "hello" ] [
+{ "hello" } [
     "hello world" string>buffer
     5 over buffer-read >string swap dispose
 ] unit-test
 
-[ 11 ] [
+{ 11 } [
     "hello world" string>buffer
     [ buffer-length ] keep dispose
 ] unit-test
 
-[ "hello world" ] [
+{ "hello world" } [
     "hello" 1024 <buffer> [ buffer-set ] keep
     " world" >byte-array binary-object pick buffer-write
     dup buffer-read-all >string swap dispose
 ] unit-test
 
-[ CHAR: e ] [
+{ CHAR: e } [
     "hello" string>buffer
     1 over buffer-consume [ buffer-pop ] keep dispose
 ] unit-test
 
 "hello world" string>buffer "b" set
-[ "hello world" ] [ 1000 "b" get buffer-read >string ] unit-test
+{ "hello world" } [ 1000 "b" get buffer-read >string ] unit-test
 "b" get dispose
 
 100 <buffer> "b" set
@@ -58,16 +58,16 @@ io.buffers kernel libc namespaces sequences strings tools.test ;
 "b" get dispose
 
 "hello world" string>buffer "b" set
-[ "hello" CHAR: \s ] [ " " "b" get buffer-read-until [ >string ] dip ] unit-test
+{ "hello" CHAR: \s } [ " " "b" get buffer-read-until [ >string ] dip ] unit-test
 "b" get dispose
 
-[ 4 B{ 1 2 3 4 0 0 0 0 0 0 } ] [
+{ 4 B{ 1 2 3 4 0 0 0 0 0 0 } } [
     10 <buffer>
     [ B{ 1 2 3 4 } binary-object rot buffer-write ]
     [ 10 <byte-array> [ 10 rot buffer-read-into ] keep ] bi
 ] unit-test
 
-[ 4 { 1 2 3 4 f f f f f f } ] [
+{ 4 { 1 2 3 4 f f f f f f } } [
     10 <buffer>
     [ B{ 1 2 3 4 } binary-object rot buffer-write ]
     [ 10 f <array> [ 10 rot buffer-read-into ] keep ] bi
index 821d3a79312f86a36d28d9525509c72e3c01a542..2326f36c2b1df52b41d94f35bcc0ce3af5773bb6 100644 (file)
@@ -1,16 +1,16 @@
 IN: io.crlf.tests
 USING: io.crlf tools.test io.streams.string io ;
 
-[ "Hello, world." ] [ "Hello, world." [ read-crlf ] with-string-reader ] unit-test
-[ "Hello, world." ] [ "Hello, world.\r\n" [ read-crlf ] with-string-reader ] unit-test
+{ "Hello, world." } [ "Hello, world." [ read-crlf ] with-string-reader ] unit-test
+{ "Hello, world." } [ "Hello, world.\r\n" [ read-crlf ] with-string-reader ] unit-test
 [ "Hello, world.\r" [ read-crlf ] with-string-reader ] must-fail
-[ f ] [ "" [ read-crlf ] with-string-reader ] unit-test
-[ "" ] [ "\r\n" [ read-crlf ] with-string-reader ] unit-test
+{ f } [ "" [ read-crlf ] with-string-reader ] unit-test
+{ "" } [ "\r\n" [ read-crlf ] with-string-reader ] unit-test
 
 [ "foo\r" [ read-?crlf ] with-string-reader ] must-fail
-[ f ] [ "" [ read-?crlf ] with-string-reader ] unit-test
-[ "" ] [ "\n" [ read-?crlf ] with-string-reader ] unit-test
-[ "foo" ] [ "foo\n" [ read-?crlf ] with-string-reader ] unit-test
+{ f } [ "" [ read-?crlf ] with-string-reader ] unit-test
+{ "" } [ "\n" [ read-?crlf ] with-string-reader ] unit-test
+{ "foo" } [ "foo\n" [ read-?crlf ] with-string-reader ] unit-test
 
-[ "foo\nbar" ] [ "foo\n\rbar" crlf>lf ] unit-test
-[ "foo\r\nbar" ] [ "foo\nbar" lf>crlf ] unit-test
+{ "foo\nbar" } [ "foo\n\rbar" crlf>lf ] unit-test
+{ "foo\r\nbar" } [ "foo\nbar" lf>crlf ] unit-test
index 029490a178bbb05507105eeed5cb63a4dfb8c404..f937eac51afc3a3693367e72b19ef76191bdd9ff 100644 (file)
@@ -4,29 +4,29 @@ io.files io.files.info io.files.temp io.launcher io.pathnames
 kernel sequences tools.test ;
 IN: io.directories.tests
 
-[ { "kernel" } ] [
+{ { "kernel" } } [
     "core" resource-path [
         "." directory-files [ "kernel" = ] filter
     ] with-directory
 ] unit-test
 
-[ { "kernel" } ] [
+{ { "kernel" } } [
     "resource:core" [
         "." directory-files [ "kernel" = ] filter
     ] with-directory
 ] unit-test
 
-[ { "kernel" } ] [
+{ { "kernel" } } [
     "resource:core" [
         [ "kernel" = ] filter
     ] with-directory-files
 ] unit-test
 
-[ ] [ "blahblah" temp-file dup exists? [ delete-directory ] [ drop ] if ] unit-test
-[ ] [ "blahblah" temp-file make-directory ] unit-test
-[ t ] [ "blahblah" temp-file file-info directory? ] unit-test
+{ } [ "blahblah" temp-file dup exists? [ delete-directory ] [ drop ] if ] unit-test
+{ } [ "blahblah" temp-file make-directory ] unit-test
+{ t } [ "blahblah" temp-file file-info directory? ] unit-test
 
-[ t ] [
+{ t } [
     [ temp-directory "loldir" append-path delete-directory ] ignore-errors
     temp-directory [
         "loldir" make-directory
@@ -34,7 +34,7 @@ IN: io.directories.tests
     temp-directory "loldir" append-path exists?
 ] unit-test
 
-[ ] [
+{ } [
     [ temp-directory "loldir" append-path delete-directory ] ignore-errors
     temp-directory [
         "loldir" make-directory
@@ -42,7 +42,7 @@ IN: io.directories.tests
     ] with-directory
 ] unit-test
 
-[ "file1 contents" ] [
+{ "file1 contents" } [
     [ temp-directory "loldir" append-path delete-directory ] ignore-errors
     temp-directory [
         "file1 contents" "file1" utf8 set-file-contents
@@ -53,7 +53,7 @@ IN: io.directories.tests
     "file2" temp-file delete-file
 ] unit-test
 
-[ "file3 contents" ] [
+{ "file3 contents" } [
     temp-directory [
         "file3 contents" "file3" utf8 set-file-contents
         "file3" "file4" move-file
@@ -64,7 +64,7 @@ IN: io.directories.tests
 
 [ "file5" temp-file delete-file ] ignore-errors
 
-[ ] [
+{ } [
     temp-directory [
         "file5" touch-file
         "file5" delete-file
@@ -73,123 +73,123 @@ IN: io.directories.tests
 
 [ "file6" temp-file delete-file ] ignore-errors
 
-[ ] [
+{ } [
     temp-directory [
         "file6" touch-file
         "file6" link-info drop
     ] with-directory
 ] unit-test
 
-[ ] [
+{ } [
     { "Hello world." }
     "test-foo.txt" temp-file ascii set-file-lines
 ] unit-test
 
-[ ] [
+{ } [
     "test-foo.txt" temp-file ascii [
         "Hello appender." print
     ] with-file-appender
 ] unit-test
 
-[ ] [
+{ } [
     "test-bar.txt" temp-file ascii [
         "Hello appender." print
     ] with-file-appender
 ] unit-test
 
-[ "Hello world.\nHello appender.\n" ] [
+{ "Hello world.\nHello appender.\n" } [
     "test-foo.txt" temp-file ascii file-contents
 ] unit-test
 
-[ "Hello appender.\n" ] [
+{ "Hello appender.\n" } [
     "test-bar.txt" temp-file ascii file-contents
 ] unit-test
 
-[ ] [ "test-foo.txt" temp-file delete-file ] unit-test
+{ } [ "test-foo.txt" temp-file delete-file ] unit-test
 
-[ ] [ "test-bar.txt" temp-file delete-file ] unit-test
+{ } [ "test-bar.txt" temp-file delete-file ] unit-test
 
-[ f ] [ "test-foo.txt" temp-file exists? ] unit-test
+{ f } [ "test-foo.txt" temp-file exists? ] unit-test
 
-[ f ] [ "test-bar.txt" temp-file exists? ] unit-test
+{ f } [ "test-bar.txt" temp-file exists? ] unit-test
 
 [ "test-blah" temp-file delete-tree ] ignore-errors
 
-[ ] [ "test-blah" temp-file make-directory ] unit-test
+{ } [ "test-blah" temp-file make-directory ] unit-test
 
-[ ] [
+{ } [
     "test-blah/fooz" temp-file ascii <file-writer> dispose
 ] unit-test
 
-[ t ] [
+{ t } [
     "test-blah/fooz" temp-file exists?
 ] unit-test
 
-[ ] [ "test-blah/fooz" temp-file delete-file ] unit-test
+{ } [ "test-blah/fooz" temp-file delete-file ] unit-test
 
-[ ] [ "test-blah" temp-file delete-directory ] unit-test
+{ } [ "test-blah" temp-file delete-directory ] unit-test
 
-[ f ] [ "test-blah" temp-file exists? ] unit-test
+{ f } [ "test-blah" temp-file exists? ] unit-test
 
-[ ] [ "delete-tree-test/a/b/c" temp-file make-directories ] unit-test
+{ } [ "delete-tree-test/a/b/c" temp-file make-directories ] unit-test
 
-[ ] [
+{ } [
     { "Hi" }
     "delete-tree-test/a/b/c/d" temp-file ascii set-file-lines
 ] unit-test
 
-[ ] [
+{ } [
     "delete-tree-test" temp-file delete-tree
 ] unit-test
 
-[ ] [
+{ } [
     "copy-tree-test/a/b/c" temp-file make-directories
 ] unit-test
 
-[ ] [
+{ } [
     "Foobar"
     "copy-tree-test/a/b/c/d" temp-file
     ascii set-file-contents
 ] unit-test
 
-[ ] [
+{ } [
     "copy-tree-test" temp-file
     "copy-destination" temp-file copy-tree
 ] unit-test
 
-[ "Foobar" ] [
+{ "Foobar" } [
     "copy-destination/a/b/c/d" temp-file ascii file-contents
 ] unit-test
 
-[ ] [
+{ } [
     "copy-destination" temp-file delete-tree
 ] unit-test
 
-[ ] [
+{ } [
     "copy-tree-test" temp-file
     "copy-destination" temp-file copy-tree-into
 ] unit-test
 
-[ "Foobar" ] [
+{ "Foobar" } [
     "copy-destination/copy-tree-test/a/b/c/d" temp-file ascii file-contents
 ] unit-test
 
-[ ] [
+{ } [
     "copy-destination/copy-tree-test/a/b/c/d" temp-file "" temp-file copy-file-into
 ] unit-test
 
-[ "Foobar" ] [
+{ "Foobar" } [
     "d" temp-file ascii file-contents
 ] unit-test
 
-[ ] [ "d" temp-file delete-file ] unit-test
+{ } [ "d" temp-file delete-file ] unit-test
 
-[ ] [ "copy-destination" temp-file delete-tree ] unit-test
+{ } [ "copy-destination" temp-file delete-tree ] unit-test
 
-[ ] [ "copy-tree-test" temp-file delete-tree ] unit-test
+{ } [ "copy-tree-test" temp-file delete-tree ] unit-test
 
-[ ] [ "resource:deleteme" touch-file ] unit-test
-[ ] [ "resource:deleteme" delete-file ] unit-test
+{ } [ "resource:deleteme" touch-file ] unit-test
+{ } [ "resource:deleteme" delete-file ] unit-test
 
 ! Issue #890
 
index fdf05684ccec2c45275a585400e489c9726f5887..0bfc52da2a5cbf81d7f6808fcd15fdbee522c3b9 100644 (file)
@@ -2,19 +2,19 @@ USING: io.directories io.directories.hierarchy kernel
 sequences tools.test ;
 IN: io.directories.hierarchy.tests
 
-[ { "classes/tuple/tuple.factor" } ] [
+{ { "classes/tuple/tuple.factor" } } [
     "resource:core" [
         "." directory-tree-files [ "classes/tuple/tuple.factor" = ] filter
     ] with-directory
 ] unit-test
 
-[ { "classes/tuple" } ] [
+{ { "classes/tuple" } } [
     "resource:core" [
         "." directory-tree-files [ "classes/tuple" = ] filter
     ] with-directory
 ] unit-test
 
-[ { "classes/tuple/tuple.factor" } ] [
+{ { "classes/tuple/tuple.factor" } } [
     "resource:core" [
         [ "classes/tuple/tuple.factor" = ] filter
     ] with-directory-tree-files
index 1677f394af0a53214873b60bbd6e82790b95d721..070170c85c8121eb99375b6d0a5fca4939e4b9a9 100644 (file)
@@ -4,24 +4,24 @@ io.files.unique io.pathnames kernel namespaces sequences
 sorting strings tools.test ;
 IN: io.directories.search.tests
 
-[ t ] [
+{ t } [
     [
         10 [ "io.paths.test" "gogogo" make-unique-file ] replicate
         current-temporary-directory get [ ] find-all-files
     ] cleanup-unique-directory [ natural-sort ] same?
 ] unit-test
 
-[ f ] [
+{ f } [
     { "omg you shoudnt have a directory called this" "or this" }
     t
     [ "asdfasdfasdfasdfasdf" tail? ] find-in-directories
 ] unit-test
 
-[ f ] [
+{ f } [
     { } t [ "asdfasdfasdfasdfasdf" tail? ] find-in-directories
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         current-temporary-directory get
         "the-head" unique-file drop t
@@ -29,7 +29,7 @@ IN: io.directories.search.tests
     ] cleanup-unique-directory
 ] unit-test
 
-[ t ] [
+{ t } [
     [ unique-directory unique-directory ] output>array
     [ [ "abcd" append-path touch-file ] each ]
     [ [ file-name "abcd" = ] find-all-in-directories length 2 = ]
index 5a4b9c2907a9c88665a53a6dabc6289b9e0de893..97823f30d90f8273e3ffe1fc52edd8737840420f 100644 (file)
@@ -3,13 +3,13 @@ io.encodings.8-bit.private tools.test strings arrays
 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
-[ B{ 255 } ] [ { 255 } >string latin1 encode ] unit-test
+{ B{ 255 } } [ { 255 } >string latin1 encode ] unit-test
 
-[ "bar" ] [ "bar" latin1 decode ] unit-test
-[ { CHAR: b 233 CHAR: r } ] [ B{ CHAR: b 233 CHAR: r } latin1 decode >array ] unit-test
-[ { 0xfffd 0x20AC } ] [ B{ 0x81 0x80 } windows-1252 decode >array ] unit-test
+{ "bar" } [ "bar" latin1 decode ] unit-test
+{ { CHAR: b 233 CHAR: r } } [ B{ CHAR: b 233 CHAR: r } latin1 decode >array ] unit-test
+{ { 0xfffd 0x20AC } } [ B{ 0x81 0x80 } windows-1252 decode >array ] unit-test
 
-[ t ] [ \ latin1 8-bit-encoding? ] unit-test
-[ "bar" ] [ "bar" \ latin1 decode ] unit-test
+{ t } [ \ latin1 8-bit-encoding? ] unit-test
+{ "bar" } [ "bar" \ latin1 decode ] unit-test
index 7c6afce3794dacf7399e8ddba20995324866127d..669266a69da5175c82b369a88424848652056c18 100644 (file)
@@ -11,15 +11,15 @@ IN: io.encodings.euc.tests
 : unicode>euc-kr ( ch -- ch/f )
     euc-kr euc-table word-prop value-at ;
 
-[ f ] [ 0x80 euc-kr>unicode ] unit-test
-[ f ] [ 0xff euc-kr>unicode ] unit-test
-[ 0xac02 ] [ 0x8141 euc-kr>unicode ] unit-test
-[ 0x7f ] [ 0x7f euc-kr>unicode ] unit-test
-[ 0xc724 ] [ 0xc0b1 euc-kr>unicode ] unit-test
+{ f } [ 0x80 euc-kr>unicode ] unit-test
+{ f } [ 0xff euc-kr>unicode ] unit-test
+{ 0xac02 } [ 0x8141 euc-kr>unicode ] unit-test
+{ 0x7f } [ 0x7f euc-kr>unicode ] unit-test
+{ 0xc724 } [ 0xc0b1 euc-kr>unicode ] unit-test
 
-[ 0x8141 ] [ 0xac02 unicode>euc-kr ] unit-test
-[ 0x7f ] [ 0x7f unicode>euc-kr ] unit-test
-[ 0xc0b1 ] [ 0xc724 unicode>euc-kr ] unit-test
+{ 0x8141 } [ 0xac02 unicode>euc-kr ] unit-test
+{ 0x7f } [ 0x7f unicode>euc-kr ] unit-test
+{ 0xc0b1 } [ 0xc724 unicode>euc-kr ] unit-test
 
 : phrase-unicode ( -- s )
     "\u00b3d9\u00d574\u00bb3c\u00acfc \u00bc31\u00b450\u00c0b0\u00c774!" ;
@@ -39,12 +39,12 @@ IN: io.encodings.euc.tests
 : phrase-euc-kr>unicode ( -- s )
     phrase-euc-kr euc-kr decode ;
 
-[ t ] [ phrase-unicode>euc-kr >array phrase-euc-kr = ] unit-test
+{ t } [ phrase-unicode>euc-kr >array phrase-euc-kr = ] unit-test
 
-[ t ]  [ phrase-euc-kr>unicode phrase-unicode = ] unit-test
+{ t }  [ phrase-euc-kr>unicode phrase-unicode = ] unit-test
 
-[ t ] [ phrase-euc-kr 1 head* euc-kr decode phrase-unicode 1 head* = ] unit-test
+{ t } [ phrase-euc-kr 1 head* euc-kr decode phrase-unicode 1 head* = ] unit-test
 
-[ t ] [ phrase-euc-kr 3 head* euc-kr decode phrase-unicode 2 head* = ] unit-test
+{ t } [ phrase-euc-kr 3 head* euc-kr decode phrase-unicode 2 head* = ] unit-test
 
-[ t ] [ phrase-euc-kr 2 head* euc-kr decode phrase-unicode 2 head* CHAR: replacement-character suffix = ] unit-test
+{ t } [ phrase-euc-kr 2 head* euc-kr decode phrase-unicode 2 head* CHAR: replacement-character suffix = ] unit-test
index 11faeeb8e4c715441a6f00a3cbef36ca23af1cc1..e46fd0e26770b667be0f92a22a8e3e6d4db001a3 100644 (file)
@@ -3,24 +3,24 @@
 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 decode ] unit-test
-[ B{ 0xA1 0xA4 0x81 0x30 0x86 0x30 } ]
+{ "hello" } [ "hello" gb18030 encode >string ] unit-test
+{ "hello" } [ "hello" gb18030 decode ] unit-test
+{ B{ 0xA1 0xA4 0x81 0x30 0x86 0x30 } }
 [ B{ 0xB7 0xB8 } >string gb18030 encode ] unit-test
-[ { 0xB7 0xB8 } ]
+{ { 0xB7 0xB8 } }
 [ B{ 0xA1 0xA4 0x81 0x30 0x86 0x30 } gb18030 decode >array ] unit-test
-[ { 0xB7 CHAR: replacement-character } ]
+{ { 0xB7 CHAR: replacement-character } }
 [ B{ 0xA1 0xA4 0x81 0x30 0x86 } gb18030 decode >array ] unit-test
-[ { 0xB7 CHAR: replacement-character } ]
+{ { 0xB7 CHAR: replacement-character } }
 [ B{ 0xA1 0xA4 0x81 0x30 } gb18030 decode >array ] unit-test
-[ { 0xB7 CHAR: replacement-character } ]
+{ { 0xB7 CHAR: replacement-character } }
 [ B{ 0xA1 0xA4 0x81 } gb18030 decode >array ] unit-test
-[ { 0xB7 } ]
+{ { 0xB7 } }
 [ B{ 0xA1 0xA4 } gb18030 decode >array ] unit-test
-[ { CHAR: replacement-character } ]
+{ { CHAR: replacement-character } }
 [ B{ 0xA1 } >string gb18030 decode >array ] unit-test
-[ { 0x44D7 0x464B } ]
+{ { 0x44D7 0x464B } }
 [ B{ 0x82 0x33 0xA3 0x39 0x82 0x33 0xC9 0x31 }
   gb18030 decode >array ] unit-test
-[ { 0x82 0x33 0xA3 0x39 0x82 0x33 0xC9 0x31 } ]
+{ { 0x82 0x33 0xA3 0x39 0x82 0x33 0xC9 0x31 } }
 [ { 0x44D7 0x464B } >string gb18030 encode >array ] unit-test
index 67b849b2b24a3b4f9dadc67a23b9b3f86f10db2d..cf946df13b10c0c4c45343dc2f89fa74ad1f8a9d 100644 (file)
@@ -2,27 +2,27 @@ 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
-[ "UTF-8" ] [ utf8 encoding>name ] unit-test
+{ utf8 } [ "UTF-8" name>encoding ] unit-test
+{ utf8 } [ "utf8" name>encoding ] unit-test
+{ "UTF-8" } [ utf8 encoding>name ] unit-test
 
 ! We will never implement EBCDIC-FI-SE-A
 SINGLETON: ebcdic-fisea
 ebcdic-fisea "EBCDIC-FI-SE-A" register-encoding
-[ ebcdic-fisea ] [ "EBCDIC-FI-SE-A" name>encoding ] unit-test
-[ ebcdic-fisea ] [ "csEBCDICFISEA" name>encoding ] unit-test
-[ "EBCDIC-FI-SE-A" ] [ ebcdic-fisea encoding>name ] unit-test
+{ ebcdic-fisea } [ "EBCDIC-FI-SE-A" name>encoding ] unit-test
+{ ebcdic-fisea } [ "csEBCDICFISEA" name>encoding ] unit-test
+{ "EBCDIC-FI-SE-A" } [ ebcdic-fisea encoding>name ] unit-test
 
 ! Clean up after myself
-[ ] [
+{ } [
     "EBCDIC-FI-SE-A" n>e-table get delete-at
     "csEBCDICFISEA" n>e-table get delete-at
     ebcdic-fisea e>n-table get delete-at
 ] unit-test
-[ f ] [ "EBCDIC-FI-SE-A" name>encoding ] unit-test
-[ f ] [ "csEBCDICFISEA" name>encoding ] unit-test
-[ f ] [ ebcdic-fisea encoding>name ] unit-test
+{ f } [ "EBCDIC-FI-SE-A" name>encoding ] unit-test
+{ f } [ "csEBCDICFISEA" name>encoding ] unit-test
+{ f } [ ebcdic-fisea encoding>name ] unit-test
 
 [ ebcdic-fisea "foobar" register-encoding ] must-fail
-[ f ] [ "foobar" name>encoding ] unit-test
-[ f ] [ ebcdic-fisea encoding>name ] unit-test
+{ f } [ "foobar" name>encoding ] unit-test
+{ f } [ ebcdic-fisea encoding>name ] unit-test
index c641a719591d854477666b1ae78b1ef18de07fd0..6197f7ea697448466d94bffb3aec95e28a624322 100644 (file)
@@ -4,33 +4,33 @@ USING: io.encodings.string io.encodings.iso2022 tools.test
 io.encodings.iso2022.private literals strings byte-arrays ;
 IN: io.encodings.iso2022
 
-[ "hello" ] [ "hello" >byte-array iso2022 decode ] unit-test
-[ "hello" ] [ "hello" iso2022 encode >string ] unit-test
+{ "hello" } [ "hello" >byte-array iso2022 decode ] unit-test
+{ "hello" } [ "hello" iso2022 encode >string ] unit-test
 
-[ "hi" ] [ B{ CHAR: h ESC CHAR: ( CHAR: B CHAR: i } iso2022 decode ] unit-test
-[ "hi" ] [ B{ CHAR: h CHAR: i ESC CHAR: ( CHAR: B } iso2022 decode ] unit-test
-[ "hi\u00fffd" ] [ B{ CHAR: h CHAR: i ESC CHAR: ( } iso2022 decode ] unit-test
-[ "hi\u00fffd" ] [ B{ CHAR: h CHAR: i ESC } iso2022 decode ] unit-test
+{ "hi" } [ B{ CHAR: h ESC CHAR: ( CHAR: B CHAR: i } iso2022 decode ] unit-test
+{ "hi" } [ B{ CHAR: h CHAR: i ESC CHAR: ( CHAR: B } iso2022 decode ] unit-test
+{ "hi\u00fffd" } [ B{ CHAR: h CHAR: i ESC CHAR: ( } iso2022 decode ] unit-test
+{ "hi\u00fffd" } [ B{ CHAR: h CHAR: i ESC } iso2022 decode ] unit-test
 
-[ B{ CHAR: h ESC CHAR: ( CHAR: J 0xD8 } ] [ "h\u00ff98" iso2022 encode ] unit-test
-[ "h\u00ff98" ] [ B{ CHAR: h ESC CHAR: ( CHAR: J 0xD8 } iso2022 decode ] unit-test
-[ "hi" ] [ B{ CHAR: h ESC CHAR: ( CHAR: J CHAR: i } iso2022 decode ] unit-test
-[ "h" ] [ B{ CHAR: h ESC CHAR: ( CHAR: J } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: ( CHAR: J 0x80 } iso2022 decode ] unit-test
+{ B{ CHAR: h ESC CHAR: ( CHAR: J 0xD8 } } [ "h\u00ff98" iso2022 encode ] unit-test
+{ "h\u00ff98" } [ B{ CHAR: h ESC CHAR: ( CHAR: J 0xD8 } iso2022 decode ] unit-test
+{ "hi" } [ B{ CHAR: h ESC CHAR: ( CHAR: J CHAR: i } iso2022 decode ] unit-test
+{ "h" } [ B{ CHAR: h ESC CHAR: ( CHAR: J } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: ( CHAR: J 0x80 } iso2022 decode ] unit-test
 
-[ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E 0x47 } ] [ "h\u007126" iso2022 encode ] unit-test
-[ "h\u007126" ] [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E 0x47 } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E } iso2022 decode ] unit-test
-[ "h" ] [ B{ CHAR: h ESC CHAR: $ CHAR: B } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x80 0x80 } iso2022 decode ] unit-test
+{ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E 0x47 } } [ "h\u007126" iso2022 encode ] unit-test
+{ "h\u007126" } [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E 0x47 } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x3E } iso2022 decode ] unit-test
+{ "h" } [ B{ CHAR: h ESC CHAR: $ CHAR: B } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ CHAR: B 0x80 0x80 } iso2022 decode ] unit-test
 
-[ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 0x54 } ] [ "h\u0058ce" iso2022 encode ] unit-test
-[ "h\u0058ce" ] [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 0x54 } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 } iso2022 decode ] unit-test
-[ "h" ] [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ CHAR: ( } iso2022 decode ] unit-test
-[ "h\u00fffd" ] [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x70 0x70 } iso2022 decode ] unit-test
+{ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 0x54 } } [ "h\u0058ce" iso2022 encode ] unit-test
+{ "h\u0058ce" } [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 0x54 } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x38 } iso2022 decode ] unit-test
+{ "h" } [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ CHAR: ( } iso2022 decode ] unit-test
+{ "h\u00fffd" } [ B{ CHAR: h ESC CHAR: $ CHAR: ( CHAR: D 0x70 0x70 } iso2022 decode ] unit-test
 
 [ "\u{syriac-music}" iso2022 encode ] must-fail
index bacc43f0a7f119c231a46c138b5dddb94d0d066d..99f12baf9f596641e823ea087c85014a10383a5b 100644 (file)
@@ -12,9 +12,9 @@ IN: io.encodings.johab.tests
     johab euc-table word-prop value-at ;
 
 ! johab encodings
-[ 0x20 ] [ 0x20 johab>unicode ] unit-test
-[ 0x3133 ] [ 0x8444 johab>unicode ] unit-test
-[ 0x8A5D ] [ 0xAD4F unicode>johab ] unit-test
+{ 0x20 } [ 0x20 johab>unicode ] unit-test
+{ 0x3133 } [ 0x8444 johab>unicode ] unit-test
+{ 0x8A5D } [ 0xAD4F unicode>johab ] unit-test
 
 : phrase-unicode ( -- s )
     "\u00b3d9\u00d574\u00bb3c\u00acfc \u00bc31\u00b450\u00c0b0\u00c774!" ;
@@ -31,5 +31,5 @@ IN: io.encodings.johab.tests
 : phrase-unicode>johab ( -- s )
     phrase-unicode johab encode ;
 
-[ t ] [ phrase-johab>unicode phrase-unicode = ] unit-test
-[ t ] [ phrase-unicode>johab phrase-johab = ] unit-test
+{ t } [ phrase-johab>unicode phrase-unicode = ] unit-test
+{ t } [ phrase-unicode>johab phrase-johab = ] unit-test
index 0f91b233f08518626e26c1009d5f4147d2b41b1f..91f8a93892d33873cd8fa57010e42c10d5cf8871 100644 (file)
@@ -3,15 +3,15 @@
 USING: io.encodings.shift-jis tools.test io.encodings.string arrays strings ;
 IN: io.encodings.shift-jis.tests
 
-[ { CHAR: replacement-character } ] [ { 141 } shift-jis decode >array ] unit-test
-[ "" ] [ "" shift-jis decode >string ] unit-test
-[ "" ] [ "" shift-jis encode >string ] unit-test
+{ { CHAR: replacement-character } } [ { 141 } shift-jis decode >array ] unit-test
+{ "" } [ "" shift-jis decode >string ] unit-test
+{ "" } [ "" shift-jis encode >string ] unit-test
 [ { CHAR: replacement-character } shift-jis encode ] must-fail
-[ "ab¥ィ" ] [ { CHAR: a CHAR: b 0x5C 0xA8 } shift-jis decode ] unit-test
-[ { CHAR: a CHAR: b 0x5C 0xA8 } ] [ "ab¥ィ" shift-jis encode >array ] unit-test
-[ "ab\\ィ" ] [ { CHAR: a CHAR: b 0x5C 0xA8 } windows-31j decode ] unit-test
-[ { CHAR: a CHAR: b 0x5C 0xA8 } ] [ "ab\\ィ" windows-31j encode >array ] unit-test
-[ "\u000081\u0000c8" ] [ CHAR: logical-and 1string windows-31j encode >string ] unit-test
-[ "\u000081\u0000c8" ] [ CHAR: logical-and 1string shift-jis encode >string ] unit-test
-[ { CHAR: logical-and } ] [ "\u000081\u0000c8" windows-31j decode >array ] unit-test
-[ { CHAR: logical-and } ] [ "\u000081\u0000c8" shift-jis decode >array ] unit-test
+{ "ab¥ィ" } [ { CHAR: a CHAR: b 0x5C 0xA8 } shift-jis decode ] unit-test
+{ { CHAR: a CHAR: b 0x5C 0xA8 } } [ "ab¥ィ" shift-jis encode >array ] unit-test
+{ "ab\\ィ" } [ { CHAR: a CHAR: b 0x5C 0xA8 } windows-31j decode ] unit-test
+{ { CHAR: a CHAR: b 0x5C 0xA8 } } [ "ab\\ィ" windows-31j encode >array ] unit-test
+{ "\u000081\u0000c8" } [ CHAR: logical-and 1string windows-31j encode >string ] unit-test
+{ "\u000081\u0000c8" } [ CHAR: logical-and 1string shift-jis encode >string ] unit-test
+{ { CHAR: logical-and } } [ "\u000081\u0000c8" windows-31j decode >array ] unit-test
+{ { CHAR: logical-and } } [ "\u000081\u0000c8" shift-jis decode >array ] unit-test
index 5ea87567e37b6f5c669cc3a21778e938ea6ff0cc..e8ffe435fb544206a0efbe65174ecd0064701719 100644 (file)
@@ -2,5 +2,5 @@ USING: io.encodings.strict io.encodings.ascii tools.test
 arrays io.encodings.string ;
 IN: io.encodings.strict.test
 
-[ { 0xfffd } ] [ { 128 } ascii decode >array ] unit-test
+{ { 0xfffd } } [ { 128 } ascii decode >array ] unit-test
 [ { 128 } ascii strict decode ] must-fail
index 2af5bfb63864683529652b2006b92c12e8e719e7..2688e56fa11e1355359011c0e3c0fe20bde855cf 100644 (file)
@@ -4,9 +4,9 @@ USING: strings io.encodings.utf8 io.encodings.utf16
 io.encodings.string tools.test io.encodings.binary ;
 IN: io.encodings.string.tests
 
-[ "hello" ] [ "hello" utf8 decode ] unit-test
-[ B{ 0 1 22 255 } ] [ B{ 0 1 22 255 } binary decode ] unit-test
-[ "he" ] [ "\0h\0e" utf16be decode ] unit-test
+{ "hello" } [ "hello" utf8 decode ] unit-test
+{ B{ 0 1 22 255 } } [ B{ 0 1 22 255 } binary decode ] unit-test
+{ "he" } [ "\0h\0e" utf16be decode ] unit-test
 
-[ "hello" ] [ "hello" utf8 encode >string ] unit-test
-[ "\0h\0e" ] [ "he" utf16be encode >string ] unit-test
+{ "hello" } [ "hello" utf8 encode >string ] unit-test
+{ "\0h\0e" } [ "he" utf16be encode >string ] unit-test
index ba12995dda5b8359d4632088460f1e159a3309a5..d1edee5417d0e193e5f903095802a3e255cefa39 100644 (file)
@@ -5,25 +5,25 @@ io.streams.byte-array sequences io.encodings io strings
 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
-[ { 0x1D11E } ] [ B{ 0 1 0xD1 0x1E } utf32be decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0 1 0xD1 } utf32be decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0 1 } utf32be decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0 } utf32be decode >array ] unit-test
-[ { } ] [ { } 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
+{ { CHAR: replacement-character } } [ B{ 0 1 0xD1 } utf32be decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0 1 } utf32be decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0 } utf32be decode >array ] unit-test
+{ { } } [ { } utf32be decode >array ] unit-test
 
-[ B{ 0 0 0 CHAR: x 0 1 0xD1 0x1E } ] [ { CHAR: x 0x1d11e } >string utf32be encode ] unit-test
+{ B{ 0 0 0 CHAR: x 0 1 0xD1 0x1E } } [ { CHAR: x 0x1d11e } >string utf32be encode ] unit-test
 
-[ { CHAR: x } ] [ B{ CHAR: x 0 0 0 } utf32le decode >array ] unit-test
-[ { 0x1d11e } ] [ B{ 0x1e 0xd1 1 0 } utf32le decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0x1e 0xd1 1 } utf32le decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0x1e 0xd1 } utf32le decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0x1e } utf32le decode >array ] unit-test
-[ { } ] [ { } utf32le decode >array ] unit-test
+{ { CHAR: x } } [ B{ CHAR: x 0 0 0 } utf32le decode >array ] unit-test
+{ { 0x1d11e } } [ B{ 0x1e 0xd1 1 0 } utf32le decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0x1e 0xd1 1 } utf32le decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0x1e 0xd1 } utf32le decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0x1e } utf32le decode >array ] unit-test
+{ { } } [ { } utf32le decode >array ] unit-test
 
-[ B{ 120 0 0 0 0x1e 0xd1 1 0 } ] [ { CHAR: x 0x1d11e } >string utf32le encode ] unit-test
+{ B{ 120 0 0 0 0x1e 0xd1 1 0 } } [ { CHAR: x 0x1d11e } >string utf32le encode ] unit-test
 
-[ { CHAR: x } ] [ B{ 0xff 0xfe 0 0 CHAR: x 0 0 0 } utf32 decode >array ] unit-test
-[ { CHAR: x } ] [ B{ 0 0 0xfe 0xff 0 0 0 CHAR: x } utf32 decode >array ] unit-test
+{ { CHAR: x } } [ B{ 0xff 0xfe 0 0 CHAR: x 0 0 0 } utf32 decode >array ] unit-test
+{ { CHAR: x } } [ B{ 0 0 0xfe 0xff 0 0 0 CHAR: x } utf32 decode >array ] unit-test
 
-[ B{ 0xff 0xfe 0 0 120 0 0 0 0x1e 0xd1 1 0 } ] [ { CHAR: x 0x1d11e } >string utf32 encode ] unit-test
+{ B{ 0xff 0xfe 0 0 120 0 0 0 0x1e 0xd1 1 0 } } [ { CHAR: x 0x1d11e } >string utf32 encode ] unit-test
index 9e6ed542822f1c8e0fba3fc0a8d430c1074e5bb2..f4d431b69ba0ca59f837cae7796ed04ee584cd6e 100644 (file)
@@ -2,7 +2,7 @@ USING: io.encodings.string io.encodings.utf7 kernel sequences strings
 tools.test ;
 IN: io.encodings.utf7.tests
 
-[
+{
     {
         "~/b&AOU-g&APg-"
         "b&AOU-x"
@@ -13,7 +13,7 @@ IN: io.encodings.utf7.tests
         "~/F&APg-lder/mailb&AOU-x &- stuff + more"
         "~peter/mail/&ZeVnLIqe-/&U,BTFw-"
     }
-] [
+} [
     {
         "~/bågø"
         "båx"
@@ -26,7 +26,7 @@ IN: io.encodings.utf7.tests
     } [ utf7imap4 encode >string ] map
 ] unit-test
 
-[ t ] [
+{ t } [
     {
         "~/bågø"
         "båx"
@@ -39,7 +39,7 @@ IN: io.encodings.utf7.tests
     } dup [ utf7 encode utf7 decode ] map =
 ] unit-test
 
-[ t ] [
+{ t } [
     {
         "~/bågø"
         "båx"
index 4a8bca1447d67e8649be1d6c34e85293af66ae11..9c5ae869528b964ee0c79e6347ef20ff05109ad1 100644 (file)
@@ -3,14 +3,14 @@ io.directories kernel io.pathnames accessors tools.test
 sequences io.files.temp ;
 IN: io.files.info.tests
 
-[ t ] [
+{ t } [
     temp-directory [ "hi41" "test41" utf8 set-file-contents ] with-directory
     temp-directory "test41" append-path utf8 file-contents "hi41" =
 ] unit-test
 
-[ t ] [
+{ t } [
     temp-directory [ "test41" file-info size>> ] with-directory 4 =
 ] unit-test
 
-[ t ] [ "/" file-system-info file-system-info-tuple? ] unit-test
-[ t ] [ file-systems [ file-system-info-tuple? ] all? ] unit-test
+{ t } [ "/" file-system-info file-system-info-tuple? ] unit-test
+{ t } [ file-systems [ file-system-info-tuple? ] all? ] unit-test
index 23de95f519c591a9c83147d45b6e88e811e2905b..22c1156ddf3cbcba4199bbfdcbfbb7fb59a50943 100644 (file)
@@ -7,7 +7,7 @@ IN: io.files.links.unix.tests
     [ '[ [ 1 + ] keep [ number>string _ prepend ] bi@ make-link ] each-integer ]
     [ [ number>string ] dip prepend touch-file ] 2bi ; inline
 
-[ t ] [
+{ t } [
     [
         current-temporary-directory get [
             5 "lol" make-test-links
@@ -25,7 +25,7 @@ IN: io.files.links.unix.tests
     ] with-unique-directory
 ] [ too-many-symlinks? ] must-fail-with
 
-[ t ] [
+{ t } [
     110 symlink-depth [
         [
             current-temporary-directory get [
index 53a77907cf23242fe4d326d8259487ac68bdd5f7..3f68b3fa06bae511a5029c1e18be50307d625819 100644 (file)
@@ -3,24 +3,24 @@ tools.test kernel io.files.unique namespaces continuations
 io.files.info io.pathnames io.directories ;
 IN: io.files.unique.tests
 
-[ 123 ] [
+{ 123 } [
     "core" ".test" [
         [ [ 123 CHAR: a <string> ] dip ascii set-file-contents ]
         [ file-info size>> ] bi
     ] cleanup-unique-file
 ] unit-test
 
-[ t ] [
+{ t } [
     [ current-directory get file-info directory? ] cleanup-unique-directory
 ] unit-test
 
-[ t ] [
+{ t } [
     current-directory get
     [ [ "FAILDOG" throw ] cleanup-unique-directory ] [ drop ] recover
     current-directory get =
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         "asdf" unique-file drop
         "asdf2" unique-file drop
@@ -28,11 +28,11 @@ IN: io.files.unique.tests
     ] cleanup-unique-directory
 ] unit-test
 
-[ t ] [
+{ t } [
     [ ] with-unique-directory >boolean
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         "asdf" unique-file drop
         "asdf" unique-file drop
index a7fa1ed4e92966d4f66560ed13bdf4ef0fa0ccc0..b380c3313a0c4361d62a2b714016e02f5aee088e 100644 (file)
@@ -5,32 +5,32 @@ math.functions math unix.users unix.groups arrays sequences
 grouping io.pathnames.private literals ;
 IN: io.files.unix.tests
 
-[ "/usr/libexec/" ] [ "/usr/libexec/awk/" parent-directory ] unit-test
-[ "/etc/" ] [ "/etc/passwd" parent-directory ] unit-test
-[ "/" ] [ "/etc/" parent-directory ] unit-test
-[ "/" ] [ "/etc" parent-directory ] unit-test
-[ "/" ] [ "/" parent-directory ] unit-test
-
-[ f ] [ "" root-directory? ] unit-test
-[ t ] [ "/" root-directory? ] unit-test
-[ t ] [ "//" root-directory? ] unit-test
-[ t ] [ "///////" root-directory? ] unit-test
-
-[ "/" ] [ "/" file-name ] unit-test
-[ "///" ] [ "///" file-name ] unit-test
-
-[ "/" ] [ "/" "../.." append-path ] unit-test
-[ "/" ] [ "/" "../../" append-path ] unit-test
-[ "/lib" ] [ "/" "../lib" append-path ] unit-test
-[ "/lib/" ] [ "/" "../lib/" append-path ] unit-test
-[ "/lib" ] [ "/" "../../lib" append-path ] unit-test
-[ "/lib/" ] [ "/" "../../lib/" append-path ] unit-test
-
-[ "/lib" ] [ "/usr/" "/lib" append-path ] unit-test
-[ "/lib/" ] [ "/usr/" "/lib/" append-path ] unit-test
-[ "/lib/bux" ] [ "/usr" "/lib/bux" append-path ] unit-test
-[ "/lib/bux/" ] [ "/usr" "/lib/bux/" append-path ] unit-test
-[ t ] [ "/foo" absolute-path? ] unit-test
+{ "/usr/libexec/" } [ "/usr/libexec/awk/" parent-directory ] unit-test
+{ "/etc/" } [ "/etc/passwd" parent-directory ] unit-test
+{ "/" } [ "/etc/" parent-directory ] unit-test
+{ "/" } [ "/etc" parent-directory ] unit-test
+{ "/" } [ "/" parent-directory ] unit-test
+
+{ f } [ "" root-directory? ] unit-test
+{ t } [ "/" root-directory? ] unit-test
+{ t } [ "//" root-directory? ] unit-test
+{ t } [ "///////" root-directory? ] unit-test
+
+{ "/" } [ "/" file-name ] unit-test
+{ "///" } [ "///" file-name ] unit-test
+
+{ "/" } [ "/" "../.." append-path ] unit-test
+{ "/" } [ "/" "../../" append-path ] unit-test
+{ "/lib" } [ "/" "../lib" append-path ] unit-test
+{ "/lib/" } [ "/" "../lib/" append-path ] unit-test
+{ "/lib" } [ "/" "../../lib" append-path ] unit-test
+{ "/lib/" } [ "/" "../../lib/" append-path ] unit-test
+
+{ "/lib" } [ "/usr/" "/lib" append-path ] unit-test
+{ "/lib/" } [ "/usr/" "/lib/" append-path ] unit-test
+{ "/lib/bux" } [ "/usr" "/lib/bux" append-path ] unit-test
+{ "/lib/bux/" } [ "/usr" "/lib/bux/" append-path ] unit-test
+{ t } [ "/foo" absolute-path? ] unit-test
 
 : test-file ( -- path )
     "permissions" temp-file ;
@@ -44,52 +44,52 @@ IN: io.files.unix.tests
 
 prepare-test-file
 
-[ t ]
+{ t }
 [ test-file flags{ USER-ALL GROUP-ALL OTHER-ALL } set-file-permissions perms 0o777 = ] unit-test
 
-[ t ] [ test-file user-read? ] unit-test
-[ t ] [ test-file user-write? ] unit-test
-[ t ] [ test-file user-execute? ] unit-test
-[ t ] [ test-file group-read? ] unit-test
-[ t ] [ test-file group-write? ] unit-test
-[ t ] [ test-file group-execute? ] unit-test
-[ t ] [ test-file other-read? ] unit-test
-[ t ] [ test-file other-write? ] unit-test
-[ t ] [ test-file other-execute? ] unit-test
+{ t } [ test-file user-read? ] unit-test
+{ t } [ test-file user-write? ] unit-test
+{ t } [ test-file user-execute? ] unit-test
+{ t } [ test-file group-read? ] unit-test
+{ t } [ test-file group-write? ] unit-test
+{ t } [ test-file group-execute? ] unit-test
+{ t } [ test-file other-read? ] unit-test
+{ t } [ test-file other-write? ] unit-test
+{ t } [ test-file other-execute? ] unit-test
 
-[ t ] [ test-file f set-other-execute perms 0o776 = ] unit-test
-[ f ] [ test-file file-info other-execute? ] unit-test
+{ t } [ test-file f set-other-execute perms 0o776 = ] unit-test
+{ f } [ test-file file-info other-execute? ] unit-test
 
-[ t ] [ test-file f set-other-write perms 0o774 = ] unit-test
-[ f ] [ test-file file-info other-write? ] unit-test
+{ t } [ test-file f set-other-write perms 0o774 = ] unit-test
+{ f } [ test-file file-info other-write? ] unit-test
 
-[ t ] [ test-file f set-other-read perms 0o770 = ] unit-test
-[ f ] [ test-file file-info other-read? ] unit-test
+{ t } [ test-file f set-other-read perms 0o770 = ] unit-test
+{ f } [ test-file file-info other-read? ] unit-test
 
-[ t ] [ test-file f set-group-execute perms 0o760 = ] unit-test
-[ f ] [ test-file file-info group-execute? ] unit-test
+{ t } [ test-file f set-group-execute perms 0o760 = ] unit-test
+{ f } [ test-file file-info group-execute? ] unit-test
 
-[ t ] [ test-file f set-group-write perms 0o740 = ] unit-test
-[ f ] [ test-file file-info group-write? ] unit-test
+{ t } [ test-file f set-group-write perms 0o740 = ] unit-test
+{ f } [ test-file file-info group-write? ] unit-test
 
-[ t ] [ test-file f set-group-read perms 0o700 = ] unit-test
-[ f ] [ test-file file-info group-read? ] unit-test
+{ t } [ test-file f set-group-read perms 0o700 = ] unit-test
+{ f } [ test-file file-info group-read? ] unit-test
 
-[ t ] [ test-file f set-user-execute perms 0o600 = ] unit-test
-[ f ] [ test-file file-info other-execute? ] unit-test
+{ t } [ test-file f set-user-execute perms 0o600 = ] unit-test
+{ f } [ test-file file-info other-execute? ] unit-test
 
-[ t ] [ test-file f set-user-write perms 0o400 = ] unit-test
-[ f ] [ test-file file-info other-write? ] unit-test
+{ t } [ test-file f set-user-write perms 0o400 = ] unit-test
+{ f } [ test-file file-info other-write? ] unit-test
 
-[ t ] [ test-file f set-user-read perms 0o000 = ] unit-test
-[ f ] [ test-file file-info other-read? ] unit-test
+{ t } [ test-file f set-user-read perms 0o000 = ] unit-test
+{ f } [ test-file file-info other-read? ] unit-test
 
-[ t ]
+{ t }
 [ test-file flags{ USER-ALL GROUP-ALL OTHER-EXECUTE } set-file-permissions perms 0o771 = ] unit-test
 
 prepare-test-file
 
-[ t ]
+{ t }
 [
     test-file now
     [ set-file-access-time ] 2keep
@@ -97,7 +97,7 @@ prepare-test-file
     [ [ [ truncate >integer ] change-second >gmt ] bi@ ] bi* =
 ] unit-test
 
-[ t ]
+{ t }
 [
     test-file now
     [ set-file-modified-time ] 2keep
@@ -105,7 +105,7 @@ prepare-test-file
     [ [ [ truncate >integer ] change-second >gmt ] bi@ ] bi* =
 ] unit-test
 
-[ t ]
+{ t }
 [
     test-file now [ dup 2array set-file-times ] 2keep
     [ file-info [ modified>> ] [ accessed>> ] bi ] dip
@@ -113,53 +113,53 @@ prepare-test-file
     [ [ truncate >integer ] change-second >gmt ] map all-equal?
 ] unit-test
 
-[ ] [ test-file f now 2array set-file-times ] unit-test
-[ ] [ test-file now f 2array set-file-times ] unit-test
-[ ] [ test-file f f 2array set-file-times ] unit-test
+{ } [ test-file f now 2array set-file-times ] unit-test
+{ } [ test-file now f 2array set-file-times ] unit-test
+{ } [ test-file f f 2array set-file-times ] unit-test
 
 
-[ ] [ test-file real-user-name set-file-user ] unit-test
-[ ] [ test-file real-user-id set-file-user ] unit-test
-[ ] [ test-file real-group-name set-file-group ] unit-test
-[ ] [ test-file real-group-id set-file-group ] unit-test
+{ } [ test-file real-user-name set-file-user ] unit-test
+{ } [ test-file real-user-id set-file-user ] unit-test
+{ } [ test-file real-group-name set-file-group ] unit-test
+{ } [ test-file real-group-id set-file-group ] unit-test
 
-[ t ] [ test-file file-user-name real-user-name = ] unit-test
-[ t ] [ test-file file-group-name real-group-name = ] unit-test
+{ t } [ test-file file-user-name real-user-name = ] unit-test
+{ t } [ test-file file-group-name real-group-name = ] unit-test
 
-[ ]
+{ }
 [ test-file real-user-id real-group-id set-file-ids ] unit-test
 
-[ ]
+{ }
 [ test-file f real-group-id set-file-ids ] unit-test
 
-[ ]
+{ }
 [ test-file real-user-id f set-file-ids ] unit-test
 
-[ ]
+{ }
 [ test-file f f set-file-ids ] unit-test
 
-[ t ] [ 0o4000 uid? ] unit-test
-[ t ] [ 0o2000 gid? ] unit-test
-[ t ] [ 0o1000 sticky? ] unit-test
-[ t ] [ 0o400 user-read? ] unit-test
-[ t ] [ 0o200 user-write? ] unit-test
-[ t ] [ 0o100 user-execute? ] unit-test
-[ t ] [ 0o040 group-read? ] unit-test
-[ t ] [ 0o020 group-write? ] unit-test
-[ t ] [ 0o010 group-execute? ] unit-test
-[ t ] [ 0o004 other-read? ] unit-test
-[ t ] [ 0o002 other-write? ] unit-test
-[ t ] [ 0o001 other-execute? ] unit-test
-
-[ f ] [ 0 uid? ] unit-test
-[ f ] [ 0 gid? ] unit-test
-[ f ] [ 0 sticky? ] unit-test
-[ f ] [ 0 user-read? ] unit-test
-[ f ] [ 0 user-write? ] unit-test
-[ f ] [ 0 user-execute? ] unit-test
-[ f ] [ 0 group-read? ] unit-test
-[ f ] [ 0 group-write? ] unit-test
-[ f ] [ 0 group-execute? ] unit-test
-[ f ] [ 0 other-read? ] unit-test
-[ f ] [ 0 other-write? ] unit-test
-[ f ] [ 0 other-execute? ] unit-test
+{ t } [ 0o4000 uid? ] unit-test
+{ t } [ 0o2000 gid? ] unit-test
+{ t } [ 0o1000 sticky? ] unit-test
+{ t } [ 0o400 user-read? ] unit-test
+{ t } [ 0o200 user-write? ] unit-test
+{ t } [ 0o100 user-execute? ] unit-test
+{ t } [ 0o040 group-read? ] unit-test
+{ t } [ 0o020 group-write? ] unit-test
+{ t } [ 0o010 group-execute? ] unit-test
+{ t } [ 0o004 other-read? ] unit-test
+{ t } [ 0o002 other-write? ] unit-test
+{ t } [ 0o001 other-execute? ] unit-test
+
+{ f } [ 0 uid? ] unit-test
+{ f } [ 0 gid? ] unit-test
+{ f } [ 0 sticky? ] unit-test
+{ f } [ 0 user-read? ] unit-test
+{ f } [ 0 user-write? ] unit-test
+{ f } [ 0 user-execute? ] unit-test
+{ f } [ 0 group-read? ] unit-test
+{ f } [ 0 group-write? ] unit-test
+{ f } [ 0 group-execute? ] unit-test
+{ f } [ 0 other-read? ] unit-test
+{ f } [ 0 other-write? ] unit-test
+{ f } [ 0 other-execute? ] unit-test
index d32637c8daee70134281d72e1744118d8a35c4f6..da151182c670606fa9dd293ee6e3023817b42341 100644 (file)
@@ -10,42 +10,42 @@ IN: io.launcher.unix.tests
 : arch-temp-file ( str -- str' )
     "-" my-arch 3append temp-file ;
 
-[ ] [
+{ } [
     [ "launcher-test-1" arch-temp-file delete-file ] ignore-errors
 ] unit-test
 
-[ ] [
+{ } [
     "touch"
     "launcher-test-1" arch-temp-file
     2array
     try-process
 ] unit-test
 
-[ t ] [ "launcher-test-1" arch-temp-file exists? ] unit-test
+{ t } [ "launcher-test-1" arch-temp-file exists? ] unit-test
 
-[ ] [
+{ } [
     [ "launcher-test-1" arch-temp-file delete-file ] ignore-errors
 ] unit-test
 
-[ ] [
+{ } [
     <process>
         "echo Hello" >>command
         "launcher-test-1" arch-temp-file >>stdout
     try-process
 ] unit-test
 
-[ "Hello\n" ] [
+{ "Hello\n" } [
     "cat"
     "launcher-test-1" arch-temp-file
     2array
     ascii <process-reader> stream-contents
 ] unit-test
 
-[ ] [
+{ } [
     [ "launcher-test-1" arch-temp-file delete-file ] ignore-errors
 ] unit-test
 
-[ ] [
+{ } [
     <process>
         "cat" >>command
         +closed+ >>stdin
@@ -53,14 +53,14 @@ IN: io.launcher.unix.tests
     try-process
 ] unit-test
 
-[ "" ] [
+{ "" } [
     "cat"
     "launcher-test-1" arch-temp-file
     2array
     ascii <process-reader> stream-contents
 ] unit-test
 
-[ ] [
+{ } [
     2 [
         "launcher-test-1" arch-temp-file binary <file-appender> [
             <process>
@@ -71,14 +71,14 @@ IN: io.launcher.unix.tests
     ] times
 ] unit-test
 
-[ "Hello\nHello\n" ] [
+{ "Hello\nHello\n" } [
     "cat"
     "launcher-test-1" arch-temp-file
     2array
     ascii <process-reader> stream-contents
 ] unit-test
 
-[ t ] [
+{ t } [
     <process>
         "env" >>command
         { { "A" "B" } } >>environment
@@ -86,7 +86,7 @@ IN: io.launcher.unix.tests
     "A=B" swap member?
 ] unit-test
 
-[ { "A=B" } ] [
+{ { "A=B" } } [
     <process>
         "env" >>command
         { { "A" "B" } } >>environment
@@ -94,7 +94,7 @@ IN: io.launcher.unix.tests
     ascii <process-reader> stream-lines
 ] unit-test
 
-[ "hi\n" ] [
+{ "hi\n" } [
     temp-directory [
         [ "aloha" delete-file ] ignore-errors
         <process>
@@ -108,7 +108,7 @@ IN: io.launcher.unix.tests
 
 [ "append-test" arch-temp-file delete-file ] ignore-errors
 
-[ "hi\nhi\n" ] [
+{ "hi\nhi\n" } [
     2 [
         <process>
             "echo hi" >>command
@@ -118,9 +118,9 @@ IN: io.launcher.unix.tests
     "append-test" arch-temp-file utf8 file-contents
 ] unit-test
 
-[ t ] [ "ls" utf8 <process-stream> stream-contents >boolean ] unit-test
+{ t } [ "ls" utf8 <process-stream> stream-contents >boolean ] unit-test
 
-[ "Hello world.\n" ] [
+{ "Hello world.\n" } [
     "cat" utf8 <process-stream> [
         "Hello world.\n" write
         output-stream get dispose
@@ -151,7 +151,7 @@ IN: io.launcher.unix.tests
 ] [ io-timeout? ] must-fail-with
 
 ! Killed processes were exiting with code 0 on FreeBSD
-[ f ] [
+[ f ] {
     [let
         <promise> :> p
         <promise> :> s
@@ -163,7 +163,7 @@ IN: io.launcher.unix.tests
 
         p 1 seconds ?promise-timeout (kill-process)
         s 3 seconds ?promise-timeout 0 =
-    ]
+    }
 ] unit-test
 
 ! Make sure that subprocesses don't inherit our signal mask
@@ -173,10 +173,10 @@ IN: io.launcher.unix.tests
     "SIGPIPE" signal-names index 1 +
     kill io-error ;
 
-[ ] [ (current-process) send-sigpipe ] unit-test
+{ } [ (current-process) send-sigpipe ] unit-test
 
 ! Spawn a process
-[ T{ signal f 13 } ] [
+{ T{ signal f 13 } } [
     "sleep 1000" run-detached
     1 seconds sleep
     [ handle>> send-sigpipe ]
@@ -186,7 +186,7 @@ IN: io.launcher.unix.tests
 ] unit-test
 
 ! Test priority
-[ 0 ] [
+{ 0 } [
     <process>
         { "bash" "-c" "sleep 2&" } >>command
         +low-priority+ >>priority
index 967009243e24cd1d66f629f870f2f84cfe28cc9a..d17b03290bc87c9e2b96d6872721ccd4ab03a704 100644 (file)
@@ -6,20 +6,20 @@ SPECIALIZED-ARRAY: uint
 IN: io.mmap.tests
 
 [ "mmap-test-file.txt" temp-file delete-file ] ignore-errors
-[ ] [ "12345" "mmap-test-file.txt" temp-file ascii set-file-contents ] unit-test
-[ ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> CHAR: 2 0 pick set-nth drop ] with-mapped-file ] unit-test
-[ 5 ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file ] unit-test
-[ 5 ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file-reader ] unit-test
-[ "22345" ] [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
+{ } [ "12345" "mmap-test-file.txt" temp-file ascii set-file-contents ] unit-test
+{ } [ "mmap-test-file.txt" temp-file [ char <mapped-array> CHAR: 2 0 pick set-nth drop ] with-mapped-file ] unit-test
+{ 5 } [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file ] unit-test
+{ 5 } [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file-reader ] unit-test
+{ "22345" } [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
 
 SPECIALIZED-ARRAY: uint
 
-[ t ] [
+{ t } [
     "mmap-test-file.txt" temp-file uint [ sum ] with-mapped-array
     integer?
 ] unit-test
 
-[ t ] [
+{ t } [
     "mmap-test-file.txt" temp-file uint [ sum ] with-mapped-array-reader
     integer?
 ] unit-test
@@ -28,7 +28,7 @@ SPECIALIZED-ARRAY: uint
 
 
 [ "mmap-empty-file.txt" temp-file delete-file ] ignore-errors
-[ ] [ "mmap-empty-file.txt" temp-file touch-file ] unit-test
+{ } [ "mmap-empty-file.txt" temp-file touch-file ] unit-test
 
 [
     "mmap-empty-file.txt" temp-file [
@@ -36,7 +36,7 @@ SPECIALIZED-ARRAY: uint
     ] with-mapped-file
 ] [ bad-mmap-size? ] must-fail-with
 
-[ t ] [
+{ t } [
     [ "test.txt" <mapped-file> void* <c-direct-array> first-unsafe ]
     { nth-unsafe } inlined?
 ] unit-test
index ef4c4656e43f0f281cbcae75ab78844e3dfbd739..8bfb49297fcf5a77e8264994d26ee2bfef85797f 100644 (file)
@@ -28,18 +28,18 @@ M: mock-io-backend (monitor)
 M: mock-io-backend link-info
     global [ link-info ] with-variables ;
 
-[ ] [ 0 mock-counter boa dummy-monitor-created set ] unit-test
-[ ] [ 0 mock-counter boa dummy-monitor-disposed set ] unit-test
+{ } [ 0 mock-counter boa dummy-monitor-created set ] unit-test
+{ } [ 0 mock-counter boa dummy-monitor-disposed set ] unit-test
 
-[ ] [
+{ } [
     mock-io-backend io-backend [
         "resource:core/io" resource-path <mailbox> <recursive-monitor> dispose
     ] with-variable
 ] unit-test
 
-[ t ] [ dummy-monitor-created get i>> 0 > ] unit-test
+{ t } [ dummy-monitor-created get i>> 0 > ] unit-test
 
-[ t ] [ dummy-monitor-created get i>> dummy-monitor-disposed get i>> = ] unit-test
+{ t } [ dummy-monitor-created get i>> dummy-monitor-disposed get i>> = ] unit-test
 
 [ "doesnotexist" temp-file delete-tree ] ignore-errors
 
@@ -51,11 +51,11 @@ M: mock-io-backend link-info
     ] with-variable
 ] must-fail
 
-[ ] [ 0 mock-counter boa dummy-monitor-created set ] unit-test
-[ ] [ 0 mock-counter boa dummy-monitor-disposed set ] unit-test
+{ } [ 0 mock-counter boa dummy-monitor-created set ] unit-test
+{ } [ 0 mock-counter boa dummy-monitor-disposed set ] unit-test
 
 ! Test that disposing twice is allowed
-[ ] [
+{ } [
     "resource:core/io" resource-path <mailbox> <recursive-monitor>
     [ dispose ] [ dispose ] bi
 ] unit-test
index 66026173690a008883cd731d29bc72777de70e34..86a695fab0c1a84daf50ea1dd0cc994d24b9fc48 100644 (file)
@@ -5,7 +5,7 @@ accessors debugger math sequences threads
 concurrency.count-downs fry ;
 IN: io.pipes.tests
 
-[ "Hello" ] [
+{ "Hello" } [
     utf8 <pipe> [
         "Hello" print flush
         readln
@@ -13,15 +13,15 @@ IN: io.pipes.tests
 ] unit-test
 
 ! Test run-pipeline
-[ { } ] [ { } run-pipeline ] unit-test
-[ { f } ] [ { [ f ] } run-pipeline ] unit-test
-[ { "Hello" } ] [
+{ { } } [ { } run-pipeline ] unit-test
+{ { f } } [ { [ f ] } run-pipeline ] unit-test
+{ { "Hello" } } [
     "Hello" [
         { [ input-stream [ utf8 <decoder> ] change readln ] } run-pipeline
     ] with-string-reader
 ] unit-test
 
-[ { f "Hello" } ] [
+{ { f "Hello" } } [
     {
         [ output-stream [ utf8 <encoder> ] change "Hello" print flush f ]
         [ input-stream [ utf8 <decoder> ] change readln ]
@@ -37,7 +37,7 @@ IN: io.pipes.tests
 ] must-fail
 
 ! Test writing to a half-open pipe
-[ ] [
+{ } [
     1000 [
         utf8 <pipe> [
             [ in>> dispose ]
@@ -48,7 +48,7 @@ IN: io.pipes.tests
 ] unit-test
 
 ! Test non-blocking operation
-[ ] [
+{ } [
     [
         2 <count-down> "count-down" set
 
@@ -76,7 +76,7 @@ IN: io.pipes.tests
 ] unit-test
 
 ! 0 read should not block
-[ f ] [
+{ f } [
     [
         binary <pipe> &dispose
         in>>
index ae63b650d97505c87cfa5deed9026cc230e1a99e..64a353ad9ca4db1d6a8ed321a3d0e12fdd078493 100644 (file)
@@ -8,7 +8,7 @@ IN: io.ports.tests
 ! Make sure that writing malloced storage to a file works, and
 ! also make sure that writes larger than the buffer size work
 
-[ ] [
+{ } [
     "test.txt" temp-file binary [
         [
             100,000 iota
@@ -18,19 +18,19 @@ IN: io.ports.tests
     ] with-file-writer
 ] unit-test
 
-[ t ] [
+{ t } [
     "test.txt" temp-file binary [
         100,000 4 * read int cast-array 100,000 iota sequence=
     ] with-file-reader
 ] unit-test
 
-[ ] [ "test.txt" temp-file delete-file ] unit-test
+{ } [ "test.txt" temp-file delete-file ] unit-test
 
 ! Getting the stream-element-type of an output-port was broken
-[ +byte+ ] [ binary <pipe> [ stream-element-type ] with-disposal ] unit-test
-[ +byte+ ] [ binary <pipe> [ out>> stream-element-type ] with-disposal ] unit-test
-[ +character+ ] [ ascii <pipe> [ stream-element-type ] with-disposal ] unit-test
-[ +character+ ] [ ascii <pipe> [ out>> stream-element-type ] with-disposal ] unit-test
+{ +byte+ } [ binary <pipe> [ stream-element-type ] with-disposal ] unit-test
+{ +byte+ } [ binary <pipe> [ out>> stream-element-type ] with-disposal ] unit-test
+{ +character+ } [ ascii <pipe> [ stream-element-type ] with-disposal ] unit-test
+{ +character+ } [ ascii <pipe> [ out>> stream-element-type ] with-disposal ] unit-test
 
 ! Issue #1256 regression test
 ! Port length would be zero before data is received
index 9e90ea6e4cacbe305b6a4627fb2cda59da0860a8..947113326f1345126b5945e93ee41c1129326ed2 100644 (file)
@@ -4,31 +4,31 @@ io.servers.private io.sockets kernel namespaces
 sequences threads tools.test ;
 IN: io.servers
 
-[ t ] [ ascii <threaded-server> listen-on empty? ] unit-test
+{ t } [ ascii <threaded-server> listen-on empty? ] unit-test
 
-[ f ] [
+{ f } [
     ascii <threaded-server>
         25 internet-server >>insecure
     listen-on
     empty?
 ] unit-test
 
-[ t ] [
+{ t } [
     T{ inet4 f "1.2.3.4" 1234 } T{ inet4 f "1.2.3.5" 1235 }
     [ log-connection ] 2keep
     [ remote-address get = ] [ local-address get = ] bi*
     and
 ] unit-test
 
-[ ] [ ascii <threaded-server> init-server drop ] unit-test
+{ } [ ascii <threaded-server> init-server drop ] unit-test
 
-[ 10 ] [
+{ 10 } [
     ascii <threaded-server>
         10 >>max-connections
     init-server semaphore>> count>>
 ] unit-test
 
-[ "Hello world." ] [
+{ "Hello world." } [
     ascii <threaded-server>
         5 >>max-connections
         0 >>insecure
@@ -38,7 +38,7 @@ IN: io.servers
     ] with-threaded-server
 ] unit-test
 
-[ ] [
+{ } [
     ascii <threaded-server>
         5 >>max-connections
         0 >>insecure
index 221c48945269bfd2894628e37aa940bc767f82bc..27529fe3f78ee5859c89d68cad4e255fbfa77a8a 100644 (file)
@@ -4,7 +4,7 @@ sequences tools.test ;
 
 IN: io.sockets.icmp.tests
 
-[ { } ] [
+{ { } } [
     "localhost" <icmp> resolve-host
     [ [ icmp4? ] [ icmp6? ] bi or ] reject
 ] unit-test
index 79d2ceaf4605fb01955bf37d3e27c441683717d4..64ddab0ab950d44b88fe460d81ac6d69aad05627 100644 (file)
@@ -1,9 +1,9 @@
 IN: io.sockets.secure.tests
 USING: accessors kernel io.sockets io.sockets.secure system tools.test ;
 
-[ "hello" 24 ] [ "hello" 24 <inet> <secure> [ host>> ] [ port>> ] bi ] unit-test
+{ "hello" 24 } [ "hello" 24 <inet> <secure> [ host>> ] [ port>> ] bi ] unit-test
 
-[ ] [
+{ } [
     <secure-config>
         "vocab:openssl/test/server.pem" >>key-file
         "vocab:openssl/test/dh1024.pem" >>dh-file
@@ -11,4 +11,4 @@ USING: accessors kernel io.sockets io.sockets.secure system tools.test ;
     [ ] with-secure-context
 ] unit-test
 
-[ t ] [ os windows? ssl-certificate-verification-supported? or ] unit-test
+{ t } [ os windows? ssl-certificate-verification-supported? or ] unit-test
index 41ff568d7c862e8fb3d1deb3314427c8cfca0e68..6611c854fc68a3327376e151d641f571b0a65ec5 100644 (file)
@@ -7,7 +7,7 @@ io.sockets.secure.debug ;
 
 { 1 0 } [ [ ] with-secure-context ] must-infer-as
 
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
 :: server-test ( quot -- )
     [
@@ -26,14 +26,14 @@ io.sockets.secure.debug ;
         "127.0.0.1" "port" get ?promise <inet4> <secure> ascii <client> drop stream-contents
     ] with-secure-context ;
 
-[ ] [ [ class-of name>> write ] server-test ] unit-test
+{ } [ [ class-of name>> write ] server-test ] unit-test
 
-[ "secure" ] [ client-test ] unit-test
+{ "secure" } [ client-test ] unit-test
 
 ! Now, see what happens if the server closes the connection prematurely
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
-[ ] [
+{ } [
     [
         drop
         "hello" write flush
@@ -45,13 +45,13 @@ io.sockets.secure.debug ;
 ! (eg, google.com) do this.
 
 ! [ client-test ] [ premature-close? ] must-fail-with
-[ "hello" ] [ client-test ] unit-test
+{ "hello" } [ client-test ] unit-test
 
 ! Now, try validating the certificate. This should fail because its
 ! actually an invalid certificate
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
-[ ] [ [ drop "hi" write ] server-test ] unit-test
+{ } [ [ drop "hi" write ] server-test ] unit-test
 
 [
     <secure-config> [
@@ -61,9 +61,9 @@ io.sockets.secure.debug ;
 ] [ certificate-verify-error? ] must-fail-with
 
 ! Client-side handshake timeout
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
-[ ] [
+{ } [
     [
         [
             "127.0.0.1" 0 <inet4> ascii <server> &dispose
@@ -80,9 +80,9 @@ io.sockets.secure.debug ;
 ] [ io-timeout? ] must-fail-with
 
 ! Server-side handshake timeout
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
-[ ] [
+{ } [
     [
         [
             "127.0.0.1" "port" get ?promise
index a309a0afc38050c69d6d7d3c4280fead7af3c869..c586bdda43698ec534f4450ac5e703150e66f3e6 100644 (file)
@@ -8,26 +8,26 @@ os unix? [
     [ T{ local f "/tmp/foo" } ] [ "/tmp/foo" <local> ] unit-test
 ] when
 
-[ T{ inet4 f f 0 } ] [ f 0 <inet4> ] unit-test
-[ T{ inet6 f f 0 1 } ] [ f 1 <inet6> ] unit-test
+{ T{ inet4 f f 0 } } [ f 0 <inet4> ] unit-test
+{ T{ inet6 f f 0 1 } } [ f 1 <inet6> ] unit-test
 
-[ T{ inet f "google.com" f } ] [ "google.com" f <inet> ] unit-test
+{ T{ inet f "google.com" f } } [ "google.com" f <inet> ] unit-test
 
-[ T{ inet f "google.com" 0 } ] [ "google.com" 0 <inet> ] unit-test
-[ T{ inet f "google.com" 80 } ] [ "google.com" 0 <inet> 80 with-port ] unit-test
-[ T{ inet4 f "8.8.8.8" 0 } ] [ "8.8.8.8" 0 <inet4> ] unit-test
-[ T{ inet4 f "8.8.8.8" 53 } ] [ "8.8.8.8" 0 <inet4> 53 with-port ] unit-test
-[ T{ inet6 f "5:5:5:5:6:6:6:6" 0 12 } ] [ "5:5:5:5:6:6:6:6" 0 <inet6> 12 with-port ] unit-test
-[ T{ inet6 f "fe80::1" 1 80 } ] [ T{ ipv6 f "fe80::1" 1 } 80 with-port ] unit-test
+{ T{ inet f "google.com" 0 } } [ "google.com" 0 <inet> ] unit-test
+{ T{ inet f "google.com" 80 } } [ "google.com" 0 <inet> 80 with-port ] unit-test
+{ T{ inet4 f "8.8.8.8" 0 } } [ "8.8.8.8" 0 <inet4> ] unit-test
+{ T{ inet4 f "8.8.8.8" 53 } } [ "8.8.8.8" 0 <inet4> 53 with-port ] unit-test
+{ T{ inet6 f "5:5:5:5:6:6:6:6" 0 12 } } [ "5:5:5:5:6:6:6:6" 0 <inet6> 12 with-port ] unit-test
+{ T{ inet6 f "fe80::1" 1 80 } } [ T{ ipv6 f "fe80::1" 1 } 80 with-port ] unit-test
 
 : test-sockaddr ( addrspec -- )
     [ dup make-sockaddr ] keep parse-sockaddr assert= ;
 
-[ ] [ T{ inet4 f "8.8.8.8" 53 } test-sockaddr ] unit-test
-[ ] [ T{ inet6 f "5:5:5:5:6:6:6:6" 0 12 } test-sockaddr ] unit-test
-[ ] [ T{ inet6 f "fe80:0:0:0:0:0:0:1" 1 80 } test-sockaddr ] unit-test
+{ } [ T{ inet4 f "8.8.8.8" 53 } test-sockaddr ] unit-test
+{ } [ T{ inet6 f "5:5:5:5:6:6:6:6" 0 12 } test-sockaddr ] unit-test
+{ } [ T{ inet6 f "fe80:0:0:0:0:0:0:1" 1 80 } test-sockaddr ] unit-test
 
-[ T{ inet f "google.com" 80 } ] [ "google.com" 80 with-port ] unit-test
+{ T{ inet f "google.com" 80 } } [ "google.com" 80 with-port ] unit-test
 
 ! Test bad hostnames
 [ "google.com" f <inet4> ] must-fail
@@ -36,117 +36,117 @@ os unix? [
 [ "a.b.c.d" f <inet6> ] must-fail
 
 ! Test present on addrspecs
-[ "4.4.4.4:12" ] [ "4.4.4.4" 12 <inet4> present ] unit-test
-[ "::1:12" ] [ "::1" 12 <inet6> present ] unit-test
-[ "fe80::1%1:12" ] [ "fe80::1" 1 12 inet6 boa present ] unit-test
+{ "4.4.4.4:12" } [ "4.4.4.4" 12 <inet4> present ] unit-test
+{ "::1:12" } [ "::1" 12 <inet6> present ] unit-test
+{ "fe80::1%1:12" } [ "fe80::1" 1 12 inet6 boa present ] unit-test
 
-[ B{ 1 2 3 4 } ]
+{ B{ 1 2 3 4 } }
 [ "1.2.3.4" T{ inet4 } inet-pton ] unit-test
 
-[ "1.2.3.4" ]
+{ "1.2.3.4" }
 [ B{ 1 2 3 4 } T{ inet4 } inet-ntop ] unit-test
 
-[ "255.255.255.255" ]
+{ "255.255.255.255" }
 [ B{ 255 255 255 255 } T{ inet4 } inet-ntop ] unit-test
 
-[ B{ 255 255 255 255 } ]
+{ B{ 255 255 255 255 } }
 [ "255.255.255.255" T{ inet4 } inet-pton ] unit-test
 
-[ B{ 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 } ]
+{ B{ 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 } }
 [ "1:2:3:4:5:6:7:8" T{ inet6 } inet-pton ] unit-test
 
-[ "1:2:3:4:5:6:7:8" ]
+{ "1:2:3:4:5:6:7:8" }
 [ B{ 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 } T{ inet6 } inet-ntop ] unit-test
 
-[ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } ]
+{ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } }
 [ "::" T{ inet6 } inet-pton ] unit-test
 
-[ "0:0:0:0:0:0:0:0" ]
+{ "0:0:0:0:0:0:0:0" }
 [ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } T{ inet6 } inet-ntop ] unit-test
 
-[ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } ]
+{ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } }
 [ "1::" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 } ]
+{ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 } }
 [ "::1" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 } ]
+{ B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 } }
 [ "::100" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 } ]
+{ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 } }
 [ "1::2" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 3 } ]
+{ B{ 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 3 } }
 [ "1::2:3" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 1 0 2 0 0 0 0 0 0 0 0 0 3 0 4 } ]
+{ B{ 0 1 0 2 0 0 0 0 0 0 0 0 0 3 0 4 } }
 [ "1:2::3:4" T{ inet6 } inet-pton ] unit-test
 
-[ "1:2:0:0:0:0:3:4" ]
+{ "1:2:0:0:0:0:3:4" }
 [ B{ 0 1 0 2 0 0 0 0 0 0 0 0 0 3 0 4 } T{ inet6 } inet-ntop ] unit-test
 
-[ B{ 0 0 0 0 0 0 0 0 0 127 0 0 0 0 0 1 } ]
+{ B{ 0 0 0 0 0 0 0 0 0 127 0 0 0 0 0 1 } }
 [ "::127.0.0.1" T{ inet6 } inet-pton ] unit-test
 
-[ B{ 0 2 0 0 0 0 0 9 0 127 0 0 0 0 0 1 } ]
+{ B{ 0 2 0 0 0 0 0 9 0 127 0 0 0 0 0 1 } }
 [ "2::9:127.0.0.1" T{ inet6 } inet-pton ] unit-test
 
-[ "2001:6f8:37a:5:0:0:0:1" ]
+{ "2001:6f8:37a:5:0:0:0:1" }
 [ "2001:6f8:37a:5::1" T{ inet6 } [ inet-pton ] [ inet-ntop ] bi ] unit-test
 
-[ t t ] [
+{ t t } [
     "localhost" 80 <inet> resolve-host
     [ length 1 >= ]
     [ [ [ inet4? ] [ inet6? ] bi or ] all? ] bi
 ] unit-test
 
-[ t t ] [
+{ t t } [
     "localhost" resolve-host
     [ length 1 >= ]
     [ [ [ ipv4? ] [ ipv6? ] bi or ] all? ] bi
 ] unit-test
 
-[ t t ] [
+{ t t } [
     f resolve-host
     [ length 1 >= ]
     [ [ [ ipv4? ] [ ipv6? ] bi or ] all? ] bi
 ] unit-test
 
-[ t t ] [
+{ t t } [
     f 0 <inet> resolve-host
     [ length 1 >= ]
     [ [ [ ipv4? ] [ ipv6? ] bi or ] all? ] bi
 ] unit-test
 
 ! Smoke-test UDP
-[ ] [ "127.0.0.1" 0 <inet4> <datagram> "datagram1" set ] unit-test
-[ ] [ "datagram1" get addr>> "addr1" set ] unit-test
-[ f ] [ "addr1" get port>> 0 = ] unit-test
+{ } [ "127.0.0.1" 0 <inet4> <datagram> "datagram1" set ] unit-test
+{ } [ "datagram1" get addr>> "addr1" set ] unit-test
+{ f } [ "addr1" get port>> 0 = ] unit-test
 
-[ ] [ "127.0.0.1" 0 <inet4> <datagram> "datagram2" set ] unit-test
-[ ] [ "datagram2" get addr>> "addr2" set ] unit-test
-[ f ] [ "addr2" get port>> 0 = ] unit-test
+{ } [ "127.0.0.1" 0 <inet4> <datagram> "datagram2" set ] unit-test
+{ } [ "datagram2" get addr>> "addr2" set ] unit-test
+{ f } [ "addr2" get port>> 0 = ] unit-test
 
-[ ] [ B{ 1 2 3 4 } "addr2" get "datagram1" get send ] unit-test
-[ B{ 1 2 3 4 } ] [ "datagram2" get receive "from" set ] unit-test
-[ ] [ B{ 4 3 2 1 } "from" get "datagram2" get send ] unit-test
-[ B{ 4 3 2 1 } t ] [ "datagram1" get receive "addr2" get = ] unit-test
+{ } [ B{ 1 2 3 4 } "addr2" get "datagram1" get send ] unit-test
+{ B{ 1 2 3 4 } } [ "datagram2" get receive "from" set ] unit-test
+{ } [ B{ 4 3 2 1 } "from" get "datagram2" get send ] unit-test
+{ B{ 4 3 2 1 } t } [ "datagram1" get receive "addr2" get = ] unit-test
 
-[ ] [ "datagram1" get dispose ] unit-test
-[ ] [ "datagram2" get dispose ] unit-test
+{ } [ "datagram1" get dispose ] unit-test
+{ } [ "datagram2" get dispose ] unit-test
 
 ! Test timeouts
-[ ] [ "127.0.0.1" 0 <inet4> <datagram> "datagram3" set ] unit-test
+{ } [ "127.0.0.1" 0 <inet4> <datagram> "datagram3" set ] unit-test
 
-[ ] [ 1 seconds "datagram3" get set-timeout ] unit-test
+{ } [ 1 seconds "datagram3" get set-timeout ] unit-test
 [ "datagram3" get receive ] must-fail
 
 ! See what happens if other end is closed
-[ ] [ <promise> "port" set ] unit-test
+{ } [ <promise> "port" set ] unit-test
 
-[ ] [ "datagram3" get dispose ] unit-test
+{ } [ "datagram3" get dispose ] unit-test
 
-[ ] [
+{ } [
     [
         "127.0.0.1" 0 <inet4> utf8 <server>
         dup addr>> "port" get fulfill
@@ -158,7 +158,7 @@ os unix? [
     ] "Socket close test" spawn drop
 ] unit-test
 
-[ "hello" f ] [
+{ "hello" f } [
     "port" get ?promise utf8 [
         1 seconds input-stream get set-timeout
         1 seconds output-stream get set-timeout
@@ -167,10 +167,10 @@ os unix? [
 ] unit-test
 
 ! Binding to all interfaces should work
-[ ] [ f 0 <inet4> <datagram> dispose ] unit-test
-[ ] [ f 0 <inet6> <datagram> dispose ] unit-test
+{ } [ f 0 <inet4> <datagram> dispose ] unit-test
+{ } [ f 0 <inet6> <datagram> dispose ] unit-test
 
-[ 80 ] [ "http" protocol-port ] unit-test
-[ f ] [ f protocol-port ] unit-test
+{ 80 } [ "http" protocol-port ] unit-test
+{ f } [ f protocol-port ] unit-test
 
 [ "you-cant-resolve-me!" resolve-host ] [ addrinfo-error? ] must-fail-with
index ef40d220b1a28c30b9251e63172a1f14187c29b1..bd1214ab0cd384400146636c20c542958a2f53f1 100644 (file)
@@ -3,5 +3,5 @@
 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
index b64273ebb30ac0179e863d1519ca2b2854885a53..cbdc33ed3f16c5c03856b59fdee622ddcfa346f8 100644 (file)
@@ -16,26 +16,26 @@ TUPLE: unclosable-stream ;
 M: unclosable-stream dispose
     "Can't close me!" throw ;
 
-[ ] [
+{ } [
     <closing-stream> <closing-stream> <duplex-stream>
     dup dispose dispose
 ] unit-test
 
-[ t ] [
+{ t } [
     <unclosable-stream> <closing-stream> [
         <duplex-stream>
         [ dup dispose ] [ 2drop ] recover
     ] keep disposed>>
 ] unit-test
 
-[ t ] [
+{ t } [
     <closing-stream> [ <unclosable-stream>
         <duplex-stream>
         [ dup dispose ] [ 2drop ] recover
     ] keep disposed>>
 ] unit-test
 
-[ "Hey" ] [
+{ "Hey" } [
     "Hey\nThere" <string-reader> <string-writer> <duplex-stream>
     stream-readln
 ] unit-test
index 7e9893deff5042c21f56f48f2f9cca8fd45edb05..ce405239dbd4ece0aa4e3e72743f50a9ae59e5b7 100644 (file)
@@ -6,63 +6,63 @@ kernel namespaces strings tools.test system
 io.encodings.8-bit.latin1 ;
 IN: io.streams.limited.tests
 
-[ ] [
+{ } [
     "hello world\nhow are you today\nthis is a very long line indeed"
     ascii encode binary <byte-reader> "data" set
 ] unit-test
 
-[ ] [ "data" get 24 <limited-stream> "limited" set ] unit-test
+{ } [ "data" get 24 <limited-stream> "limited" set ] unit-test
 
-[ CHAR: h ] [ "limited" get stream-read1 ] unit-test
+{ CHAR: h } [ "limited" get stream-read1 ] unit-test
 
-[ ] [ "limited" get ascii <decoder> "decoded" set ] unit-test
+{ } [ "limited" get ascii <decoder> "decoded" set ] unit-test
 
-[ "ello world" ] [ "decoded" get stream-readln ] unit-test
+{ "ello world" } [ "decoded" get stream-readln ] unit-test
 
-[ "how " ] [ 4 "decoded" get stream-read ] unit-test
+{ "how " } [ 4 "decoded" get stream-read ] unit-test
 
-[ "are you " ] [ "decoded" get stream-readln ] unit-test
+{ "are you " } [ "decoded" get stream-readln ] unit-test
 
-[ f ] [ "decoded" get stream-readln ] unit-test
+{ f } [ "decoded" get stream-readln ] unit-test
 
 
-[ ] [
+{ } [
     "abc\ndef\nghi"
     ascii encode binary <byte-reader> "data" set
 ] unit-test
 
-[ ] [ "data" get 4 <limited-stream> "limited" set ] unit-test
+{ } [ "data" get 4 <limited-stream> "limited" set ] unit-test
 
-[ "abc" CHAR: \n ]
+{ "abc" CHAR: \n }
 [ "\n" "limited" get stream-read-until [ >string ] dip ] unit-test
 
-[ "" f ] [ "\n" "limited" get stream-read-until [ >string ] dip ] unit-test
+{ "" f } [ "\n" "limited" get stream-read-until [ >string ] dip ] unit-test
 
 
-[ CHAR: a ]
+{ CHAR: a }
 [ "a" <string-reader> 1 <limited-stream> stream-read1 ] unit-test
 
-[ "abc" ]
+{ "abc" }
 [
     "abc" <string-reader> 3 <limited-stream>
     4 swap stream-read
 ] unit-test
 
-[ f ]
+{ f }
 [
     "abc" <string-reader> 3 <limited-stream>
     4 over stream-read drop 10 swap stream-read
 ] unit-test
 
 ! pipes are duplex and not seekable
-[ "as" ] [
+{ "as" } [
     latin1 <pipe> [
         input-stream [ 2 <limited-stream> ] change
         "asdf" write flush 2 read
     ] with-stream
 ] unit-test
 
-[ "as" ] [
+{ "as" } [
     latin1 <pipe> [
         input-stream [ 2 <limited-stream> ] change
         "asdf" write flush 3 read
@@ -70,33 +70,33 @@ IN: io.streams.limited.tests
 ] unit-test
 
 ! test seeking on limited unseekable streams
-[ "as" ] [
+{ "as" } [
     latin1 <pipe> [
         input-stream [ 2 <limited-stream> ] change
         "asdf" write flush 2 read
     ] with-stream
 ] unit-test
 
-[ "as" ] [
+{ "as" } [
     latin1 <pipe> [
         input-stream [ 2 <limited-stream> ] change
         "asdf" write flush 3 read
     ] with-stream
 ] unit-test
 
-[ t ]
+{ t }
 [
     "abc" <string-reader> 3 limit-stream unlimit-stream
     "abc" <string-reader> =
 ] unit-test
 
-[ t ]
+{ t }
 [
     "abc" <string-reader> 3 limit-stream unlimit-stream
     "abc" <string-reader> =
 ] unit-test
 
-[ t ]
+{ t }
 [
     [
         "resource:license.txt" utf8 <file-reader> &dispose
@@ -106,19 +106,19 @@ IN: io.streams.limited.tests
     ] with-destructors
 ] unit-test
 
-[ "asdf" ] [
+{ "asdf" } [
     "asdf" <string-reader> 2 <limited-stream> [
         unlimited-input contents
     ] with-input-stream
 ] unit-test
 
-[ "asdf" ] [
+{ "asdf" } [
     "asdf" <string-reader> 2 <limited-stream> [
         [ contents ] with-unlimited-input
     ] with-input-stream
 ] unit-test
 
-[ "gh" ] [
+{ "gh" } [
     "asdfgh" <string-reader> 4 <limited-stream> [
         2 [
             [ contents drop ] with-unlimited-input
index b202dccd752376e04ed37b8aa916ced8fc645a57..0385e89670ff2a2e757ebd6150630fb47e563d53 100644 (file)
@@ -2,9 +2,9 @@ USING: io.streams.string io kernel arrays namespaces make
 tools.test ;
 IN: io.streams.string.tests
 
-[ "" ] [ "" [ contents ] with-string-reader ] unit-test
+{ "" } [ "" [ contents ] with-string-reader ] unit-test
 
-[ "line 1" CHAR: l ]
+{ "line 1" CHAR: l }
 [
     "line 1\nline 2\nline 3" [ readln read1 ] with-string-reader
 ]
@@ -18,21 +18,21 @@ unit-test
     "\rfoo\r\nbar\rbaz\n" [ lines ] with-string-reader
 ] unit-test
 
-[ f ] [ "" [ readln ] with-string-reader ] unit-test
+{ f } [ "" [ readln ] with-string-reader ] unit-test
 
-[ "xyzzy" ] [ [ "xyzzy" write ] with-string-writer ] unit-test
+{ "xyzzy" } [ [ "xyzzy" write ] with-string-writer ] unit-test
 
-[ "a" ] [ "abc" [ 1 read ] with-string-reader ] unit-test
-[ "ab" ] [ "abc" [ 2 read ] with-string-reader ] unit-test
-[ "abc" ] [ "abc" [ 3 read ] with-string-reader ] unit-test
-[ "abc" ] [ "abc" [ 4 read ] with-string-reader ] unit-test
-[ "abc" f ] [ "abc" [ 3 read read1 ] with-string-reader ] unit-test
+{ "a" } [ "abc" [ 1 read ] with-string-reader ] unit-test
+{ "ab" } [ "abc" [ 2 read ] with-string-reader ] unit-test
+{ "abc" } [ "abc" [ 3 read ] with-string-reader ] unit-test
+{ "abc" } [ "abc" [ 4 read ] with-string-reader ] unit-test
+{ "abc" f } [ "abc" [ 3 read read1 ] with-string-reader ] unit-test
 
-[
+{
     { "It seems " CHAR: J }
     { "obs has lost h" CHAR: i }
     { "s grasp on reality again.\n" f }
-] [
+} [
     "It seems Jobs has lost his grasp on reality again.\n" [
         "J" read-until 2array
         "i" read-until 2array
@@ -43,20 +43,20 @@ unit-test
 { "" CHAR: \r } [ "\r\n" [ "\r" read-until ] with-string-reader ] unit-test
 { f f } [ "" [ "\r" read-until ] with-string-reader ] unit-test
 
-[ "hello" "hi" ] [
+{ "hello" "hi" } [
     "hello\nhi" [ readln 2 read ] with-string-reader
 ] unit-test
 
-[ "hello" "hi" ] [
+{ "hello" "hi" } [
     "hello\r\nhi" [ readln 2 read ] with-string-reader
 ] unit-test
 
-[ "hello" "hi" ] [
+{ "hello" "hi" } [
     "hello\rhi" [ readln 2 read ] with-string-reader
 ] unit-test
 
 ! Issue #70 github
-[ f ] [ "" [ 0 read ] with-string-reader ] unit-test
-[ f ] [ "" [ 1 read ] with-string-reader ] unit-test
-[ f ] [ "" [ readln ] with-string-reader ] unit-test
-[ "\"\"" ] [ "\"\"" [ readln ] with-string-reader ] unit-test
+{ f } [ "" [ 0 read ] with-string-reader ] unit-test
+{ f } [ "" [ 1 read ] with-string-reader ] unit-test
+{ f } [ "" [ readln ] with-string-reader ] unit-test
+{ "\"\"" } [ "\"\"" [ readln ] with-string-reader ] unit-test
index ba0eac680d72cafb043ca695cebd16d0ec617f2f..db203e7130fac645e2a58f4d3d601cdabdb227a3 100644 (file)
@@ -5,7 +5,7 @@ io.files io.streams.byte-array io.streams.string
 io.streams.throwing kernel namespaces tools.test ;
 IN: io.streams.throwing.tests
 
-[ "asdf" ]
+{ "asdf" }
 [
     "asdf" [ [ 6 read-partial ] throw-on-eof ] with-string-reader
 ] unit-test
@@ -30,17 +30,17 @@ IN: io.streams.throwing.tests
     "asdf" [ [ 4 read 4 read ] throw-on-eof ] with-string-reader
 ] [ stream-exhausted? ] must-fail-with
 
-[ "as" "df" ] [
+{ "as" "df" } [
     "asdf" [ [ 2 read ] throw-on-eof 3 read ] with-string-reader
 ] unit-test
 
-[ "as" "df\n" ] [
+{ "as" "df\n" } [
     "vocab:io/streams/throwing/asdf.txt" utf8 [
         [ 2 read ] throw-on-eof 20 read
     ] with-file-reader
 ] unit-test
 
-[ B{ 0 1 2 3 } B{ 0 1 2 3 } ] [
+{ B{ 0 1 2 3 } B{ 0 1 2 3 } } [
     B{ 0 1 2 3 } binary [
         [ 4 read 0 seek-absolute seek-input 4 read ] throw-on-eof
     ] with-byte-reader
@@ -52,7 +52,7 @@ IN: io.streams.throwing.tests
     ] with-byte-reader
 ] [ stream-exhausted? ] must-fail-with
 
-[ "asd" CHAR: f ] [
+{ "asd" CHAR: f } [
     "asdf" [ [ "f" read-until ] throw-on-eof ] with-string-reader
 ] unit-test
 
index a0199e35048c1d13c983e0910644bf2910922fac..1eda0889617427f92f00fa92438543e6f42f8549 100644 (file)
@@ -30,7 +30,7 @@ IN: json.reader.tests
 { "while 1:\n\tpass" } [ """  "while 1:\n\tpass" """  json> ] unit-test
 ! unicode is allowed in json
 { "ß∂¬ƒ˚∆" } [ """  "ß∂¬ƒ˚∆""""  json> ] unit-test
-{ 8 9 10 12 13 34 47 92 } >string 1array [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test
+{ 8 9 10 12 13 34 47 92 } >string }      [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test
 { 0xabcd } >string 1array [ """ "\\uaBCd" """ json> ] unit-test
 { "𝄞" } [ "\"\\ud834\\udd1e\"" json> ] unit-test
 
index d0724d765f86e22db4eb6cb512fe44af91a41bf9..3647649f13d79586c8c949c214c9e5660f6f7a78 100644 (file)
@@ -17,18 +17,18 @@ IN: json.writer.tests
 
 { """">json"""" } [ \ >json >json ] unit-test
 
-[ { 0.5 } ] [ { 1/2 } >json json> ] unit-test
+{ { 0.5 } } [ { 1/2 } >json json> ] unit-test
 
 TUPLE: person first-name age ;
 
-[ "{\"first-name\":\"David\",\"age\":32}" ]
+{ "{\"first-name\":\"David\",\"age\":32}" }
 [
     f json-friendly-keys?
     [ "David" 32 person boa >json ]
     with-variable
 ] unit-test
 
-[ "{\"first_name\":\"David\",\"age\":32}" ]
+{ "{\"first_name\":\"David\",\"age\":32}" }
 [
     t json-friendly-keys?
     [ "David" 32 person boa >json ]
index 6b3871f4ff79628d5fdf589ccc33c69862e0006d..914217ba6848ce37ea26a62ac9e88bd3070afe4d 100644 (file)
@@ -2,18 +2,18 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test lcs ;
 
-[ 3 ] [ "sitting" "kitten" levenshtein ] unit-test
-[ 3 ] [ "kitten" "sitting" levenshtein ] unit-test
-[ 1 ] [ "freshpak" "freshpack" levenshtein ] unit-test
-[ 1 ] [ "freshpack" "freshpak" levenshtein ] unit-test
+{ 3 } [ "sitting" "kitten" levenshtein ] unit-test
+{ 3 } [ "kitten" "sitting" levenshtein ] unit-test
+{ 1 } [ "freshpak" "freshpack" levenshtein ] unit-test
+{ 1 } [ "freshpack" "freshpak" levenshtein ] unit-test
 
-[ "hell" ] [ "hello" "hell" lcs ] unit-test
-[ "hell" ] [ "hell" "hello" lcs ] unit-test
-[ "ell" ] [ "ell" "hell" lcs ] unit-test
-[ "ell" ] [ "hell" "ell" lcs ] unit-test
-[ "abd" ] [ "faxbcd" "abdef" lcs ] unit-test
+{ "hell" } [ "hello" "hell" lcs ] unit-test
+{ "hell" } [ "hell" "hello" lcs ] unit-test
+{ "ell" } [ "ell" "hell" lcs ] unit-test
+{ "ell" } [ "hell" "ell" lcs ] unit-test
+{ "abd" } [ "faxbcd" "abdef" lcs ] unit-test
 
-[ {
+{ {
         T{ delete f CHAR: f }
         T{ retain f CHAR: a }
         T{ delete f CHAR: x }
@@ -22,4 +22,4 @@ USING: tools.test lcs ;
         T{ retain f CHAR: d }
         T{ insert f CHAR: e }
         T{ insert f CHAR: f }
-} ] [ "faxbcd" "abdef" lcs-diff ] unit-test
+} } [ "faxbcd" "abdef" lcs-diff ] unit-test
index 5bc0ed22324133dc6c04371e45d13d3d5d1087e5..85b2e8153604bc232fba4991ce39ecee9de1352a 100644 (file)
@@ -4,10 +4,10 @@ tools.test ;
 
 100 malloc "block" set
 
-[ t ] [ "block" get malloc-exists? ] unit-test
+{ t } [ "block" get malloc-exists? ] unit-test
 
-[ ] [ [ "block" get &free drop ] with-destructors ] unit-test
+{ } [ [ "block" get &free drop ] with-destructors ] unit-test
 
-[ f ] [ "block" get malloc-exists? ] unit-test
+{ f } [ "block" get malloc-exists? ] unit-test
 
-[ "Operation not permitted" ] [ 1 strerror ] unit-test
+{ "Operation not permitted" } [ 1 strerror ] unit-test
index 1b85a65713d91de8d0f233768f7cea731e74ba01..22b423b74bc2edd1a766a8ac78adaf7ff171fade 100644 (file)
@@ -28,7 +28,7 @@ SYNTAX: hello "Hi" print ;
     ] unit-test
 ] with-file-vocabs
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.c" forget-vocab
     ] with-compilation-unit
@@ -40,7 +40,7 @@ SYNTAX: hello "Hi" print ;
     ] must-fail
 ] with-file-vocabs
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.c" forget-vocab
     ] with-compilation-unit
index f21775bd9b7aee1cddf52ed002781fb1f4fbc8d8..658a5982d08cc6e0390871c5238e80f54d6ee8e0 100644 (file)
@@ -1,5 +1,5 @@
 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
+{ { 1 3 5 7 } } [ 4 odds ltake list>array ] unit-test
+{ { 0 1 4 9 16 } } [ first-five-squares ] unit-test
index 924c6f3fbe7fca747f47d83fe51ca059c6d8e649..fbdbeec24ac3353d1b7fb6722f4cf8bb57dbf022 100644 (file)
@@ -4,31 +4,31 @@ 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 } } [
   { 1 2 3 4 } >list list>array
 ] unit-test
 
-[ { { 1 4 } { 1 5 } { 2 4 } { 2 5 } { 3 4 } { 3 5 } } ] [
+{ { { 1 4 } { 1 5 } { 2 4 } { 2 5 } { 3 4 } { 3 5 } } } [
   { 1 2 3 } >list { 4 5 } >list 2list lcartesian-product* list>array
 ] unit-test
 
-[ { { 1 4 } { 1 5 } { 2 4 } { 2 5 } { 3 4 } { 3 5 } } ] [
+{ { { 1 4 } { 1 5 } { 2 4 } { 2 5 } { 3 4 } { 3 5 } } } [
   { 1 2 3 } >list { 4 5 } >list lcartesian-product list>array
 ] unit-test
 
-[ { 5 6 6 7 7 8 } ] [
+{ { 5 6 6 7 7 8 } } [
   { 1 2 3 } >list { 4 5 } >list 2list [ first2 + ] lcomp list>array
 ] unit-test
 
-[ { 5 6 7 8 } ] [
+{ { 5 6 7 8 } } [
   { 1 2 3 } >list { 4 5 } >list 2list { [ first odd? ] } [ first2 + ] lcomp* list>array
 ] unit-test
 
-[ { 4 5 6 } ] [
+{ { 4 5 6 } } [
     3 { 1 2 3 } >list [ + ] with lazy-map list>array
 ] unit-test
 
-[ { 1 2 4 8 16 } ] [
+{ { 1 2 4 8 16 } } [
   5 1 [ 2 * ] lfrom-by ltake list>array
 ] unit-test
 
@@ -39,14 +39,14 @@ IN: lists.lazy.tests
 [ [ drop ] leach ] must-infer
 [ lnth ] must-infer
 
-[ { 1 2 3 } ] [ { 1 2 3 4 5 } >list [ 2 > ] luntil list>array ] unit-test
+{ { 1 2 3 } } [ { 1 2 3 4 5 } >list [ 2 > ] luntil list>array ] unit-test
 
-[ ] [
+{ } [
     "resource:license.txt" utf8 <file-reader> [
         llines list>array drop
     ] with-disposal
 ] unit-test
-[ ] [
+{ } [
     "resource:license.txt" utf8 <file-reader> [
         lcontents list>array drop
     ] with-disposal
index ef7c62262dbf88f701ac9aa35ac118a4db584d30..866ac0f597cc0a25c5aa938b59fe01d8984472f8 100644 (file)
@@ -47,4 +47,4 @@ IN: lists.tests
     { 1 2 3 } sequence>list { 4 5 6 } sequence>list lappend list>array
 ] unit-test
 
-[ { 1 } { 2 } ] [ { 1 2 } sequence>list 1 lcut [ list>array ] bi@ ] unit-test
+{ { 1 } { 2 } } [ { 1 2 } sequence>list 1 lcut [ list>array ] bi@ ] unit-test
index b6c76e86ba99cd94db024cfe012065eb5d363460..2fb8798dcbf14c2ef6d15fc689cc19748974d0c3 100644 (file)
@@ -8,21 +8,21 @@ IN: literals.tests
 : five ( -- a ) 5 ;
 : seven-eleven ( -- b c ) 7 11 ;
 
-[ { 5 } ] [ { $ five } ] unit-test
-[ { 7 11 } ] [ { $ seven-eleven } ] unit-test
-[ { 6 6 6 } ] [ { $ six-six-six } ] unit-test
+{ { 5 } } [ { $ five } ] unit-test
+{ { 7 11 } } [ { $ seven-eleven } ] unit-test
+{ { 6 6 6 } } [ { $ six-six-six } ] unit-test
 
-[ { 6 6 6 7 } ] [ { $ six-six-six 7 } ] unit-test
+{ { 6 6 6 7 } } [ { $ six-six-six 7 } ] unit-test
 
-[ { 8 8 8 } ] [ { $[ six-six-six [ 2 + ] tri@ ] } ] unit-test
+{ { 8 8 8 } } [ { $[ six-six-six [ 2 + ] tri@ ] } ] unit-test
 
-[ { 0.5 2.0 } ] [ { $[ 1.0 2.0 / ] 2.0 } ] unit-test
+{ { 0.5 2.0 } } [ { $[ 1.0 2.0 / ] 2.0 } ] unit-test
 
-[ { 1.0 { 0.5 1.5 } 4.0 } ] [ { 1.0 { $[ 1.0 2.0 / ] 1.5 } $[ 2.0 2.0 * ] } ] unit-test
+{ { 1.0 { 0.5 1.5 } 4.0 } } [ { 1.0 { $[ 1.0 2.0 / ] 1.5 } $[ 2.0 2.0 * ] } ] unit-test
 
 CONSTANT: constant-a 3
 
-[ { 3 10 "ftw" } ] [ ${ constant-a 10 "ftw" } ] unit-test
+{ { 3 10 "ftw" } } [ ${ constant-a 10 "ftw" } ] unit-test
 { { 4 } } [ ${ 1 constant-a + } ] unit-test
 { { 3 } } [ ${ 1 2 + } ] unit-test
 { { 1 2 \ + } } [ ${ 1 2 \ + } ] unit-test
@@ -31,7 +31,7 @@ CONSTANT: constant-a 3
 
 : sixty-nine ( -- a b ) 6 9 ;
 
-[ { 6 9 } ] [ ${ sixty-nine } ] unit-test
+{ { 6 9 } } [ ${ sixty-nine } ] unit-test
 
 CONSTANT: a 1
 CONSTANT: b 2
@@ -40,8 +40,8 @@ ALIAS: d c
 
 CONSTANT: foo flags{ a b d }
 
-[ 3 ] [ foo ] unit-test
-[ 3 ] [ flags{ a b d } ] unit-test
+{ 3 } [ foo ] unit-test
+{ 3 } [ flags{ a b d } ] unit-test
 \ foo def>> must-infer
 
-[ 1 ] [ flags{ 1 } ] unit-test
+{ 1 } [ flags{ 1 } ] unit-test
index ad785160591fd2fab92a293997aa23969a8f4700..9c6e6d8d6629276cff43cb2c3f65d0c893aa3dbc 100644 (file)
@@ -5,10 +5,10 @@ USING: tools.test locals.backend kernel arrays accessors ;
 
 \ get-local-test-1 def>> must-infer
 
-[ 3 ] [ get-local-test-1 ] unit-test
+{ 3 } [ get-local-test-1 ] unit-test
 
 : get-local-test-2 ( -- x ) 3 4 2 load-locals -1 get-local 2 drop-locals ;
 
 \ get-local-test-2 def>> must-infer
 
-[ 3 ] [ get-local-test-2 ] unit-test
+{ 3 } [ get-local-test-2 ] unit-test
index a4f308725eb401f8e728ea42b67c3abfe417ed2a..2be15689c02fcd70aac3bbfb090e1b022aab888f 100644 (file)
@@ -8,33 +8,33 @@ IN: locals.tests
 
 :: foo ( a b -- a a ) a a ;
 
-[ 1 1 ] [ 1 2 foo ] unit-test
+{ 1 1 } [ 1 2 foo ] unit-test
 
 :: add-test ( a b -- c ) a b + ;
 
-[ 3 ] [ 1 2 add-test ] unit-test
+{ 3 } [ 1 2 add-test ] unit-test
 
 :: sub-test ( a b -- c ) a b - ;
 
-[ -1 ] [ 1 2 sub-test ] unit-test
+{ -1 } [ 1 2 sub-test ] unit-test
 
 :: map-test ( a b -- seq ) a [ b + ] map ;
 
-[ { 5 6 7 } ] [ { 1 2 3 } 4 map-test ] unit-test
+{ { 5 6 7 } } [ { 1 2 3 } 4 map-test ] unit-test
 
 :: map-test-2 ( seq inc -- seq ) seq [| elt | elt inc + ] map ;
 
-[ { 5 6 7 } ] [ { 1 2 3 } 4 map-test-2 ] unit-test
+{ { 5 6 7 } } [ { 1 2 3 } 4 map-test-2 ] unit-test
 
 :: let-test ( c -- d )
     [let 1 :> a 2 :> b a b + c + ] ;
 
-[ 7 ] [ 4 let-test ] unit-test
+{ 7 } [ 4 let-test ] unit-test
 
 :: let-test-2 ( a -- a )
     a [let :> a [let a :> b a ] ] ;
 
-[ 3 ] [ 3 let-test-2 ] unit-test
+{ 3 } [ 3 let-test-2 ] unit-test
 
 :: let-test-3 ( a -- a )
     a [let :> a [let [ a ] :> b [let 3 :> a b ] ] ] ;
@@ -42,19 +42,19 @@ IN: locals.tests
 :: let-test-4 ( a -- b )
     a [let 1 :> a :> b a b 2array ] ;
 
-[ { 1 2 } ] [ 2 let-test-4 ] unit-test
+{ { 1 2 } } [ 2 let-test-4 ] unit-test
 
 :: let-test-5 ( a b -- b )
     a b [let :> a :> b a b 2array ] ;
 
-[ { 2 1 } ] [ 1 2 let-test-5 ] unit-test
+{ { 2 1 } } [ 1 2 let-test-5 ] unit-test
 
 :: let-test-6 ( a -- b )
     a [let :> a 1 :> b a b 2array ] ;
 
-[ { 2 1 } ] [ 2 let-test-6 ] unit-test
+{ { 2 1 } } [ 2 let-test-6 ] unit-test
 
-[ -1 ] [ -1 let-test-3 call ] unit-test
+{ -1 } [ -1 let-test-3 call ] unit-test
 
 :: write-test-1 ( n! -- q )
     [| i | n i + dup n! ] ;
@@ -63,43 +63,43 @@ IN: locals.tests
 
 { 1 1 } "q" get must-infer-as
 
-[ 1 ] [ 1 "q" get call ] unit-test
+{ 1 } [ 1 "q" get call ] unit-test
 
-[ 2 ] [ 1 "q" get call ] unit-test
+{ 2 } [ 1 "q" get call ] unit-test
 
-[ 3 ] [ 1 "q" get call ] unit-test
+{ 3 } [ 1 "q" get call ] unit-test
 
-[ 5 ] [ 2 "q" get call ] unit-test
+{ 5 } [ 2 "q" get call ] unit-test
 
 :: write-test-2 ( -- q )
     [let 0 :> n! [| i | n i + dup n! ] ] ;
 
 write-test-2 "q" set
 
-[ 1 ] [ 1 "q" get call ] unit-test
+{ 1 } [ 1 "q" get call ] unit-test
 
-[ 2 ] [ 1 "q" get call ] unit-test
+{ 2 } [ 1 "q" get call ] unit-test
 
-[ 3 ] [ 1 "q" get call ] unit-test
+{ 3 } [ 1 "q" get call ] unit-test
 
-[ 5 ] [ 2 "q" get call ] unit-test
+{ 5 } [ 2 "q" get call ] unit-test
 
-[ 10 20 ]
+{ 10 20 }
 [
     20 10 [| a! | [| b! | a b ] ] call call
 ] unit-test
 
 :: write-test-3 ( a! -- q ) [| b | b a! ] ;
 
-[ ] [ 1 2 write-test-3 call ] unit-test
+{ } [ 1 2 write-test-3 call ] unit-test
 
 :: write-test-4 ( x! -- q ) [ [let 0 :> y! f x! ] ] ;
 
-[ ] [ 5 write-test-4 drop ] unit-test
+{ } [ 5 write-test-4 drop ] unit-test
 
 :: let-let-test ( n -- n ) [let n 3 + :> n n ] ;
 
-[ 13 ] [ 10 let-let-test ] unit-test
+{ 13 } [ 10 let-let-test ] unit-test
 
 GENERIC: lambda-generic ( a b -- c )
 
@@ -121,47 +121,47 @@ M:: string lambda-generic-2 ( a b -- c ) a b append ;
 
 M:: string lambda-generic ( a b -- c ) a b lambda-generic-2 ;
 
-[ 10 ] [ 5 2 lambda-generic ] unit-test
+{ 10 } [ 5 2 lambda-generic ] unit-test
 
-[ "abab" ] [ "aba" "b" lambda-generic ] unit-test
+{ "abab" } [ "aba" "b" lambda-generic ] unit-test
 
-[ "abaxxx" ] [ "aba" 3 lambda-generic ] unit-test
+{ "abaxxx" } [ "aba" 3 lambda-generic ] unit-test
 
-[ "xaba" ] [ 1 "aba" lambda-generic ] unit-test
+{ "xaba" } [ 1 "aba" lambda-generic ] unit-test
 
-[ ] [ \ lambda-generic-1 see ] unit-test
+{ } [ \ lambda-generic-1 see ] unit-test
 
-[ ] [ \ lambda-generic-2 see ] unit-test
+{ } [ \ lambda-generic-2 see ] unit-test
 
-[ ] [ \ lambda-generic see ] unit-test
+{ } [ \ lambda-generic see ] unit-test
 
 :: unparse-test-1 ( a -- ) [let 3 :> a! 4 :> b ] ;
 
-[ "[let 3 :> a! 4 :> b ]" ] [
+{ "[let 3 :> a! 4 :> b ]" } [
     \ unparse-test-1 "lambda" word-prop body>> first unparse
 ] unit-test
 
 :: unparse-test-3 ( -- b ) [| a! | ] ;
 
-[ "[| a! | ]" ] [
+{ "[| a! | ]" } [
     \ unparse-test-3 "lambda" word-prop body>> first unparse
 ] unit-test
 
 DEFER: xyzzy
 
-[ ] [
+{ } [
     "IN: locals.tests USE: math GENERIC: xyzzy ( a -- b ) M: integer xyzzy ;"
     <string-reader> "lambda-generic-test" parse-stream drop
 ] unit-test
 
-[ 10 ] [ 10 xyzzy ] unit-test
+{ 10 } [ 10 xyzzy ] unit-test
 
-[ ] [
+{ } [
     "IN: locals.tests USE: math USE: locals GENERIC: xyzzy ( a -- b ) M:: integer xyzzy ( n -- x ) 5 ;"
     <string-reader> "lambda-generic-test" parse-stream drop
 ] unit-test
 
-[ 5 ] [ 10 xyzzy ] unit-test
+{ 5 } [ 10 xyzzy ] unit-test
 
 GENERIC: next-method-test ( a -- b )
 
@@ -169,27 +169,27 @@ M: integer next-method-test 3 + ;
 
 M:: fixnum next-method-test ( a -- b ) a call-next-method 1 + ;
 
-[ 5 ] [ 1 next-method-test ] unit-test
+{ 5 } [ 1 next-method-test ] unit-test
 
 : no-with-locals-test ( -- seq ) { 1 2 3 } [| x | x 3 + ] map ;
 
-[ { 4 5 6 } ] [ no-with-locals-test ] unit-test
+{ { 4 5 6 } } [ no-with-locals-test ] unit-test
 
 { 3 0 } [| a b c | ] must-infer-as
 
-[ ] [ 1 [let :> a ] ] unit-test
+[ ] { 1 [let :> a } ] unit-test
 
-[ 3 ] [ 1 [let :> a 3 ] ] unit-test
+[ 3 ] { 1 [let :> a 3 } ] unit-test
 
-[ ] [ 1 2 [let :> a :> b ] ] unit-test
+[ ] { 1 2 [let :> a :> b } ] unit-test
 
 :: a-word-with-locals ( a b -- ) ;
 
 CONSTANT: new-definition "USING: math ;\nIN: locals.tests\n: a-word-with-locals ( -- x ) 2 3 + ;\n"
 
-[ ] [ new-definition eval( -- ) ] unit-test
+{ } [ new-definition eval( -- ) ] unit-test
 
-[ t ] [
+{ t } [
     [ \ a-word-with-locals see ] with-string-writer
     new-definition =
 ] unit-test
@@ -200,7 +200,7 @@ GENERIC: method-with-locals ( x -- y )
 
 M:: sequence method-with-locals ( a -- y ) a reverse ;
 
-[ t ] [
+{ t } [
     [ \ sequence \ method-with-locals lookup-method see ] with-string-writer
     method-definition =
 ] unit-test
@@ -214,29 +214,29 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
 
 \ cond-test def>> must-infer
 
-[ 3 ] [ 1 2 cond-test ] unit-test
-[ 4 ] [ 2 2 cond-test ] unit-test
-[ 5 ] [ 3 2 cond-test ] unit-test
+{ 3 } [ 1 2 cond-test ] unit-test
+{ 4 } [ 2 2 cond-test ] unit-test
+{ 5 } [ 3 2 cond-test ] unit-test
 
 :: 0&&-test ( a -- ? )
     { [ a integer? ] [ a even? ] [ a 10 > ] } 0&& ;
 
 \ 0&&-test def>> must-infer
 
-[ f ] [ 1.5 0&&-test ] unit-test
-[ f ] [ 3 0&&-test ] unit-test
-[ f ] [ 8 0&&-test ] unit-test
-[ t ] [ 12 0&&-test ] unit-test
+{ f } [ 1.5 0&&-test ] unit-test
+{ f } [ 3 0&&-test ] unit-test
+{ f } [ 8 0&&-test ] unit-test
+{ t } [ 12 0&&-test ] unit-test
 
 :: &&-test ( a -- ? )
     { [ a integer? ] [ a even? ] [ a 10 > ] } && ;
 
 \ &&-test def>> must-infer
 
-[ f ] [ 1.5 &&-test ] unit-test
-[ f ] [ 3 &&-test ] unit-test
-[ f ] [ 8 &&-test ] unit-test
-[ t ] [ 12 &&-test ] unit-test
+{ f } [ 1.5 &&-test ] unit-test
+{ f } [ 3 &&-test ] unit-test
+{ f } [ 8 &&-test ] unit-test
+{ t } [ 12 &&-test ] unit-test
 
 :: let-and-cond-test-1 ( -- a )
     [let 10 :> a
@@ -249,7 +249,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
 
 \ let-and-cond-test-1 def>> must-infer
 
-[ 20 ] [ let-and-cond-test-1 ] unit-test
+{ 20 } [ let-and-cond-test-1 ] unit-test
 
 :: let-and-cond-test-2 ( -- pair )
     [let 10 :> A
@@ -260,32 +260,32 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
 
 \ let-and-cond-test-2 def>> must-infer
 
-[ { 10 20 } ] [ let-and-cond-test-2 ] unit-test
+{ { 10 20 } } [ let-and-cond-test-2 ] unit-test
 
-[ { 10       } ] [ 10       [| a     | { a     } ] call ] unit-test
-[ { 10 20    } ] [ 10 20    [| a b   | { a b   } ] call ] unit-test
-[ { 10 20 30 } ] [ 10 20 30 [| a b c | { a b c } ] call ] unit-test
+{ { 10       } } [ 10       [| a     | { a     } ] call ] unit-test
+{ { 10 20    } } [ 10 20    [| a b   | { a b   } ] call ] unit-test
+{ { 10 20 30 } } [ 10 20 30 [| a b c | { a b c } ] call ] unit-test
 
-[ { 10 20 30 } ] [ [let 10 :> a 20 :> b 30 :> c { a b c } ] ] unit-test
+[ { 10 20 30 } ] { [let 10 :> a 20 :> b 30 :> c { a b c } } ] unit-test
 
-[ V{ 10 20 30 } ] [ 10 20 30 [| a b c | V{ a b c } ] call ] unit-test
+{ V{ 10 20 30 } } [ 10 20 30 [| a b c | V{ a b c } ] call ] unit-test
 
-[ H{ { 10 "a" } { 20 "b" } { 30 "c" } } ]
+{ H{ { 10 "a" } { 20 "b" } { 30 "c" } } }
 [ 10 20 30 [| a b c | H{ { a "a" } { b "b" } { c "c" } } ] call ] unit-test
 
-[ T{ slice f 0 3 "abc" } ]
+{ T{ slice f 0 3 "abc" } }
 [ 0 3 "abc" [| from to seq | T{ slice f from to seq } ] call ] unit-test
 
 { 3 1 } [| from to seq | T{ slice f from to seq } ] must-infer-as
 
 ERROR: punned-class x ;
 
-[ T{ punned-class f 3 } ] [ 3 [| a | T{ punned-class f a } ] call ] unit-test
+{ T{ punned-class f 3 } } [ 3 [| a | T{ punned-class f a } ] call ] unit-test
 
 :: literal-identity-test ( -- a b )
     { 1 } V{ } ;
 
-[ t t ] [
+{ t t } [
     literal-identity-test
     literal-identity-test
     [ eq? ] [ eq? ] bi-curry* bi*
@@ -293,7 +293,7 @@ ERROR: punned-class x ;
 
 :: mutable-local-in-literal-test ( a! -- b ) a 1 + a! { a } ;
 
-[ { 4 } ] [ 3 mutable-local-in-literal-test ] unit-test
+{ { 4 } } [ 3 mutable-local-in-literal-test ] unit-test
 
 :: compare-case ( obj1 obj2 lt-quot eq-quot gt-quot -- )
     obj1 obj2 <=> {
@@ -316,7 +316,7 @@ ERROR: punned-class x ;
 
 \ big-case-test def>> must-infer
 
-[ 9 ] [ 3 big-case-test ] unit-test
+{ 9 } [ 3 big-case-test ] unit-test
 
 ! Dan found this problem
 : littledan-case-problem-1 ( a -- b )
@@ -328,8 +328,8 @@ ERROR: punned-class x ;
 
 \ littledan-case-problem-1 def>> must-infer
 
-[ "howdy" ] [ -12 \ littledan-case-problem-1 def>> call ] unit-test
-[ "howdy" ] [ -12 littledan-case-problem-1 ] unit-test
+{ "howdy" } [ -12 \ littledan-case-problem-1 def>> call ] unit-test
+{ "howdy" } [ -12 littledan-case-problem-1 ] unit-test
 
 :: littledan-case-problem-2 ( a -- b )
     a {
@@ -340,8 +340,8 @@ ERROR: punned-class x ;
 
 \ littledan-case-problem-2 def>> must-infer
 
-[ "howdy" ] [ -12 \ littledan-case-problem-2 def>> call ] unit-test
-[ "howdy" ] [ -12 littledan-case-problem-2 ] unit-test
+{ "howdy" } [ -12 \ littledan-case-problem-2 def>> call ] unit-test
+{ "howdy" } [ -12 littledan-case-problem-2 ] unit-test
 
 :: littledan-cond-problem-1 ( a -- b )
     a {
@@ -352,12 +352,12 @@ ERROR: punned-class x ;
 
 \ littledan-cond-problem-1 def>> must-infer
 
-[ f ] [ -12 \ littledan-cond-problem-1 def>> call ] unit-test
-[ 4 ] [ 12 \ littledan-cond-problem-1 def>> call ] unit-test
-[ "howdy" ] [ 0 \ littledan-cond-problem-1 def>> call ] unit-test
-[ f ] [ -12 littledan-cond-problem-1 ] unit-test
-[ 4 ] [ 12 littledan-cond-problem-1 ] unit-test
-[ "howdy" ] [ 0 littledan-cond-problem-1 ] unit-test
+{ f } [ -12 \ littledan-cond-problem-1 def>> call ] unit-test
+{ 4 } [ 12 \ littledan-cond-problem-1 def>> call ] unit-test
+{ "howdy" } [ 0 \ littledan-cond-problem-1 def>> call ] unit-test
+{ f } [ -12 littledan-cond-problem-1 ] unit-test
+{ 4 } [ 12 littledan-cond-problem-1 ] unit-test
+{ "howdy" } [ 0 littledan-cond-problem-1 ] unit-test
 
 /*
 :: littledan-case-problem-3 ( a quot -- b )
@@ -367,8 +367,8 @@ ERROR: punned-class x ;
         quot
     } case ; inline
 
-[ f ] [ t [ ] littledan-case-problem-3 ] unit-test
-[ 144 ] [ 12 [ sq ] littledan-case-problem-3 ] unit-test
+{ f } [ t [ ] littledan-case-problem-3 ] unit-test
+{ 144 } [ 12 [ sq ] littledan-case-problem-3 ] unit-test
 [| | [| a | a ] littledan-case-problem-3 ] must-infer
 
 : littledan-case-problem-4 ( a -- b )
@@ -381,9 +381,9 @@ GENERIC: lambda-method-forget-test ( a -- b )
 
 M:: integer lambda-method-forget-test ( a -- b ) a ;
 
-[ ] [ [ M\ integer lambda-method-forget-test forget ] with-compilation-unit ] unit-test
+{ } [ [ M\ integer lambda-method-forget-test forget ] with-compilation-unit ] unit-test
 
-[ 10 ] [ 10 [| A | { [ A ] } ] call first call ] unit-test
+{ 10 } [ 10 [| A | { [ A ] } ] call first call ] unit-test
 
 [
     "USING: locals fry math ; 1 '[ [let 10 :> A A _ + ] ]"
@@ -395,14 +395,14 @@ M:: integer lambda-method-forget-test ( a -- b ) a ;
 
 \ funny-macro-test def>> must-infer
 
-[ t ] [ 3 funny-macro-test ] unit-test
-[ f ] [ 2 funny-macro-test ] unit-test
+{ t } [ 3 funny-macro-test ] unit-test
+{ f } [ 2 funny-macro-test ] unit-test
 
 [ "USE: locals [let" eval( -- ) ] [ error>> unexpected-eof? ] must-fail-with
 [ "USE: locals [|" eval( -- ) ] [ error>> unexpected-eof? ] must-fail-with
 
-[ 25 ] [ 5 [| a | { [ a sq ] } cond ] call ] unit-test
-[ 25 ] [ 5 [| | { [| a | a sq ] } ] call first call ] unit-test
+{ 25 } [ 5 [| a | { [ a sq ] } cond ] call ] unit-test
+{ 25 } [ 5 [| | { [| a | a sq ] } ] call first call ] unit-test
 
 :: FAILdog-1 ( -- b ) { [| c | c ] } ;
 
@@ -412,7 +412,7 @@ M:: integer lambda-method-forget-test ( a -- b ) a ;
 
 \ FAILdog-2 def>> must-infer
 
-[ 3 ] [ 3 [| a | \ a ] call ] unit-test
+{ 3 } [ 3 [| a | \ a ] call ] unit-test
 
 [ "USE: locals [| | { [let 0 :> a a ] } ]" eval( -- ) ] must-fail
 
@@ -422,62 +422,62 @@ M:: integer lambda-method-forget-test ( a -- b ) a ;
 
 [ "USE: locals 3 :> a" eval( -- ) ] must-fail
 
-[ 3 ] [ 3 [| | :> a a ] call ] unit-test
+{ 3 } [ 3 [| | :> a a ] call ] unit-test
 
-[ 3 ] [ 3 [| | :> a! a ] call ] unit-test
+{ 3 } [ 3 [| | :> a! a ] call ] unit-test
 
-[ 3 ] [ 2 [| | :> a! a 1 + a! a ] call ] unit-test
+{ 3 } [ 2 [| | :> a! a 1 + a! a ] call ] unit-test
 
 : fry-locals-test-1 ( -- n )
     [let 6 '[ [let 4 :> A A _ + ] ] call ] ;
 
 \ fry-locals-test-1 def>> must-infer
-[ 10 ] [ fry-locals-test-1 ] unit-test
+{ 10 } [ fry-locals-test-1 ] unit-test
 
 :: fry-locals-test-2 ( -- n )
     [let 6 '[ [let 4 :> A A _ + ] ] call ] ;
 
 \ fry-locals-test-2 def>> must-infer
-[ 10 ] [ fry-locals-test-2 ] unit-test
+{ 10 } [ fry-locals-test-2 ] unit-test
 
-[ 1 ] [ 3 4 [| | '[ [ _ swap - ] call ] call ] call ] unit-test
-[ -1 ] [ 3 4 [| | [| a | a - ] call ] call ] unit-test
-[ -1 ] [ 3 4 [| | [| a | a - ] curry call ] call ] unit-test
-[ -1 ] [ 3 4 [| a | a - ] curry call ] unit-test
-[ 1 ] [ 3 4 [| | '[ [| a | _ a - ] call ] call ] call ] unit-test
-[ -1 ] [ 3 4 [| | '[ [| a | a _ - ] call ] call ] call ] unit-test
+{ 1 } [ 3 4 [| | '[ [ _ swap - ] call ] call ] call ] unit-test
+{ -1 } [ 3 4 [| | [| a | a - ] call ] call ] unit-test
+{ -1 } [ 3 4 [| | [| a | a - ] curry call ] call ] unit-test
+{ -1 } [ 3 4 [| a | a - ] curry call ] unit-test
+{ 1 } [ 3 4 [| | '[ [| a | _ a - ] call ] call ] call ] unit-test
+{ -1 } [ 3 4 [| | '[ [| a | a _ - ] call ] call ] call ] unit-test
 
-[ { 1 2 3 4 } ] [
+{ { 1 2 3 4 } } [
     1 3 2 4
     [| | '[ [| a b | a _ b _ 4array ] call ] call ] call
 ] unit-test
 
 [ 10 ] [
-    [| | 0 '[ [let 10 :> A A _ + ] ] call ] call
+    [| | 0 '[ [let 10 :> A A _ + ] ] call ] }
 ] unit-test
 
 ! littledan found this problem
-[ "bar" ] [ [let [let "bar" :> foo foo ] :> a a ] ] unit-test
-[ 10 ] [ [let 10 :> a [let a :> b b ] ] ] unit-test
+[ "bar" ] [ [let [let "bar" :> foo foo ] :> a a } ] unit-test
+[ 10 ] [ [let 10 :> a [let a :> b b ] } ] unit-test
 
-[ { \ + } ] [ [let \ + :> x { \ x } ] ] unit-test
+[ { \ + } ] { [let \ + :> x { \ x } } ] unit-test
 
-[ { \ + 3 } ] [ [let 3 :> a { \ + a } ] ] unit-test
+[ { \ + 3 } ] { [let 3 :> a { \ + a } } ] unit-test
 
-[ 3 ] [ [let \ + :> a 1 2 [ \ a execute ] ] call ] unit-test
+[ 3 ] [ [let \ + :> a 1 2 [ \ a execute ] ] }    ] unit-test
 
 ! erg found this problem
 :: erg's-:>-bug ( n ? -- n ) ? [ n :> n n ] [ n :> b b ] if ;
 
-[ 3 ] [ 3 f erg's-:>-bug ] unit-test
+{ 3 } [ 3 f erg's-:>-bug ] unit-test
 
-[ 3 ] [ 3 t erg's-:>-bug ] unit-test
+{ 3 } [ 3 t erg's-:>-bug ] unit-test
 
 :: erg's-:>-bug-2 ( n ? -- n ) ? n '[ _ :> n n ] [ n :> b b ] if ;
 
-[ 3 ] [ 3 f erg's-:>-bug-2 ] unit-test
+{ 3 } [ 3 f erg's-:>-bug-2 ] unit-test
 
-[ 3 ] [ 3 t erg's-:>-bug-2 ] unit-test
+{ 3 } [ 3 t erg's-:>-bug-2 ] unit-test
 
 ! dharmatech found this problem
 GENERIC: ed's-bug ( a -- b )
@@ -488,12 +488,12 @@ M: integer ed's-bug neg ;
 :: ed's-test-case ( a -- b )
    { [ a ed's-bug ] } && ;
 
-[ t ] [ \ ed's-test-case optimized? ] unit-test
+{ t } [ \ ed's-test-case optimized? ] unit-test
 
 ! multiple bind
-[ 3 1 2 ] [ [let 1 2 3 :> ( a b c ) c a b ] ] unit-test
+[ 3 1 2 ] { [let 1 2 3 :> ( a b c ) c a b } ] unit-test
 
 ! Test smart combinators and locals interaction
 :: smart-combinator-locals ( a b c -- seq ) [ a b c ] output>array ;
 
-[ { 1 2 3 } ] [ 1 2 3 smart-combinator-locals ] unit-test
+{ { 1 2 3 } } [ 1 2 3 smart-combinator-locals ] unit-test
index af67ac5639d15f5b044a3d82481b952522f16582..0d5a6b67c48664e87fa803b0ddbc9e47a2cbf189 100644 (file)
@@ -2,10 +2,10 @@ IN: macros.expander.tests
 USING: macros.expander tools.test math combinators.short-circuit
 kernel combinators ;
 
-[ t ] [ 20 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
+{ t } [ 20 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
 
-[ f ] [ 15 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
+{ f } [ 15 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
 
-[ f ] [ 5.0 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
+{ f } [ 5.0 [ { [ integer? ] [ even? ] [ 10 > ] } 1&& ] expand-macros call ] unit-test
 
-[ [ no-case ] ] [ [ { } case ] expand-macros ] unit-test
+{ [ no-case ] } [ [ { } case ] expand-macros ] unit-test
index 57723879dcab819dd6f88769f912fe797208485c..58c1de3dadc9f98938b322fd3d95df325be622c3 100644 (file)
@@ -5,27 +5,27 @@ IN: macros.tests
 
 MACRO: see-test ( a b -- quot ) + ;
 
-[ t ] [ \ see-test macro? ] unit-test
+{ t } [ \ see-test macro? ] unit-test
 
-[ "USING: macros math ;\nIN: macros.tests\nMACRO: see-test ( a b -- quot ) + ;\n" ]
+{ "USING: macros math ;\nIN: macros.tests\nMACRO: see-test ( a b -- quot ) + ;\n" }
 [ [ \ see-test see ] with-string-writer ]
 unit-test
 
-[ t ] [ \ see-test macro? ] unit-test
+{ t } [ \ see-test macro? ] unit-test
 
-[ t ] [
+{ t } [
     "USING: math ;\nIN: macros.tests\n: see-test ( a b -- c ) - ;\n" dup eval( -- )
     [ \ see-test see ] with-string-writer =
 ] unit-test
 
-[ f ] [ \ see-test macro? ] unit-test
+{ f } [ \ see-test macro? ] unit-test
 
-[ ] [ "USING: macros stack-checker kernel ; IN: hanging-macro MACRO: c ( quot -- ) infer drop [ ] ;" eval( -- ) ] unit-test
-[ ] [ "USING: macros kernel ; IN: hanging-macro : a ( -- ) [ a ] c ;" eval( -- ) ] unit-test
+{ } [ "USING: macros stack-checker kernel ; IN: hanging-macro MACRO: c ( quot -- ) infer drop [ ] ;" eval( -- ) ] unit-test
+{ } [ "USING: macros kernel ; IN: hanging-macro : a ( -- ) [ a ] c ;" eval( -- ) ] unit-test
 
-[ ] [ [ "hanging-macro" forget-vocab ] with-compilation-unit ] unit-test
+{ } [ [ "hanging-macro" forget-vocab ] with-compilation-unit ] unit-test
 
-[ ] [ "IN: macros.tests USE: macros MACRO: foo ( -- x ) [ ] ;" eval( -- ) ] unit-test
+{ } [ "IN: macros.tests USE: macros MACRO: foo ( -- x ) [ ] ;" eval( -- ) ] unit-test
     [ "IN: macros.tests USE: macros MACRO: foo ( -- x ) [ ] ; inline" eval( -- ) ] must-fail
 
 ! The macro expander code should infer
@@ -37,4 +37,4 @@ MACRO: bad-macro ( a -- b ) 1 2 3 [ ] ;
 
 [ [ 0 bad-macro ] infer ] must-fail
 
-[ ] [ [ \ bad-macro forget ] with-compilation-unit ] unit-test
+{ } [ [ \ bad-macro forget ] with-compilation-unit ] unit-test
index f24e5f7bf49d53b6c80b7b8106f013b56e22baf6..d8143fd217b7c0415e1db1ed9b1547c703479175 100644 (file)
@@ -5,20 +5,20 @@ IN: match.tests
 
 MATCH-VARS: ?a ?b ;
 
-[ f ] [ { ?a ?a } { 1 2 } match ] unit-test
+{ f } [ { ?a ?a } { 1 2 } match ] unit-test
 
-[ H{ { ?a 1 } { ?b 2 } } ] [
+{ H{ { ?a 1 } { ?b 2 } } } [
     { ?a ?b } { 1 2 } match
 ] unit-test
 
-[ { 1 2 } ] [
+{ { 1 2 } } [
     { 1 2 }
     {
         { { ?a ?b } [ ?a ?b 2array ] }
     } match-cond
 ] unit-test
 
-[ t ] [
+{ t } [
     { 1 2 }
     {
         { { 1 2 } [ t ] }
@@ -26,7 +26,7 @@ MATCH-VARS: ?a ?b ;
     } match-cond
 ] unit-test
 
-[ t ] [
+{ t } [
     { 1 3 }
     {
         { { 1 2 } [ t ] }
@@ -34,7 +34,7 @@ MATCH-VARS: ?a ?b ;
     } match-cond
 ] unit-test
 
-[ f ] [
+{ f } [
     { 1 5 }
     {
         { { 1 2 } [ t ] }
@@ -63,7 +63,7 @@ C: <foo> foo
     \ ?a \ ?a match
 ] unit-test
 
-[ "match" ] [
+{ "match" } [
     "abcd" {
         { ?a [ "match" ] }
     } match-cond
@@ -75,9 +75,9 @@ C: <foo> foo
 
 TUPLE: match-replace-test a b ;
 
-[
+{
     T{ match-replace-test f 2 1 }
-] [
+} [
     T{ match-replace-test f 1 2 }
     T{ match-replace-test f ?a ?b }
     T{ match-replace-test f ?b ?a }
index a4b37946970951bd9311d68cfcfc75e76926000e..3fc713ca23e5b1bd22d4f909713ae311d4aa6929 100644 (file)
@@ -3,31 +3,31 @@
 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
-[ f ] [ 0b111101 3 <bits> second ] unit-test
-[ { f f t } ] [ 0b111100 3 <bits> >array ] unit-test
-[ 3 ] [ 0b111111 3 <bits> length ] unit-test
-[ 6 ] [ 0b111111 make-bits length ] unit-test
-[ 0 ] [ 0 make-bits length ] unit-test
-[ 2 ] [ 3 make-bits length ] unit-test
-[ 1 ] [ 1 make-bits length ] unit-test
+{ t } [ 0b111111 3 <bits> second ] unit-test
+{ { t t t } } [ 0b111111 3 <bits> >array ] unit-test
+{ f } [ 0b111101 3 <bits> second ] unit-test
+{ { f f t } } [ 0b111100 3 <bits> >array ] unit-test
+{ 3 } [ 0b111111 3 <bits> length ] unit-test
+{ 6 } [ 0b111111 make-bits length ] unit-test
+{ 0 } [ 0 make-bits length ] unit-test
+{ 2 } [ 3 make-bits length ] unit-test
+{ 1 } [ 1 make-bits length ] unit-test
 [ -3 make-bits length ] [ non-negative-integer-expected? ] must-fail-with
 
 ! Odd bug
-[ t ] [
+{ t } [
     1067811677921310779 make-bits
     1067811677921310779 >bignum make-bits
     sequence=
 ] unit-test
 
-[ t ] [
+{ t } [
     1067811677921310779 make-bits last
 ] unit-test
 
-[ t ] [
+{ t } [
     1067811677921310779 >bignum make-bits last
 ] unit-test
 
-[ 6 ] [ 6 make-bits bits>number ] unit-test
-[ 6 ] [ 6 3 <bits> >array bits>number ] unit-test
+{ 6 } [ 6 make-bits bits>number ] unit-test
+{ 6 } [ 6 3 <bits> >array bits>number ] unit-test
index 164106a966e9b61a0e0c1b31818d55d12bce60e4..7613b478760e80e4bc9ee2d6ba548537e3b83c65 100644 (file)
@@ -4,76 +4,76 @@ sequences destructors libc literals classes.struct ;
 SPECIALIZED-ARRAY: int
 IN: math.bitwise.tests
 
-[ 0 ] [ 1 0 0 bitroll ] unit-test
-[ 1 ] [ 1 0 1 bitroll ] unit-test
-[ 1 ] [ 1 1 1 bitroll ] unit-test
-[ 1 ] [ 1 0 2 bitroll ] unit-test
-[ 1 ] [ 1 0 1 bitroll ] unit-test
-[ 1 ] [ 1 20 2 bitroll ] unit-test
-[ 1 ] [ 1 8 8 bitroll ] unit-test
-[ 1 ] [ 1 -8 8 bitroll ] unit-test
-[ 1 ] [ 1 -32 8 bitroll ] unit-test
-[ 128 ] [ 1 -1 8 bitroll ] unit-test
-[ 8 ] [ 1 3 32 bitroll ] unit-test
-
-[ 0 ] [ { } bitfield ] unit-test
-[ 256 ] [ 1 { 8 } bitfield ] unit-test
-[ 268 ] [ 3 1 { 8 2 } bitfield ] unit-test
-[ 268 ] [ 1 { 8 { 3 2 } } bitfield ] unit-test
+{ 0 } [ 1 0 0 bitroll ] unit-test
+{ 1 } [ 1 0 1 bitroll ] unit-test
+{ 1 } [ 1 1 1 bitroll ] unit-test
+{ 1 } [ 1 0 2 bitroll ] unit-test
+{ 1 } [ 1 0 1 bitroll ] unit-test
+{ 1 } [ 1 20 2 bitroll ] unit-test
+{ 1 } [ 1 8 8 bitroll ] unit-test
+{ 1 } [ 1 -8 8 bitroll ] unit-test
+{ 1 } [ 1 -32 8 bitroll ] unit-test
+{ 128 } [ 1 -1 8 bitroll ] unit-test
+{ 8 } [ 1 3 32 bitroll ] unit-test
+
+{ 0 } [ { } bitfield ] unit-test
+{ 256 } [ 1 { 8 } bitfield ] unit-test
+{ 268 } [ 3 1 { 8 2 } bitfield ] unit-test
+{ 268 } [ 1 { 8 { 3 2 } } bitfield ] unit-test
 : test-1+ ( x -- y ) 1 + ;
-[ 512 ] [ 1 { { test-1+ 8 } } bitfield ] unit-test
+{ 512 } [ 1 { { test-1+ 8 } } bitfield ] unit-test
 
-[ 8 ] [ 0 3 toggle-bit ] unit-test
-[ 0 ] [ 8 3 toggle-bit ] unit-test
+{ 8 } [ 0 3 toggle-bit ] unit-test
+{ 0 } [ 8 3 toggle-bit ] unit-test
 
-[ 4 ] [ 0b1010101 bit-count ] unit-test
-[ 0 ] [ 0b0 bit-count ] unit-test
-[ 1 ] [ 0b1 bit-count ] unit-test
-[ 2 ] [ B{ 1 1 } bit-count ] unit-test
-[ 64 ] [ 0xffffffffffffffff bit-count ] unit-test
+{ 4 } [ 0b1010101 bit-count ] unit-test
+{ 0 } [ 0b0 bit-count ] unit-test
+{ 1 } [ 0b1 bit-count ] unit-test
+{ 2 } [ B{ 1 1 } bit-count ] unit-test
+{ 64 } [ 0xffffffffffffffff bit-count ] unit-test
 
 STRUCT: bit-count-struct { a uint } ;
 
-[ 2 ] [ S{ bit-count-struct { a 3 } } bit-count ] unit-test
+{ 2 } [ S{ bit-count-struct { a 3 } } bit-count ] unit-test
 
 
 SPECIALIZED-ARRAY: uint
 SPECIALIZED-ARRAY: uint-4
 
-[ 1 ] [ uint-4{ 1 0 0 0 } bit-count ] unit-test
+{ 1 } [ uint-4{ 1 0 0 0 } bit-count ] unit-test
 
-[ 1 ] [
+{ 1 } [
     [
         2 int malloc-array &free 1 0 pick set-nth bit-count
     ] with-destructors
 ] unit-test
 
-[ 1 ] [ B{ 1 0 0 } bit-count ] unit-test
-[ 3 ] [ B{ 1 1 1 } bit-count ] unit-test
+{ 1 } [ B{ 1 0 0 } bit-count ] unit-test
+{ 3 } [ B{ 1 1 1 } bit-count ] unit-test
 
-[ t ] [ 0b0 even-parity? ] unit-test
-[ f ] [ 0b1 even-parity? ] unit-test
-[ f ] [ 0b0 odd-parity? ] unit-test
-[ t ] [ 0b1 odd-parity? ] unit-test
+{ t } [ 0b0 even-parity? ] unit-test
+{ f } [ 0b1 even-parity? ] unit-test
+{ f } [ 0b0 odd-parity? ] unit-test
+{ t } [ 0b1 odd-parity? ] unit-test
 
-[ -1 ] [ 0xff 4 >signed ] unit-test
-[ -1 ] [ 0xff 8 >signed ] unit-test
-[ 255 ] [ 0xff 16 >signed ] unit-test
+{ -1 } [ 0xff 4 >signed ] unit-test
+{ -1 } [ 0xff 8 >signed ] unit-test
+{ 255 } [ 0xff 16 >signed ] unit-test
 
-[ 2 ] [ 3 >even ] unit-test
-[ 3 ] [ 3 >odd ] unit-test
-[ 5 ] [ 4 >odd ] unit-test
+{ 2 } [ 3 >even ] unit-test
+{ 3 } [ 3 >odd ] unit-test
+{ 5 } [ 4 >odd ] unit-test
 
-[ t ] [ 0b111 0b110 mask? ] unit-test
-[ f ] [ 0b101 0b110 mask? ] unit-test
-[ t ] [ 0xff 1 mask? ] unit-test
-[ f ] [ 0x0 1 mask? ] unit-test
+{ t } [ 0b111 0b110 mask? ] unit-test
+{ f } [ 0b101 0b110 mask? ] unit-test
+{ t } [ 0xff 1 mask? ] unit-test
+{ f } [ 0x0 1 mask? ] unit-test
 
-[ 7 ] [ 5 next-odd ] unit-test
-[ 7 ] [ 6 next-odd ] unit-test
+{ 7 } [ 5 next-odd ] unit-test
+{ 7 } [ 6 next-odd ] unit-test
 
-[ 6 ] [ 5 next-even ] unit-test
-[ 8 ] [ 6 next-even ] unit-test
+{ 6 } [ 5 next-even ] unit-test
+{ 8 } [ 6 next-even ] unit-test
 
 [ -1 bit-count ] [ non-negative-integer-expected? ] must-fail-with
 [ -1 bit-length ] [ non-negative-integer-expected? ] must-fail-with
index 8605a137f80b965fb5dc96b640c01abd6f0a062f..e7dd4164684330a0a4ae30639f347ecf4d72d18b 100644 (file)
@@ -2,82 +2,82 @@ USING: arrays kernel math math.combinatorics
 math.combinatorics.private tools.test sequences ;
 IN: math.combinatorics.tests
 
-[ 1 ] [ -1 factorial ] unit-test ! required by other math.combinatorics words
-[ 1 ] [ 0 factorial ] unit-test
-[ 1 ] [ 1 factorial ] unit-test
-[ 3628800 ] [ 10 factorial ] unit-test
-
-[ 1 ] [ 3 0 nPk ] unit-test
-[ 6 ] [ 3 2 nPk ] unit-test
-[ 6 ] [ 3 3 nPk ] unit-test
-[ 0 ] [ 3 4 nPk ] unit-test
-[ 311875200 ] [ 52 5 nPk ] unit-test
-[ 672151459757865654763838640470031391460745878674027315200000000000 ] [ 52 47 nPk ] unit-test
-
-[ 1 ] [ 3 0 nCk ] unit-test
-[ 3 ] [ 3 2 nCk ] unit-test
-[ 1 ] [ 3 3 nCk ] unit-test
-[ 0 ] [ 3 4 nCk ] unit-test
-[ 2598960 ] [ 52 5 nCk ] unit-test
-[ 2598960 ] [ 52 47 nCk ] unit-test
-
-
-[ { } ] [ 0 factoradic ] unit-test
-[ { 1 0 } ] [ 1 factoradic ] unit-test
-[ { 1 1 0 3 0 1 0 } ] [ 859 factoradic ] unit-test
-
-[ { 0 1 2 3 } ] [ { 0 0 0 0 } >permutation ] unit-test
-[ { 0 1 3 2 } ] [ { 0 0 1 0 } >permutation ] unit-test
-[ { 1 2 0 6 3 5 4 } ] [ { 1 1 0 3 0 1 0 } >permutation ] unit-test
-
-[ { 0 1 2 3 } ] [ 0 4 iota permutation-indices ] unit-test
-[ { 0 1 3 2 } ] [ 1 4 iota permutation-indices ] unit-test
-[ { 1 2 0 6 3 5 4 } ] [ 859 7 iota permutation-indices ] unit-test
-
-[ { "a" "b" "c" "d" } ] [ 0 { "a" "b" "c" "d" } permutation ] unit-test
-[ { "d" "c" "b" "a" } ] [ 23 { "a" "b" "c" "d" } permutation ] unit-test
-[ { "d" "a" "b" "c" } ] [ 18 { "a" "b" "c" "d" } permutation ] unit-test
-
-[ { { "a" "b" "c" } { "a" "c" "b" }
+{ 1 } [ -1 factorial ] unit-test ! required by other math.combinatorics words
+{ 1 } [ 0 factorial ] unit-test
+{ 1 } [ 1 factorial ] unit-test
+{ 3628800 } [ 10 factorial ] unit-test
+
+{ 1 } [ 3 0 nPk ] unit-test
+{ 6 } [ 3 2 nPk ] unit-test
+{ 6 } [ 3 3 nPk ] unit-test
+{ 0 } [ 3 4 nPk ] unit-test
+{ 311875200 } [ 52 5 nPk ] unit-test
+{ 672151459757865654763838640470031391460745878674027315200000000000 } [ 52 47 nPk ] unit-test
+
+{ 1 } [ 3 0 nCk ] unit-test
+{ 3 } [ 3 2 nCk ] unit-test
+{ 1 } [ 3 3 nCk ] unit-test
+{ 0 } [ 3 4 nCk ] unit-test
+{ 2598960 } [ 52 5 nCk ] unit-test
+{ 2598960 } [ 52 47 nCk ] unit-test
+
+
+{ { } } [ 0 factoradic ] unit-test
+{ { 1 0 } } [ 1 factoradic ] unit-test
+{ { 1 1 0 3 0 1 0 } } [ 859 factoradic ] unit-test
+
+{ { 0 1 2 3 } } [ { 0 0 0 0 } >permutation ] unit-test
+{ { 0 1 3 2 } } [ { 0 0 1 0 } >permutation ] unit-test
+{ { 1 2 0 6 3 5 4 } } [ { 1 1 0 3 0 1 0 } >permutation ] unit-test
+
+{ { 0 1 2 3 } } [ 0 4 iota permutation-indices ] unit-test
+{ { 0 1 3 2 } } [ 1 4 iota permutation-indices ] unit-test
+{ { 1 2 0 6 3 5 4 } } [ 859 7 iota permutation-indices ] unit-test
+
+{ { "a" "b" "c" "d" } } [ 0 { "a" "b" "c" "d" } permutation ] unit-test
+{ { "d" "c" "b" "a" } } [ 23 { "a" "b" "c" "d" } permutation ] unit-test
+{ { "d" "a" "b" "c" } } [ 18 { "a" "b" "c" "d" } permutation ] unit-test
+
+{ { { "a" "b" "c" } { "a" "c" "b" }
     { "b" "a" "c" } { "b" "c" "a" }
-    { "c" "a" "b" } { "c" "b" "a" } } ] [ { "a" "b" "c" } all-permutations ] unit-test
+    { "c" "a" "b" } { "c" "b" "a" } } } [ { "a" "b" "c" } all-permutations ] unit-test
 
-[ { 0 1 2 } ] [ { "a" "b" "c" } inverse-permutation ] unit-test
-[ { 2 1 0 } ] [ { "c" "b" "a" } inverse-permutation ] unit-test
-[ { 3 0 2 1 } ] [ { 12 45 34 2 } inverse-permutation ] unit-test
+{ { 0 1 2 } } [ { "a" "b" "c" } inverse-permutation ] unit-test
+{ { 2 1 0 } } [ { "c" "b" "a" } inverse-permutation ] unit-test
+{ { 3 0 2 1 } } [ { 12 45 34 2 } inverse-permutation ] unit-test
 
-[ "" ] [ "" next-permutation ] unit-test
-[ "1" ] [ "1" next-permutation ] unit-test
-[ "21" ] [ "12" next-permutation ] unit-test
-[ "8344112666" ] [ "8342666411" next-permutation ] unit-test
-[ "ABC" "ACB" "BAC" "BCA" "CAB" "CBA" "ABC" ]
+{ "" } [ "" next-permutation ] unit-test
+{ "1" } [ "1" next-permutation ] unit-test
+{ "21" } [ "12" next-permutation ] unit-test
+{ "8344112666" } [ "8342666411" next-permutation ] unit-test
+{ "ABC" "ACB" "BAC" "BCA" "CAB" "CBA" "ABC" }
 [ "ABC" 6 [ dup dup clone-like next-permutation ] times ] unit-test
 
-[ { 0 1 2 } ] [ 0 3 5 combination-indices ] unit-test
-[ { 2 3 4 } ] [ 9 3 5 combination-indices ] unit-test
+{ { 0 1 2 } } [ 0 3 5 combination-indices ] unit-test
+{ { 2 3 4 } } [ 9 3 5 combination-indices ] unit-test
 
-[ { "a" "b" "c" } ] [ 0 { "a" "b" "c" "d" "e" } 3 combination ] unit-test
-[ { "c" "d" "e" } ] [ 9 { "a" "b" "c" "d" "e" } 3 combination ] unit-test
+{ { "a" "b" "c" } } [ 0 { "a" "b" "c" "d" "e" } 3 combination ] unit-test
+{ { "c" "d" "e" } } [ 9 { "a" "b" "c" "d" "e" } 3 combination ] unit-test
 
-[ { { "a" "b" } { "a" "c" }
+{ { { "a" "b" } { "a" "c" }
     { "a" "d" } { "b" "c" }
-    { "b" "d" } { "c" "d" } } ] [ { "a" "b" "c" "d" } 2 all-combinations ] unit-test
+    { "b" "d" } { "c" "d" } } } [ { "a" "b" "c" "d" } 2 all-combinations ] unit-test
 
-[ { { } } ] [ { } all-subsets ] unit-test
+{ { { } } } [ { } all-subsets ] unit-test
 
-[ { { } { 1 } { 2 } { 3 } { 1 2 } { 1 3 } { 2 3 } { 1 2 3 } } ]
+{ { { } { 1 } { 2 } { 3 } { 1 2 } { 1 3 } { 2 3 } { 1 2 3 } } }
 [ { 1 2 3 } all-subsets ] unit-test
 
-[ { } ] [ { 1 2 } 0 selections ] unit-test
+{ { } } [ { 1 2 } 0 selections ] unit-test
 
-[ { { 1 } { 2 } } ] [ { 1 2 } 1 selections ] unit-test
-[ { { { 1 } } { 2 } } ] [ { { 1 } 2 } 1 selections ] unit-test
+{ { { 1 } { 2 } } } [ { 1 2 } 1 selections ] unit-test
+{ { { { 1 } } { 2 } } } [ { { 1 } 2 } 1 selections ] unit-test
 
-[ { { 1 1 } { 1 2 } { 2 1 } { 2 2 } } ]
+{ { { 1 1 } { 1 2 } { 2 1 } { 2 2 } } }
 [ { 1 2 } 2 selections ] unit-test
 
-[ { { 1 1 1 } { 1 1 2 } { 1 2 1 } { 1 2 2 }
-    { 2 1 1 } { 2 1 2 } { 2 2 1 } { 2 2 2 } } ]
+{ { { 1 1 1 } { 1 1 2 } { 1 2 1 } { 1 2 2 }
+    { 2 1 1 } { 2 1 2 } { 2 2 1 } { 2 2 2 } } }
 [ { 1 2 } 3 selections ] unit-test
 
 { { "aa" "ab" "ac" "ba" "bb" "bc" "ca" "cb" "cc" } }
index 57a5c8fd278680472849968ae818dccdb719421c..1a752c0e0188bd817f20e20054cf7014219499ae 100644 (file)
@@ -6,75 +6,75 @@ IN: math.complex.tests
 [ 1 C{ 0 1 } rect> ] must-fail
 [ C{ 0 1 } 1 rect> ] must-fail
 
-[ f ] [ C{ 5 12.5 } 5 = ] unit-test
-[ f ] [ C{ 5 12.5 } 5 number= ] unit-test
+{ f } [ C{ 5 12.5 } 5 = ] unit-test
+{ f } [ C{ 5 12.5 } 5 number= ] unit-test
 
-[ f ] [ C{ 1.0 2.0 } C{ 1 2 } = ] unit-test
-[ t ] [ C{ 1.0 2.0 } C{ 1 2 } number= ] unit-test
+{ f } [ C{ 1.0 2.0 } C{ 1 2 } = ] unit-test
+{ t } [ C{ 1.0 2.0 } C{ 1 2 } number= ] unit-test
 
-[ f ] [ C{ 1.0 2.3 } C{ 1 2 } = ] unit-test
-[ f ] [ C{ 1.0 2.3 } C{ 1 2 } number= ] unit-test
+{ f } [ C{ 1.0 2.3 } C{ 1 2 } = ] unit-test
+{ f } [ C{ 1.0 2.3 } C{ 1 2 } number= ] unit-test
 
-[ C{ 2 5 } ] [ 2 5  rect> ] unit-test
+{ C{ 2 5 } } [ 2 5  rect> ] unit-test
 { 2 } [ 2 0  rect> ] unit-test
 { C{ 2 0.0 } } [ 2 0.0  rect> ] unit-test
-[ 2 5 ] [ C{ 2 5 }  >rect ] unit-test
-[ C{ 1/2 1 } ] [ 1/2 C{ 0 1 }  + ] unit-test
-[ C{ 1/2 1 } ] [ C{ 0 1 } 1/2  + ] unit-test
-[ t ] [ C{ 11 64 } C{ 11 64 }  = ] unit-test
-[ C{ 2 1 } ] [ 2 C{ 0 1 }  + ] unit-test
-[ C{ 2 1 } ] [ C{ 0 1 } 2  + ] unit-test
-[ C{ 5 4 } ] [ C{ 2 2 } C{ 3 2 }  + ] unit-test
-[ 5 ] [ C{ 2 2 } C{ 3 -2 }  + ] unit-test
-[ C{ 1.0 1 } ] [ 1.0 C{ 0 1 }  + ] unit-test
-
-[ C{ 1/2 -1 } ] [ 1/2 C{ 0 1 }  - ] unit-test
-[ C{ -1/2 1 } ] [ C{ 0 1 } 1/2  - ] unit-test
-[ C{ 1/3 1/4 } ] [ 1 3 / 1 2 / i* + 1 4 / i*  - ] unit-test
-[ C{ -1/3 -1/4 } ] [ 1 4 / i* 1 3 / 1 2 / i* +  - ] unit-test
-[ C{ 1/5 1/4 } ] [ C{ 3/5 1/2 } C{ 2/5 1/4 }  - ] unit-test
-[ 4 ] [ C{ 5 10/3 } C{ 1 10/3 }  - ] unit-test
-[ C{ 1.0 -1 } ] [ 1.0 C{ 0 1 }  - ] unit-test
-
-[ C{ 0 1 } ] [ C{ 0 1 } 1  * ] unit-test
-[ C{ 0 1 } ] [ 1 C{ 0 1 }  * ] unit-test
-[ C{ 0.0 1.0 } ] [ 1.0 C{ 0 1 }  * ] unit-test
-[ -1 ] [ C{ 0 1 } C{ 0 1 }  * ] unit-test
-[ C{ 0 1 } ] [ 1 C{ 0 1 }  * ] unit-test
-[ C{ 0 1 } ] [ C{ 0 1 } 1  * ] unit-test
-[ C{ 0 1/2 } ] [ 1/2 C{ 0 1 }  * ] unit-test
-[ C{ 0 1/2 } ] [ C{ 0 1 } 1/2  * ] unit-test
-[ 2 ] [ C{ 1 1 } C{ 1 -1 }  * ] unit-test
-[ 1 ] [ C{ 0 1 } C{ 0 -1 }  * ] unit-test
-
-[ -1 ] [ C{ 0 1 } C{ 0 -1 }  / ] unit-test
-[ C{ 0 1 } ] [ 1 C{ 0 -1 }  / ] unit-test
-[ t ] [ C{ 12 13 } C{ 13 14 } / C{ 13 14 } * C{ 12 13 }  = ] unit-test
-
-[ C{ -3 4 } ] [ C{ 3 -4 }  neg ] unit-test
-
-[ 5.0 ] [ C{ 3 4 } abs ] unit-test
-[ 5.0 ] [ -5.0 abs ] unit-test
+{ 2 5 } [ C{ 2 5 }  >rect ] unit-test
+{ C{ 1/2 1 } } [ 1/2 C{ 0 1 }  + ] unit-test
+{ C{ 1/2 1 } } [ C{ 0 1 } 1/2  + ] unit-test
+{ t } [ C{ 11 64 } C{ 11 64 }  = ] unit-test
+{ C{ 2 1 } } [ 2 C{ 0 1 }  + ] unit-test
+{ C{ 2 1 } } [ C{ 0 1 } 2  + ] unit-test
+{ C{ 5 4 } } [ C{ 2 2 } C{ 3 2 }  + ] unit-test
+{ 5 } [ C{ 2 2 } C{ 3 -2 }  + ] unit-test
+{ C{ 1.0 1 } } [ 1.0 C{ 0 1 }  + ] unit-test
+
+{ C{ 1/2 -1 } } [ 1/2 C{ 0 1 }  - ] unit-test
+{ C{ -1/2 1 } } [ C{ 0 1 } 1/2  - ] unit-test
+{ C{ 1/3 1/4 } } [ 1 3 / 1 2 / i* + 1 4 / i*  - ] unit-test
+{ C{ -1/3 -1/4 } } [ 1 4 / i* 1 3 / 1 2 / i* +  - ] unit-test
+{ C{ 1/5 1/4 } } [ C{ 3/5 1/2 } C{ 2/5 1/4 }  - ] unit-test
+{ 4 } [ C{ 5 10/3 } C{ 1 10/3 }  - ] unit-test
+{ C{ 1.0 -1 } } [ 1.0 C{ 0 1 }  - ] unit-test
+
+{ C{ 0 1 } } [ C{ 0 1 } 1  * ] unit-test
+{ C{ 0 1 } } [ 1 C{ 0 1 }  * ] unit-test
+{ C{ 0.0 1.0 } } [ 1.0 C{ 0 1 }  * ] unit-test
+{ -1 } [ C{ 0 1 } C{ 0 1 }  * ] unit-test
+{ C{ 0 1 } } [ 1 C{ 0 1 }  * ] unit-test
+{ C{ 0 1 } } [ C{ 0 1 } 1  * ] unit-test
+{ C{ 0 1/2 } } [ 1/2 C{ 0 1 }  * ] unit-test
+{ C{ 0 1/2 } } [ C{ 0 1 } 1/2  * ] unit-test
+{ 2 } [ C{ 1 1 } C{ 1 -1 }  * ] unit-test
+{ 1 } [ C{ 0 1 } C{ 0 -1 }  * ] unit-test
+
+{ -1 } [ C{ 0 1 } C{ 0 -1 }  / ] unit-test
+{ C{ 0 1 } } [ 1 C{ 0 -1 }  / ] unit-test
+{ t } [ C{ 12 13 } C{ 13 14 } / C{ 13 14 } * C{ 12 13 }  = ] unit-test
+
+{ C{ -3 4 } } [ C{ 3 -4 }  neg ] unit-test
+
+{ 5.0 } [ C{ 3 4 } abs ] unit-test
+{ 5.0 } [ -5.0 abs ] unit-test
 
 ! Make sure arguments are sane
-[ 0.0 ] [ 0 arg ] unit-test
-[ 0.0 ] [ 1 arg ] unit-test
-[ t ] [ -1 arg 3.14 3.15 between? ] unit-test
-[ t ] [ C{ 0 1 } arg 1.57 1.58 between? ] unit-test
-[ t ] [ C{ 0 -1 } arg -1.58 -1.57 between? ] unit-test
+{ 0.0 } [ 0 arg ] unit-test
+{ 0.0 } [ 1 arg ] unit-test
+{ t } [ -1 arg 3.14 3.15 between? ] unit-test
+{ t } [ C{ 0 1 } arg 1.57 1.58 between? ] unit-test
+{ t } [ C{ 0 -1 } arg -1.58 -1.57 between? ] unit-test
 
-[ 1.0 0.0 ] [ 1 >polar ] unit-test
-[ 1.0 ] [ -1 >polar drop ] unit-test
-[ t ] [ -1 >polar nip 3.14 3.15 between? ] unit-test
+{ 1.0 0.0 } [ 1 >polar ] unit-test
+{ 1.0 } [ -1 >polar drop ] unit-test
+{ t } [ -1 >polar nip 3.14 3.15 between? ] unit-test
 
 ! I broke something
-[ ] [ C{ 1 4 } tanh drop ] unit-test
-[ ] [ C{ 1 4 } tan drop ] unit-test
-[ ] [ C{ 1 4 } coth drop ] unit-test
-[ ] [ C{ 1 4 } cot drop ] unit-test
+{ } [ C{ 1 4 } tanh drop ] unit-test
+{ } [ C{ 1 4 } tan drop ] unit-test
+{ } [ C{ 1 4 } coth drop ] unit-test
+{ } [ C{ 1 4 } cot drop ] unit-test
 
-[ t ] [ 0.0 pi rect> e^ C{ -1 0 } 1.0e-7 ~ ] unit-test
-[ t ] [ 0 pi rect> e^ C{ -1 0 } 1.0e-7 ~ ] unit-test
+{ t } [ 0.0 pi rect> e^ C{ -1 0 } 1.0e-7 ~ ] unit-test
+{ t } [ 0 pi rect> e^ C{ -1 0 } 1.0e-7 ~ ] unit-test
 
 10 number-base [
     [ "C{ 1/2 2/3 }" ] [ C{ 1/2 2/3 } unparse ] unit-test
index af02a9ddd00da7f261bd0b58821b9823581abd12..c56da8bbdf15fef2ac110252434b1245e9193b86 100755 (executable)
@@ -16,20 +16,20 @@ set-default-fp-env
 : test-fp-exception-compiled ( exception inputs quot -- quot' )
     '[ _ @ [ _ collect-fp-exceptions ] compile-call nip member? ] ;
 
-[ t ] +fp-zero-divide+ [ 1.0 0.0 ] [ /f ] test-fp-exception unit-test
-[ t ] +fp-inexact+ [ 1.0 3.0 ] [ /f ] test-fp-exception unit-test
-[ t ] +fp-overflow+ [ 1.0e250 1.0e100 ] [ * ] test-fp-exception unit-test
-[ t ] +fp-underflow+ [ 1.0e-250 1.0e-100 ] [ * ] test-fp-exception unit-test
-[ t ] +fp-overflow+ [ 2.0 100,000.0 ] [ fpow ] test-fp-exception unit-test
-[ t ] +fp-invalid-operation+ [ 0.0 0.0 ] [ /f ] test-fp-exception unit-test
-[ t ] +fp-invalid-operation+ [ -1.0 ] [ fsqrt ] test-fp-exception unit-test
-
-[ t ] +fp-zero-divide+ [ 1.0 0.0 ] [ /f ] test-fp-exception-compiled unit-test
-[ t ] +fp-inexact+ [ 1.0 3.0 ] [ /f ] test-fp-exception-compiled unit-test
-[ t ] +fp-overflow+ [ 1.0e250 1.0e100 ] [ * ] test-fp-exception-compiled unit-test
-[ t ] +fp-underflow+ [ 1.0e-250 1.0e-100 ] [ * ] test-fp-exception-compiled unit-test
-[ t ] +fp-overflow+ [ 2.0 100,000.0 ] [ fpow ] test-fp-exception-compiled unit-test
-[ t ] +fp-invalid-operation+ [ 2.0 0/0. 1.0e-9 ] [ ~ ] test-fp-exception-compiled unit-test
+[ t ] +fp-zero-divide+ [ 1.0 0.0 ] { /f } test-fp-exception unit-test
+[ t ] +fp-inexact+ [ 1.0 3.0 ] { /f } test-fp-exception unit-test
+[ t ] +fp-overflow+ [ 1.0e250 1.0e100 ] { * } test-fp-exception unit-test
+[ t ] +fp-underflow+ [ 1.0e-250 1.0e-100 ] { * } test-fp-exception unit-test
+[ t ] +fp-overflow+ [ 2.0 100,000.0 ] { fpow } test-fp-exception unit-test
+[ t ] +fp-invalid-operation+ [ 0.0 0.0 ] { /f } test-fp-exception unit-test
+[ t ] +fp-invalid-operation+ [ -1.0 ] { fsqrt } test-fp-exception unit-test
+
+[ t ] +fp-zero-divide+ [ 1.0 0.0 ] { /f } test-fp-exception-compiled unit-test
+[ t ] +fp-inexact+ [ 1.0 3.0 ] { /f } test-fp-exception-compiled unit-test
+[ t ] +fp-overflow+ [ 1.0e250 1.0e100 ] { * } test-fp-exception-compiled unit-test
+[ t ] +fp-underflow+ [ 1.0e-250 1.0e-100 ] { * } test-fp-exception-compiled unit-test
+[ t ] +fp-overflow+ [ 2.0 100,000.0 ] { fpow } test-fp-exception-compiled unit-test
+[ t ] +fp-invalid-operation+ [ 2.0 0/0. 1.0e-9 ] { ~ } test-fp-exception-compiled unit-test
 
 ! No underflow on Linux with this test, just inexact. Reported as an Ubuntu bug:
 ! https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/429113
@@ -38,15 +38,15 @@ os linux? cpu x86.64? and [
     [ t ] +fp-underflow+ [ 2.0 -100,000.0 ] [ fpow ] test-fp-exception-compiled unit-test
 ] unless
 
-[ t ] +fp-invalid-operation+ [ 0.0 0.0 ] [ /f ] test-fp-exception-compiled unit-test
-[ t ] +fp-invalid-operation+ [ -1.0 ] [ fsqrt ] test-fp-exception-compiled unit-test
+[ t ] +fp-invalid-operation+ [ 0.0 0.0 ] { /f } test-fp-exception-compiled unit-test
+[ t ] +fp-invalid-operation+ [ -1.0 ] { fsqrt } test-fp-exception-compiled unit-test
 
-[
+{
     0x3fd5,5555,5555,5555
     0x3fc9,9999,9999,999a
     0xbfc9,9999,9999,999a
     0xbfd5,5555,5555,5555
-] [
+} [
     +round-nearest+ [
          1.0 3.0 /f double>bits
          1.0 5.0 /f double>bits
@@ -55,12 +55,12 @@ os linux? cpu x86.64? and [
     ] with-rounding-mode
 ] unit-test
 
-[
+{
     0x3fd5,5555,5555,5555
     0x3fc9,9999,9999,9999
     0xbfc9,9999,9999,999a
     0xbfd5,5555,5555,5556
-] [
+} [
     +round-down+ [
          1.0 3.0 /f double>bits
          1.0 5.0 /f double>bits
@@ -69,12 +69,12 @@ os linux? cpu x86.64? and [
     ] with-rounding-mode
 ] unit-test
 
-[
+{
     0x3fd5,5555,5555,5556
     0x3fc9,9999,9999,999a
     0xbfc9,9999,9999,9999
     0xbfd5,5555,5555,5555
-] [
+} [
     +round-up+ [
          1.0 3.0 /f double>bits
          1.0 5.0 /f double>bits
@@ -83,12 +83,12 @@ os linux? cpu x86.64? and [
     ] with-rounding-mode
 ] unit-test
 
-[
+{
     0x3fd5,5555,5555,5555
     0x3fc9,9999,9999,9999
     0xbfc9,9999,9999,9999
     0xbfd5,5555,5555,5555
-] [
+} [
     +round-zero+ [
          1.0 3.0 /f double>bits
          1.0 5.0 /f double>bits
@@ -98,12 +98,12 @@ os linux? cpu x86.64? and [
 ] unit-test
 
 ! ensure rounding mode is restored to +round-nearest+
-[
+{
     0x3fd5,5555,5555,5555
     0x3fc9,9999,9999,999a
     0xbfc9,9999,9999,999a
     0xbfd5,5555,5555,5555
-] [
+} [
      1.0 3.0 /f double>bits
      1.0 5.0 /f double>bits
     -1.0 5.0 /f double>bits
@@ -181,14 +181,14 @@ os linux? cpu x86.64? and [
 ] when
 
 ! Ensure traps get cleared
-[ 1/0. ] [ 1.0 0.0 /f ] unit-test
+{ 1/0. } [ 1.0 0.0 /f ] unit-test
 
 ! Ensure state is back to normal
-[ +round-nearest+ ] [ rounding-mode ] unit-test
-[ +denormal-keep+ ] [ denormal-mode ] unit-test
-[ { } ] [ fp-traps ] unit-test
+{ +round-nearest+ } [ rounding-mode ] unit-test
+{ +denormal-keep+ } [ denormal-mode ] unit-test
+{ { } } [ fp-traps ] unit-test
 
-[ ] [
+{ } [
     all-fp-exceptions [ compact-gc ] with-fp-traps
 ] unit-test
 
index 710b1e5ac69911b13375575ecb8a632e5775e59c..c1ab238f5e31bb9319bf85ef893716f84260473f 100644 (file)
@@ -3,32 +3,32 @@ math tools.test specialized-arrays alien.data classes.struct ;
 SPECIALIZED-ARRAY: half
 IN: math.floats.half.tests
 
-[ 0x0000 ] [  0.0  half>bits ] unit-test
-[ 0x8000 ] [ -0.0  half>bits ] unit-test
-[ 0x3e00 ] [  1.5  half>bits ] unit-test
-[ 0xbe00 ] [ -1.5  half>bits ] unit-test
-[ 0x7c00 ] [  1/0. half>bits ] unit-test
-[ 0xfc00 ] [ -1/0. half>bits ] unit-test
-[ 0x7eaa ] [ NAN: aaaaaaaaaaaaa half>bits ] unit-test
+{ 0x0000 } [  0.0  half>bits ] unit-test
+{ 0x8000 } [ -0.0  half>bits ] unit-test
+{ 0x3e00 } [  1.5  half>bits ] unit-test
+{ 0xbe00 } [ -1.5  half>bits ] unit-test
+{ 0x7c00 } [  1/0. half>bits ] unit-test
+{ 0xfc00 } [ -1/0. half>bits ] unit-test
+{ 0x7eaa } [ NAN: aaaaaaaaaaaaa half>bits ] unit-test
 
 ! too-big floats overflow to infinity
-[ 0x7c00 ] [   65536.0 half>bits ] unit-test
-[ 0xfc00 ] [  -65536.0 half>bits ] unit-test
-[ 0x7c00 ] [  131072.0 half>bits ] unit-test
-[ 0xfc00 ] [ -131072.0 half>bits ] unit-test
+{ 0x7c00 } [   65536.0 half>bits ] unit-test
+{ 0xfc00 } [  -65536.0 half>bits ] unit-test
+{ 0x7c00 } [  131072.0 half>bits ] unit-test
+{ 0xfc00 } [ -131072.0 half>bits ] unit-test
 
 ! too-small floats flush to zero
-[ 0x0000 ] [  1.0e-9 half>bits ] unit-test
-[ 0x8000 ] [ -1.0e-9 half>bits ] unit-test
-
-[  0.0  ] [ 0x0000 bits>half ] unit-test
-[ -0.0  ] [ 0x8000 bits>half ] unit-test
-[  1.5  ] [ 0x3e00 bits>half ] unit-test
-[ -1.5  ] [ 0xbe00 bits>half ] unit-test
-[  1/0. ] [ 0x7c00 bits>half ] unit-test
-[ -1/0. ] [ 0xfc00 bits>half ] unit-test
-[  3.0  ] [ 0x4200 bits>half ] unit-test
-[    t  ] [ 0x7e00 bits>half fp-nan? ] unit-test
+{ 0x0000 } [  1.0e-9 half>bits ] unit-test
+{ 0x8000 } [ -1.0e-9 half>bits ] unit-test
+
+{  0.0  } [ 0x0000 bits>half ] unit-test
+{ -0.0  } [ 0x8000 bits>half ] unit-test
+{  1.5  } [ 0x3e00 bits>half ] unit-test
+{ -1.5  } [ 0xbe00 bits>half ] unit-test
+{  1/0. } [ 0x7c00 bits>half ] unit-test
+{ -1/0. } [ 0xfc00 bits>half ] unit-test
+{  3.0  } [ 0x4200 bits>half ] unit-test
+{    t  } [ 0x7e00 bits>half fp-nan? ] unit-test
 
 STRUCT: halves
     { tom half }
@@ -36,13 +36,13 @@ STRUCT: halves
     { harry half }
     { harry-jr half } ;
 
-[ 8 ] [ halves heap-size ] unit-test
+{ 8 } [ halves heap-size ] unit-test
 
-[ 3.0 ] [
+{ 3.0 } [
     halves <struct>
         3.0 >>dick
     dick>>
 ] unit-test
 
-[ half-array{ 1.0 2.0 3.0 1/0. -1/0. } ]
+{ half-array{ 1.0 2.0 3.0 1/0. -1/0. } }
 [ { 1.0 2.0 3.0 1/0. -1/0. } half >c-array ] unit-test
index bf275341f8889ee1bb947560333a58b24de43bf2..b772c1aa0db0d75c965bcfe25a9737ac11ea0738 100644 (file)
@@ -3,57 +3,57 @@ math.order math.ranges math.private sequences tools.test ;
 
 IN: math.functions.tests
 
-[ t ] [ 4 4 .00000001 ~ ] unit-test
-[ t ] [ 4.0000001 4.0000001 .000001 ~ ] unit-test
-[ f ] [ -4.0000001 4.0000001 .00001 ~ ] unit-test
-[ t ] [ -.0000000000001 0 .0000000001 ~ ] unit-test
-[ t ] [ 100 101 -.9 ~ ] unit-test
-[ f ] [ 100 120 -.09 ~ ] unit-test
-[ t ] [ 0 0 -.9 ~ ] unit-test
-[ f ] [ 0 10 -.9 ~ ] unit-test
+{ t } [ 4 4 .00000001 ~ ] unit-test
+{ t } [ 4.0000001 4.0000001 .000001 ~ ] unit-test
+{ f } [ -4.0000001 4.0000001 .00001 ~ ] unit-test
+{ t } [ -.0000000000001 0 .0000000001 ~ ] unit-test
+{ t } [ 100 101 -.9 ~ ] unit-test
+{ f } [ 100 120 -.09 ~ ] unit-test
+{ t } [ 0 0 -.9 ~ ] unit-test
+{ f } [ 0 10 -.9 ~ ] unit-test
 
 ! Lets get the argument order correct, eh?
-[ 0.0 ] [ 0.0 1.0 fatan2 ] unit-test
-[ 0.25 ] [ 2.0 -2.0 fpow ] unit-test
-
-[ 4.0 ] [ 16 sqrt ] unit-test
-[ 2.0 ] [ 4.0 0.5 ^ ] unit-test
-[ C{ 0.0 4.0 } ] [ -16 sqrt ] unit-test
-
-[ 4 ] [ 2 2 ^ ] unit-test
-[ 1/4 ] [ 2 -2 ^ ] unit-test
-[ t ] [ 2 0.5 ^ 2 ^ 2 2.00001 between? ] unit-test
-[ t ] [ e pi i* ^ real-part -1.0 = ] unit-test
-[ t ] [ e pi i* ^ imaginary-part -0.00001 0.00001 between? ] unit-test
-
-[ 1/0. ] [ 2.0 1024 ^ ] unit-test
-[ 0x1.0p-1024 ] [ 2.0 -1024 ^ ] unit-test
-
-[ t ] [ 0 0 ^ fp-nan? ] unit-test
-[ 0.0 ] [ 0.0 1.0 ^ ] unit-test
-[ 1/0. ] [ 0 -2 ^ ] unit-test
-[ t ] [ 0 0.0 ^ fp-nan? ] unit-test
-[ t ] [ 0.0 0.0 ^ fp-nan? ] unit-test
-[ 1/0. ] [ 0 -2.0 ^ ] unit-test
-[ 0 ] [ 0 3.0 ^ ] unit-test
-[ 0 ] [ 0 3 ^ ] unit-test
+{ 0.0 } [ 0.0 1.0 fatan2 ] unit-test
+{ 0.25 } [ 2.0 -2.0 fpow ] unit-test
+
+{ 4.0 } [ 16 sqrt ] unit-test
+{ 2.0 } [ 4.0 0.5 ^ ] unit-test
+{ C{ 0.0 4.0 } } [ -16 sqrt ] unit-test
+
+{ 4 } [ 2 2 ^ ] unit-test
+{ 1/4 } [ 2 -2 ^ ] unit-test
+{ t } [ 2 0.5 ^ 2 ^ 2 2.00001 between? ] unit-test
+{ t } [ e pi i* ^ real-part -1.0 = ] unit-test
+{ t } [ e pi i* ^ imaginary-part -0.00001 0.00001 between? ] unit-test
+
+{ 1/0. } [ 2.0 1024 ^ ] unit-test
+{ 0x1.0p-1024 } [ 2.0 -1024 ^ ] unit-test
+
+{ t } [ 0 0 ^ fp-nan? ] unit-test
+{ 0.0 } [ 0.0 1.0 ^ ] unit-test
+{ 1/0. } [ 0 -2 ^ ] unit-test
+{ t } [ 0 0.0 ^ fp-nan? ] unit-test
+{ t } [ 0.0 0.0 ^ fp-nan? ] unit-test
+{ 1/0. } [ 0 -2.0 ^ ] unit-test
+{ 0 } [ 0 3.0 ^ ] unit-test
+{ 0 } [ 0 3 ^ ] unit-test
 
 : factorial ( n -- n! ) [ 1 ] [ [1,b] 1 [ * ] reduce ] if-zero ;
 
-[ 0.0 0 ] [ 0 frexp ] unit-test
-[ 0.5 1 ] [ 1 frexp ] unit-test
-[ -0.5 1 ] [ -1 frexp ] unit-test
-[ 0.5 2 ] [ 2 frexp ] unit-test
-[ -0.5 2 ] [ -2 frexp ] unit-test
-[ 0.75 2 ] [ 3 frexp ] unit-test
-[ -0.75 2 ] [ -3 frexp ] unit-test
-[ 0.75 0 ] [ 0.75 frexp ] unit-test
-[ -0.75 0 ] [ -0.75 frexp ] unit-test
-[ 1/0. ] [ 1/0. frexp drop ] unit-test
-[ -1/0. ] [ -1/0. frexp drop ] unit-test
-[ t ] [ 0/0. frexp drop fp-nan? ] unit-test
-[  0.75 10,002 t ] [  3 10,000 2^ * [ frexp ] [ bignum? ] bi ] unit-test
-[ -0.75 10,002 t ] [ -3 10,000 2^ * [ frexp ] [ bignum? ] bi ] unit-test
+{ 0.0 0 } [ 0 frexp ] unit-test
+{ 0.5 1 } [ 1 frexp ] unit-test
+{ -0.5 1 } [ -1 frexp ] unit-test
+{ 0.5 2 } [ 2 frexp ] unit-test
+{ -0.5 2 } [ -2 frexp ] unit-test
+{ 0.75 2 } [ 3 frexp ] unit-test
+{ -0.75 2 } [ -3 frexp ] unit-test
+{ 0.75 0 } [ 0.75 frexp ] unit-test
+{ -0.75 0 } [ -0.75 frexp ] unit-test
+{ 1/0. } [ 1/0. frexp drop ] unit-test
+{ -1/0. } [ -1/0. frexp drop ] unit-test
+{ t } [ 0/0. frexp drop fp-nan? ] unit-test
+{  0.75 10,002 t } [  3 10,000 2^ * [ frexp ] [ bignum? ] bi ] unit-test
+{ -0.75 10,002 t } [ -3 10,000 2^ * [ frexp ] [ bignum? ] bi ] unit-test
 
 { 0.0 } [ 0.0 1 ldexp ] unit-test
 { -0.0 } [ -0.0 1 ldexp ] unit-test
@@ -65,105 +65,105 @@ IN: math.functions.tests
 { 49152 } [ 12 12 ldexp ] unit-test
 { 0 } [ 12 -12 ldexp ] unit-test
 
-[ 0.0 ] [ 1 log ] unit-test
-[ 0.0 ] [ 1.0 log ] unit-test
-[ 1.0 ] [ e log ] unit-test
+{ 0.0 } [ 1 log ] unit-test
+{ 0.0 } [ 1.0 log ] unit-test
+{ 1.0 } [ e log ] unit-test
 
 CONSTANT: log-factorial-1000 0x1.71820d04e2eb6p12
 CONSTANT: log10-factorial-1000 0x1.40f3593ed6f8ep11
 
-[ $ log-factorial-1000 t ] [ 1000 factorial [ log ] [ bignum? ] bi ] unit-test
-[ C{ $ log-factorial-1000 $ pi } t ] [ 1000 factorial neg [ log ] [ bignum? ] bi ] unit-test
-
-[ 0.0 ] [ 1.0 log10 ] unit-test
-[ 1.0 ] [ 10.0 log10 ] unit-test
-[ 2.0 ] [ 100.0 log10 ] unit-test
-[ 3.0 ] [ 1000.0 log10 ] unit-test
-[ 4.0 ] [ 10000.0 log10 ] unit-test
-[ $ log10-factorial-1000 t ] [ 1000 factorial [ log10 ] [ bignum? ] bi ] unit-test
-
-[ t ] [ 1 e^ e 1.e-10 ~ ] unit-test
-[ f ] [ 1 e^ 0/0. 1.e-10 ~ ] unit-test
-[ f ] [ 0/0. 1 e^ 1.e-10 ~ ] unit-test
-[ t ] [ 1.0 e^ e 1.e-10 ~ ] unit-test
-[ t ] [ -1 e^ e * 1.0 1.e-10 ~ ] unit-test
-[ f ] [ 1/0. 1/0. 1.e-10 ~ ] unit-test
-[ f ] [ 1/0. -1/0. 1.e-10 ~ ] unit-test
-[ f ] [ 1/0. 0/0. 1.e-10 ~ ] unit-test
-[ f ] [ 0/0. -1/0. 1.e-10 ~ ] unit-test
-
-[ 1.0 ] [ 0 cosh ] unit-test
-[ 1.0 ] [ 0.0 cosh ] unit-test
-[ 0.0 ] [ 1 acosh ] unit-test
-[ 0.0 ] [ 1.0 acosh ] unit-test
-
-[ 1.0 ] [ 0 cos ] unit-test
-[ 1.0 ] [ 0.0 cos ] unit-test
-[ 0.0 ] [ 1 acos ] unit-test
-[ 0.0 ] [ 1.0 acos ] unit-test
-
-[ 0.0 ] [ 0 sinh ] unit-test
-[ 0.0 ] [ 0.0 sinh ] unit-test
-[ 0.0 ] [ 0 asinh ] unit-test
-[ 0.0 ] [ 0.0 asinh ] unit-test
-
-[ 0.0 ] [ 0 sin ] unit-test
-[ 0.0 ] [ 0.0 sin ] unit-test
-[ 0.0 ] [ 0 asin ] unit-test
-[ 0.0 ] [ 0.0 asin ] unit-test
-
-[ 0.0 ] [ 0 tan ] unit-test
-[ t ] [ pi 2 / tan 1.e10 > ] unit-test
-
-[ t ] [ 10 atan real? ] unit-test
-[ t ] [ 10.0 atan real? ] unit-test
-[ f ] [ 10 atanh real? ] unit-test
-[ f ] [ 10.0 atanh real? ] unit-test
-
-[ t ] [ 10 asin sin 10 1.e-10 ~ ] unit-test
-[ t ] [ -1 sqrt neg dup acos cos 1.e-10 ~ ] unit-test
-[ t ] [ -100 atan tan -100 1.e-10 ~ ] unit-test
-[ t ] [ 10 asinh sinh 10 1.e-10 ~ ] unit-test
-[ t ] [ 10 atanh tanh 10 1.e-10 ~ ] unit-test
-[ t ] [ 0.5 atanh tanh 0.5 1.e-10 ~ ] unit-test
-
-[ 100 ] [ 100 100 gcd nip ] unit-test
-[ 100 ] [ 1000 100 gcd nip ] unit-test
-[ 100 ] [ 100 1000 gcd nip ] unit-test
-[ 4 ] [ 132 64 gcd nip ] unit-test
-[ 4 ] [ -132 64 gcd nip ] unit-test
-[ 4 ] [ -132 -64 gcd nip ] unit-test
-[ 4 ] [ 132 -64 gcd nip ] unit-test
-[ 4 ] [ -132 -64 gcd nip ] unit-test
-
-[ 100 ] [ 100 >bignum 100 >bignum gcd nip ] unit-test
-[ 100 ] [ 1000 >bignum 100 >bignum gcd nip ] unit-test
-[ 100 ] [ 100 >bignum 1000 >bignum gcd nip ] unit-test
-[ 4 ] [ 132 >bignum 64 >bignum gcd nip ] unit-test
-[ 4 ] [ -132 >bignum 64 >bignum gcd nip ] unit-test
-[ 4 ] [ -132 >bignum -64 >bignum gcd nip ] unit-test
-[ 4 ] [ 132 >bignum -64 >bignum gcd nip ] unit-test
-[ 4 ] [ -132 >bignum -64 >bignum gcd nip ] unit-test
-
-[ 6 ] [
+{ $ log-factorial-1000 t } [ 1000 factorial [ log ] [ bignum? ] bi ] unit-test
+{ C{ $ log-factorial-1000 $ pi } t } [ 1000 factorial neg [ log ] [ bignum? ] bi ] unit-test
+
+{ 0.0 } [ 1.0 log10 ] unit-test
+{ 1.0 } [ 10.0 log10 ] unit-test
+{ 2.0 } [ 100.0 log10 ] unit-test
+{ 3.0 } [ 1000.0 log10 ] unit-test
+{ 4.0 } [ 10000.0 log10 ] unit-test
+{ $ log10-factorial-1000 t } [ 1000 factorial [ log10 ] [ bignum? ] bi ] unit-test
+
+{ t } [ 1 e^ e 1.e-10 ~ ] unit-test
+{ f } [ 1 e^ 0/0. 1.e-10 ~ ] unit-test
+{ f } [ 0/0. 1 e^ 1.e-10 ~ ] unit-test
+{ t } [ 1.0 e^ e 1.e-10 ~ ] unit-test
+{ t } [ -1 e^ e * 1.0 1.e-10 ~ ] unit-test
+{ f } [ 1/0. 1/0. 1.e-10 ~ ] unit-test
+{ f } [ 1/0. -1/0. 1.e-10 ~ ] unit-test
+{ f } [ 1/0. 0/0. 1.e-10 ~ ] unit-test
+{ f } [ 0/0. -1/0. 1.e-10 ~ ] unit-test
+
+{ 1.0 } [ 0 cosh ] unit-test
+{ 1.0 } [ 0.0 cosh ] unit-test
+{ 0.0 } [ 1 acosh ] unit-test
+{ 0.0 } [ 1.0 acosh ] unit-test
+
+{ 1.0 } [ 0 cos ] unit-test
+{ 1.0 } [ 0.0 cos ] unit-test
+{ 0.0 } [ 1 acos ] unit-test
+{ 0.0 } [ 1.0 acos ] unit-test
+
+{ 0.0 } [ 0 sinh ] unit-test
+{ 0.0 } [ 0.0 sinh ] unit-test
+{ 0.0 } [ 0 asinh ] unit-test
+{ 0.0 } [ 0.0 asinh ] unit-test
+
+{ 0.0 } [ 0 sin ] unit-test
+{ 0.0 } [ 0.0 sin ] unit-test
+{ 0.0 } [ 0 asin ] unit-test
+{ 0.0 } [ 0.0 asin ] unit-test
+
+{ 0.0 } [ 0 tan ] unit-test
+{ t } [ pi 2 / tan 1.e10 > ] unit-test
+
+{ t } [ 10 atan real? ] unit-test
+{ t } [ 10.0 atan real? ] unit-test
+{ f } [ 10 atanh real? ] unit-test
+{ f } [ 10.0 atanh real? ] unit-test
+
+{ t } [ 10 asin sin 10 1.e-10 ~ ] unit-test
+{ t } [ -1 sqrt neg dup acos cos 1.e-10 ~ ] unit-test
+{ t } [ -100 atan tan -100 1.e-10 ~ ] unit-test
+{ t } [ 10 asinh sinh 10 1.e-10 ~ ] unit-test
+{ t } [ 10 atanh tanh 10 1.e-10 ~ ] unit-test
+{ t } [ 0.5 atanh tanh 0.5 1.e-10 ~ ] unit-test
+
+{ 100 } [ 100 100 gcd nip ] unit-test
+{ 100 } [ 1000 100 gcd nip ] unit-test
+{ 100 } [ 100 1000 gcd nip ] unit-test
+{ 4 } [ 132 64 gcd nip ] unit-test
+{ 4 } [ -132 64 gcd nip ] unit-test
+{ 4 } [ -132 -64 gcd nip ] unit-test
+{ 4 } [ 132 -64 gcd nip ] unit-test
+{ 4 } [ -132 -64 gcd nip ] unit-test
+
+{ 100 } [ 100 >bignum 100 >bignum gcd nip ] unit-test
+{ 100 } [ 1000 >bignum 100 >bignum gcd nip ] unit-test
+{ 100 } [ 100 >bignum 1000 >bignum gcd nip ] unit-test
+{ 4 } [ 132 >bignum 64 >bignum gcd nip ] unit-test
+{ 4 } [ -132 >bignum 64 >bignum gcd nip ] unit-test
+{ 4 } [ -132 >bignum -64 >bignum gcd nip ] unit-test
+{ 4 } [ 132 >bignum -64 >bignum gcd nip ] unit-test
+{ 4 } [ -132 >bignum -64 >bignum gcd nip ] unit-test
+
+{ 6 } [
     1326264299060955293181542400000006
     1591517158873146351817850880000000
     gcd nip
 ] unit-test
 
-[ 11 ] [
+{ 11 } [
     13262642990609552931815424
     159151715887314635181785
     gcd nip
 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     13262642990609552931
     1591517158873146351
     gcd nip
 ] unit-test
 
-[ 26525285981219 ] [
+{ 26525285981219 } [
     132626429906095
     159151715887314
     gcd nip
@@ -174,77 +174,77 @@ CONSTANT: log10-factorial-1000 0x1.40f3593ed6f8ep11
     2dup gcd
     [ rot * swap rem ] dip = ;
 
-[ t ] [ 123 124 verify-gcd ] unit-test
-[ t ] [ 50 120 verify-gcd ] unit-test
+{ t } [ 123 124 verify-gcd ] unit-test
+{ t } [ 50 120 verify-gcd ] unit-test
 
-[ t ] [ 0 42 divisor? ] unit-test
-[ t ] [ 42 7 divisor? ] unit-test
-[ t ] [ 42 -7 divisor? ] unit-test
-[ t ] [ 42 42 divisor? ] unit-test
-[ f ] [ 42 16 divisor? ] unit-test
+{ t } [ 0 42 divisor? ] unit-test
+{ t } [ 42 7 divisor? ] unit-test
+{ t } [ 42 -7 divisor? ] unit-test
+{ t } [ 42 42 divisor? ] unit-test
+{ f } [ 42 16 divisor? ] unit-test
 
-[ 3 ] [ 5 7 mod-inv ] unit-test
-[ 78572682077 ] [ 234829342 342389423843 mod-inv ] unit-test
+{ 3 } [ 5 7 mod-inv ] unit-test
+{ 78572682077 } [ 234829342 342389423843 mod-inv ] unit-test
 
 [ 2 10 mod-inv ] must-fail
 
-[ t ] [ 15 37 137 ^mod 15 37 ^ 137 mod = ] unit-test
+{ t } [ 15 37 137 ^mod 15 37 ^ 137 mod = ] unit-test
 
-[ t ] [ 0 0 ^ fp-nan? ] unit-test
-[ 1 ] [ 10 0 ^ ] unit-test
-[ 1/8 ] [ 1/2 3 ^ ] unit-test
-[ 1/8 ] [ 2 -3 ^ ] unit-test
-[ t ] [ 1 100 shift 2 100 ^ = ] unit-test
+{ t } [ 0 0 ^ fp-nan? ] unit-test
+{ 1 } [ 10 0 ^ ] unit-test
+{ 1/8 } [ 1/2 3 ^ ] unit-test
+{ 1/8 } [ 2 -3 ^ ] unit-test
+{ t } [ 1 100 shift 2 100 ^ = ] unit-test
 
-[ 1 ] [ 7/8 ceiling ] unit-test
-[ 2 ] [ 3/2 ceiling ] unit-test
-[ 0 ] [ -7/8 ceiling ] unit-test
-[ -1 ] [ -3/2 ceiling ] unit-test
+{ 1 } [ 7/8 ceiling ] unit-test
+{ 2 } [ 3/2 ceiling ] unit-test
+{ 0 } [ -7/8 ceiling ] unit-test
+{ -1 } [ -3/2 ceiling ] unit-test
 
-[ 4.0 ] [ 4.5 truncate ] unit-test
-[ 4.0 ] [ 4.5 floor ] unit-test
-[ 5.0 ] [ 4.5 ceiling ] unit-test
+{ 4.0 } [ 4.5 truncate ] unit-test
+{ 4.0 } [ 4.5 floor ] unit-test
+{ 5.0 } [ 4.5 ceiling ] unit-test
 
-[ -4.0 ] [ -4.5 truncate ] unit-test
-[ -5.0 ] [ -4.5 floor ] unit-test
-[ -4.0 ] [ -4.5 ceiling ] unit-test
+{ -4.0 } [ -4.5 truncate ] unit-test
+{ -5.0 } [ -4.5 floor ] unit-test
+{ -4.0 } [ -4.5 ceiling ] unit-test
 
-[ -4.0 ] [ -4.0 truncate ] unit-test
-[ -4.0 ] [ -4.0 floor ] unit-test
-[ -4.0 ] [ -4.0 ceiling ] unit-test
+{ -4.0 } [ -4.0 truncate ] unit-test
+{ -4.0 } [ -4.0 floor ] unit-test
+{ -4.0 } [ -4.0 ceiling ] unit-test
 
-[ -5 ] [ -9/2 round ] unit-test
-[ -4 ] [ -22/5 round ] unit-test
-[ 5 ] [ 9/2 round ] unit-test
-[ 4 ] [ 22/5 round ] unit-test
+{ -5 } [ -9/2 round ] unit-test
+{ -4 } [ -22/5 round ] unit-test
+{ 5 } [ 9/2 round ] unit-test
+{ 4 } [ 22/5 round ] unit-test
 
-[ -5.0 ] [ -4.5 round ] unit-test
-[ -4.0 ] [ -4.4 round ] unit-test
-[ 5.0 ] [ 4.5 round ] unit-test
-[ 4.0 ] [ 4.4 round ] unit-test
+{ -5.0 } [ -4.5 round ] unit-test
+{ -4.0 } [ -4.4 round ] unit-test
+{ 5.0 } [ 4.5 round ] unit-test
+{ 4.0 } [ 4.4 round ] unit-test
 
-[ 6 59967 ] [ 3837888 factor-2s ] unit-test
-[ 6 -59967 ] [ -3837888 factor-2s ] unit-test
+{ 6 59967 } [ 3837888 factor-2s ] unit-test
+{ 6 -59967 } [ -3837888 factor-2s ] unit-test
 
-[ 1 ] [
+{ 1 } [
     183009416410801897
     1067811677921310779
     2135623355842621559
     ^mod
 ] unit-test
 
-[ 1 ] [
+{ 1 } [
     183009416410801897
     1067811677921310779
     2135623355842621559
     [ >bignum ] tri@ ^mod
 ] unit-test
 
-[ 1.0  ] [ 1.0 2.5 0.0 lerp ] unit-test
-[ 2.5  ] [ 1.0 2.5 1.0 lerp ] unit-test
-[ 1.75 ] [ 1.0 2.5 0.5 lerp ] unit-test
+{ 1.0  } [ 1.0 2.5 0.0 lerp ] unit-test
+{ 2.5  } [ 1.0 2.5 1.0 lerp ] unit-test
+{ 1.75 } [ 1.0 2.5 0.5 lerp ] unit-test
 
-[ C{ 1 2 } ] [ C{ 1 2 } 1 ^ ] unit-test
+{ C{ 1 2 } } [ C{ 1 2 } 1 ^ ] unit-test
 
 { { t t t } } [
     3 3 roots {
index b9e09264d938e476e9d6a6877d1e50364a8d5546..e729b232bdcf2ada668543763faa0d186558a0f1 100644 (file)
@@ -3,155 +3,155 @@ arrays prettyprint tools.test random vocabs combinators
 accessors math.constants fry ;
 IN: math.intervals.tests
 
-[ empty-interval ] [ 2 2 (a,b) ] unit-test
+{ empty-interval } [ 2 2 (a,b) ] unit-test
 
-[ empty-interval ] [ 2 2.0 (a,b) ] unit-test
+{ empty-interval } [ 2 2.0 (a,b) ] unit-test
 
-[ empty-interval ] [ 2 2 [a,b) ] unit-test
+{ empty-interval } [ 2 2 [a,b) ] unit-test
 
-[ empty-interval ] [ 2 2 (a,b] ] unit-test
+{ empty-interval } [ 2 2 (a,b] ] unit-test
 
-[ empty-interval ] [ 3 2 [a,b] ] unit-test
+{ empty-interval } [ 3 2 [a,b] ] unit-test
 
-[ T{ interval f { 1 t } { 2 t } } ] [ 1 2 [a,b] ] unit-test
+{ T{ interval f { 1 t } { 2 t } } } [ 1 2 [a,b] ] unit-test
 
-[ T{ interval f { 1 t } { 2 f } } ] [ 1 2 [a,b) ] unit-test
+{ T{ interval f { 1 t } { 2 f } } } [ 1 2 [a,b) ] unit-test
 
-[ T{ interval f { 1 f } { 2 f } } ] [ 1 2 (a,b) ] unit-test
+{ T{ interval f { 1 f } { 2 f } } } [ 1 2 (a,b) ] unit-test
 
-[ T{ interval f { 1 f } { 2 t } } ] [ 1 2 (a,b] ] unit-test
+{ T{ interval f { 1 f } { 2 t } } } [ 1 2 (a,b] ] unit-test
 
-[ T{ interval f { 1 t } { 1 t } } ] [ 1 [a,a] ] unit-test
+{ T{ interval f { 1 t } { 1 t } } } [ 1 [a,a] ] unit-test
 
 ! Not sure how to handle NaNs yet...
 ! [ 1 0/0. [a,b] ] must-fail
 ! [ 0/0. 1 [a,b] ] must-fail
 
-[ t ] [ { 3 t } { 3 f } endpoint< ] unit-test
-[ t ] [ { 2 f } { 3 f } endpoint< ] unit-test
-[ f ] [ { 3 f } { 3 t } endpoint< ] unit-test
-[ t ] [ { 4 f } { 3 t } endpoint> ] unit-test
-[ f ] [ { 3 f } { 3 t } endpoint> ] unit-test
+{ t } [ { 3 t } { 3 f } endpoint< ] unit-test
+{ t } [ { 2 f } { 3 f } endpoint< ] unit-test
+{ f } [ { 3 f } { 3 t } endpoint< ] unit-test
+{ t } [ { 4 f } { 3 t } endpoint> ] unit-test
+{ f } [ { 3 f } { 3 t } endpoint> ] unit-test
 
-[ empty-interval ] [ 1 2 [a,b] empty-interval interval+ ] unit-test
+{ empty-interval } [ 1 2 [a,b] empty-interval interval+ ] unit-test
 
-[ empty-interval ] [ empty-interval 1 2 [a,b] interval+ ] unit-test
+{ empty-interval } [ empty-interval 1 2 [a,b] interval+ ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] -3 3 [a,b] interval+ -2 5 [a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] -3 3 (a,b) interval+ -2 5 (a,b) =
 ] unit-test
 
-[ empty-interval ] [ 1 2 [a,b] empty-interval interval- ] unit-test
+{ empty-interval } [ 1 2 [a,b] empty-interval interval- ] unit-test
 
-[ empty-interval ] [ empty-interval 1 2 [a,b] interval- ] unit-test
+{ empty-interval } [ empty-interval 1 2 [a,b] interval- ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] 0 1 [a,b] interval- 0 2 [a,b] =
 ] unit-test
 
-[ empty-interval ] [ 1 2 [a,b] empty-interval interval* ] unit-test
+{ empty-interval } [ 1 2 [a,b] empty-interval interval* ] unit-test
 
-[ empty-interval ] [ empty-interval 1 2 [a,b] interval* ] unit-test
+{ empty-interval } [ empty-interval 1 2 [a,b] interval* ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] 0 4 [a,b] interval* 0 8 [a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] -4 4 [a,b] interval* -8 8 [a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] -0.5 0.5 [a,b] interval* -1.0 1.0 [a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     1 2 [a,b] -0.5 0.5 (a,b] interval* -1.0 1.0 (a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     -1 1 [a,b] -1 1 (a,b] interval* -1 1 [a,b] =
 ] unit-test
 
-[ t ] [ 1 2 [a,b] dup empty-interval interval-union = ] unit-test
+{ t } [ 1 2 [a,b] dup empty-interval interval-union = ] unit-test
 
-[ t ] [ 1 2 [a,b] empty-interval over interval-union = ] unit-test
+{ t } [ 1 2 [a,b] empty-interval over interval-union = ] unit-test
 
-[ t ] [
+{ t } [
     0 1 (a,b) 0 1 [a,b] interval-union 0 1 [a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     0 1 (a,b) 1 2 [a,b] interval-union 0 2 (a,b] =
 ] unit-test
 
-[ t ] [
+{ t } [
     0 1 (a,b) 0 1 [a,b] interval-intersect 0 1 (a,b) =
 ] unit-test
 
-[ empty-interval ] [ 0 5 [a,b] -1 [a,a] interval-intersect ] unit-test
+{ empty-interval } [ 0 5 [a,b] -1 [a,a] interval-intersect ] unit-test
 
-[ empty-interval ] [ 0 5 (a,b] 0 [a,a] interval-intersect ] unit-test
+{ empty-interval } [ 0 5 (a,b] 0 [a,a] interval-intersect ] unit-test
 
-[ empty-interval ] [ empty-interval -1 [a,a] interval-intersect ] unit-test
+{ empty-interval } [ empty-interval -1 [a,a] interval-intersect ] unit-test
 
-[ empty-interval ] [ 0 5 (a,b] empty-interval interval-intersect ] unit-test
+{ empty-interval } [ 0 5 (a,b] empty-interval interval-intersect ] unit-test
 
-[ t ] [
+{ t } [
     0 1 (a,b) full-interval interval-intersect 0 1 (a,b) =
 ] unit-test
 
-[ t ] [
+{ t } [
     empty-interval empty-interval interval-subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     empty-interval 0 1 [a,b] interval-subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     0 1 (a,b) 0 1 [a,b] interval-subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     full-interval -1/0. 1/0. [a,b] interval-subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     -1/0. 1/0. [a,b] full-interval interval-subset?
 ] unit-test
 
-[ f ] [
+{ f } [
     full-interval 0 1/0. [a,b] interval-subset?
 ] unit-test
 
-[ t ] [
+{ t } [
     0 1/0. [a,b] full-interval interval-subset?
 ] unit-test
 
-[ f ] [
+{ f } [
     0 0 1 (a,b) interval-contains?
 ] unit-test
 
-[ t ] [
+{ t } [
     0.5 0 1 (a,b) interval-contains?
 ] unit-test
 
-[ f ] [
+{ f } [
     1 0 1 (a,b) interval-contains?
 ] unit-test
 
-[ empty-interval ] [ -1 1 (a,b) empty-interval interval/ ] unit-test
+{ empty-interval } [ -1 1 (a,b) empty-interval interval/ ] unit-test
 
-[ t ] [ 0 0 331 [a,b) -1775 -953 (a,b) interval/ interval-contains? ] unit-test
+{ t } [ 0 0 331 [a,b) -1775 -953 (a,b) interval/ interval-contains? ] unit-test
 
-[ t ] [ -1 1 (a,b) -1 1 (a,b) interval/ [-inf,inf] = ] unit-test
+{ t } [ -1 1 (a,b) -1 1 (a,b) interval/ [-inf,inf] = ] unit-test
 
-[ t ] [ -1 1 (a,b) 0 1 (a,b) interval/ [-inf,inf] = ] unit-test
+{ t } [ -1 1 (a,b) 0 1 (a,b) interval/ [-inf,inf] = ] unit-test
 
 "math.ratios.private" lookup-vocab [
     [ t ] [
@@ -159,75 +159,75 @@ IN: math.intervals.tests
     ] unit-test
 ] when
 
-[ f ] [ empty-interval interval-singleton? ] unit-test
+{ f } [ empty-interval interval-singleton? ] unit-test
 
-[ t ] [ 1 [a,a] interval-singleton? ] unit-test
+{ t } [ 1 [a,a] interval-singleton? ] unit-test
 
-[ f ] [ 1 1 [a,b) interval-singleton? ] unit-test
+{ f } [ 1 1 [a,b) interval-singleton? ] unit-test
 
-[ f ] [ 1 3 [a,b) interval-singleton? ] unit-test
+{ f } [ 1 3 [a,b) interval-singleton? ] unit-test
 
-[ f ] [ 1 1 (a,b) interval-singleton? ] unit-test
+{ f } [ 1 1 (a,b) interval-singleton? ] unit-test
 
-[ 2 ] [ 1 3 [a,b) interval-length ] unit-test
+{ 2 } [ 1 3 [a,b) interval-length ] unit-test
 
-[ 0 ] [ empty-interval interval-length ] unit-test
+{ 0 } [ empty-interval interval-length ] unit-test
 
-[ t ] [ 0 5 [a,b] 5 [a,a] interval<= ] unit-test
+{ t } [ 0 5 [a,b] 5 [a,a] interval<= ] unit-test
 
-[ incomparable ] [ empty-interval 5 [a,a] interval< ] unit-test
+{ incomparable } [ empty-interval 5 [a,a] interval< ] unit-test
 
-[ incomparable ] [ 5 [a,a] empty-interval interval< ] unit-test
+{ incomparable } [ 5 [a,a] empty-interval interval< ] unit-test
 
-[ incomparable ] [ 0 5 [a,b] 5 [a,a] interval< ] unit-test
+{ incomparable } [ 0 5 [a,b] 5 [a,a] interval< ] unit-test
 
-[ t ] [ 0 5 [a,b) 5 [a,a] interval< ] unit-test
+{ t } [ 0 5 [a,b) 5 [a,a] interval< ] unit-test
 
-[ f ] [ 0 5 [a,b] -1 [a,a] interval< ] unit-test
+{ f } [ 0 5 [a,b] -1 [a,a] interval< ] unit-test
 
-[ incomparable ] [ 0 5 [a,b] 1 [a,a] interval< ] unit-test
+{ incomparable } [ 0 5 [a,b] 1 [a,a] interval< ] unit-test
 
-[ t ] [ -1 1 (a,b) -1 [a,a] interval> ] unit-test
+{ t } [ -1 1 (a,b) -1 [a,a] interval> ] unit-test
 
-[ t ] [ -1 1 (a,b) -1 [a,a] interval>= ] unit-test
+{ t } [ -1 1 (a,b) -1 [a,a] interval>= ] unit-test
 
-[ f ] [ -1 1 (a,b) -1 [a,a] interval< ] unit-test
+{ f } [ -1 1 (a,b) -1 [a,a] interval< ] unit-test
 
-[ f ] [ -1 1 (a,b) -1 [a,a] interval<= ] unit-test
+{ f } [ -1 1 (a,b) -1 [a,a] interval<= ] unit-test
 
-[ t ] [ -1 1 (a,b] 1 [a,a] interval<= ] unit-test
+{ t } [ -1 1 (a,b] 1 [a,a] interval<= ] unit-test
 
-[ t ] [ -1 1 (a,b] 1 2 [a,b] interval<= ] unit-test
+{ t } [ -1 1 (a,b] 1 2 [a,b] interval<= ] unit-test
 
-[ incomparable ] [ -1 1 (a,b] empty-interval interval>= ] unit-test
+{ incomparable } [ -1 1 (a,b] empty-interval interval>= ] unit-test
 
-[ incomparable ] [ empty-interval -1 1 (a,b] interval>= ] unit-test
+{ incomparable } [ empty-interval -1 1 (a,b] interval>= ] unit-test
 
-[ incomparable ] [ -1 1 (a,b] 1 2 [a,b] interval>= ] unit-test
+{ incomparable } [ -1 1 (a,b] 1 2 [a,b] interval>= ] unit-test
 
-[ incomparable ] [ -1 1 (a,b] 1 2 [a,b] interval> ] unit-test
+{ incomparable } [ -1 1 (a,b] 1 2 [a,b] interval> ] unit-test
 
-[ t ] [ -1 1 (a,b] 1 2 (a,b] interval<= ] unit-test
+{ t } [ -1 1 (a,b] 1 2 (a,b] interval<= ] unit-test
 
-[ f ] [ 0 10 [a,b] 0 [a,a] interval< ] unit-test
+{ f } [ 0 10 [a,b] 0 [a,a] interval< ] unit-test
 
-[ f ] [ 0 10 [a,b] 0.0 [a,a] interval< ] unit-test
+{ f } [ 0 10 [a,b] 0.0 [a,a] interval< ] unit-test
 
-[ f ] [ 0.0 10 [a,b] 0 [a,a] interval< ] unit-test
+{ f } [ 0.0 10 [a,b] 0 [a,a] interval< ] unit-test
 
-[ f ] [ 0 10 [a,b] 10 [a,a] interval> ] unit-test
+{ f } [ 0 10 [a,b] 10 [a,a] interval> ] unit-test
 
-[ incomparable ] [ 0 [a,a] 0 10 [a,b] interval< ] unit-test
+{ incomparable } [ 0 [a,a] 0 10 [a,b] interval< ] unit-test
 
-[ incomparable ] [ 10 [a,a] 0 10 [a,b] interval> ] unit-test
+{ incomparable } [ 10 [a,a] 0 10 [a,b] interval> ] unit-test
 
-[ t ] [ 0 [a,a] 0 10 [a,b] interval<= ] unit-test
+{ t } [ 0 [a,a] 0 10 [a,b] interval<= ] unit-test
 
-[ incomparable ] [ 0 [a,a] 0 10 [a,b] interval>= ] unit-test
+{ incomparable } [ 0 [a,a] 0 10 [a,b] interval>= ] unit-test
 
-[ t ] [ 0 10 [a,b] 0 [a,a] interval>= ] unit-test
+{ t } [ 0 10 [a,b] 0 [a,a] interval>= ] unit-test
 
-[ t ] [
+{ t } [
     418
     418 423 [a,b)
     79 893 (a,b]
@@ -235,14 +235,14 @@ IN: math.intervals.tests
     interval-contains?
 ] unit-test
 
-[ t ] [ full-interval 10 10 [a,b] interval-max 10 1/0. [a,b] = ] unit-test
+{ t } [ full-interval 10 10 [a,b] interval-max 10 1/0. [a,b] = ] unit-test
 
-[ t ] [ full-interval 10 10 [a,b] interval-min -1/0. 10 [a,b] = ] unit-test
+{ t } [ full-interval 10 10 [a,b] interval-min -1/0. 10 [a,b] = ] unit-test
 
-[ t ] [ 1 100 [a,b] -1 1 [a,b] interval/i [-inf,inf] = ] unit-test
+{ t } [ 1 100 [a,b] -1 1 [a,b] interval/i [-inf,inf] = ] unit-test
 
 ! Accuracy of interval-mod
-[ t ] [ full-interval 40 40 [a,b] interval-mod -40 40 (a,b) interval-subset?
+{ t } [ full-interval 40 40 [a,b] interval-mod -40 40 (a,b) interval-subset?
 ] unit-test
 
 ! Interval random tester
@@ -342,27 +342,27 @@ comparison-ops [
     [ [ t ] ] dip '[ 8000 iota [ drop _ comparison-test ] all? ] unit-test
 ] each
 
-[ t ] [ -10 10 [a,b] 0 100 [a,b] assume> 0 10 (a,b] = ] unit-test
+{ t } [ -10 10 [a,b] 0 100 [a,b] assume> 0 10 (a,b] = ] unit-test
 
-[ t ] [ -10 10 [a,b] 0 100 [a,b] assume>= 0 10 [a,b] = ] unit-test
+{ t } [ -10 10 [a,b] 0 100 [a,b] assume>= 0 10 [a,b] = ] unit-test
 
-[ t ] [ -10 10 [a,b] 0 100 [a,b] assume< -10 10 [a,b] = ] unit-test
+{ t } [ -10 10 [a,b] 0 100 [a,b] assume< -10 10 [a,b] = ] unit-test
 
-[ t ] [ -10 10 [a,b] -100 0 [a,b] assume< -10 0 [a,b) = ] unit-test
+{ t } [ -10 10 [a,b] -100 0 [a,b] assume< -10 0 [a,b) = ] unit-test
 
-[ t ] [ -10 10 [a,b] -100 0 [a,b] assume<= -10 0 [a,b] = ] unit-test
+{ t } [ -10 10 [a,b] -100 0 [a,b] assume<= -10 0 [a,b] = ] unit-test
 
-[ t ] [ -10 10 [a,b] 0 100 [a,b] assume<= -10 10 [a,b] = ] unit-test
+{ t } [ -10 10 [a,b] 0 100 [a,b] assume<= -10 10 [a,b] = ] unit-test
 
-[ t ] [ -10 10 [a,b] interval-abs 0 10 [a,b] = ] unit-test
+{ t } [ -10 10 [a,b] interval-abs 0 10 [a,b] = ] unit-test
 
-[ t ] [ full-interval interval-abs [0,inf] = ] unit-test
+{ t } [ full-interval interval-abs [0,inf] = ] unit-test
 
-[ t ] [ [0,inf] interval-abs [0,inf] = ] unit-test
+{ t } [ [0,inf] interval-abs [0,inf] = ] unit-test
 
-[ t ] [ empty-interval interval-abs empty-interval = ] unit-test
+{ t } [ empty-interval interval-abs empty-interval = ] unit-test
 
-[ t ] [ [0,inf] interval-sq [0,inf] = ] unit-test
+{ t } [ [0,inf] interval-sq [0,inf] = ] unit-test
 
 ! Test that commutative interval ops really are
 : random-interval-or-empty ( -- obj )
index 7c833391d8965f8009eeead995fa2c6d54c88df0..cd2ed06015ceb56fd6645a3439ea8d07ae0c7183 100644 (file)
@@ -2,14 +2,14 @@ IN: math.matrices.elimination.tests
 USING: kernel math.matrices math.matrices.elimination
 tools.test sequences ;
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 1 0 }
         { 0 0 0 1 }
     }
-] [
+} [
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
@@ -18,14 +18,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 1 0 }
         { 0 0 0 1 }
     }
-] [
+} [
     {
         { 1 0 0 0 }
         { 1 1 0 0 }
@@ -34,14 +34,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 1 0 }
         { 0 0 0 1 }
     }
-] [
+} [
     {
         { 1 0 0 0 }
         { 1 1 0 0 }
@@ -50,14 +50,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 1 0 }
         { 0 0 0 1 }
     }
-] [
+} [
     {
         { 1 0 0 0 }
         { 1 1 0 0 }
@@ -66,14 +66,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 0 0 }
         { 0 0 0 0 }
     }
-] [
+} [
     {
         { 0 1 0 0 }
         { 1 0 0 0 }
@@ -85,14 +85,14 @@ tools.test sequences ;
     ] with-matrix
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 0 0 }
         { 0 0 0 0 }
     }
-] [
+} [
     {
         { 0 1 0 0 }
         { 1 0 0 0 }
@@ -101,14 +101,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
         { 0 0 0 1 }
         { 0 0 0 0 }
     }
-] [
+} [
     {
         { 1 0 0 0 }
         { 0 1 0 0 }
@@ -117,14 +117,14 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     {
         { 1 0 0 1 }
         { 0 1 0 1 }
         { 0 0 0 -1 }
         { 0 0 0 0 }
     }
-] [
+} [
     {
         { 0 1 0 1 }
         { 1 0 0 1 }
@@ -133,18 +133,18 @@ tools.test sequences ;
     } echelon
 ] unit-test
 
-[
+{
     2
-] [
+} [
     {
         { 0 0 }
         { 0 0 }
     } nullspace length
 ] unit-test
 
-[
+{
     1 3
-] [
+} [
     {
         { 0 1 0 1 }
         { 1 0 0 1 }
@@ -153,9 +153,9 @@ tools.test sequences ;
     } null/rank
 ] unit-test
 
-[
+{
     1 3
-] [
+} [
     {
         { 0 0 0 0 0 1 0 1 }
         { 0 0 0 0 1 0 0 1 }
@@ -164,5 +164,5 @@ tools.test sequences ;
     } null/rank
 ] unit-test
 
-[ { { 1 0 -1 } { 0 1 2 } } ]
+{ { { 1 0 -1 } { 0 1 2 } } }
 [ { { 1 2 3 } { 4 5 6 } } solution ] unit-test
index 6346253158b0922a0c3ad881a8f91d3bc2994685..e7627cfa09fb0dd62f2cf564ccd4b817f38db1af 100644 (file)
@@ -1,9 +1,9 @@
 USING: math.matrices math.vectors tools.test math kernel ;
 IN: math.matrices.tests
 
-[
+{
     { { 0 } { 0 } { 0 } }
-] [
+} [
     3 1 zero-matrix
 ] unit-test
 
@@ -94,32 +94,32 @@ IN: math.matrices.tests
     4 3 -1 eye
 ] unit-test
 
-[
+{
     { { 1   1/2 1/3 1/4 }
       { 1/2 1/3 1/4 1/5 }
       { 1/3 1/4 1/5 1/6 }
     }
-] [ 3 4 hilbert-matrix ] unit-test
+} [ 3 4 hilbert-matrix ] unit-test
 
-[
+{
     { { 1 2 3 4 }
       { 2 1 2 3 }
       { 3 2 1 2 }
       { 4 3 2 1 } }
-] [ 4 toeplitz-matrix ] unit-test
+} [ 4 toeplitz-matrix ] unit-test
 
-[
+{
     { { 1 2 3 4 }
       { 2 3 4 0 }
       { 3 4 0 0 }
       { 4 0 0 0 } }
-] [ 4 hankel-matrix ] unit-test
+} [ 4 hankel-matrix ] unit-test
 
-[
+{
     { { 1 0 4 }
       { 0 7 0 }
       { 6 0 3 } }
-] [
+} [
     { { 1 0 0 }
       { 0 2 0 }
       { 0 0 3 } }
@@ -131,11 +131,11 @@ IN: math.matrices.tests
     m+
 ] unit-test
 
-[
+{
     { { 1 0 4 }
        { 0 7 0 }
        { 6 0 3 } }
-] [
+} [
     { { 1 0 0 }
        { 0 2 0 }
        { 0 0 3 } }
@@ -147,15 +147,15 @@ IN: math.matrices.tests
     m-
 ] unit-test
 
-[
+{
     { 10 20 30 }
-] [
+} [
     10 { 1 2 3 } n*v
 ] unit-test
 
-[
+{
     { 3 4 }
-] [
+} [
     { { 1 0 }
        { 0 1 } }
 
@@ -164,9 +164,9 @@ IN: math.matrices.tests
     m.v
 ] unit-test
 
-[
+{
     { 4 3 }
-] [
+} [
     { { 0 1 }
        { 1 0 } }
 
@@ -175,21 +175,21 @@ IN: math.matrices.tests
     m.v
 ] unit-test
 
-[
+{
     { { 6 } }
-] [
+} [
     { { 3 } } { { 2 } } m.
 ] unit-test
 
-[
+{
     { { 11 } }
-] [
+} [
     { { 1 3 } } { { 5 } { 2 } } m.
 ] unit-test
 
-[
+{
     { { 28 } }
-] [
+} [
     { { 2 4 6 } }
 
     { { 1 }
@@ -199,14 +199,14 @@ IN: math.matrices.tests
     m.
 ] unit-test
 
-[ { 0 0 1 } ] [ { 1 0 0 } { 0 1 0 } cross ] unit-test
-[ { 1 0 0 } ] [ { 0 1 0 } { 0 0 1 } cross ] unit-test
-[ { 0 1 0 } ] [ { 0 0 1 } { 1 0 0 } cross ] unit-test
-[ { 0.0 -0.707 0.707 } ] [ { 1.0 0.0 0.0 } { 0.0 0.707 0.707 } cross ] unit-test
-[ { 0 -2 2 } ] [ { -1 -1 -1 } { 1 -1 -1 } cross ] unit-test
-[ { 1 0 0 } ] [ { 1 1 0 } { 1 0 0 } proj ] unit-test
+{ { 0 0 1 } } [ { 1 0 0 } { 0 1 0 } cross ] unit-test
+{ { 1 0 0 } } [ { 0 1 0 } { 0 0 1 } cross ] unit-test
+{ { 0 1 0 } } [ { 0 0 1 } { 1 0 0 } cross ] unit-test
+{ { 0.0 -0.707 0.707 } } [ { 1.0 0.0 0.0 } { 0.0 0.707 0.707 } cross ] unit-test
+{ { 0 -2 2 } } [ { -1 -1 -1 } { 1 -1 -1 } cross ] unit-test
+{ { 1 0 0 } } [ { 1 1 0 } { 1 0 0 } proj ] unit-test
 
-[ { { 4181 6765 } { 6765 10946 } } ]
+{ { { 4181 6765 } { 6765 10946 } } }
 [ { { 0 1 } { 1 1 } } 20 m^n ] unit-test
 [ { { 0 1 } { 1 1 } } -20 m^n ] [ negative-power-matrix? ] must-fail-with
 
index 8bca1459c053556f5fcb9474fb1918ad9f21ec64..b66135cbc6651bb375572abb703e8d1cc6938996 100644 (file)
@@ -2,32 +2,32 @@ IN: math.partial-dispatch.tests
 USING: math.partial-dispatch math.private
 tools.test math kernel sequences ;
 
-[ t ] [ \ + integer fixnum math-both-known? ] unit-test
-[ t ] [ \ + bignum fixnum math-both-known? ] unit-test
-[ t ] [ \ + integer bignum math-both-known? ] unit-test
-[ t ] [ \ + float fixnum math-both-known? ] unit-test
-[ f ] [ \ + real fixnum math-both-known? ] unit-test
-[ f ] [ \ + object number math-both-known? ] unit-test
-[ f ] [ \ number= fixnum object math-both-known? ] unit-test
-[ t ] [ \ number= integer fixnum math-both-known? ] unit-test
-[ f ] [ \ >fixnum \ shift derived-ops member-eq? ] unit-test
-[ f ] [ \ >integer \ /i derived-ops member-eq? ] unit-test
-[ t ] [ \ fixnum-shift \ shift derived-ops member-eq? ] unit-test
+{ t } [ \ + integer fixnum math-both-known? ] unit-test
+{ t } [ \ + bignum fixnum math-both-known? ] unit-test
+{ t } [ \ + integer bignum math-both-known? ] unit-test
+{ t } [ \ + float fixnum math-both-known? ] unit-test
+{ f } [ \ + real fixnum math-both-known? ] unit-test
+{ f } [ \ + object number math-both-known? ] unit-test
+{ f } [ \ number= fixnum object math-both-known? ] unit-test
+{ t } [ \ number= integer fixnum math-both-known? ] unit-test
+{ f } [ \ >fixnum \ shift derived-ops member-eq? ] unit-test
+{ f } [ \ >integer \ /i derived-ops member-eq? ] unit-test
+{ t } [ \ fixnum-shift \ shift derived-ops member-eq? ] unit-test
 
-[ { integer fixnum } ] [ \ +-integer-fixnum integer-op-input-classes ] unit-test
-[ { fixnum fixnum } ] [ \ fixnum+ integer-op-input-classes ] unit-test
-[ { fixnum fixnum } ] [ \ fixnum+fast integer-op-input-classes ] unit-test
-[ { integer } ] [ \ bitnot integer-op-input-classes ] unit-test
+{ { integer fixnum } } [ \ +-integer-fixnum integer-op-input-classes ] unit-test
+{ { fixnum fixnum } } [ \ fixnum+ integer-op-input-classes ] unit-test
+{ { fixnum fixnum } } [ \ fixnum+fast integer-op-input-classes ] unit-test
+{ { integer } } [ \ bitnot integer-op-input-classes ] unit-test
 
-[ shift ] [ \ fixnum-shift generic-variant ] unit-test
-[ fixnum-shift-fast ] [ \ fixnum-shift no-overflow-variant ] unit-test
+{ shift } [ \ fixnum-shift generic-variant ] unit-test
+{ fixnum-shift-fast } [ \ fixnum-shift no-overflow-variant ] unit-test
 
-[ fixnum-shift-fast ] [ \ shift modular-variant ] unit-test
-[ fixnum-bitnot ] [ \ bitnot modular-variant ] unit-test
-[ fixnum+fast ] [ \ fixnum+ modular-variant ] unit-test
-[ fixnum+fast ] [ \ fixnum+fast modular-variant ] unit-test
+{ fixnum-shift-fast } [ \ shift modular-variant ] unit-test
+{ fixnum-bitnot } [ \ bitnot modular-variant ] unit-test
+{ fixnum+fast } [ \ fixnum+ modular-variant ] unit-test
+{ fixnum+fast } [ \ fixnum+fast modular-variant ] unit-test
 
-[ 3 ] [ 1 2 +-integer-integer ] unit-test
-[ 3 ] [ 1 >bignum 2 +-integer-integer ] unit-test
-[ 3 ] [ 1 2 >bignum +-integer-integer ] unit-test
-[ 3 ] [ 1 >bignum 2 >bignum +-integer-integer ] unit-test
+{ 3 } [ 1 2 +-integer-integer ] unit-test
+{ 3 } [ 1 >bignum 2 +-integer-integer ] unit-test
+{ 3 } [ 1 2 >bignum +-integer-integer ] unit-test
+{ 3 } [ 1 >bignum 2 >bignum +-integer-integer ] unit-test
index 4ea6bb11e8dca4481df927451df03b06ab26b20b..e4d38248f75aae0265a32b19573d305cc4900d80 100644 (file)
@@ -1,42 +1,42 @@
 USING: kernel math math.polynomials tools.test ;
 IN: math.polynomials.tests
 
-[ { 0 1 } ] [ { 0 1 0 0 } ptrim ] unit-test
-[ { 1 } ] [ { 1 0 0 } ptrim ] unit-test
-[ { 0 } ] [ { 0 } ptrim ] unit-test
-[ { 3 10 8 } ] [ { 1 2 } { 3 4 } p* ] unit-test
-[ { 3 10 8 } ] [ { 3 4 } { 1 2 } p* ] unit-test
-[ { 0 0 0 0 0 0 0 0 0 0 } ] [ { 0 0 0 } { 0 0 0 0 0 0 0 0 } p* ] unit-test
-[ { 0 1 } ] [ { 0 1 } { 1 } p* ] unit-test
-[ { 0 } ] [ { } { } p* ] unit-test
-[ { 0 } ] [ { 0 } { } p* ] unit-test
-[ { 0 } ] [ { } { 0 } p* ] unit-test
-[ { 0 0 0 } ] [ { 0 0 0 } { 0 0 0 } p+ ] unit-test
-[ { 0 0 0 } ] [ { 0 0 0 } { 0 0 0 } p- ] unit-test
-[ { 0 0 0 } ] [ 4 { 0 0 0 } n*p ] unit-test
-[ { 4 8 0 12 } ] [ 4 { 1 2 0 3 } n*p ] unit-test
-[ { 1 4 4 0 0 } ] [ { 1 2 0 } p-sq ] unit-test
-[ { 1 6 12 8 0 0 0 } ] [ { 1 2 0 } 3 p^ ] unit-test
+{ { 0 1 } } [ { 0 1 0 0 } ptrim ] unit-test
+{ { 1 } } [ { 1 0 0 } ptrim ] unit-test
+{ { 0 } } [ { 0 } ptrim ] unit-test
+{ { 3 10 8 } } [ { 1 2 } { 3 4 } p* ] unit-test
+{ { 3 10 8 } } [ { 3 4 } { 1 2 } p* ] unit-test
+{ { 0 0 0 0 0 0 0 0 0 0 } } [ { 0 0 0 } { 0 0 0 0 0 0 0 0 } p* ] unit-test
+{ { 0 1 } } [ { 0 1 } { 1 } p* ] unit-test
+{ { 0 } } [ { } { } p* ] unit-test
+{ { 0 } } [ { 0 } { } p* ] unit-test
+{ { 0 } } [ { } { 0 } p* ] unit-test
+{ { 0 0 0 } } [ { 0 0 0 } { 0 0 0 } p+ ] unit-test
+{ { 0 0 0 } } [ { 0 0 0 } { 0 0 0 } p- ] unit-test
+{ { 0 0 0 } } [ 4 { 0 0 0 } n*p ] unit-test
+{ { 4 8 0 12 } } [ 4 { 1 2 0 3 } n*p ] unit-test
+{ { 1 4 4 0 0 } } [ { 1 2 0 } p-sq ] unit-test
+{ { 1 6 12 8 0 0 0 } } [ { 1 2 0 } 3 p^ ] unit-test
 [ { 1 2 0 } -3 p^ ] [ negative-power-polynomial? ] must-fail-with
-[ { 1 } ] [ { 1 2 0 } 0 p^ ] unit-test
-[ { 1 4 7 6 0 0 0 0 0 } ] [ { 1 2 3 0 0 0 } { 1 2 0 0 } p* ] unit-test
-[ V{ 7 -2 1 } V{ -20 0 0 } ] [ { 1 1 1 1 } { 3 1 } p/mod ] unit-test
-[ V{ 0 0 } V{ 1 1 } ] [ { 1 1 } { 1 1 1 1 } p/mod ] unit-test
-[ V{ 1 0 1 } V{ 0 0 0 } ] [ { 1 1 1 1 } { 1 1 } p/mod ] unit-test
-[ V{ 1 0 1 } V{ 0 0 0 } ] [ { 1 1 1 1 } { 1 1 0 0 0 0 0 0 } p/mod ] unit-test
-[ V{ 1 0 1 } V{ 0 0 0 } ] [ { 1 1 1 1 0 0 0 0 } { 1 1 0 0 } p/mod ] unit-test
-[ V{ 5.0 } V{ 0 } ] [ { 10.0 } { 2.0 } p/mod ] unit-test
-[ V{ 15/16 } V{ 0 } ] [ { 3/4 } { 4/5 } p/mod ] unit-test
-[ t ] [ { 0 1 } { 0 1 0 } p= ] unit-test
-[ f ] [ { 0 0 1 } { 0 1 0 } p= ] unit-test
-[ t ] [ { 1 1 1 } { 1 1 1 } p= ] unit-test
-[ { 0 0 } { 1 1 } ] [ { 1 1 1 1 } { 1 1 } pgcd ] unit-test
+{ { 1 } } [ { 1 2 0 } 0 p^ ] unit-test
+{ { 1 4 7 6 0 0 0 0 0 } } [ { 1 2 3 0 0 0 } { 1 2 0 0 } p* ] unit-test
+{ V{ 7 -2 1 } V{ -20 0 0 } } [ { 1 1 1 1 } { 3 1 } p/mod ] unit-test
+{ V{ 0 0 } V{ 1 1 } } [ { 1 1 } { 1 1 1 1 } p/mod ] unit-test
+{ V{ 1 0 1 } V{ 0 0 0 } } [ { 1 1 1 1 } { 1 1 } p/mod ] unit-test
+{ V{ 1 0 1 } V{ 0 0 0 } } [ { 1 1 1 1 } { 1 1 0 0 0 0 0 0 } p/mod ] unit-test
+{ V{ 1 0 1 } V{ 0 0 0 } } [ { 1 1 1 1 0 0 0 0 } { 1 1 0 0 } p/mod ] unit-test
+{ V{ 5.0 } V{ 0 } } [ { 10.0 } { 2.0 } p/mod ] unit-test
+{ V{ 15/16 } V{ 0 } } [ { 3/4 } { 4/5 } p/mod ] unit-test
+{ t } [ { 0 1 } { 0 1 0 } p= ] unit-test
+{ f } [ { 0 0 1 } { 0 1 0 } p= ] unit-test
+{ t } [ { 1 1 1 } { 1 1 1 } p= ] unit-test
+{ { 0 0 } { 1 1 } } [ { 1 1 1 1 } { 1 1 } pgcd ] unit-test
 
-[ { 10 200 3000 } ] [ { 1 10 100 1000 } pdiff ] unit-test
+{ { 10 200 3000 } } [ { 1 10 100 1000 } pdiff ] unit-test
 
 
-[ { -512 2304 -4608 5376 -4032 2016 -672 144 -18 1 } ]
+{ { -512 2304 -4608 5376 -4032 2016 -672 144 -18 1 } }
 [ { -2 1 } 9 p^ ] unit-test
 
-[ 0 ]
+{ 0 }
 [ 2 { -2 1 } 9 p^ polyval ] unit-test
index 1996ec2659339965d544bfcffcf1cfbf1efa61b5..96a2cfdb20da961f5132234efa13e168042cee0c 100644 (file)
@@ -1,19 +1,19 @@
 USING: fry kernel math math.bitwise math.primes.erato
 math.ranges sequences tools.test ;
 
-[ B{ 255 251 247 126 } ] [ 100 sieve ] unit-test
+{ B{ 255 251 247 126 } } [ 100 sieve ] unit-test
 [ 1 100 sieve marked-prime? ] [ bounds-error? ] must-fail-with
 [ 120 100 sieve marked-prime? ] [ bounds-error? ] must-fail-with
-[ f ] [ 119 100 sieve marked-prime? ] unit-test
-[ t ] [ 113 100 sieve marked-prime? ] unit-test
+{ f } [ 119 100 sieve marked-prime? ] unit-test
+{ t } [ 113 100 sieve marked-prime? ] unit-test
 
 ! There are 25997 primes below 300000. 1 must be removed and 3 5 7 added.
-[ 25997 ] [ 299999 sieve [ bit-count ] map-sum 2 + ] unit-test
+{ 25997 } [ 299999 sieve [ bit-count ] map-sum 2 + ] unit-test
 
 ! Check sieve array length logic by making sure we get the right
 ! end-point for numbers with all possibilities mod 30. If something
 ! were to go wrong, we'd get a bounds-error.
-[ ] [ 2 100 [a,b] [ dup sieve marked-prime? drop ] each ] unit-test
+{ } [ 2 100 [a,b] [ dup sieve marked-prime? drop ] each ] unit-test
 
 { t } [
     { 2 3 5 7 11 13 } 100 sieve '[ _ marked-prime? ] all?
index b114fa855377ec3eb0e5c4d71486ff8e544e499c..847d83323280037840954c47e1aea1be68b63be1 100644 (file)
@@ -3,11 +3,11 @@
 USING: tools.test math.primes.lucas-lehmer ;
 IN: math.primes.lucas-lehmer.tests
 
-[ t ] [ 2 lucas-lehmer ] unit-test
-[ t ] [ 3 lucas-lehmer ] unit-test
-[ f ] [ 4 lucas-lehmer ] unit-test
-[ t ] [ 5 lucas-lehmer ] unit-test
-[ f ] [ 6 lucas-lehmer ] unit-test
-[ f ] [ 11 lucas-lehmer ] unit-test
-[ t ] [ 13 lucas-lehmer ] unit-test
-[ t ] [ 61 lucas-lehmer ] unit-test
+{ t } [ 2 lucas-lehmer ] unit-test
+{ t } [ 3 lucas-lehmer ] unit-test
+{ f } [ 4 lucas-lehmer ] unit-test
+{ t } [ 5 lucas-lehmer ] unit-test
+{ f } [ 6 lucas-lehmer ] unit-test
+{ f } [ 11 lucas-lehmer ] unit-test
+{ t } [ 13 lucas-lehmer ] unit-test
+{ t } [ 61 lucas-lehmer ] unit-test
index f803b7db01aebdee0ba41f1c0edf71705a908637..7121b6707947e2dbfa6dd3deb85bc93af5fafd2d 100644 (file)
@@ -1,11 +1,11 @@
 USING: kernel math.primes.miller-rabin sequences tools.test ;
 IN: math.primes.miller-rabin.tests
 
-[ f ] [ 473155932665450549999756893736999469773678960651272093993257221235459777950185377130233556540099119926369437865330559863 miller-rabin ] unit-test
-[ t ] [ 2 miller-rabin ] unit-test
-[ t ] [ 3 miller-rabin ] unit-test
-[ f ] [ 36 miller-rabin ] unit-test
-[ t ] [ 37 miller-rabin ] unit-test
-[ t ] [ 2135623355842621559 miller-rabin ] unit-test
+{ f } [ 473155932665450549999756893736999469773678960651272093993257221235459777950185377130233556540099119926369437865330559863 miller-rabin ] unit-test
+{ t } [ 2 miller-rabin ] unit-test
+{ t } [ 3 miller-rabin ] unit-test
+{ f } [ 36 miller-rabin ] unit-test
+{ t } [ 37 miller-rabin ] unit-test
+{ t } [ 2135623355842621559 miller-rabin ] unit-test
 
-[ f ] [ 1000 iota [ drop 15 miller-rabin ] any? ] unit-test
+{ f } [ 1000 iota [ drop 15 miller-rabin ] any? ] unit-test
index d5d1cb2f328122fde58073ce8307dbe3f62cb324..42b569a990654e9ea05e442fe6dec5c9dce402a6 100644 (file)
@@ -26,18 +26,18 @@ IN: math.primes.tests
 
 { { 2 } } [ 1.5 2.5 primes-between >array ] unit-test
 
-[ 2 ] [ 1 next-prime ] unit-test
-[ 3 ] [ 2 next-prime ] unit-test
-[ 5 ] [ 3 next-prime ] unit-test
-[ 101 ] [ 100 next-prime ] unit-test
-[ t ] [ 2135623355842621559 miller-rabin ] unit-test
-[ 100000000000031 ] [ 100000000000000 next-prime ] unit-test
+{ 2 } [ 1 next-prime ] unit-test
+{ 3 } [ 2 next-prime ] unit-test
+{ 5 } [ 3 next-prime ] unit-test
+{ 101 } [ 100 next-prime ] unit-test
+{ t } [ 2135623355842621559 miller-rabin ] unit-test
+{ 100000000000031 } [ 100000000000000 next-prime ] unit-test
 
-[ 49 ] [ 50 random-prime log2 ] unit-test
+{ 49 } [ 50 random-prime log2 ] unit-test
 
-[ t ] [ 5000077 dup find-relative-prime coprime? ] unit-test
+{ t } [ 5000077 dup find-relative-prime coprime? ] unit-test
 
-[ 5 t { 14 14 14 14 14 } ]
+{ 5 t { 14 14 14 14 14 } }
 [ 5 15 unique-primes [ length ] [ [ prime? ] all? ] [ [ log2 ] map ] tri ] unit-test
 
 { t t } [ 11 dup >bignum [ prime? ] bi@ ] unit-test
index ef9aa9246fbd7e7f0f8ee5c645168f64e8c89b2e..f07f7322915068b14011c253f98983d04fefbacf 100644 (file)
@@ -3,12 +3,12 @@
 USING: math.primes.safe math.primes.safe.private tools.test ;
 IN: math.primes.safe.tests
 
-[ 863 ] [ 862 next-safe-prime ] unit-test
-[ f ] [ 862 safe-prime? ] unit-test
-[ t ] [ 7 safe-prime? ] unit-test
-[ f ] [ 31 safe-prime? ] unit-test
-[ t ] [ 47 safe-prime-candidate? ] unit-test
-[ t ] [ 47 safe-prime? ] unit-test
-[ t ] [ 863 safe-prime? ] unit-test
+{ 863 } [ 862 next-safe-prime ] unit-test
+{ f } [ 862 safe-prime? ] unit-test
+{ t } [ 7 safe-prime? ] unit-test
+{ f } [ 31 safe-prime? ] unit-test
+{ t } [ 47 safe-prime-candidate? ] unit-test
+{ t } [ 47 safe-prime? ] unit-test
+{ t } [ 863 safe-prime? ] unit-test
 
-[ 47 ] [ 31 next-safe-prime ] unit-test
+{ 47 } [ 31 next-safe-prime ] unit-test
index cf5c421f16ec7780db0de8f8da80da9eed6e81d4..cb082aecac083076221bbb8d51b5ddaa5c578ab4 100644 (file)
@@ -8,27 +8,27 @@ CONSTANT: qi { 0 1 0 0 }
 CONSTANT: qj { 0 0 1 0 }
 CONSTANT: qk { 0 0 0 1 }
 
-[ 1.0 ] [ qi norm ] unit-test
-[ 1.0 ] [ qj norm ] unit-test
-[ 1.0 ] [ qk norm ] unit-test
-[ 1.0 ] [ q1 norm ] unit-test
-[ 0.0 ] [ q0 norm ] unit-test
-[ t ] [ qi qj q* qk = ] unit-test
-[ t ] [ qj qk q* qi = ] unit-test
-[ t ] [ qk qi q* qj = ] unit-test
-[ t ] [ qi qi q* q1 q+ q0 = ] unit-test
-[ t ] [ qj qj q* q1 q+ q0 = ] unit-test
-[ t ] [ qk qk q* q1 q+ q0 = ] unit-test
-[ t ] [ qi qj qk q* q* q1 q+ q0 = ] unit-test
-[ t ] [ qk qj q/ qi = ] unit-test
-[ t ] [ qi qk q/ qj = ] unit-test
-[ t ] [ qj qi q/ qk = ] unit-test
-[ t ] [ 1 c>q q1 = ] unit-test
-[ t ] [ C{ 0 1 } c>q qi = ] unit-test
-[ t ] [ qi qi q+ qi 2 q*n = ] unit-test
-[ t ] [ qi qi q- q0 = ] unit-test
-[ t ] [ qi qj q+ qj qi q+ = ] unit-test
-[ t ] [ qi qj q- qj qi q- -1 q*n = ] unit-test
+{ 1.0 } [ qi norm ] unit-test
+{ 1.0 } [ qj norm ] unit-test
+{ 1.0 } [ qk norm ] unit-test
+{ 1.0 } [ q1 norm ] unit-test
+{ 0.0 } [ q0 norm ] unit-test
+{ t } [ qi qj q* qk = ] unit-test
+{ t } [ qj qk q* qi = ] unit-test
+{ t } [ qk qi q* qj = ] unit-test
+{ t } [ qi qi q* q1 q+ q0 = ] unit-test
+{ t } [ qj qj q* q1 q+ q0 = ] unit-test
+{ t } [ qk qk q* q1 q+ q0 = ] unit-test
+{ t } [ qi qj qk q* q* q1 q+ q0 = ] unit-test
+{ t } [ qk qj q/ qi = ] unit-test
+{ t } [ qi qk q/ qj = ] unit-test
+{ t } [ qj qi q/ qk = ] unit-test
+{ t } [ 1 c>q q1 = ] unit-test
+{ t } [ C{ 0 1 } c>q qi = ] unit-test
+{ t } [ qi qi q+ qi 2 q*n = ] unit-test
+{ t } [ qi qi q- q0 = ] unit-test
+{ t } [ qi qj q+ qj qi q+ = ] unit-test
+{ t } [ qi qj q- qj qi q- -1 q*n = ] unit-test
 
-[ { 2 2 2 2 } ] [ { 1 1 1 1 } 2 q*n ] unit-test
-[ { 2 2 2 2 } ] [ 2 { 1 1 1 1 } n*q ] unit-test
+{ { 2 2 2 2 } } [ { 1 1 1 1 } 2 q*n ] unit-test
+{ { 2 2 2 2 } } [ 2 { 1 1 1 1 } n*q ] unit-test
index a65ac20504d873166b03ba54b30706b706b6357f..31257eb3641b9f9c7ff3d57e1f3faeed2224c9e0 100644 (file)
@@ -1,26 +1,26 @@
 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 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
+{ { 1 } } [ 1 1 [a,b] >array ] unit-test
 
-[ { }  ] [ 1 2 (a,b) >array ] unit-test
-[ { 2 } ] [ 1 2 (a,b] >array ] unit-test
-[ { 1 } ] [ 1 2 [a,b) >array ] unit-test
-[ { 1 2 } ] [ 1 2 [a,b] >array ] unit-test
+{ { }  } [ 1 2 (a,b) >array ] unit-test
+{ { 2 } } [ 1 2 (a,b] >array ] unit-test
+{ { 1 } } [ 1 2 [a,b) >array ] unit-test
+{ { 1 2 } } [ 1 2 [a,b] >array ] unit-test
 
-[ { } ] [ 2 1 (a,b) >array ] unit-test
-[ { 1 } ] [ 2 1 (a,b] >array ] unit-test
-[ { 2 } ] [ 2 1 [a,b) >array ] unit-test
-[ { 2 1 } ] [ 2 1 [a,b] >array ] unit-test
+{ { } } [ 2 1 (a,b) >array ] unit-test
+{ { 1 } } [ 2 1 (a,b] >array ] unit-test
+{ { 2 } } [ 2 1 [a,b) >array ] unit-test
+{ { 2 1 } } [ 2 1 [a,b] >array ] unit-test
 
-[ { 1 2 3 4 5 } ] [ 1 5 1 <range> >array ] unit-test
-[ { 5 4 3 2 1 } ] [ 5 1 -1 <range> >array ] unit-test
+{ { 1 2 3 4 5 } } [ 1 5 1 <range> >array ] unit-test
+{ { 5 4 3 2 1 } } [ 5 1 -1 <range> >array ] unit-test
 
-[ { 0 1/3 2/3 1 } ] [ 0 1 1/3 <range> >array ] unit-test
-[ { 0 1/3 2/3 1 } ] [ 1 0 -1/3 <range> >array reverse ] unit-test
+{ { 0 1/3 2/3 1 } } [ 0 1 1/3 <range> >array ] unit-test
+{ { 0 1/3 2/3 1 } } [ 1 0 -1/3 <range> >array reverse ] unit-test
 
 { 0 } [ 0 -1 .0001 <range> length ] unit-test
 { 0 } [ 0 -1 .5 <range> length ] unit-test
@@ -48,7 +48,7 @@ IN: math.ranges.tests
 { 0 } [ -2 0 -3 <range> length ] unit-test
 { 0 } [ -2 0 -4 <range> length ] unit-test
 
-[ 100 ] [
+{ 100 } [
     1 100 [a,b] [ 2^ [1,b] ] map members length
 ] unit-test
 
index 9432bcf78b2fd0a8b00824e33f64fbe88ac8a173..0b44e95f1fd549f21a255d83f38b2aaee79813c6 100644 (file)
@@ -2,120 +2,120 @@ USING: kernel math math.order math.parser math.ratios
 math.functions tools.test ;
 IN: math.ratios.tests
 
-[ 1 2 ] [ 1/2 >fraction ] unit-test
-
-[ 1/2 ] [ 1 >bignum 2 >bignum / ] unit-test
-[ t ] [ 10 3 / ratio? ] unit-test
-[ f ] [ 10 2 / ratio? ] unit-test
-[ 10 ] [ 10 numerator ] unit-test
-[ 1 ] [ 10 denominator ] unit-test
-[ 12 ] [ -12 -13 / numerator ] unit-test
-[ 13 ] [ -12 -13 / denominator ] unit-test
-[ 1 ] [ -1 -1 / numerator ] unit-test
-[ 1 ] [ -1 -1 / denominator ] unit-test
-
-[ -1 ] [ 2 -2 / ] unit-test
-[ -1 ] [ -2 2 / ] unit-test
-
-[ t ] [ 1 3 / 1 3 / = ] unit-test
-
-[ -10 ] [ -100 10 /i ] unit-test
-[ 10 ] [ -100 -10 /i ] unit-test
-[ -10 ] [ 100 -10 /i ] unit-test
-[ -10 ] [ -100 >bignum 10 >bignum /i ] unit-test
-[ 10  ] [ -100 >bignum -10 >bignum /i ] unit-test
-[ -10 ] [ 100 >bignum -10 >bignum /i ] unit-test
-
-[ 3/2 ] [ 1 1/2 + ] unit-test
-[ 3/2 ] [ 1 >bignum 1/2 + ] unit-test
-[ -1/2 ] [ 1/2 1 - ] unit-test
-[ -1/2 ] [ 1/2 1 >bignum - ] unit-test
-[ 41/20 ] [ 5/4 4/5 + ] unit-test
-
-[ 1 ] [ 1/2 2 * ] unit-test
-[ 1/3 ] [ 1/2 2/3 * ] unit-test
-
-[ 1 ] [ 1/2 1/2 / ] unit-test
-[ 27/4 ] [ 3/2 2/9 / ] unit-test
-
-[ t ] [ 5768 476343 < ] unit-test
-[ t ] [ 5768 476343 <= ] unit-test
-[ f ] [ 5768 476343 > ] unit-test
-[ f ] [ 5768 476343 >= ] unit-test
-[ t ] [ 3434 >bignum 3434 >= ] unit-test
-[ t ] [ 3434 3434 >bignum <= ] unit-test
-
-[ t ] [ 1 1/3 > ] unit-test
-[ t ] [ 2/3 3/4 <= ] unit-test
-[ f ] [ -2/3 1/3 > ] unit-test
-
-[ t ] [ 1000000000/999999 1000 > ] unit-test
-[ f ] [ 100000 100000000000/999999 > ] unit-test
-[ t ]
+{ 1 2 } [ 1/2 >fraction ] unit-test
+
+{ 1/2 } [ 1 >bignum 2 >bignum / ] unit-test
+{ t } [ 10 3 / ratio? ] unit-test
+{ f } [ 10 2 / ratio? ] unit-test
+{ 10 } [ 10 numerator ] unit-test
+{ 1 } [ 10 denominator ] unit-test
+{ 12 } [ -12 -13 / numerator ] unit-test
+{ 13 } [ -12 -13 / denominator ] unit-test
+{ 1 } [ -1 -1 / numerator ] unit-test
+{ 1 } [ -1 -1 / denominator ] unit-test
+
+{ -1 } [ 2 -2 / ] unit-test
+{ -1 } [ -2 2 / ] unit-test
+
+{ t } [ 1 3 / 1 3 / = ] unit-test
+
+{ -10 } [ -100 10 /i ] unit-test
+{ 10 } [ -100 -10 /i ] unit-test
+{ -10 } [ 100 -10 /i ] unit-test
+{ -10 } [ -100 >bignum 10 >bignum /i ] unit-test
+{ 10  } [ -100 >bignum -10 >bignum /i ] unit-test
+{ -10 } [ 100 >bignum -10 >bignum /i ] unit-test
+
+{ 3/2 } [ 1 1/2 + ] unit-test
+{ 3/2 } [ 1 >bignum 1/2 + ] unit-test
+{ -1/2 } [ 1/2 1 - ] unit-test
+{ -1/2 } [ 1/2 1 >bignum - ] unit-test
+{ 41/20 } [ 5/4 4/5 + ] unit-test
+
+{ 1 } [ 1/2 2 * ] unit-test
+{ 1/3 } [ 1/2 2/3 * ] unit-test
+
+{ 1 } [ 1/2 1/2 / ] unit-test
+{ 27/4 } [ 3/2 2/9 / ] unit-test
+
+{ t } [ 5768 476343 < ] unit-test
+{ t } [ 5768 476343 <= ] unit-test
+{ f } [ 5768 476343 > ] unit-test
+{ f } [ 5768 476343 >= ] unit-test
+{ t } [ 3434 >bignum 3434 >= ] unit-test
+{ t } [ 3434 3434 >bignum <= ] unit-test
+
+{ t } [ 1 1/3 > ] unit-test
+{ t } [ 2/3 3/4 <= ] unit-test
+{ f } [ -2/3 1/3 > ] unit-test
+
+{ t } [ 1000000000/999999 1000 > ] unit-test
+{ f } [ 100000 100000000000/999999 > ] unit-test
+{ t }
 [ 1000000000000/999999999999 1000000000001/999999999998 < ]
 unit-test
 
-[ -3 ] [ -3 10 mod ] unit-test
-[ 7 ] [ -3 10 rem ] unit-test
-[ 7 ] [ -13 10 rem ] unit-test
-[ 0 ] [ 37 37 rem ] unit-test
+{ -3 } [ -3 10 mod ] unit-test
+{ 7 } [ -3 10 rem ] unit-test
+{ 7 } [ -13 10 rem ] unit-test
+{ 0 } [ 37 37 rem ] unit-test
 
-[ -1 ] [ -12.55 sgn ] unit-test
-[ 1 ] [ 100000000000000000000000000000000 sgn ] unit-test
-[ 0 ] [ 0.0 sgn ] unit-test
+{ -1 } [ -12.55 sgn ] unit-test
+{ 1 } [ 100000000000000000000000000000000 sgn ] unit-test
+{ 0 } [ 0.0 sgn ] unit-test
 
-[ 1/2 ] [ 1/2 1 mod ] unit-test
-[ 1/3 ] [ 10/3 3 mod ] unit-test
-[ -1/3 ] [ -10/3 3 mod ] unit-test
+{ 1/2 } [ 1/2 1 mod ] unit-test
+{ 1/3 } [ 10/3 3 mod ] unit-test
+{ -1/3 } [ -10/3 3 mod ] unit-test
 
 { 4 1/2 } [ 3+1/2 3/4 /mod ] unit-test
 { -4 -1/2 } [ -3-1/2 3/4 /mod ] unit-test
 { 4 -1/2 } [ -3-1/2 -3/4 /mod ] unit-test
 { -4 1/2 } [ 3+1/2 -3/4 /mod ] unit-test
 
-[ 5 ] [ 5 floor ] unit-test
-[ -5 ] [ -5 floor ] unit-test
-[ 6 ] [ 6 truncate ] unit-test
-[ 3 ] [ 10/3 floor ] unit-test
-[ -4 ] [ -10/3 floor ] unit-test
-[ 4 ] [ 10/3 ceiling ] unit-test
-[ -3 ] [ -10/3 ceiling ] unit-test
-[ 3 ] [ 10/3 truncate ] unit-test
-[ -3 ] [ -10/3 truncate ] unit-test
+{ 5 } [ 5 floor ] unit-test
+{ -5 } [ -5 floor ] unit-test
+{ 6 } [ 6 truncate ] unit-test
+{ 3 } [ 10/3 floor ] unit-test
+{ -4 } [ -10/3 floor ] unit-test
+{ 4 } [ 10/3 ceiling ] unit-test
+{ -3 } [ -10/3 ceiling ] unit-test
+{ 3 } [ 10/3 truncate ] unit-test
+{ -3 } [ -10/3 truncate ] unit-test
 
-[ -1/2 ] [ 1/2 1 - ] unit-test
-[ 3/2 ] [ 1/2 1 + ] unit-test
+{ -1/2 } [ 1/2 1 - ] unit-test
+{ 3/2 } [ 1/2 1 + ] unit-test
 
-[ 1.0 ] [ 0.5 1/2 + ] unit-test
-[ 1.0 ] [ 1/2 0.5 + ] unit-test
+{ 1.0 } [ 0.5 1/2 + ] unit-test
+{ 1.0 } [ 1/2 0.5 + ] unit-test
 
-[ 1/134217728 ] [ -1 -134217728 >fixnum / ] unit-test
-[ 134217728 ] [ -134217728 >fixnum -1 / ] unit-test
+{ 1/134217728 } [ -1 -134217728 >fixnum / ] unit-test
+{ 134217728 } [ -134217728 >fixnum -1 / ] unit-test
 
-[ 5 ]
+{ 5 }
 [ "10/2" string>number ]
 unit-test
 
-[ -5 ]
+{ -5 }
 [ "-10/2" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "10/-2" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "-10/-2" string>number ]
 unit-test
 
-[ "33/100" ]
+{ "33/100" }
 [ "66/200" string>number number>string ]
 unit-test
 
-[ 3 ] [ "1+1/2" string>number 2 * ] unit-test
-[ -3 ] [ "-1-1/2" string>number 2 * ] unit-test
-[ "2+1/7" ] [ 1 7 / 2 + number>string ] unit-test
-[ "1/8" ] [ 1 8 / number>string ] unit-test
+{ 3 } [ "1+1/2" string>number 2 * ] unit-test
+{ -3 } [ "-1-1/2" string>number 2 * ] unit-test
+{ "2+1/7" } [ 1 7 / 2 + number>string ] unit-test
+{ "1/8" } [ 1 8 / number>string ] unit-test
 
 { t } [ 2/3 dup number= ] unit-test
 { t } [ 2/33333333333333333333333333333333 dup number= ] unit-test
index f48f7757ba0057122f0d60df5a2bf3ec99885740..52b8c56626c7748a8d7601825ec4987770cd52a1 100644 (file)
@@ -3,56 +3,56 @@
 USING: tools.test math.rectangles math.rectangles.positioning ;
 IN: math.rectangles.positioning.tests
 
-[ T{ rect f { 0 1 } { 30 30 } } ] [
+{ T{ rect f { 0 1 } { 30 30 } } } [
     T{ rect f { 0 0 } { 1 1 } }
     { 30 30 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 10 21 } { 30 30 } } ] [
+{ T{ rect f { 10 21 } { 30 30 } } } [
     T{ rect f { 10 20 } { 1 1 } }
     { 30 30 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 10 30 } { 30 30 } } ] [
+{ T{ rect f { 10 30 } { 30 30 } } } [
     T{ rect f { 10 20 } { 1 10 } }
     { 30 30 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 20 20 } { 80 30 } } ] [
+{ T{ rect f { 20 20 } { 80 30 } } } [
     T{ rect f { 40 10 } { 1 10 } }
     { 80 30 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 50 20 } { 50 50 } } ] [
+{ T{ rect f { 50 20 } { 50 50 } } } [
     T{ rect f { 50 70 } { 0 0 } }
     { 50 50 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 0 20 } { 50 50 } } ] [
+{ T{ rect f { 0 20 } { 50 50 } } } [
     T{ rect f { -50 70 } { 0 0 } }
     { 50 50 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 0 50 } { 50 50 } } ] [
+{ T{ rect f { 0 50 } { 50 50 } } } [
     T{ rect f { 0 50 } { 0 0 } }
     { 50 60 }
     { 100 100 }
     popup-rect
 ] unit-test
 
-[ T{ rect f { 0 90 } { 10 10 } } ] [
+{ T{ rect f { 0 90 } { 10 10 } } } [
     T{ rect f { 0 1000 } { 0 0 } }
     { 10 10 }
     { 100 100 }
index 0e1c32778b616db0f5bee4433555588c5ec25cd8..e898be44493aad7fb4d87b03228d833b757f9725 100644 (file)
@@ -2,39 +2,39 @@ USING: tools.test math.rectangles prettyprint io.streams.string
 kernel accessors ;
 IN: math.rectangles.tests
 
-[ RECT: { 10 10 } { 20 20 } ]
+{ RECT: { 10 10 } { 20 20 } }
 [
     RECT: { 10 10 } { 50 50 }
     RECT: { -10 -10 } { 40 40 }
     rect-intersect
 ] unit-test
 
-[ RECT: { 200 200 } { 0 0 } ]
+{ RECT: { 200 200 } { 0 0 } }
 [
     RECT: { 100 100 } { 50 50 }
     RECT: { 200 200 } { 40 40 }
     rect-intersect
 ] unit-test
 
-[ f ] [
+{ f } [
     RECT: { 100 100 } { 50 50 }
     RECT: { 200 200 } { 40 40 }
     contains-rect?
 ] unit-test
 
-[ t ] [
+{ t } [
     RECT: { 100 100 } { 50 50 }
     RECT: { 120 120 } { 40 40 }
     contains-rect?
 ] unit-test
 
-[ f ] [
+{ f } [
     RECT: { 1000 100 } { 50 50 }
     RECT: { 120 120 } { 40 40 }
     contains-rect?
 ] unit-test
 
-[ RECT: { 10 20 } { 20 20 } ] [
+{ RECT: { 10 20 } { 20 20 } } [
     {
         { 20 20 }
         { 10 40 }
@@ -43,4 +43,4 @@ IN: math.rectangles.tests
 ] unit-test
 
 ! Prettyprint for RECT: didn't do nesting check properly
-[ ] [ [ RECT: f f dup >>dim . ] with-string-writer drop ] unit-test
+{ } [ [ RECT: f f dup >>dim . ] with-string-writer drop ] unit-test
index f082711d2d6172292cdd2c5db693d621251b5513..516e626928fcd46e55307e4c29fd0989cb502ab7 100644 (file)
@@ -3,26 +3,26 @@ math.order tools.test math.vectors ;
 FROM: math.ranges => [a,b] ;
 IN: math.statistics.tests
 
-[ 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
-[ 1 ] [ { 1 } mean ] unit-test
-[ 0 ] [ { } mean ] unit-test
-[ 3/2 ] [ { 1 2 } mean ] unit-test
-[ 0.0 ] [ { 0 0 0 } geometric-mean ] unit-test
-[ t ] [ { 2 2 2 2 } geometric-mean 2.0 .0001 ~ ] unit-test
-[ 1.0 ] [ { 1 1 1 } geometric-mean ] unit-test
-[ t ] [ 1000 1000 <array> geometric-mean 1000 .01 ~ ] unit-test
-[ t ] [ 100000 100000 <array> geometric-mean 100000 .01 ~ ] unit-test
-[ 1/3 ] [ { 1 1 1 } harmonic-mean ] unit-test
-[ 5+1/4 ] [ { 1 3 5 7 } contraharmonic-mean ] unit-test
-[ 18 ] [ { 4 8 15 16 23 42 } 0 trimmed-mean ] unit-test
-[ 15+1/2 ] [ { 4 8 15 16 23 42 } 0.2 trimmed-mean ] unit-test
-[ 3 ] [ { 1 3 3 3 3 5 } 0.2 winsorized-mean ] unit-test
-
-[ 0 ] [ { 1 } range ] unit-test
-[ 89 ] [ { 1 2 30 90 } range ] unit-test
-[ 2 ] [ { 1 2 3 } median ] unit-test
-[ 5/2 ] [ { 1 2 3 4 } median ] 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
+{ 1 } [ { 1 } mean ] unit-test
+{ 0 } [ { } mean ] unit-test
+{ 3/2 } [ { 1 2 } mean ] unit-test
+{ 0.0 } [ { 0 0 0 } geometric-mean ] unit-test
+{ t } [ { 2 2 2 2 } geometric-mean 2.0 .0001 ~ ] unit-test
+{ 1.0 } [ { 1 1 1 } geometric-mean ] unit-test
+{ t } [ 1000 1000 <array> geometric-mean 1000 .01 ~ ] unit-test
+{ t } [ 100000 100000 <array> geometric-mean 100000 .01 ~ ] unit-test
+{ 1/3 } [ { 1 1 1 } harmonic-mean ] unit-test
+{ 5+1/4 } [ { 1 3 5 7 } contraharmonic-mean ] unit-test
+{ 18 } [ { 4 8 15 16 23 42 } 0 trimmed-mean ] unit-test
+{ 15+1/2 } [ { 4 8 15 16 23 42 } 0.2 trimmed-mean ] unit-test
+{ 3 } [ { 1 3 3 3 3 5 } 0.2 winsorized-mean ] unit-test
+
+{ 0 } [ { 1 } range ] unit-test
+{ 89 } [ { 1 2 30 90 } range ] unit-test
+{ 2 } [ { 1 2 3 } median ] unit-test
+{ 5/2 } [ { 1 2 3 4 } median ] unit-test
 
 { 1 } [ { 1 2 3 4 } 0 kth-smallest ] unit-test
 { 3 } [ { 1 2 3 4 } 2 kth-smallest ] unit-test
@@ -34,29 +34,29 @@ IN: math.statistics.tests
 [ { 1 2 3 4 } 2 [ [ ] compare ] kth-object ] [ bounds-error? ] must-fail-with
 { 3 } [ { 1 2 3 4 } 2 [ before? ] kth-object ] unit-test
 
-[ 1 ] [ { 1 } mode ] unit-test
-[ 3 ] [ { 1 2 3 3 3 4 5 6 76 7 2 21 1 3 3 3 } mode ] unit-test
+{ 1 } [ { 1 } mode ] unit-test
+{ 3 } [ { 1 2 3 3 3 4 5 6 76 7 2 21 1 3 3 3 } mode ] unit-test
 
 [ { } median ] must-fail
 [ { } upper-median ] must-fail
 [ { } lower-median ] must-fail
 
-[ 2 ] [ { 1 2 3 4 } lower-median ] unit-test
-[ 3 ] [ { 1 2 3 4 } upper-median ] unit-test
-[ 3 ] [ { 1 2 3 4 5 } lower-median ] unit-test
-[ 3 ] [ { 1 2 3 4 5 } upper-median ] unit-test
+{ 2 } [ { 1 2 3 4 } lower-median ] unit-test
+{ 3 } [ { 1 2 3 4 } upper-median ] unit-test
+{ 3 } [ { 1 2 3 4 5 } lower-median ] unit-test
+{ 3 } [ { 1 2 3 4 5 } upper-median ] unit-test
 
 
-[ 1 ] [ { 1 } lower-median ] unit-test
-[ 1 ] [ { 1 } upper-median ] unit-test
-[ 1 ] [ { 1 } median ] unit-test
+{ 1 } [ { 1 } lower-median ] unit-test
+{ 1 } [ { 1 } upper-median ] unit-test
+{ 1 } [ { 1 } median ] unit-test
 
-[ 1 ] [ { 1 2 } lower-median ] unit-test
-[ 2 ] [ { 1 2 } upper-median ] unit-test
-[ 3/2 ] [ { 1 2 } median ] unit-test
+{ 1 } [ { 1 2 } lower-median ] unit-test
+{ 2 } [ { 1 2 } upper-median ] unit-test
+{ 3/2 } [ { 1 2 } median ] unit-test
 
-[ 1 ] [ { 1 2 3 } sample-var ] unit-test
-[ 16 ] [ { 4 6 8 10 10 12 14 16 } sample-var ] unit-test
+{ 1 } [ { 1 2 3 } sample-var ] unit-test
+{ 16 } [ { 4 6 8 10 10 12 14 16 } sample-var ] unit-test
 
 { 16 } [ { 4 6 8 10 12 14 16 } population-var ] unit-test
 { 1.0 } [ { 7 8 9 } sample-std ] unit-test
@@ -75,24 +75,24 @@ IN: math.statistics.tests
 { t } [ { 7 8 9 } 2 std-ddof 1.414213562373095 .0001 ~ ] unit-test
 { 0.0 } [ { 7 8 9 } 3 std-ddof ] unit-test
 
-[ t ] [ { 1 2 3 4 } sample-ste 0.6454972243679028 - .0001 < ] unit-test
+{ t } [ { 1 2 3 4 } sample-ste 0.6454972243679028 - .0001 < ] unit-test
 
-[ t ] [ { 23.2 33.4 22.5 66.3 44.5 } sample-std 18.1906 - .0001 < ] unit-test
+{ t } [ { 23.2 33.4 22.5 66.3 44.5 } sample-std 18.1906 - .0001 < ] unit-test
 
-[ 0 ] [ { 1 } sample-var ] unit-test
-[ 0.0 ] [ { 1 } sample-std ] unit-test
-[ 0.0 ] [ { 1 } sample-ste ] unit-test
+{ 0 } [ { 1 } sample-var ] unit-test
+{ 0.0 } [ { 1 } sample-std ] unit-test
+{ 0.0 } [ { 1 } sample-ste ] unit-test
 
 { 2 } [ { 1 3 5 7 } mean-dev ] unit-test
 { 4/5 } [ { 1 3 3 3 5 } median-dev ] unit-test
 
-[
+{
     H{
         { 97 2 }
         { 98 2 }
         { 99 2 }
     }
-] [
+} [
     "aabbcc" histogram
 ] unit-test
 
@@ -108,18 +108,18 @@ IN: math.statistics.tests
     [ 0 of ] [ 1 of ] [ 2 of ] tri
 ] unit-test
 
-[ 0 ] [ { 1 } { 1 } sample-cov ] unit-test
-[ 2/3 ] [ { 1 2 3 } { 4 5 6 } population-cov ] unit-test
+{ 0 } [ { 1 } { 1 } sample-cov ] unit-test
+{ 2/3 } [ { 1 2 3 } { 4 5 6 } population-cov ] unit-test
 
-[ 0.75 ] [ { 1 2 3 4 } dup sample-corr ] unit-test
-[ 1.0 ] [ { 1 2 3 4 } dup population-corr ] unit-test
-[ -0.75 ] [ { 1 2 3 4 } { -4 -5 -6 -7 } sample-corr ] unit-test
+{ 0.75 } [ { 1 2 3 4 } dup sample-corr ] unit-test
+{ 1.0 } [ { 1 2 3 4 } dup population-corr ] unit-test
+{ -0.75 } [ { 1 2 3 4 } { -4 -5 -6 -7 } sample-corr ] unit-test
 
-[ { 1 2 4 7 } ] [ { 1 1 2 3 } cum-sum ] unit-test
-[ { 1 1 2 6 } ] [ { 1 1 2 3 } cum-product ] unit-test
-[ { 5 3 3 1 } ] [ { 5 3 4 1 } cum-min ] unit-test
-[ { 1 3 3 5 } ] [ { 1 3 1 5 } cum-max ] unit-test
-[ { 1.0 1.5 2.0 } ] [ { 1.0 2.0 3.0 } cum-mean ] unit-test
+{ { 1 2 4 7 } } [ { 1 1 2 3 } cum-sum ] unit-test
+{ { 1 1 2 6 } } [ { 1 1 2 3 } cum-product ] unit-test
+{ { 5 3 3 1 } } [ { 5 3 4 1 } cum-min ] unit-test
+{ { 1 3 3 5 } } [ { 1 3 1 5 } cum-max ] unit-test
+{ { 1.0 1.5 2.0 } } [ { 1.0 2.0 3.0 } cum-mean ] unit-test
 
 { t }
 [
index 78f71cef3ca1e5c155b8fb7d9888ce4d22f6087d..aa61f4485321e2af96a80b388f0e0c9d128d5bb9 100644 (file)
@@ -37,19 +37,19 @@ MACRO:: test-vconvert ( from-type to-type -- )
 [ uint-4{ 5 1 2 6 } int-4 longlong-2 vconvert ]
 [ bad-vconvert-input? ] must-fail-with
 
-[ float-4{ -5.0 1.0 2.0 6.0 } ]
+{ float-4{ -5.0 1.0 2.0 6.0 } }
 [ int-4{ -5 1 2 6 } int-4 float-4 test-vconvert ] unit-test
 
-[ int-4{ -5 1 2 6 } ]
+{ int-4{ -5 1 2 6 } }
 [ float-4{ -5.0 1.0 2.0 6.0 } float-4 int-4 test-vconvert ] unit-test
 
-[ int-4{ -5 1 2 6 } ]
+{ int-4{ -5 1 2 6 } }
 [ float-4{ -5.0 1.0 2.3 6.7 } float-4 int-4 test-vconvert ] unit-test
 
-[ double-2{ -5.0 1.0 } ]
+{ double-2{ -5.0 1.0 } }
 [ longlong-2{ -5 1 } longlong-2 double-2 test-vconvert ] unit-test
 
-[ longlong-2{ -5 1 } ]
+{ longlong-2{ -5 1 } }
 [ double-2{ -5.0 1.0 } double-2 longlong-2 test-vconvert ] unit-test
 
 ! TODO we should be able to do double->int pack
@@ -57,61 +57,61 @@ MACRO:: test-vconvert ( from-type to-type -- )
 [ double-2{ -5.0 1.0 } double-2{ 12.0 34.0 } double-2 int-4 test-vconvert ]
 [ error>> bad-vconvert? ] must-fail-with
 
-[ float-4{ -1.25 2.0 3.0 -4.0 } ]
+{ float-4{ -1.25 2.0 3.0 -4.0 } }
 [ double-2{ -1.25 2.0 } double-2{ 3.0 -4.0 } double-2 float-4 test-vconvert ] unit-test
 
-[ int-4{ -1 2 3 -4 } ]
+{ int-4{ -1 2 3 -4 } }
 [ longlong-2{ -1 2 } longlong-2{ 3 -4 } longlong-2 int-4 test-vconvert ] unit-test
 
-[ short-8{ -1 2 3 -32768 5 32767 -7 32767 } ]
+{ short-8{ -1 2 3 -32768 5 32767 -7 32767 } }
 [ int-4{ -1 2 3 -40000 } int-4{ 5 60000 -7 80000 } int-4 short-8 test-vconvert ] unit-test
 
-[ short-8{ -1 2 3 -32768 5 32767 -7 32767 } ]
+{ short-8{ -1 2 3 -32768 5 32767 -7 32767 } }
 [
     int-4{ -1 2 3 -40000 }
     int-4{ 5 60000 -7 80000 } int-4 short-8 test-vconvert
 ] unit-test
 
-[ ushort-8{ 0 2 3 0 5 60000 0 65535 } ]
+{ ushort-8{ 0 2 3 0 5 60000 0 65535 } }
 [ int-4{ -1 2 3 -40000 } int-4{ 5 60000 -7 80000 } int-4 ushort-8 test-vconvert ] unit-test
 
-[ ushort-8{ 65535 2 3 65535 5 60000 65535 65535 } ]
+{ ushort-8{ 65535 2 3 65535 5 60000 65535 65535 } }
 [ uint-4{ -1 2 3 -40000 } uint-4{ 5 60000 -7 80000 } uint-4 ushort-8 test-vconvert ] unit-test
 
 [ uint-4{ -1 2 3 -40000 } uint-4{ 5 60000 -7 80000 } uint-4 short-8 test-vconvert ]
 [ error>> bad-vconvert? ] must-fail-with
 
-[ ushort-8{ 0 1 2 3 128 129 130 131 } ushort-8{ 4 5 6 7 132 133 134 135 } ]
+{ ushort-8{ 0 1 2 3 128 129 130 131 } ushort-8{ 4 5 6 7 132 133 134 135 } }
 [
     uchar-16{ 0 1 2 3 128 129 130 131 4 5 6 7 132 133 134 135 }
     uchar-16 ushort-8 test-vconvert
 ] unit-test
 
-[ double-2{ -1.25 2.0 } double-2{ 3.0 -4.0 } ]
+{ double-2{ -1.25 2.0 } double-2{ 3.0 -4.0 } }
 [ float-4{ -1.25 2.0 3.0 -4.0 } float-4 double-2 test-vconvert ] unit-test
 
-[ int-4{ -1 2 3 -4 } ]
+{ int-4{ -1 2 3 -4 } }
 [ int-4{ -1 2 3 -4 } int-4 int-4 test-vconvert ] unit-test
 
-[ longlong-2{ -1 2 } longlong-2{ 3 -4 } ]
+{ longlong-2{ -1 2 } longlong-2{ 3 -4 } }
 [ int-4{ -1 2 3 -4 } int-4 longlong-2 test-vconvert ] unit-test
 
 [ int-4{ -1 2 3 -4 } int-4 ulonglong-2 test-vconvert ]
 [ error>> bad-vconvert? ] must-fail-with
 
-[ ulonglong-2{ 1 2 } ulonglong-2{ 3 4 } ]
+{ ulonglong-2{ 1 2 } ulonglong-2{ 3 4 } }
 [ uint-4{ 1 2 3 4 } uint-4 ulonglong-2 test-vconvert ] unit-test
 
-[ longlong-2{ 1 2 } longlong-2{ 3 4 } ]
+{ longlong-2{ 1 2 } longlong-2{ 3 4 } }
 [ uint-4{ 1 2 3 4 } uint-4 longlong-2 test-vconvert ] unit-test
 
-[ int-4{ 1 2 -3 -4 } int-4{ 5 -6 7 -8 } ]
+{ int-4{ 1 2 -3 -4 } int-4{ 5 -6 7 -8 } }
 [ short-8{ 1 2 -3 -4 5 -6 7 -8 } short-8 int-4 test-vconvert ] unit-test
 
-[ uint-4{ 1 2 3 4 } uint-4{ 5 6 7 8 } ]
+{ uint-4{ 1 2 3 4 } uint-4{ 5 6 7 8 } }
 [ ushort-8{ 1 2 3 4 5 6 7 8 } ushort-8 uint-4 test-vconvert ] unit-test
 
-[ longlong-2{ 1 2 } longlong-2{ 3 4 } ]
+{ longlong-2{ 1 2 } longlong-2{ 3 4 } }
 [ uint-4{ 1 2 3 4 } uint-4 longlong-2 test-vconvert ] unit-test
 
 ! TODO we should be able to do multi-tier pack/unpack
index 09725bd575a03187c2a45be21f541e7a3548ae75..066fad0fb428e7847e3a073a4bb06b1a95c0ea6d 100644 (file)
@@ -1,4 +1,4 @@
 USING: math.vectors.simd math.vectors.simd.cords tools.test ;
 IN: math.vectors.simd.cords.tests
 
-[ float-4{ 1.0 2.0 3.0 4.0 } ] [ double-4{ 1.0 2.0 3.0 4.0 } >float-4 ] unit-test
+{ float-4{ 1.0 2.0 3.0 4.0 } } [ double-4{ 1.0 2.0 3.0 4.0 } >float-4 ] unit-test
index 72797660c933428286f060a3c64ae4b6f04d66ca..fc50859c8fbc9bb5724e571e7e6e51d0733e471f 100644 (file)
@@ -13,23 +13,23 @@ SPECIALIZED-ARRAY: c:float
 IN: math.vectors.simd.tests
 
 ! Test type propagation
-[ V{ float } ] [ [ { float-4 } declare norm-sq ] final-classes ] unit-test
+{ V{ float } } [ [ { float-4 } declare norm-sq ] final-classes ] unit-test
 
-[ V{ float } ] [ [ { float-4 } declare norm ] final-classes ] unit-test
+{ V{ float } } [ [ { float-4 } declare norm ] final-classes ] unit-test
 
-[ V{ float-4 } ] [ [ { float-4 } declare normalize ] final-classes ] unit-test
+{ V{ float-4 } } [ [ { float-4 } declare normalize ] final-classes ] unit-test
 
-[ V{ float-4 } ] [ [ { float-4 float-4 } declare v+ ] final-classes ] unit-test
+{ V{ float-4 } } [ [ { float-4 float-4 } declare v+ ] final-classes ] unit-test
 
-[ V{ float } ] [ [ { float-4 } declare second ] final-classes ] unit-test
+{ V{ float } } [ [ { float-4 } declare second ] final-classes ] unit-test
 
-[ V{ int-4 } ] [ [ { int-4 int-4 } declare v+ ] final-classes ] unit-test
+{ V{ int-4 } } [ [ { int-4 int-4 } declare v+ ] final-classes ] unit-test
 
-[ t ] [ [ { int-4 } declare second ] final-classes first integer class<= ] unit-test
+{ t } [ [ { int-4 } declare second ] final-classes first integer class<= ] unit-test
 
-[ V{ longlong-2 } ] [ [ { longlong-2 longlong-2 } declare v+ ] final-classes ] unit-test
+{ V{ longlong-2 } } [ [ { longlong-2 longlong-2 } declare v+ ] final-classes ] unit-test
 
-[ V{ integer } ] [ [ { longlong-2 } declare second ] final-classes ] unit-test
+{ V{ integer } } [ [ { longlong-2 } declare second ] final-classes ] unit-test
 
 ! Test puns; only on x86
 cpu x86? [
@@ -178,38 +178,38 @@ TUPLE: simd-test-failure
 
 "== Checking -new constructors" print
 
-[ { } ] [
+{ { } } [
     simd-classes [ [ [ ] ] dip '[ _ new ] ] [ = ] check-optimizer
 ] unit-test
 
-[ { } ] [
+{ { } } [
     simd-classes [ '[ _ new ] compile-call [ zero? ] all? ] reject
 ] unit-test
 
 "== Checking -with constructors" print
 
-[ { } ] [
+{ { } } [
     with-ctors [
         [ 1000 random '[ _ ] ] dip '[ _ execute ]
     ] [ = ] check-optimizer
 ] unit-test
 
-[ 0xffffffff ] [ 0xffffffff uint-4-with first ] unit-test
+{ 0xffffffff } [ 0xffffffff uint-4-with first ] unit-test
 
-[ 0xffffffff ] [ 0xffffffff [ uint-4-with ] compile-call first ] unit-test
+{ 0xffffffff } [ 0xffffffff [ uint-4-with ] compile-call first ] unit-test
 
-[ 0xffffffff ] [ [ 0xffffffff uint-4-with ] compile-call first ] unit-test
+{ 0xffffffff } [ [ 0xffffffff uint-4-with ] compile-call first ] unit-test
 
 "== Checking -boa constructors" print
 
-[ { } ] [
+{ { } } [
     boa-ctors [
         [ stack-effect in>> length [ 1000 random ] [ ] replicate-as ] keep
         '[ _ execute ]
     ] [ = ] check-optimizer
 ] unit-test
 
-[ 0xffffffff ] [ 0xffffffff 2 3 4 [ uint-4-boa ] compile-call first ] unit-test
+{ 0xffffffff } [ 0xffffffff 2 3 4 [ uint-4-boa ] compile-call first ] unit-test
 
 "== Checking vector operations" print
 
@@ -319,14 +319,14 @@ simd-classes&reps [
 
 "== Checking vector blend" print
 
-[ char-16{ 0 1 22 33 4 5 6 77 8 99 110 121 12 143 14 15 } ]
+{ char-16{ 0 1 22 33 4 5 6 77 8 99 110 121 12 143 14 15 } }
 [
     char-16{ t  t  f  f  t  t  t  f  t  f   f   f   t   f   t   t }
     char-16{ 0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15 }
     char-16{ 0 11 22 33 44 55 66 77 88 99 110 121 132 143 154 165 } v?
 ] unit-test
 
-[ char-16{ 0 1 22 33 4 5 6 77 8 99 110 121 12 143 14 15 } ]
+{ char-16{ 0 1 22 33 4 5 6 77 8 99 110 121 12 143 14 15 } }
 [
     char-16{ t  t  f  f  t  t  t  f  t  f   f   f   t   f   t   t }
     char-16{ 0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15 }
@@ -334,19 +334,19 @@ simd-classes&reps [
     [ { char-16 char-16 char-16 } declare v? ] compile-call
 ] unit-test
 
-[ int-4{ 1 22 33 4 } ]
+{ int-4{ 1 22 33 4 } }
 [ int-4{ t f f t } int-4{ 1 2 3 4 } int-4{ 11 22 33 44 } v? ] unit-test
 
-[ int-4{ 1 22 33 4 } ]
+{ int-4{ 1 22 33 4 } }
 [
     int-4{ t f f t } int-4{ 1 2 3 4 } int-4{ 11 22 33 44 }
     [ { int-4 int-4 int-4 } declare v? ] compile-call
 ] unit-test
 
-[ float-4{ 1.0 22.0 33.0 4.0 } ]
+{ float-4{ 1.0 22.0 33.0 4.0 } }
 [ float-4{ t f f t } float-4{ 1.0 2.0 3.0 4.0 } float-4{ 11.0 22.0 33.0 44.0 } v? ] unit-test
 
-[ float-4{ 1.0 22.0 33.0 4.0 } ]
+{ float-4{ 1.0 22.0 33.0 4.0 } }
 [
     float-4{ t f f t } float-4{ 1.0 2.0 3.0 4.0 } float-4{ 11.0 22.0 33.0 44.0 }
     [ { float-4 float-4 float-4 } declare v? ] compile-call
@@ -354,45 +354,45 @@ simd-classes&reps [
 
 "== Checking shifts and permutations" print
 
-[ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } ]
+{ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } 1 hlshift ] unit-test
 
-[ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } ]
+{ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } [ { char-16 } declare 1 hlshift ] compile-call ] unit-test
 
-[ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } ]
+{ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } [ { char-16 } declare 1 >bignum hlshift ] compile-call ] unit-test
 
-[ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } ]
+{ char-16{ 0 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } 1 [ { char-16 fixnum } declare hlshift ] compile-call ] unit-test
 
-[ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } ]
+{ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } 1 hrshift ] unit-test
 
-[ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } ]
+{ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } [ { char-16 } declare 1 hrshift ] compile-call ] unit-test
 
-[ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } ]
+{ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } [ { char-16 } declare 1 >bignum hrshift ] compile-call ] unit-test
 
-[ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } ]
+{ char-16{ 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 0 } }
 [ char-16{ 1 2 4 8 1 2 4 8 1 2 4 8 1 2 4 8 } 1 [ { char-16 fixnum } declare hrshift ] compile-call ] unit-test
 
-[ int-4{ 4 8 12 16 } ]
+{ int-4{ 4 8 12 16 } }
 [ int-4{ 1 2 3 4 } 2 vlshift ] unit-test
 
-[ int-4{ 4 8 12 16 } ]
+{ int-4{ 4 8 12 16 } }
 [ int-4{ 1 2 3 4 } 2 [ { int-4 fixnum } declare vlshift ] compile-call ] unit-test
 
-[ int-4{ 4 8 12 16 } ]
+{ int-4{ 4 8 12 16 } }
 [ int-4{ 1 2 3 4 } 2 >bignum [ { int-4 bignum } declare vlshift ] compile-call ] unit-test
 
 ! Invalid inputs should not cause the compiler to throw errors
-[ ] [
+{ } [
     [ [ { int-4 } declare t hrshift ] ( a -- b ) define-temp drop ] with-compilation-unit
 ] unit-test
 
-[ ] [
+{ } [
     [ [ { int-4 } declare { 3 2 1 } vshuffle ] ( a -- b ) define-temp drop ] with-compilation-unit
 ] unit-test
 
@@ -540,25 +540,25 @@ TUPLE: inconsistent-vector-test bool branch ;
         bool-all  branch-all  ?inconsistent
     ] call( -- none? any? all? ) ;
 
-[ f t t ]
+{ f t t }
 [ float-4{ t t t t } { float-4 } test-vector-tests ] unit-test
-[ f t f ]
+{ f t f }
 [ float-4{ f t t t } { float-4 } test-vector-tests ] unit-test
-[ t f f ]
+{ t f f }
 [ float-4{ f f f f } { float-4 } test-vector-tests ] unit-test
 
-[ f t t ]
+{ f t t }
 [ double-2{ t t } { double-2 } test-vector-tests ] unit-test
-[ f t f ]
+{ f t f }
 [ double-2{ f t } { double-2 } test-vector-tests ] unit-test
-[ t f f ]
+{ t f f }
 [ double-2{ f f } { double-2 } test-vector-tests ] unit-test
 
-[ f t t ]
+{ f t t }
 [ int-4{ t t t t } { int-4 } test-vector-tests ] unit-test
-[ f t f ]
+{ f t f }
 [ int-4{ f t t t } { int-4 } test-vector-tests ] unit-test
-[ t f f ]
+{ t f f }
 [ int-4{ f f f f } { int-4 } test-vector-tests ] unit-test
 
 "== Checking element access" print
@@ -568,44 +568,44 @@ TUPLE: inconsistent-vector-test bool branch ;
     [ length iota dup [ >bignum ] map append ] keep
     '[ [ _ 1quotation ] dip '[ _ swap nth ] ] [ = ] check-optimizer ; inline
 
-[ { } ] [ float-4{ 1.0 2.0 3.0 4.0 } test-accesses ] unit-test
-[ { } ] [ int-4{ 0x7fffffff 3 4 -8 } test-accesses ] unit-test
-[ { } ] [ uint-4{ 0xffffffff 2 3 4 } test-accesses ] unit-test
+{ { } } [ float-4{ 1.0 2.0 3.0 4.0 } test-accesses ] unit-test
+{ { } } [ int-4{ 0x7fffffff 3 4 -8 } test-accesses ] unit-test
+{ { } } [ uint-4{ 0xffffffff 2 3 4 } test-accesses ] unit-test
 
-[ 0x7fffffff ] [ int-4{ 0x7fffffff 3 4 -8 } first ] unit-test
-[ -8 ] [ int-4{ 0x7fffffff 3 4 -8 } last ] unit-test
-[ 0xffffffff ] [ uint-4{ 0xffffffff 2 3 4 } first ] unit-test
+{ 0x7fffffff } [ int-4{ 0x7fffffff 3 4 -8 } first ] unit-test
+{ -8 } [ int-4{ 0x7fffffff 3 4 -8 } last ] unit-test
+{ 0xffffffff } [ uint-4{ 0xffffffff 2 3 4 } first ] unit-test
 
-[ { } ] [ double-2{ 1.0 2.0 } test-accesses ] unit-test
-[ { } ] [ longlong-2{ 1 2 } test-accesses ] unit-test
-[ { } ] [ ulonglong-2{ 1 2 } test-accesses ] unit-test
+{ { } } [ double-2{ 1.0 2.0 } test-accesses ] unit-test
+{ { } } [ longlong-2{ 1 2 } test-accesses ] unit-test
+{ { } } [ ulonglong-2{ 1 2 } test-accesses ] unit-test
 
 "== Checking broadcast" print
 : test-broadcast ( seq -- failures )
     [ length iota >array ] keep
     '[ [ _ 1quotation ] dip '[ _ vbroadcast ] ] [ = ] check-optimizer ;
 
-[ { } ] [ float-4{ 1.0 2.0 3.0 4.0 } test-broadcast ] unit-test
-[ { } ] [ int-4{ 0x7fffffff 3 4 -8 } test-broadcast ] unit-test
-[ { } ] [ uint-4{ 0xffffffff 2 3 4 } test-broadcast ] unit-test
+{ { } } [ float-4{ 1.0 2.0 3.0 4.0 } test-broadcast ] unit-test
+{ { } } [ int-4{ 0x7fffffff 3 4 -8 } test-broadcast ] unit-test
+{ { } } [ uint-4{ 0xffffffff 2 3 4 } test-broadcast ] unit-test
 
-[ { } ] [ double-2{ 1.0 2.0 } test-broadcast ] unit-test
-[ { } ] [ longlong-2{ 1 2 } test-broadcast ] unit-test
-[ { } ] [ ulonglong-2{ 1 2 } test-broadcast ] unit-test
+{ { } } [ double-2{ 1.0 2.0 } test-broadcast ] unit-test
+{ { } } [ longlong-2{ 1 2 } test-broadcast ] unit-test
+{ { } } [ ulonglong-2{ 1 2 } test-broadcast ] unit-test
 
 ! Make sure we use the fallback in the correct situations
-[ int-4{ 3 3 3 3 } ] [ int-4{ 12 34 3 17 } 2 [ { int-4 fixnum } declare vbroadcast ] compile-call ] unit-test
+{ int-4{ 3 3 3 3 } } [ int-4{ 12 34 3 17 } 2 [ { int-4 fixnum } declare vbroadcast ] compile-call ] unit-test
 
 "== Checking alien operations" print
 
-[ float-4{ 1 2 3 4 } ] [
+{ float-4{ 1 2 3 4 } } [
     [
         float-4{ 1 2 3 4 }
         underlying>> 0 float-4-rep alien-vector
     ] compile-call float-4 boa
 ] unit-test
 
-[ B{ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 } ] [
+{ B{ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 } } [
     16 [ 1 ] B{ } replicate-as 16 <byte-array>
     [
         0 [
@@ -615,7 +615,7 @@ TUPLE: inconsistent-vector-test bool branch ;
     ] keep
 ] unit-test
 
-[ float-array{ 1 2 3 4 } ] [
+{ float-array{ 1 2 3 4 } } [
     [
         float-array{ 1 2 3 4 } underlying>>
         float-array{ 4 3 2 1 } clone
@@ -629,14 +629,14 @@ STRUCT: simd-struct
 { z double-2 }
 { w int-4 } ;
 
-[ t ] [ [ simd-struct <struct> ] compile-call >c-ptr [ 0 = ] all? ] unit-test
+{ t } [ [ simd-struct <struct> ] compile-call >c-ptr [ 0 = ] all? ] unit-test
 
-[
+{
     float-4{ 1 2 3 4 }
     longlong-2{ 2 1 }
     double-2{ 4 3 }
     int-4{ 1 2 3 4 }
-] [
+} [
     simd-struct <struct>
     float-4{ 1 2 3 4 } >>x
     longlong-2{ 2 1 } >>y
@@ -645,12 +645,12 @@ STRUCT: simd-struct
     { [ x>> ] [ y>> ] [ z>> ] [ w>> ] } cleave
 ] unit-test
 
-[
+{
     float-4{ 1 2 3 4 }
     longlong-2{ 2 1 }
     double-2{ 4 3 }
     int-4{ 1 2 3 4 }
-] [
+} [
     [
         simd-struct <struct>
         float-4{ 1 2 3 4 } >>x
@@ -663,25 +663,25 @@ STRUCT: simd-struct
 
 "== Misc tests" print
 
-[ ] [ char-16 new 1array stack. ] unit-test
+{ } [ char-16 new 1array stack. ] unit-test
 
 ! Test some sequence protocol stuff
-[ t ] [ 4 double-4{ 1 2 3 4 } new-sequence double-4? ] unit-test
-[ double-4{ 2 3 4 5 } ] [ double-4{ 1 2 3 4 } [ 1 + ] map ] unit-test
+{ t } [ 4 double-4{ 1 2 3 4 } new-sequence double-4? ] unit-test
+{ double-4{ 2 3 4 5 } } [ double-4{ 1 2 3 4 } [ 1 + ] map ] unit-test
 
 ! Test cross product
-[ float-4{ 0.0 0.0 1.0 0.0 } ] [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 1.0 0.0 0.0 } cross ] unit-test
-[ float-4{ 0.0 0.0 1.0 0.0 } ] [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 1.0 0.0 0.0 } [ { float-4 float-4 } declare cross ] compile-call ] unit-test
-[ float-4{ 0.0 -1.0 0.0 0.0 } ] [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 0.0 1.0 0.0 } cross ] unit-test
-[ float-4{ 0.0 -1.0 0.0 0.0 } ] [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 0.0 1.0 0.0 } [ { float-4 float-4 } declare cross ] compile-call ] unit-test
+{ float-4{ 0.0 0.0 1.0 0.0 } } [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 1.0 0.0 0.0 } cross ] unit-test
+{ float-4{ 0.0 0.0 1.0 0.0 } } [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 1.0 0.0 0.0 } [ { float-4 float-4 } declare cross ] compile-call ] unit-test
+{ float-4{ 0.0 -1.0 0.0 0.0 } } [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 0.0 1.0 0.0 } cross ] unit-test
+{ float-4{ 0.0 -1.0 0.0 0.0 } } [ float-4{ 1.0 0.0 0.0 0.0 } float-4{ 0.0 0.0 1.0 0.0 } [ { float-4 float-4 } declare cross ] compile-call ] unit-test
 
-[ double-4{ 0.0 0.0 1.0 0.0 } ] [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 1.0 0.0 0.0 } cross ] unit-test
-[ double-4{ 0.0 0.0 1.0 0.0 } ] [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 1.0 0.0 0.0 } [ { double-4 double-4 } declare cross ] compile-call ] unit-test
-[ double-4{ 0.0 -1.0 0.0 0.0 } ] [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 0.0 1.0 0.0 } cross ] unit-test
-[ double-4{ 0.0 -1.0 0.0 0.0 } ] [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 0.0 1.0 0.0 } [ { double-4 double-4 } declare cross ] compile-call ] unit-test
+{ double-4{ 0.0 0.0 1.0 0.0 } } [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 1.0 0.0 0.0 } cross ] unit-test
+{ double-4{ 0.0 0.0 1.0 0.0 } } [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 1.0 0.0 0.0 } [ { double-4 double-4 } declare cross ] compile-call ] unit-test
+{ double-4{ 0.0 -1.0 0.0 0.0 } } [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 0.0 1.0 0.0 } cross ] unit-test
+{ double-4{ 0.0 -1.0 0.0 0.0 } } [ double-4{ 1.0 0.0 0.0 0.0 } double-4{ 0.0 0.0 1.0 0.0 } [ { double-4 double-4 } declare cross ] compile-call ] unit-test
 
 ! CSSA bug
-[ 4000000 ] [
+{ 4000000 } [
     int-4{ 1000 1000 1000 1000 }
     [ { int-4 } declare dup [ * ] [ + ] 2map-reduce ] compile-call
 ] unit-test
@@ -698,7 +698,7 @@ STRUCT: simd-struct
 
    diagonal cc ss ; inline
 
-[ t ] [
+{ t } [
     float-4{ 1.0 0.0 1.0 0.0 } pi [ broken 3array ]
     [ compile-call ] [ call ] 3bi =
 ] unit-test
@@ -710,14 +710,14 @@ STRUCT: simd-struct
     { float-4 float-4 float } declare
     [ v+ ] dip sin v*n ;
 
-[ float-4{ 0 0 0 0 } ]
+{ float-4{ 0 0 0 0 } }
 [ float-4{ 1 2 3 4 } float-4{ 4 5 6 7 } 0.0 simd-spill-test-1 ] unit-test
 
 : simd-spill-test-2 ( a b d c -- v )
     { float float-4 float-4 float } declare
     [ [ 3.0 + ] 2dip v+ ] dip sin v*n n*v ;
 
-[ float-4{ 0 0 0 0 } ]
+{ float-4{ 0 0 0 0 } }
 [ 5.0 float-4{ 1 2 3 4 } float-4{ 4 5 6 7 } 0.0 simd-spill-test-2 ] unit-test
 
 : callback-1 ( -- c )
@@ -731,7 +731,7 @@ STRUCT: simd-struct
     [ [ 3.0 + ] 2dip v+ ] dip sin v*n n*v
     10 5 100 50 500 callback-1 indirect-1 665 assert= ;
 
-[ float-4{ 0 0 0 0 } ]
+{ float-4{ 0 0 0 0 } }
 [ 5.0 float-4{ 1 2 3 4 } float-4{ 4 5 6 7 } 0.0 simd-spill-test-3 ] unit-test
 
 ! Stack allocation of SIMD values -- make sure that everything is
@@ -743,7 +743,7 @@ STRUCT: simd-struct
         [ float-4{ 1 2 3 4 } swap 0 float-4 c:set-alien-value ] bi*
     ] with-out-parameters ;
 
-[ 123 float-4{ 1 2 3 4 } ] [ simd-stack-test ] unit-test
+{ 123 float-4{ 1 2 3 4 } } [ simd-stack-test ] unit-test
 
 ! Stack allocation + spilling
 
@@ -755,7 +755,7 @@ STRUCT: simd-struct
         >float (simd-stack-spill-test) float-4-with swap cos v*n
     ] with-out-parameters ;
 
-[ ] [
+{ } [
     1.047197551196598 simd-stack-spill-test
     [ float-4{ 8.5 8.5 8.5 8.5 } approx= t assert= ]
     [ 123 assert= ]
index a0e3f5fc5ef8e87870a809d9d5d5cbd0bf297121..5ff48c59568f42f0d89882237839df56d1fc38fa 100644 (file)
@@ -3,37 +3,37 @@ USING: math.vectors tools.test kernel specialized-arrays compiler
 kernel.private alien.c-types math.functions ;
 SPECIALIZED-ARRAY: int
 
-[ { 1 2 3 } ] [ 1/2 { 2 4 6 } n*v ] unit-test
-[ { 1 2 3 } ] [ { 2 4 6 } 1/2 v*n ] unit-test
-[ { 1 2 3 } ] [ { 2 4 6 } 2 v/n ] unit-test
-[ { 1/1 1/2 1/3 } ] [ 1 { 1 2 3 } n/v ] unit-test
+{ { 1 2 3 } } [ 1/2 { 2 4 6 } n*v ] unit-test
+{ { 1 2 3 } } [ { 2 4 6 } 1/2 v*n ] unit-test
+{ { 1 2 3 } } [ { 2 4 6 } 2 v/n ] unit-test
+{ { 1/1 1/2 1/3 } } [ 1 { 1 2 3 } n/v ] unit-test
 
 { { 1 4 27 } } [ { 1 2 3 } { 1 2 3 } v^ ] unit-test
 { { 1 4 9 } } [ { 1 2 3 } 2 v^n ] unit-test
 { { 2 4 8 } } [ 2 { 1 2 3 } n^v ] unit-test
 
-[ 5 ] [ { 1 2 } norm-sq ] unit-test
-[ 13 ] [ { 2 3 } norm-sq ] unit-test
+{ 5 } [ { 1 2 } norm-sq ] unit-test
+{ 13 } [ { 2 3 } norm-sq ] unit-test
 
 { t } [ { 1 2 3 } [ norm ] [ 2 p-norm ] bi = ] unit-test
 { t } [ { 1 2 3 } 3 p-norm 3.301927248894626 1e-10 ~ ] unit-test
 
-[ { 1.0  2.5  } ] [ { 1.0 2.5 } { 2.5 1.0 } 0.0 vnlerp ] unit-test
-[ { 2.5  1.0  } ] [ { 1.0 2.5 } { 2.5 1.0 } 1.0 vnlerp ] unit-test
-[ { 1.75 1.75 } ] [ { 1.0 2.5 } { 2.5 1.0 } 0.5 vnlerp ] unit-test
+{ { 1.0  2.5  } } [ { 1.0 2.5 } { 2.5 1.0 } 0.0 vnlerp ] unit-test
+{ { 2.5  1.0  } } [ { 1.0 2.5 } { 2.5 1.0 } 1.0 vnlerp ] unit-test
+{ { 1.75 1.75 } } [ { 1.0 2.5 } { 2.5 1.0 } 0.5 vnlerp ] unit-test
 
-[ { 1.75 2.125 } ] [ { 1.0 2.5 } { 2.5 1.0 } { 0.5 0.25 } vlerp ] unit-test
+{ { 1.75 2.125 } } [ { 1.0 2.5 } { 2.5 1.0 } { 0.5 0.25 } vlerp ] unit-test
 
-[ 1.125 ] [ 0.0 1.0 2.0 4.0 { 0.5 0.25 } bilerp ] unit-test
+{ 1.125 } [ 0.0 1.0 2.0 4.0 { 0.5 0.25 } bilerp ] unit-test
 
-[ 17 ] [ 0 1 2 3 4 5 6 7 { 1 2 3 } trilerp ] unit-test
+{ 17 } [ 0 1 2 3 4 5 6 7 { 1 2 3 } trilerp ] unit-test
 
-[ { 0 3 2 5 4 } ] [ { 1 2 3 4 5 } { 1 1 1 1 1 } v+- ] unit-test
+{ { 0 3 2 5 4 } } [ { 1 2 3 4 5 } { 1 1 1 1 1 } v+- ] unit-test
 
-[ 32 ] [ { 1 2 3 } { 4 5 6 } v. ] unit-test
-[ -1 ] [ { C{ 0 1 } } dup v. ] unit-test
+{ 32 } [ { 1 2 3 } { 4 5 6 } v. ] unit-test
+{ -1 } [ { C{ 0 1 } } dup v. ] unit-test
 
-[ 1 ] [ { C{ 0 1 } } dup h. ] unit-test
+{ 1 } [ { C{ 0 1 } } dup h. ] unit-test
 
 
 { { 1 2 3 } } [
index e89685263df3482bcb9e7d112ee9a17c49b42057..f67a1fefda89b879e4cc83ea5e91bf5bf42cb6e0 100644 (file)
@@ -10,26 +10,26 @@ MEMO: fib ( m -- n )
 MEMO: x ( a b c d e -- f g h i j )
     [ 1 + ] 4 ndip ;
 
-[ 89 ] [ 10 fib ] unit-test
+{ 89 } [ 10 fib ] unit-test
 
-[
+{
     1 0 0 0 0
     1 0 0 0 0
-] [
+} [
     0 0 0 0 0 x
     0 0 0 0 0 x
 ] unit-test
 
 MEMO: see-test ( a -- b ) reverse ;
 
-[ "USING: memoize sequences ;\nIN: memoize.tests\nMEMO: see-test ( a -- b ) reverse ;\n" ]
+{ "USING: memoize sequences ;\nIN: memoize.tests\nMEMO: see-test ( a -- b ) reverse ;\n" }
 [ [ \ see-test see ] with-string-writer ]
 unit-test
 
-[ ] [ "IN: memoize.tests : fib ( -- ) ;" eval( -- ) ] unit-test
+{ } [ "IN: memoize.tests : fib ( -- ) ;" eval( -- ) ] unit-test
 
-[ "IN: memoize.tests\n: fib ( -- ) ;\n" ] [ [ \ fib see ] with-string-writer ] unit-test
+{ "IN: memoize.tests\n: fib ( -- ) ;\n" } [ [ \ fib see ] with-string-writer ] unit-test
 
 [ sq ] ( a -- b ) memoize-quot "q" set
 
-[ 9 ] [ 3 "q" get call ] unit-test
+{ 9 } [ 3 "q" get call ] unit-test
index 4592c92fe70708c3fe1f6b9ae08271ce46b08120..a41736664f6152d9ddee1f2b1ff3db6708928b86 100644 (file)
@@ -6,5 +6,5 @@ IN: memoize.syntax.tests
 [ t ] [
     { 1/8 1/8 1/8 1/8 1/16 1/16 1/16 }
     [ MEMO[ seconds sleep ] each ] benchmark
-    0.18e9 0.25e9 between?
+    0.18e9 0.25e9 }
 ] unit-test
index 229c64859bfae4c79afb0bfee09cfabda2d61487..0ebfb010b3b7c8cc031e89dd5a2679b66b97e733 100644 (file)
@@ -16,19 +16,19 @@ CONSTANT: upload1 "------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Dispositi
    "mime" "test" make-unique-file ascii
    [ set-file-contents ] [ <file-reader> ] 2bi ;
 
-[ ] [ mime-test-stream [ ] with-input-stream ] unit-test
+{ } [ mime-test-stream [ ] with-input-stream ] unit-test
 
-[ t ] [
+{ t } [
     mime-test-stream [ separator1 parse-multipart ] with-input-stream
     "file1" swap key?
 ] unit-test
 
-[ t ] [
+{ t } [
     mime-test-stream [ separator1 parse-multipart ] with-input-stream
     "file1" swap key?
 ] unit-test
 
-[ t ] [
+{ t } [
     mime-test-stream [ separator1 parse-multipart ] with-input-stream
     "file1" of filename>> "up.txt" =
 ] unit-test
@@ -36,14 +36,14 @@ CONSTANT: upload1 "------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Dispositi
 CONSTANT: separator2 "768de80194d942619886d23f1337aa15"
 CONSTANT: upload2 "--768de80194d942619886d23f1337aa15\r\nContent-Disposition: form-data; name=\"text\"; filename=\"upload.txt\"\r\nContent-Type: text/plain\r\n\r\nhello\r\n--768de80194d942619886d23f1337aa15--\r\n"
 
-[
+{
     "upload.txt"
     H{
         { "content-disposition"
           "form-data; name=\"text\"; filename=\"upload.txt\"" }
         { "content-type" "text/plain" }
     }
-] [
+} [
     upload2 [ separator2 parse-multipart ] with-string-reader
     "text" of [ filename>> ] [ headers>> ] bi
 ] unit-test
@@ -51,9 +51,9 @@ CONSTANT: upload2 "--768de80194d942619886d23f1337aa15\r\nContent-Disposition: fo
 CONSTANT: separator3 "3f116598c7f0431b9f98148ed235c822"
 CONSTANT: upload3 "--3f116598c7f0431b9f98148ed235c822\r\nContent-Disposition: form-data; name=\"text\"; filename=\"upload.txt\"\r\n\r\nhello\r\n--3f116598c7f0431b9f98148ed235c822\r\nContent-Disposition: form-data; name=\"text2\"; filename=\"upload.txt\"\r\n\r\nhello\r\n--3f116598c7f0431b9f98148ed235c822--\r\n"
 
-[
+{
     { "text" "text2" }
-] [
+} [
     upload3 [ separator3 parse-multipart ] with-string-reader
     keys natural-sort
 ] unit-test
@@ -73,7 +73,7 @@ SYMBOL: mime-test-server
 : a-stream ( n -- stream )
     CHAR: a <string> <string-reader> ;
 
-[ ] [
+{ } [
     [
     ] with-test-server
 ] unit-test
index 63535afa9abbc28a5e89a6fa415d151064aebc32..90b230ee46464115a3940c1cd71345a577e5cb1c 100644 (file)
@@ -1,6 +1,6 @@
 IN: mime.types.tests
 USING: mime.types tools.test ;
 
-[ "application/postscript" ] [ "foo.ps" mime-type ] unit-test
-[ "application/octet-stream" ] [ "foo.ps.gz" mime-type ] unit-test
-[ "text/plain" ] [ "foo.factor" mime-type ] unit-test
+{ "application/postscript" } [ "foo.ps" mime-type ] unit-test
+{ "application/octet-stream" } [ "foo.ps.gz" mime-type ] unit-test
+{ "text/plain" } [ "foo.factor" mime-type ] unit-test
index ff6a7707150f750d5eb609283b6a1aec15f53ac7..32de708794a13451b96e459ce701bb9ab8b0a4da 100644 (file)
@@ -6,15 +6,15 @@ TUPLE: foo bar baz ;
 
 C: <foo> foo
 
-[ 2 ] [ 1 2 <foo> <mirror> assoc-size ] unit-test
+{ 2 } [ 1 2 <foo> <mirror> assoc-size ] unit-test
 
-[ { "bar" "baz" } ] [ 1 2 <foo> <mirror> keys ] unit-test
+{ { "bar" "baz" } } [ 1 2 <foo> <mirror> keys ] unit-test
 
-[ 1 t ] [ "bar" 1 2 <foo> <mirror> at* ] unit-test
+{ 1 t } [ "bar" 1 2 <foo> <mirror> at* ] unit-test
 
-[ f f ] [ "hi" 1 2 <foo> <mirror> at* ] unit-test
+{ f f } [ "hi" 1 2 <foo> <mirror> at* ] unit-test
 
-[ 3 ] [
+{ 3 } [
     3 "baz" 1 2 <foo> [ <mirror> set-at ] keep baz>>
 ] unit-test
 
@@ -22,7 +22,7 @@ C: <foo> foo
 
 [ 3 "numerator" 1/2 <mirror> set-at ] must-fail
 
-[ "foo" ] [
+{ "foo" } [
     gensym [
         <mirror> [
             "foo" "name" set
@@ -35,7 +35,7 @@ C: <foo> foo
 TUPLE: declared-mirror-test
 { a integer initial: 0 } ;
 
-[ 5 ] [
+{ 5 } [
     3 declared-mirror-test boa <mirror> [
         5 "a" set
         "a" get
@@ -49,16 +49,16 @@ TUPLE: color
 { green integer }
 { blue integer } ;
 
-[ T{ color f 0 0 0 } ] [
+{ T{ color f 0 0 0 } } [
     1 2 3 color boa [ <mirror> clear-assoc ] keep
 ] unit-test
 
 ! Test reshaping with a mirror
 1 2 3 color boa <mirror> "mirror" set
 
-[ ] [ "IN: mirrors.tests USE: math TUPLE: color { green integer } { red integer } { blue integer } ;" eval( -- ) ] unit-test
+{ } [ "IN: mirrors.tests USE: math TUPLE: color { green integer } { red integer } { blue integer } ;" eval( -- ) ] unit-test
 
-[ 1 ] [ "red" "mirror" get at ] unit-test
+{ 1 } [ "red" "mirror" get at ] unit-test
 
 { 3 } [ { 1 2 3 } make-mirror assoc-size ] unit-test
 { 2 } [ "asdf" make-mirror assoc-size ] unit-test
index 2cb9b6ee5aaefbf0ca03477c1c8c56fc86c4919e..06058f0e5bda12920bc02e0be21dd4a30e0e4619 100644 (file)
@@ -5,13 +5,13 @@ IN: models.arrow.tests
 3 <model> "x" set
 "x" get [ 2 * ] <arrow> dup "z" set
 [ 1 + ] <arrow> "y" set
-[ ] [ "y" get activate-model ] unit-test
-[ t ] [ "z" get "x" get connections>> member-eq? ] unit-test
-[ 7 ] [ "y" get value>> ] unit-test
-[ ] [ 4 "x" get set-model ] unit-test
-[ 9 ] [ "y" get value>> ] unit-test
-[ ] [ "y" get deactivate-model ] unit-test
-[ f ] [ "z" get "x" get connections>> member-eq? ] unit-test
+{ } [ "y" get activate-model ] unit-test
+{ t } [ "z" get "x" get connections>> member-eq? ] unit-test
+{ 7 } [ "y" get value>> ] unit-test
+{ } [ 4 "x" get set-model ] unit-test
+{ 9 } [ "y" get value>> ] unit-test
+{ } [ "y" get deactivate-model ] unit-test
+{ f } [ "z" get "x" get connections>> member-eq? ] unit-test
 
 3 <model> "x" set
 "x" get [ sq ] <arrow> "y" set
@@ -19,5 +19,5 @@ IN: models.arrow.tests
 4 "x" get set-model
 
 "y" get activate-model
-[ 16 ] [ "y" get value>> ] unit-test
+{ 16 } [ "y" get value>> ] unit-test
 "y" get deactivate-model
index 7f8ba7cd0e7facc8e5270bbaf5c882e21a755291..e817eda54131580ee8e3af560518f1d9f3ee2289 100644 (file)
@@ -1,4 +1,4 @@
 IN: models.arrows.smart.tests
 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
index 1fb65893d47620f2cd598a704e3b254f34f7de14..962b26fd029c3903d1016302d54022f2fc48ebb5 100644 (file)
@@ -3,7 +3,7 @@ tools.test models.mapping accessors make ;
 IN: models.mapping.tests
 
 ! Test mapping
-[ ] [
+{ } [
     [
         1 <model> "one" ,,
         2 <model> "two" ,,
@@ -11,24 +11,24 @@ IN: models.mapping.tests
     <mapping> "m" set
 ] unit-test
 
-[ ] [ "m" get activate-model ] unit-test
+{ } [ "m" get activate-model ] unit-test
 
-[ H{ { "one" 1 } { "two" 2 } } ] [
+{ H{ { "one" 1 } { "two" 2 } } } [
     "m" get value>>
 ] unit-test
 
-[ ] [
+{ } [
     H{ { "one" 3 } { "two" 4 } }
     "m" get set-model
 ] unit-test
 
-[ H{ { "one" 3 } { "two" 4 } } ] [
+{ H{ { "one" 3 } { "two" 4 } } } [
     "m" get value>>
 ] unit-test
 
-[ H{ { "one" 5 } { "two" 4 } } ] [
+{ H{ { "one" 5 } { "two" 4 } } } [
     5 "one" "m" get assoc>> at set-model
     "m" get value>>
 ] unit-test
 
-[ ] [ "m" get deactivate-model ] unit-test
+{ } [ "m" get deactivate-model ] unit-test
index 79abfe5a6b2c331523f2eb98399d3c0682a3064e..a24f96e0eb588b408bdc24f462f99320b6c57580 100644 (file)
@@ -8,7 +8,7 @@ TUPLE: model-tester hit? ;
 
 M: model-tester model-changed nip t >>hit? drop ;
 
-[ T{ model-tester f t } ]
+{ T{ model-tester f t } }
 [
     T{ model-tester f f } clone 3 <model> 2dup add-connection
     5 swap set-model
@@ -19,12 +19,12 @@ M: model-tester model-changed nip t >>hit? drop ;
 "model-a" get "model-b" get 2array <product> "model-c" set
 
 "model-c" get activate-model
-[ { 3 4 } ] [ "model-c" get value>>  ] unit-test
+{ { 3 4 } } [ "model-c" get value>>  ] unit-test
 "model-c" get deactivate-model
 
 T{ model-tester f f } "tester" set
 
-[ T{ model-tester f t } { 6 4 } ]
+{ T{ model-tester f t } { 6 4 } }
 [
     "tester" get "model-c" get add-connection
     6 "model-a" get set-model
@@ -32,13 +32,13 @@ T{ model-tester f f } "tester" set
     "model-c" get value>>
 ] unit-test
 
-[ T{ model-tester f t } V{ 5 } ]
+{ T{ model-tester f t } V{ 5 } }
 [
     T{ model-tester f f } clone V{ } clone <model> 2dup add-connection
     5 swap [ push-model ] [ value>> ] bi
 ] unit-test
 
-[ T{ model-tester f t } 5 V{ }  ]
+{ T{ model-tester f t } 5 V{ }  }
 [
     T{ model-tester f f } clone V{ 5 } clone <model> 2dup add-connection
     [ pop-model ] [ value>> ] bi
index d5c3afa17906df9f532380bd402f122993959ef6..7f8b19a18b1cee6c05ac9278e44258da10419f8e 100644 (file)
@@ -2,31 +2,31 @@ USING: arrays generic kernel math models namespaces sequences assocs
 tools.test models.product accessors locals ;
 IN: models.product.tests
 
-[ ] [
+{ } [
     1 <model> "a" set
     2 <model> "b" set
     "a" get "b" get 2array <product> "c" set
 ] unit-test
 
-[ ] [ "c" get activate-model ] unit-test
+{ } [ "c" get activate-model ] unit-test
 
-[ { 1 2 } ] [ "c" get value>> ] unit-test
+{ { 1 2 } } [ "c" get value>> ] unit-test
 
-[ ] [ 3 "b" get set-model ] unit-test
+{ } [ 3 "b" get set-model ] unit-test
 
-[ { 1 3 } ] [ "c" get value>> ] unit-test
+{ { 1 3 } } [ "c" get value>> ] unit-test
 
-[ ] [ { 4 5 } "c" get set-model ] unit-test
+{ } [ { 4 5 } "c" get set-model ] unit-test
 
-[ { 4 5 } ] [ "c" get value>> ] unit-test
+{ { 4 5 } } [ "c" get value>> ] unit-test
 
-[ ] [ "c" get deactivate-model ] unit-test
+{ } [ "c" get deactivate-model ] unit-test
 
 TUPLE: an-observer { i integer } ;
 
 M: an-observer model-changed nip [ 1 + ] change-i drop ;
 
-[ 1 0 ] [
+[ 1 0 ] {
     [let
         1 <model> :> m1
         2 <model> :> m2
@@ -42,5 +42,5 @@ M: an-observer model-changed nip [ 1 + ] change-i drop ;
         "OH HAI" m1 set-model
         o1 i>>
         o2 i>>
-    ]
+    }
 ] unit-test
index 24cad68f02f4d8481de614581eb05ecccd44f6d9..3d95f75198b88612595151d4eef643e45847e3c3 100644 (file)
@@ -7,34 +7,34 @@ tools.test models.range ;
 : setup-stepped-range ( -- range ) 0 0 0 255 2 <range> ;
 
 ! clamp-value should not go past range ends
-[ 0   ] [ -10 setup-range clamp-value ] unit-test
-[ 255 ] [ 2000 setup-range clamp-value ] unit-test
-[ 14  ] [ 14 setup-range clamp-value ] unit-test
+{ 0   } [ -10 setup-range clamp-value ] unit-test
+{ 255 } [ 2000 setup-range clamp-value ] unit-test
+{ 14  } [ 14 setup-range clamp-value ] unit-test
 
 ! step-value
-[ 14  ] [ 15 setup-stepped-range step-value ] unit-test
+{ 14  } [ 15 setup-stepped-range step-value ] unit-test
 
 ! range min/max/page values should be correct
-[ 0 ] [ setup-range range-page-value ] unit-test
-[ 0 ] [ setup-range range-min-value ] unit-test
-[ 255 ] [ setup-range range-max-value ] unit-test
+{ 0 } [ setup-range range-page-value ] unit-test
+{ 0 } [ setup-range range-min-value ] unit-test
+{ 255 } [ setup-range range-max-value ] unit-test
 
 ! should be able to set the value within the range and get back
-[ 15 ] [ setup-range 15 over set-range-value range-value ] unit-test
-[ 0 ] [ setup-range -15 over set-range-value range-value ] unit-test
-[ 255 ] [ setup-range 4000 over set-range-value range-value ] unit-test
+{ 15 } [ setup-range 15 over set-range-value range-value ] unit-test
+{ 0 } [ setup-range -15 over set-range-value range-value ] unit-test
+{ 255 } [ setup-range 4000 over set-range-value range-value ] unit-test
 
 ! should be able to change the range min/max/page value
-[ 1 ] [ setup-range 1 over set-range-page-value range-page-value ] unit-test
-[ 50 ] [ setup-range 50 over set-range-min-value range-min-value ] unit-test
-[ 4000 ] [ setup-range 4000 over set-range-max-value range-max-value ] unit-test
+{ 1 } [ setup-range 1 over set-range-page-value range-page-value ] unit-test
+{ 50 } [ setup-range 50 over set-range-min-value range-min-value ] unit-test
+{ 4000 } [ setup-range 4000 over set-range-max-value range-max-value ] unit-test
 
 ! should be able to move by positive and negative values
-[ 30 ] [ setup-range 30 over move-by range-value ] unit-test
-[ 0 ] [ setup-range 30 over move-by -30 over move-by range-value ] unit-test
+{ 30 } [ setup-range 30 over move-by range-value ] unit-test
+{ 0 } [ setup-range 30 over move-by -30 over move-by range-value ] unit-test
 
 ! should be able to move by a page of 10
-[ 10 ] [
+{ 10 } [
     setup-range 10 over set-range-page-value
     1 over move-by-page range-value
 ] unit-test
index 90f8fd7df4a28d2c1ef53b95c50dd5b2a156b057..b83fe49c5ef6a2b51afc83a1b5e9a2a0819c1d08 100644 (file)
@@ -7,52 +7,52 @@ bar
 
 ;
 
-[ "foo\nbar\n" ] [ test-it ] unit-test
+{ "foo\nbar\n" } [ test-it ] unit-test
 
 
 ! HEREDOC:
 
-[ "foo\nbar\n" ] [ HEREDOC: END
+{ "foo\nbar\n" } [ HEREDOC: END
 foo
 bar
 END
 ] unit-test
 
-[ "" ] [ HEREDOC: END
+{ "" } [ HEREDOC: END
 END
 ] unit-test
 
-[ " END\n" ] [ HEREDOC: END
+{ " END\n" } [ HEREDOC: END
  END
 END
 ] unit-test
 
-[ "\n" ] [ HEREDOC: END
+{ "\n" } [ HEREDOC: END
 
 END
 ] unit-test
 
-[ "x\n" ] [ HEREDOC: END
+{ "x\n" } [ HEREDOC: END
 x
 END
 ] unit-test
 
-[ "x\n" ] [ HEREDOC:       END
+{ "x\n" } [ HEREDOC:       END
 x
 END
 ] unit-test
 
-[ "xyz \n" ] [ HEREDOC: END
+{ "xyz \n" } [ HEREDOC: END
 xyz
 END
 ] unit-test
 
-[ "} ! * # \" «\n" ] [ HEREDOC: END
+{ "} ! * # \" «\n" } [ HEREDOC: END
 } ! * # " «
 END
 ] unit-test
 
-[ 21 "foo\nbar\n" " HEREDOC: FOO\n FOO\n" 22 ] [ 21 HEREDOC: X
+{ 21 "foo\nbar\n" " HEREDOC: FOO\n FOO\n" 22 } [ 21 HEREDOC: X
 foo
 bar
 X
@@ -62,7 +62,7 @@ HEREDOC: END
 END
 22 ] unit-test
 
-[ "lol\n xyz\n" ]
+{ "lol\n xyz\n" }
 [
 HEREDOC: xyz
 lol
@@ -71,11 +71,11 @@ xyz
 ] unit-test
 
 
-[ "lol" ]
+{ "lol" }
 [ DELIMITED: aol
 lolaol ] unit-test
 
-[ "whoa" ]
+{ "whoa" }
 [ DELIMITED: factor blows my mind
 whoafactor blows my mind ] unit-test
 
@@ -83,7 +83,7 @@ whoafactor blows my mind ] unit-test
 SYNTAX: MULTILINE-LITERAL: parse-here suffix! ;
 >>
 
-[ { "bar" } ]
+{ { "bar" } }
 [
     CONSTANT: foo { MULTILINE-LITERAL:
 bar
index 92a38e509b87e67fbab630d9935ccf6d8659cb1c..68c161e1f2eb7846ee8fb34598adc7f12b7f95eb 100644 (file)
@@ -3,6 +3,6 @@ IN: nibble-arrays.tests
 
 [ -1 <nibble-array> ] [ T{ bad-array-length f -1 } = ] must-fail-with
 
-[ t ] [ 16 iota dup >nibble-array sequence= ] unit-test
-[ N{ 4 2 1 3 } ] [ N{ 3 1 2 4 } reverse ] unit-test
-[ N{ 1 4 9 0 9 4 } ] [ N{ 1 2 3 4 5 6 } [ sq ] map ] unit-test
+{ t } [ 16 iota dup >nibble-array sequence= ] unit-test
+{ N{ 4 2 1 3 } } [ N{ 3 1 2 4 } reverse ] unit-test
+{ N{ 1 4 9 0 9 4 } } [ N{ 1 2 3 4 5 6 } [ sq ] map ] unit-test
index a6b1afb2979137c1c8be931460d16e702cefa92a..8661fe9091035d75b6c2d12901e644a015bbd25e 100644 (file)
@@ -1,8 +1,8 @@
 IN: nmake.tests
 USING: nmake kernel tools.test ;
 
-[ ] [ [ ] { } nmake ] unit-test
+{ } [ [ ] { } nmake ] unit-test
 
-[ { 1 } { 2 } ] [ [ 1 0, 2 1, ] { { } { } } nmake ] unit-test
+{ { 1 } { 2 } } [ [ 1 0, 2 1, ] { { } { } } nmake ] unit-test
 
 [ [ ] [ call ] curry { { } } nmake ] must-infer
index 8bc8871482e4ea2f0700026dc114c4ebf2afa7c3..35d1fab358e5c4f86ffc2d61ff8106bf22b86013 100644 (file)
@@ -9,13 +9,13 @@ CONSTANT: test-extensions
         "GL_EXT_slipgate"
     }
 
-[ t ]
+{ t }
 [ "GL_ARB_vent_core_frogblast" test-extensions (has-extension?) ] unit-test
 
-[ f ]
+{ f }
 [ "GL_ARB_wallhack" test-extensions (has-extension?) ] unit-test
 
-[ t ] [
+{ t } [
     { "GL_EXT_dimensional_portal" "GL_EXT_slipgate" }
     test-extensions (has-extension?)
 ] unit-test
index 895298fe545f8e739458095002332514e3fb22c3..2a7cfdaf8c3fdde38e4ef4373ec62738c15636f4 100644 (file)
@@ -4,12 +4,12 @@ USING: tools.test opengl.gl opengl.textures opengl.textures.private
 images kernel namespaces accessors sequences literals ;
 IN: opengl.textures.tests
 
-[
+{
     {
         { { 0 0 } { 10 0 } }
         { { 0 20 } { 10 20 } }
     }
-] [
+} [
     {
         { { 10 20 } { 30 20 } }
         { { 10 30 } { 30 300 } }
index 92b8dcc39faf83b2e29fd71f788fb91a84292a53..6f3c265669eead96c72073b01d4b5b699d823656 100644 (file)
@@ -8,15 +8,15 @@ USING:
     tools.test ;
 IN: openssl.libcrypto.tests
 
-[ t ] [ "factorcode.org:80" BIO_new_connect bio_st? ] unit-test
+{ t } [ "factorcode.org:80" BIO_new_connect bio_st? ] unit-test
 
-[ 1 1 ] [
+{ 1 1 } [
     "factorcode.org:80" BIO_new_connect [
         BIO_C_DO_STATE_MACHINE 0 f BIO_ctrl
     ] keep BIO_free
 ] unit-test
 
-[ "HTTP/1.1 200 Document follows" 1 ] [
+{ "HTTP/1.1 200 Document follows" 1 } [
     "factorcode.org:80" BIO_new_connect [
         [ BIO_C_DO_STATE_MACHINE 0 f BIO_ctrl drop ]
         [
index 70650799a448e3c637b44a5f91d69c5fedf0c7fa..5becb771c18d6cdd5b5ca98c8aa991e76bf8846f 100644 (file)
@@ -29,15 +29,15 @@ IN: openssl.libssl.tests
     new-ctx SSL_new ;
 
 ! Test default options
-[ { f f f f f } ] [ new-ctx all-opts [ has-opt ] with map ] unit-test
+{ { f f f f f } } [ new-ctx all-opts [ has-opt ] with map ] unit-test
 
 ! Test setting options
-[ 5 ] [
+{ 5 } [
     new-ctx all-opts [ [ set-opt ] [ has-opt ] 2bi ] with map [ t = ] count
 ] unit-test
 
 ! Initial state
-[ { "before/connect initialization" "read header" 1 f } ] [
+{ { "before/connect initialization" "read header" 1 f } } [
     new-ssl {
         SSL_state_string_long
         SSL_rstate_string_long
index 5c8f8e3371efa981c1a3d2b12973ed73da8b757d..f37d906675f8da1f8573e954dc9923a9a805835f 100644 (file)
@@ -2,36 +2,36 @@ USING: io io.streams.string kernel namespaces make
 pack strings tools.test pack.private ;
 IN: pack.tests
 
-[ B{ 1 0 2 0 0 3 0 0 0 4 0 0 0 0 0 0 0 5 } ] [
+{ B{ 1 0 2 0 0 3 0 0 0 4 0 0 0 0 0 0 0 5 } } [
     { 1 2 3 4 5 }
     "cstiq" pack-be
 ] unit-test
 
-[ { 1 2 3 4 5 } ] [
+{ { 1 2 3 4 5 } } [
     { 1 2 3 4 5 }
     "cstiq" [ pack-be ] keep unpack-be
 ] unit-test
 
-[ B{ 1 2 0 3 0 0 4 0 0 0 5 0 0 0 0 0 0 0 } ] [
+{ B{ 1 2 0 3 0 0 4 0 0 0 5 0 0 0 0 0 0 0 } } [
     { 1 2 3 4 5 } "cstiq" pack-le
 ] unit-test
 
-[ { 1 2 3 4 5 } ] [
+{ { 1 2 3 4 5 } } [
     { 1 2 3 4 5 }
     "cstiq" [ pack-le ] keep unpack-le
 ] unit-test
 
-[ { -1 -2 -3 -4 -5 } ] [
+{ { -1 -2 -3 -4 -5 } } [
     { -1 -2 -3 -4 -5 }
     "cstiq" [ pack-le ] keep unpack-le
 ] unit-test
 
-[ { -1 -2 -3 -4 -5 3.14 } ] [
+{ { -1 -2 -3 -4 -5 3.14 } } [
     { -1 -2 -3 -4 -5 3.14 }
     "cstiqd" [ pack-be ] keep unpack-be
 ] unit-test
 
-[ { -1 -2 -3 -4 -5 } ] [
+{ { -1 -2 -3 -4 -5 } } [
     { -1 -2 -3 -4 -5 }
     "cstiq" [ pack-native ] keep unpack-native
 ] unit-test
@@ -39,7 +39,7 @@ IN: pack.tests
 { B{ 1 2 3 4 5 0 0 0 } } [ { 1 2 3 4 5 } "4ci" pack-le ] unit-test
 { { 1 2 3 4 5 } } [ B{ 1 2 3 4 5 0 0 0 } "4ci" unpack-le ] unit-test
 
-[ 9 ] [ "iic" packed-length ] unit-test
+{ 9 } [ "iic" packed-length ] unit-test
 [ "iii" read-packed-le ] must-infer
 [ "iii" read-packed-be ] must-infer
 [ "iii" read-packed-native ] must-infer
index 7215b9443d90f4494010800d1bd9a5deee907892..61b88c7aa3287628d4d8381bcc8c29564f2ee8c9 100644 (file)
@@ -577,16 +577,16 @@ Tok                = Spaces (Number | Special )
     error>> [ redefined-rule? ] [ name>> "lol" = ] bi and
 ] must-fail-with
 
-[
+{
     { "a" "a" }
-] [
+} [
     EBNF: foo   Bar = "a":a1 "a":a2 => [[ a1 a2 2array ]] ;EBNF
     "aa" foo
 ] unit-test
 
-[
+{
     { "a" "a" }
-] [
+} [
     EBNF: foo2   Bar = "a":a-1 "a":a-2 => [[ a-1 a-2 2array ]] ;EBNF
     "aa" foo2
 ] unit-test
index 2a568c1e9d23ab65e3eda85d600d70700f44275b..a49120804142cb1a82a26bbc51969274fb58082b 100644 (file)
@@ -5,7 +5,7 @@ USING: continuations kernel tools.test strings namespaces make arrays
 sequences peg peg.private peg.parsers words math accessors ;
 IN: peg.tests
 
-[ ] [ reset-pegs ] unit-test
+{ } [ reset-pegs ] unit-test
 
 [
     "endbegin" "begin" token parse
@@ -199,13 +199,13 @@ IN: peg.tests
 
 USE: compiler
 
-[ ] [ disable-optimizer ] unit-test
+{ } [ disable-optimizer ] unit-test
 
-[ ] [ "" epsilon parse drop ] unit-test
+{ } [ "" epsilon parse drop ] unit-test
 
-[ ] [ enable-optimizer ] unit-test
+{ } [ enable-optimizer ] unit-test
 
-[ [ ] ] [ "" epsilon [ drop [ [ ] ] call ] action parse ] unit-test
+{ [ ] } [ "" epsilon [ drop [ [ ] ] call ] action parse ] unit-test
 
 {
     T{ parse-error
index 96c7bd7ea2a2f3039232c8108b3cdfc5ca8d21e5..19922929d382f950ce485e35760b1287b9ecbfb8 100644 (file)
@@ -3,36 +3,36 @@
 USING: tools.test persistent.deques kernel math ;
 IN: persistent.deques.tests
 
-[ 3 2 1 t ]
+{ 3 2 1 t }
 [ { 1 2 3 } sequence>deque 3 [ pop-back ] times deque-empty? ] unit-test
 
-[ 1 2 3 t ]
+{ 1 2 3 t }
 [ { 1 2 3 } sequence>deque 3 [ pop-front ] times deque-empty? ] unit-test
 
-[ 1 3 2 t ]
+{ 1 3 2 t }
 [ { 1 2 3 } sequence>deque pop-front 2 [ pop-back ] times deque-empty? ]
 unit-test
 
-[ { 2 3 4 5 6 1 } ]
+{ { 2 3 4 5 6 1 } }
 [ { 1 2 3 4 5 6 } sequence>deque pop-front swap push-back deque>sequence ]
 unit-test
 
-[ 1 ] [ { 1 2 3 4 } sequence>deque peek-front ] unit-test
-[ 4 ] [ { 1 2 3 4 } sequence>deque peek-back ] unit-test
+{ 1 } [ { 1 2 3 4 } sequence>deque peek-front ] unit-test
+{ 4 } [ { 1 2 3 4 } sequence>deque peek-back ] unit-test
 
-[ 1 t ] [ <deque> 1 push-front pop-back deque-empty? ] unit-test
-[ 1 t ] [ <deque> 1 push-front pop-front deque-empty? ] unit-test
-[ 1 t ] [ <deque> 1 push-back pop-front deque-empty? ] unit-test
-[ 1 t ] [ <deque> 1 push-back pop-back deque-empty? ] unit-test
+{ 1 t } [ <deque> 1 push-front pop-back deque-empty? ] unit-test
+{ 1 t } [ <deque> 1 push-front pop-front deque-empty? ] unit-test
+{ 1 t } [ <deque> 1 push-back pop-front deque-empty? ] unit-test
+{ 1 t } [ <deque> 1 push-back pop-back deque-empty? ] unit-test
 
-[ 1 f ]
+{ 1 f }
 [ <deque> 1 push-front 2 push-front pop-back deque-empty? ] unit-test
 
-[ 1 f ]
+{ 1 f }
 [ <deque> 1 push-back 2 push-back pop-front deque-empty? ] unit-test
 
-[ 2 f ]
+{ 2 f }
 [ <deque> 1 push-back 2 push-back pop-back deque-empty? ] unit-test
 
-[ 2 f ]
+{ 2 f }
 [ <deque> 1 push-front 2 push-front pop-front deque-empty? ] unit-test
index ade48785a146f9145623ac28535bd085570d7fc7..9fcd4de9b9acff50cce9809841141e59736c9a2e 100644 (file)
@@ -2,13 +2,13 @@ IN: persistent.hashtables.tests
 USING: persistent.hashtables persistent.assocs hashtables assocs
 tools.test kernel locals namespaces random math.ranges sequences fry ;
 
-[ t ] [ PH{ } assoc-empty? ] unit-test
+{ t } [ PH{ } assoc-empty? ] unit-test
 
-[ PH{ { "A" "B" } } ] [ PH{ } "B" "A" rot new-at ] unit-test
+{ PH{ { "A" "B" } } } [ PH{ } "B" "A" rot new-at ] unit-test
 
-[ "B" ] [ "A" PH{ { "A" "B" } } at ] unit-test
+{ "B" } [ "A" PH{ { "A" "B" } } at ] unit-test
 
-[ f ] [ "X" PH{ { "A" "B" } } at ] unit-test
+{ f } [ "X" PH{ { "A" "B" } } at ] unit-test
 
 ! We have to define these first so that they're compiled before
 ! the below hashtables are parsed...
@@ -24,59 +24,59 @@ M: hash-0-b hashcode* 2drop 0 ;
 
 >>
 
-[ ] [
+{ } [
     PH{ }
     "a" T{ hash-0-a } rot new-at
     "b" T{ hash-0-b } rot new-at
     "ph" set
 ] unit-test
 
-[
+{
     H{
         { T{ hash-0-a } "a" }
         { T{ hash-0-b } "b" }
     }
-] [ "ph" get >hashtable ] unit-test
+} [ "ph" get >hashtable ] unit-test
 
-[
+{
     H{
         { T{ hash-0-b } "b" }
     }
-] [ "ph" get T{ hash-0-a } swap pluck-at >hashtable ] unit-test
+} [ "ph" get T{ hash-0-a } swap pluck-at >hashtable ] unit-test
 
-[
+{
     H{
         { T{ hash-0-a } "a" }
     }
-] [ "ph" get T{ hash-0-b } swap pluck-at >hashtable ] unit-test
+} [ "ph" get T{ hash-0-b } swap pluck-at >hashtable ] unit-test
 
-[
+{
     H{
         { T{ hash-0-a } "a" }
         { T{ hash-0-b } "b" }
     }
-] [ "ph" get "X" swap pluck-at >hashtable ] unit-test
+} [ "ph" get "X" swap pluck-at >hashtable ] unit-test
 
-[ ] [
+{ } [
     PH{ }
     "B" "A" rot new-at
     "D" "C" rot new-at
     "ph" set
 ] unit-test
 
-[ H{ { "A" "B" } { "C" "D" } } ] [
+{ H{ { "A" "B" } { "C" "D" } } } [
     "ph" get >hashtable
 ] unit-test
 
-[ H{ { "C" "D" } } ] [
+{ H{ { "C" "D" } } } [
     "ph" get "A" swap pluck-at >hashtable
 ] unit-test
 
-[ H{ { "A" "B" } { "C" "D" } { "E" "F" } } ] [
+{ H{ { "A" "B" } { "C" "D" } { "E" "F" } } } [
     "ph" get "F" "E" rot new-at >hashtable
 ] unit-test
 
-[ H{ { "C" "D" } { "E" "F" } } ] [
+{ H{ { "C" "D" } { "E" "F" } } } [
     "ph" get "F" "E" rot new-at "A" swap pluck-at >hashtable
 ] unit-test
 
@@ -96,16 +96,16 @@ M: hash-0-b hashcode* 2drop 0 ;
 : test-persistent-hashtables-1 ( n -- ? )
     random-assocs ok? ;
 
-[ t ] [ 10 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 20 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 30 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 50 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 100 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 500 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 1000 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 5000 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 10000 test-persistent-hashtables-1 ] unit-test
-[ t ] [ 50000 test-persistent-hashtables-1 ] unit-test
+{ t } [ 10 test-persistent-hashtables-1 ] unit-test
+{ t } [ 20 test-persistent-hashtables-1 ] unit-test
+{ t } [ 30 test-persistent-hashtables-1 ] unit-test
+{ t } [ 50 test-persistent-hashtables-1 ] unit-test
+{ t } [ 100 test-persistent-hashtables-1 ] unit-test
+{ t } [ 500 test-persistent-hashtables-1 ] unit-test
+{ t } [ 1000 test-persistent-hashtables-1 ] unit-test
+{ t } [ 5000 test-persistent-hashtables-1 ] unit-test
+{ t } [ 10000 test-persistent-hashtables-1 ] unit-test
+{ t } [ 50000 test-persistent-hashtables-1 ] unit-test
 
 : test-persistent-hashtables-2 ( n -- ? )
     random-assocs
@@ -114,4 +114,4 @@ M: hash-0-b hashcode* 2drop 0 ;
         2dup ok?
     ] all? 2nip ;
 
-[ t ] [ 6000 test-persistent-hashtables-2 ] unit-test
+{ t } [ 6000 test-persistent-hashtables-2 ] unit-test
index 3a1f910532cfcf07e83806fa219899818ea1d4dc..f45b9af334494c89989d39258e475c46d1670d3e 100644 (file)
@@ -5,7 +5,7 @@ CONSTANT: test-input
     { { "hello" 3 } { "goodbye" 2 } { "whatever" 5 }
       { "foo" 1 } { "bar" -1 } { "baz" -7 } { "bing" 0 } }
 
-[
+{
     { { "baz" -7 } { "bar" -1 } { "bing" 0 } { "foo" 1 }
       { "goodbye" 2 } { "hello" 3 } { "whatever" 5 } }
-] [ test-input assoc>pheap pheap>alist ] unit-test
+} [ test-input assoc>pheap pheap>alist ] unit-test
index 6d340ca78a95b6575613c26caecdc81abfe7b84a..0a2e9e1645389688752548658d23929bed5c1856 100644 (file)
@@ -3,17 +3,17 @@ USING: accessors tools.test persistent.vectors
 persistent.sequences sequences kernel arrays random namespaces
 vectors math math.order ;
 
-[ 0 ] [ PV{ } length ] unit-test
+{ 0 } [ PV{ } length ] unit-test
 
-[ 1 ] [ 3 PV{ } ppush length ] unit-test
+{ 1 } [ 3 PV{ } ppush length ] unit-test
 
-[ 3 ] [ 3 PV{ } ppush first ] unit-test
+{ 3 } [ 3 PV{ } ppush first ] unit-test
 
-[ PV{ 3 1 3 3 7 } ] [
+{ PV{ 3 1 3 3 7 } } [
     PV{ } { 3 1 3 3 7 } [ swap ppush ] each
 ] unit-test
 
-[ { 3 1 3 3 7 } ] [
+{ { 3 1 3 3 7 } } [
     PV{ } { 3 1 3 3 7 } [ swap ppush ] each >array
 ] unit-test
 
@@ -21,10 +21,10 @@ vectors math math.order ;
     [ t ] swap [ iota dup >persistent-vector sequence= ] curry unit-test
 ] each
 
-[ ] [ 10000 [ 16 random-bits ] PV{ } replicate-as "1" set ] unit-test
-[ ] [ "1" get >vector "2" set ] unit-test
+{ } [ 10000 [ 16 random-bits ] PV{ } replicate-as "1" set ] unit-test
+{ } [ "1" get >vector "2" set ] unit-test
 
-[ t ] [
+{ t } [
     3000 iota [
         drop
         16 random-bits 10000 random
@@ -36,30 +36,30 @@ vectors math math.order ;
 
 [ PV{ } ppop ] [ empty-error? ] must-fail-with
 
-[ t ] [ PV{ 3 } ppop empty? ] unit-test
+{ t } [ PV{ 3 } ppop empty? ] unit-test
 
-[ PV{ 3 7 } ] [ PV{ 3 7 6 } ppop ] unit-test
+{ PV{ 3 7 } } [ PV{ 3 7 6 } ppop ] unit-test
 
-[ PV{ 3 7 6 5 } ] [ 5 PV{ 3 7 6 } ppush ] unit-test
+{ PV{ 3 7 6 5 } } [ 5 PV{ 3 7 6 } ppush ] unit-test
 
-[ ] [ PV{ } "1" set ] unit-test
-[ ] [ V{ } clone "2" set ] unit-test
+{ } [ PV{ } "1" set ] unit-test
+{ } [ V{ } clone "2" set ] unit-test
 
 : push/pop-test ( vec -- vec' ) 3 swap ppush 3 swap ppush ppop ;
 
-[ ] [ PV{ } 10000 [ push/pop-test ] times drop ] unit-test
+{ } [ PV{ } 10000 [ push/pop-test ] times drop ] unit-test
 
-[ PV{ } ] [
+{ PV{ } } [
     PV{ }
     10000 [ 1 swap ppush ] times
     10000 [ ppop ] times
 ] unit-test
 
-[ t ] [
+{ t } [
     10000 iota >persistent-vector 752 [ ppop ] times dup length iota sequence=
 ] unit-test
 
-[ t ] [
+{ t } [
     100 iota [
         drop
         100 random [
index cf69e4466dcfbe594dc2aab08d50bf2a6a2abda5..041c177fcedcd981e09efc2618984696b31ed4ed 100644 (file)
@@ -2,61 +2,61 @@ IN: porter-stemmer.tests
 USING: arrays io kernel porter-stemmer sequences tools.test
 io.files io.encodings.utf8 ;
 
-[ 0 ] [ "xa" consonant-seq ] unit-test
-[ 0 ] [ "xxaa" consonant-seq ] unit-test
-[ 1 ] [ "xaxa" consonant-seq ] unit-test
-[ 2 ] [ "xaxaxa" consonant-seq ] unit-test
-[ 3 ] [ "xaxaxaxa" consonant-seq ] unit-test
-[ 3 ] [ "zzzzxaxaxaxaeee" consonant-seq ] unit-test
+{ 0 } [ "xa" consonant-seq ] unit-test
+{ 0 } [ "xxaa" consonant-seq ] unit-test
+{ 1 } [ "xaxa" consonant-seq ] unit-test
+{ 2 } [ "xaxaxa" consonant-seq ] unit-test
+{ 3 } [ "xaxaxaxa" consonant-seq ] unit-test
+{ 3 } [ "zzzzxaxaxaxaeee" consonant-seq ] unit-test
 
-[ t ] [ 0 "fish" consonant? ] unit-test
-[ f ] [ 0 "and" consonant? ] unit-test
-[ t ] [ 0 "yes" consonant? ] unit-test
-[ f ] [ 1 "gym" consonant? ] unit-test
+{ t } [ 0 "fish" consonant? ] unit-test
+{ f } [ 0 "and" consonant? ] unit-test
+{ t } [ 0 "yes" consonant? ] unit-test
+{ f } [ 1 "gym" consonant? ] unit-test
 
-[ t ] [ 5 "splitting" double-consonant? ] unit-test
-[ f ] [ 2 "feel" double-consonant? ] unit-test
+{ t } [ 5 "splitting" double-consonant? ] unit-test
+{ f } [ 2 "feel" double-consonant? ] unit-test
 
-[ f ] [ "xxxz" stem-vowel? ] unit-test
-[ t ] [ "baobab" stem-vowel? ] unit-test
+{ f } [ "xxxz" stem-vowel? ] unit-test
+{ t } [ "baobab" stem-vowel? ] unit-test
 
-[ t ] [ "hop" cvc? ] unit-test
-[ t ] [ "cav" cvc? ] unit-test
-[ t ] [ "lov" cvc? ] unit-test
-[ t ] [ "crim" cvc? ] unit-test
-[ f ] [ "show" cvc? ] unit-test
-[ f ] [ "box" cvc? ] unit-test
-[ f ] [ "tray" cvc? ] unit-test
-[ f ] [ "meet" cvc? ] unit-test
+{ t } [ "hop" cvc? ] unit-test
+{ t } [ "cav" cvc? ] unit-test
+{ t } [ "lov" cvc? ] unit-test
+{ t } [ "crim" cvc? ] unit-test
+{ f } [ "show" cvc? ] unit-test
+{ f } [ "box" cvc? ] unit-test
+{ f } [ "tray" cvc? ] unit-test
+{ f } [ "meet" cvc? ] unit-test
 
-[ "caress" ] [ "caresses" step1a step1b "" like ] unit-test
-[ "poni" ] [ "ponies" step1a step1b "" like ] unit-test
-[ "ti" ] [ "ties" step1a step1b "" like ] unit-test
-[ "caress" ] [ "caress" step1a step1b "" like ] unit-test
-[ "cat" ] [ "cats" step1a step1b "" like ] unit-test
-[ "feed" ] [ "feed" step1a step1b "" like ] unit-test
-[ "agree" ] [ "agreed" step1a step1b "" like ] unit-test
-[ "disable" ] [ "disabled" step1a step1b "" like ] unit-test
-[ "mat" ] [ "matting" step1a step1b "" like ] unit-test
-[ "mate" ] [ "mating" step1a step1b "" like ] unit-test
-[ "meet" ] [ "meeting" step1a step1b "" like ] unit-test
-[ "mill" ] [ "milling" step1a step1b "" like ] unit-test
-[ "mess" ] [ "messing" step1a step1b "" like ] unit-test
-[ "meet" ] [ "meetings" step1a step1b "" like ] unit-test
+{ "caress" } [ "caresses" step1a step1b "" like ] unit-test
+{ "poni" } [ "ponies" step1a step1b "" like ] unit-test
+{ "ti" } [ "ties" step1a step1b "" like ] unit-test
+{ "caress" } [ "caress" step1a step1b "" like ] unit-test
+{ "cat" } [ "cats" step1a step1b "" like ] unit-test
+{ "feed" } [ "feed" step1a step1b "" like ] unit-test
+{ "agree" } [ "agreed" step1a step1b "" like ] unit-test
+{ "disable" } [ "disabled" step1a step1b "" like ] unit-test
+{ "mat" } [ "matting" step1a step1b "" like ] unit-test
+{ "mate" } [ "mating" step1a step1b "" like ] unit-test
+{ "meet" } [ "meeting" step1a step1b "" like ] unit-test
+{ "mill" } [ "milling" step1a step1b "" like ] unit-test
+{ "mess" } [ "messing" step1a step1b "" like ] unit-test
+{ "meet" } [ "meetings" step1a step1b "" like ] unit-test
 
-[ "fishi" ] [ "fishy" step1c ] unit-test
-[ "by" ] [ "by" step1c ] unit-test
+{ "fishi" } [ "fishy" step1c ] unit-test
+{ "by" } [ "by" step1c ] unit-test
 
-[ "realizat" ] [ "realization" step4 ] unit-test
-[ "ion" ] [ "ion" step4 ] unit-test
-[ "able" ] [ "able" step4 ] unit-test
+{ "realizat" } [ "realization" step4 ] unit-test
+{ "ion" } [ "ion" step4 ] unit-test
+{ "able" } [ "able" step4 ] unit-test
 
-[ "fear" ] [ "feare" step5 "" like ] unit-test
-[ "mate" ] [ "mate" step5 "" like ] unit-test
-[ "hell" ] [ "hell" step5 "" like ] unit-test
-[ "mate" ] [ "mate" step5 "" like ] unit-test
+{ "fear" } [ "feare" step5 "" like ] unit-test
+{ "mate" } [ "mate" step5 "" like ] unit-test
+{ "hell" } [ "hell" step5 "" like ] unit-test
+{ "mate" } [ "mate" step5 "" like ] unit-test
 
-[ { } ] [
+{ { } } [
     "vocab:porter-stemmer/test/voc.txt" utf8 file-lines
     [ stem ] map
     "vocab:porter-stemmer/test/output.txt" utf8 file-lines
index bcae4e4f5a8244b20b6f6eb47897d07f3300f072..13099ab1f92d789825b9622b028f985c3bcfc130 100644 (file)
@@ -8,27 +8,27 @@ strings tools.continuations tools.continuations.private
 tools.test vectors vocabs.parser words ;
 IN: prettyprint.tests
 
-[ "4" ] [ 4 unparse ] unit-test
-[ "4096" ] [ 4096 unparse ] unit-test
-[ "0b1000000000000" ] [ 2 number-base [ 4096 unparse ] with-variable ] unit-test
-[ "0o10000" ] [ 8 number-base [ 4096 unparse ] with-variable ] unit-test
-[ "0x1000" ] [ 16 number-base [ 4096 unparse ] with-variable ] unit-test
-[ "1.0" ] [ 1.0 unparse ] unit-test
-[ "8.0" ] [ 8.0 unparse ] unit-test
-[ "8.0" ] [ 2 number-base [ 8.0 unparse ] with-variable ] unit-test
-[ "8.0" ] [ 8 number-base [ 8.0 unparse ] with-variable ] unit-test
-[ "0x1.0p3" ] [ 16 number-base [ 8.0 unparse ] with-variable ] unit-test
-[ "1267650600228229401496703205376" ] [ 1 100 shift unparse ] unit-test
+{ "4" } [ 4 unparse ] unit-test
+{ "4096" } [ 4096 unparse ] unit-test
+{ "0b1000000000000" } [ 2 number-base [ 4096 unparse ] with-variable ] unit-test
+{ "0o10000" } [ 8 number-base [ 4096 unparse ] with-variable ] unit-test
+{ "0x1000" } [ 16 number-base [ 4096 unparse ] with-variable ] unit-test
+{ "1.0" } [ 1.0 unparse ] unit-test
+{ "8.0" } [ 8.0 unparse ] unit-test
+{ "8.0" } [ 2 number-base [ 8.0 unparse ] with-variable ] unit-test
+{ "8.0" } [ 8 number-base [ 8.0 unparse ] with-variable ] unit-test
+{ "0x1.0p3" } [ 16 number-base [ 8.0 unparse ] with-variable ] unit-test
+{ "1267650600228229401496703205376" } [ 1 100 shift unparse ] unit-test
 
-[ "+" ] [ \ + unparse ] unit-test
+{ "+" } [ \ + unparse ] unit-test
 
-[ "\\ +" ] [ [ \ + ] first unparse ] unit-test
+{ "\\ +" } [ [ \ + ] first unparse ] unit-test
 
-[ "{ }" ] [ { } unparse ] unit-test
+{ "{ }" } [ { } unparse ] unit-test
 
-[ "{ 1 2 3 }" ] [ { 1 2 3 } unparse ] unit-test
+{ "{ 1 2 3 }" } [ { 1 2 3 } unparse ] unit-test
 
-[ "\"hello\\\\backslash\"" ]
+{ "\"hello\\\\backslash\"" }
 [ "hello\\backslash" unparse ]
 unit-test
 
@@ -36,45 +36,45 @@ unit-test
 ! [ "\u123456" unparse ]
 ! unit-test
 
-[ "\"\\e\"" ]
+{ "\"\\e\"" }
 [ "\e" unparse ]
 unit-test
 
-[ "\"\\x01\"" ]
+{ "\"\\x01\"" }
 [ 1 1string unparse ]
 unit-test
 
-[ "f" ] [ f unparse ] unit-test
-[ "t" ] [ t unparse ] unit-test
+{ "f" } [ f unparse ] unit-test
+{ "t" } [ t unparse ] unit-test
 
-[ "SBUF\" hello world\"" ] [ SBUF" hello world" unparse ] unit-test
+{ "SBUF\" hello world\"" } [ SBUF" hello world" unparse ] unit-test
 
-[ "W{ \\ + }" ] [ [ W{ \ + } ] first unparse ] unit-test
+{ "W{ \\ + }" } [ [ W{ \ + } ] first unparse ] unit-test
 
-[ ] [ \ fixnum see ] unit-test
+{ } [ \ fixnum see ] unit-test
 
-[ ] [ \ integer see ] unit-test
+{ } [ \ integer see ] unit-test
 
-[ ] [ \ generic see ] unit-test
+{ } [ \ generic see ] unit-test
 
-[ ] [ \ duplex-stream see ] unit-test
+{ } [ \ duplex-stream see ] unit-test
 
-[ "[ \\ + ]" ] [ [ \ + ] unparse ] unit-test
-[ "[ \\ [ ]" ] [ [ \ [ ] unparse ] unit-test
+{ "[ \\ + ]" } [ [ \ + ] unparse ] unit-test
+{ "[ \\ [ ]" } [ [ \ [ ] unparse ] unit-test
 
-[ t ] [
+{ t } [
     100 \ dup <array> unparse-short
     "{" head?
 ] unit-test
 
 : foo ( a -- b ) dup * ; inline
 
-[ "USING: kernel math ;\nIN: prettyprint.tests\n: foo ( a -- b ) dup * ; inline\n" ]
+{ "USING: kernel math ;\nIN: prettyprint.tests\n: foo ( a -- b ) dup * ; inline\n" }
 [ [ \ foo see ] with-string-writer ] unit-test
 
 : bar ( x -- y ) 2 + ;
 
-[ "USING: math ;\nIN: prettyprint.tests\n: bar ( x -- y ) 2 + ;\n" ]
+{ "USING: math ;\nIN: prettyprint.tests\n: bar ( x -- y ) 2 + ;\n" }
 [ [ \ bar see ] with-string-writer ] unit-test
 
 : blah ( a a a a a a a a a a a a a a a a a a a a -- )
@@ -99,7 +99,7 @@ unit-test
     drop
     drop ;
 
-[ "drop ;" ] [
+{ "drop ;" } [
     [ \ blah see ] with-string-writer "\n" ?tail drop 6 tail*
 ] unit-test
 
@@ -126,7 +126,7 @@ M: integer method-layout ;
 
 M: object method-layout ;
 
-[
+{
     {
         "USING: kernel math prettyprint.tests ;"
         "M: complex method-layout"
@@ -144,7 +144,7 @@ M: object method-layout ;
         "M: object method-layout ;"
         ""
     }
-] [
+} [
     [ \ method-layout see-methods ] with-string-writer "\n" split
 ] unit-test
 
@@ -159,7 +159,7 @@ M: object method-layout ;
         "    ] [ 2drop f ] if ;"
     } ;
 
-[ t ] [
+{ t } [
     "soft-break-layout" soft-break-test check-see
 ] unit-test
 
@@ -174,7 +174,7 @@ DEFER: parse-error-file
         "    [ <reversed> \"hello world foo\" suffix ] [ ] make ;"
     } ;
 
-[ t ] [
+{ t } [
     "another-soft-break-layout" another-soft-break-test
     check-see
 ] unit-test
@@ -189,7 +189,7 @@ DEFER: parse-error-file
     } ;
 
 
-[ t ] [
+{ t } [
     "string-layout-test" string-layout check-see
 ] unit-test
 
@@ -205,7 +205,7 @@ DEFER: parse-error-file
         "    } cond ;"
     } ;
 
-[ t ] [
+{ t } [
     "narrow-layout" narrow-test check-see
 ] unit-test
 
@@ -224,7 +224,7 @@ DEFER: parse-error-file
         "    } ;"
     } ;
 
-[ t ] [
+{ t } [
     "another-narrow-layout" another-narrow-test check-see
 ] unit-test
 
@@ -237,7 +237,7 @@ GENERIC: class-see-layout ( x -- y )
 USING: prettyprint.tests ;
 M: class-see-layout class-see-layout ;
 
-[
+{
     {
         "IN: prettyprint.tests"
         "TUPLE: class-see-layout ;"
@@ -246,39 +246,39 @@ M: class-see-layout class-see-layout ;
         "GENERIC: class-see-layout ( x -- y )"
         ""
     }
-] [
+} [
     [ \ class-see-layout see ] with-string-writer "\n" split
 ] unit-test
 
-[
+{
     {
         "USING: prettyprint.tests ;"
         "M: class-see-layout class-see-layout ;"
         ""
     }
-] [
+} [
     [ \ class-see-layout see-methods ] with-string-writer "\n" split
 ] unit-test
 
-[ ] [ \ in>> synopsis drop ] unit-test
+{ } [ \ in>> synopsis drop ] unit-test
 
 ! Regression
-[ t ] [
+{ t } [
     "IN: prettyprint.tests\nGENERIC: generic-decl-test ( a -- b ) flushable\n"
     dup eval( -- )
     "generic-decl-test" "prettyprint.tests" lookup-word
     [ see ] with-string-writer =
 ] unit-test
 
-[ [ + ] ] [ [ \ + (step-into-execute) ] (remove-breakpoints) ] unit-test
+{ [ + ] } [ [ \ + (step-into-execute) ] (remove-breakpoints) ] unit-test
 
-[ [ (step-into-execute) ] ] [ [ (step-into-execute) ] (remove-breakpoints) ] unit-test
+{ [ (step-into-execute) ] } [ [ (step-into-execute) ] (remove-breakpoints) ] unit-test
 
-[ [ 2 2 + . ] ] [
+{ [ 2 2 + . ] } [
     [ 2 2 \ + (step-into-execute) . ] (remove-breakpoints)
 ] unit-test
 
-[ [ 2 2 + . ] ] [
+{ [ 2 2 + . ] } [
     [ 2 break 2 \ + (step-into-execute) . ] (remove-breakpoints)
 ] unit-test
 
@@ -286,26 +286,26 @@ GENERIC: generic-see-test-with-f ( obj -- obj )
 
 M: f generic-see-test-with-f ;
 
-[ "USING: prettyprint.tests ;\nM: f generic-see-test-with-f ;\n" ] [
+{ "USING: prettyprint.tests ;\nM: f generic-see-test-with-f ;\n" } [
     [ M\ f generic-see-test-with-f see ] with-string-writer
 ] unit-test
 
 PREDICATE: predicate-see-test < integer even? ;
 
-[ "USING: math ;\nIN: prettyprint.tests\nPREDICATE: predicate-see-test < integer even? ;\n" ] [
+{ "USING: math ;\nIN: prettyprint.tests\nPREDICATE: predicate-see-test < integer even? ;\n" } [
     [ \ predicate-see-test see ] with-string-writer
 ] unit-test
 
 INTERSECTION: intersection-see-test sequence number ;
 
-[ "USING: math sequences ;\nIN: prettyprint.tests\nINTERSECTION: intersection-see-test sequence number ;\n" ] [
+{ "USING: math sequences ;\nIN: prettyprint.tests\nINTERSECTION: intersection-see-test sequence number ;\n" } [
     [ \ intersection-see-test see ] with-string-writer
 ] unit-test
 
-[ ] [ \ compose see ] unit-test
-[ ] [ \ curry see ] unit-test
+{ } [ \ compose see ] unit-test
+{ } [ \ curry see ] unit-test
 
-[ "POSTPONE: [" ] [ \ [ unparse ] unit-test
+{ "POSTPONE: [" } [ \ [ unparse ] unit-test
 
 TUPLE: started-out-hustlin' ;
 
@@ -313,50 +313,50 @@ GENERIC: ended-up-ballin' ( a -- b )
 
 M: started-out-hustlin' ended-up-ballin' ; inline
 
-[ "USING: prettyprint.tests ;\nM: started-out-hustlin' ended-up-ballin' ; inline\n" ] [
+{ "USING: prettyprint.tests ;\nM: started-out-hustlin' ended-up-ballin' ; inline\n" } [
     [ M\ started-out-hustlin' ended-up-ballin' see ] with-string-writer
 ] unit-test
 
 TUPLE: tuple-with-declared-slot { x integer } ;
 
-[
+{
     {
         "USING: math ;"
         "IN: prettyprint.tests"
         "TUPLE: tuple-with-declared-slot { x integer initial: 0 } ;"
         ""
     }
-] [
+} [
     [ \ tuple-with-declared-slot see ] with-string-writer "\n" split
 ] unit-test
 
 TUPLE: tuple-with-read-only-slot { x read-only } ;
 
-[
+{
     {
         "IN: prettyprint.tests"
         "TUPLE: tuple-with-read-only-slot { x read-only } ;"
         ""
     }
-] [
+} [
     [ \ tuple-with-read-only-slot see ] with-string-writer "\n" split
 ] unit-test
 
 TUPLE: tuple-with-initial-slot { x initial: 123 } ;
 
-[
+{
     {
         "IN: prettyprint.tests"
         "TUPLE: tuple-with-initial-slot { x initial: 123 } ;"
         ""
     }
-] [
+} [
     [ \ tuple-with-initial-slot see ] with-string-writer "\n" split
 ] unit-test
 
 TUPLE: tuple-with-initial-declared-slot { x integer initial: 123 } ;
 
-[
+{
     {
         "USING: math ;"
         "IN: prettyprint.tests"
@@ -364,95 +364,95 @@ TUPLE: tuple-with-initial-declared-slot { x integer initial: 123 } ;
         "    { x integer initial: 123 } ;"
         ""
     }
-] [
+} [
     [ \ tuple-with-initial-declared-slot see ] with-string-writer "\n" split
 ] unit-test
 
 TUPLE: final-tuple ; final
 
-[
+{
     {
         "IN: prettyprint.tests"
         "TUPLE: final-tuple ; final"
         ""
     }
-] [
+} [
     [ \ final-tuple see ] with-string-writer "\n" split
 ] unit-test
 
-[ "H{ { 1 2 } }\n" ] [ [ H{ { 1 2 } } short. ] with-string-writer ] unit-test
+{ "H{ { 1 2 } }\n" } [ [ H{ { 1 2 } } short. ] with-string-writer ] unit-test
 
-[ "H{ { 1 ~array~ } }\n" ] [ [ H{ { 1 { 2 } } } short. ] with-string-writer ] unit-test
+{ "H{ { 1 ~array~ } }\n" } [ [ H{ { 1 { 2 } } } short. ] with-string-writer ] unit-test
 
-[ "{ ~array~ }\n" ] [ [ { { 1 2 } } short. ] with-string-writer ] unit-test
+{ "{ ~array~ }\n" } [ [ { { 1 2 } } short. ] with-string-writer ] unit-test
 
-[ "H{ { 1 { 2 3 } } }\n" ] [
+{ "H{ { 1 { 2 3 } } }\n" } [
     f nesting-limit [
         [ H{ { 1 { 2 3 } } } . ] with-string-writer
     ] with-variable
 ] unit-test
 
-[ "maybe{ integer }\n" ] [ [  maybe{ integer } . ] with-string-writer ] unit-test
+{ "maybe{ integer }\n" } [ [  maybe{ integer } . ] with-string-writer ] unit-test
 TUPLE: bob a b ;
-[ "maybe{ bob }\n" ] [ [ maybe{ bob } . ] with-string-writer ] unit-test
-[ "maybe{ word }\n" ] [ [ maybe{ word } . ] with-string-writer ] unit-test
+{ "maybe{ bob }\n" } [ [ maybe{ bob } . ] with-string-writer ] unit-test
+{ "maybe{ word }\n" } [ [ maybe{ word } . ] with-string-writer ] unit-test
 
 TUPLE: har a ;
 GENERIC: harhar ( obj -- obj )
 M: maybe{ har } harhar ;
 M: integer harhar M\ integer harhar drop ;
-[
+{
 """USING: prettyprint.tests ;
 M: maybe{ har } harhar ;
 
 USING: kernel math prettyprint.tests ;
 M: integer harhar M\\ integer harhar drop ;\n"""
-] [
+} [
     [ \ harhar see-methods ] with-string-writer
 ] unit-test
 
 TUPLE: mo { a union{ float integer } } ;
 TUPLE: fo { a intersection{ fixnum integer } } ;
 
-[
+{
 """USING: math ;
 IN: prettyprint.tests
 TUPLE: mo { a union{ integer float } initial: 0 } ;
 """
-] [
+} [
     [ \ mo see ] with-string-writer
 ] unit-test
 
-[
+{
 """USING: math ;
 IN: prettyprint.tests
 TUPLE: fo { a intersection{ integer fixnum } initial: 0 } ;
 """
-] [
+} [
     [ \ fo see ] with-string-writer
 ] unit-test
 
-[
+{
 """union{ intersection{ string hashtable } union{ integer float } }\n"""
-] [ [ union{ union{ float integer } intersection{ string hashtable } } . ] with-string-writer ] unit-test
+} [ [ union{ union{ float integer } intersection{ string hashtable } } . ] with-string-writer ] unit-test
 
-[
+{
 """intersection{
     intersection{ string hashtable }
     union{ integer float }
 }
 """
-] [ [ intersection{ union{ float integer } intersection{ string hashtable } } . ] with-string-writer ] unit-test
+} [ [ intersection{ union{ float integer } intersection{ string hashtable } } . ] with-string-writer ] unit-test
 
-[
+{
 """maybe{ union{ integer float } }\n"""
-] [
+} [
     [ maybe{ union{ float integer } } . ] with-string-writer
 ] unit-test
 
-[
+{
 """maybe{ maybe{ integer } }\n"""
-] [
+} [
     [ maybe{ maybe{ integer } } . ] with-string-writer
 ] unit-test
 
@@ -471,15 +471,15 @@ TUPLE: fo { a intersection{ integer fixnum } initial: 0 } ;
         [ CHAR: a <string> text "b" text ] with-pprint
     ] with-string-writer ;
 
-[
+{
 """aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa b"""
-] [ margin get 3 - margin-test ] unit-test
+} [ margin get 3 - margin-test ] unit-test
 
-[
+{
 """aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa b"""
-] [ margin get 2 - margin-test ] unit-test
+} [ margin get 2 - margin-test ] unit-test
 
-[
+{
 """aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 b"""
-] [ margin get 1 - margin-test ] unit-test
+} [ margin get 1 - margin-test ] unit-test
index 851a613717ba4d3c4c6b36d316572272f5c71108..d28d41c28180b28e76d6e87413be44621b14661f 100644 (file)
@@ -4,4 +4,4 @@ USING: promises math tools.test ;
 LAZY: lazy-test ( a -- b ) 1 + ;
 
 { 1 1 } [ lazy-test ] must-infer-as
-[ 3 ] [ 2 lazy-test force ] unit-test
+{ 3 } [ 2 lazy-test force ] unit-test
index 2a3239c72faa20d0c12e654b63a1162e46122220..2c53d45f3b09dff767603fd2b2739475f25a6fe6 100644 (file)
@@ -4,17 +4,17 @@ USING: tools.test quoted-printable io.encodings.string
 sequences splitting kernel io.encodings.8-bit.latin2 ;
 IN: quoted-printable.tests
 
-[ """José was the
+{ """José was the
 person who knew how to write the letters:
     ő and ü 
-and we didn't know hów tö do thât""" ]
+and we didn't know hów tö do thât""" }
 [ """Jos=E9 was the
 person who knew how to write the letters:
     =F5 and =FC=20
 and w=
 e didn't know h=F3w t=F6 do th=E2t""" quoted> latin2 decode ] unit-test
 
-[ """Jos=E9 was the=0Aperson who knew how to write the letters:=0A    =F5 and =FC=0Aand we didn't know h=F3w t=F6 do th=E2t""" ]
+{ """Jos=E9 was the=0Aperson who knew how to write the letters:=0A    =F5 and =FC=0Aand we didn't know h=F3w t=F6 do th=E2t""" }
 [ """José was the
 person who knew how to write the letters:
     ő and ü
@@ -23,8 +23,8 @@ and we didn't know hów tö do thât""" latin2 encode >quoted ] unit-test
 : message ( -- str )
     55 [ "hello" ] replicate concat ;
 
-[ f ] [ message >quoted "=\r\n" swap subseq? ] unit-test
-[ 1 ] [ message >quoted string-lines length ] unit-test
-[ t ] [ message >quoted-lines "=\r\n" swap subseq? ] unit-test
-[ 4 ] [ message >quoted-lines string-lines length ] unit-test
-[ "===o" ] [ message >quoted-lines string-lines [ last ] "" map-as ] unit-test
+{ f } [ message >quoted "=\r\n" swap subseq? ] unit-test
+{ 1 } [ message >quoted string-lines length ] unit-test
+{ t } [ message >quoted-lines "=\r\n" swap subseq? ] unit-test
+{ 4 } [ message >quoted-lines string-lines length ] unit-test
+{ "===o" } [ message >quoted-lines string-lines [ last ] "" map-as ] unit-test
index f024d9c4a7ce9d6f433d3a7c9343d40918d7ed48..d0db3bb036647157101fca9f8e46a6e85a836d44 100644 (file)
@@ -3,9 +3,9 @@
 USING: tools.test quoting ;
 IN: quoting.tests
 
-[ f ] [ "" quoted? ] unit-test
-[ t ] [ "''" quoted? ] unit-test
-[ t ] [ "\"\"" quoted? ] unit-test
-[ t ] [ "\"Circus Maximus\"" quoted? ] unit-test
-[ t ] [ "'Circus Maximus'" quoted? ] unit-test
-[ f ] [ "Circus Maximus" quoted? ] unit-test
+{ f } [ "" quoted? ] unit-test
+{ t } [ "''" quoted? ] unit-test
+{ t } [ "\"\"" quoted? ] unit-test
+{ t } [ "\"Circus Maximus\"" quoted? ] unit-test
+{ t } [ "'Circus Maximus'" quoted? ] unit-test
+{ f } [ "Circus Maximus" quoted? ] unit-test
index 5d4b4b54734ea3da5066b8989c0df21956785b2f..fb29ff02f990718ae41d780cd5e6c0b43803dfc9 100644 (file)
@@ -3,5 +3,5 @@
 USING: random random.dummy tools.test ;
 IN: random.dummy.tests
 
-[ 10 ] [ 10 <random-dummy> random-32* ] unit-test
-[ 100 ] [ 10 <random-dummy> 100 seed-random random-32* ] unit-test
+{ 10 } [ 10 <random-dummy> random-32* ] unit-test
+{ 100 } [ 10 <random-dummy> 100 seed-random random-32* ] unit-test
index ede3c92f517b60cd2acf4f2c5b2d7e3442a3c244..32b7712019386b37b46a08c27bc963ff266d8e24 100644 (file)
@@ -5,7 +5,7 @@ IN: random.mersenne-twister.tests
 : check-random ( max -- ? )
     [ random 0 ] keep between? ;
 
-[ t ] [ 100 [ drop 674 check-random ] all-integers? ] unit-test
+{ t } [ 100 [ drop 674 check-random ] all-integers? ] unit-test
 
 : randoms ( -- seq )
     100 [ 100 random ] replicate ;
@@ -13,22 +13,22 @@ IN: random.mersenne-twister.tests
 : test-rng ( seed quot -- )
     [ <mersenne-twister> ] dip with-random ; inline
 
-[ f ] [ 1234 [ randoms randoms = ] test-rng ] unit-test
+{ f } [ 1234 [ randoms randoms = ] test-rng ] unit-test
 
-[ 1333075495 ] [
+{ 1333075495 } [
     0 [ 1000 [ drop random-generator get random-32* drop ] each-integer random-generator get random-32* ] test-rng
 ] unit-test
 
-[ 1575309035 ] [
+{ 1575309035 } [
     0 [ 10000 [ drop random-generator get random-32* drop ] each-integer random-generator get random-32* ] test-rng
 ] unit-test
 
 
-[ 3 ] [ 101 [ 3 random-bytes length ] test-rng ] unit-test
-[ 33 ] [ 101 [ 33 random-bytes length ] test-rng ] unit-test
-[ t ] [ 101 [ 100 random-bits log2 90 > ] test-rng ] unit-test
+{ 3 } [ 101 [ 3 random-bytes length ] test-rng ] unit-test
+{ 33 } [ 101 [ 33 random-bytes length ] test-rng ] unit-test
+{ t } [ 101 [ 100 random-bits log2 90 > ] test-rng ] unit-test
 
-[ t ]
+{ t }
 [
     1234 <mersenne-twister>
     [ random-32* ] [ 1234 seed-random random-32* ] bi =
index 498517566208165964656fd8121221001747cca2..2c1d6d53b8671730e263d288c713b5d3661f8efc 100644 (file)
@@ -2,36 +2,36 @@ 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
+{ 4 } [ 4 random-bytes length ] unit-test
+{ 7 } [ 7 random-bytes length ] unit-test
 
-[ 4 ] [ [ 4 random-bytes length ] with-secure-random ] unit-test
-[ 7 ] [ [ 7 random-bytes length ] with-secure-random ] unit-test
+{ 4 } [ [ 4 random-bytes length ] with-secure-random ] unit-test
+{ 7 } [ [ 7 random-bytes length ] with-secure-random ] unit-test
 
-[ 2 ] [ V{ 10 20 30 } [ delete-random drop ] keep length ] unit-test
+{ 2 } [ V{ 10 20 30 } [ delete-random drop ] keep length ] unit-test
 [ V{ } [ delete-random drop ] keep length ] must-fail
 
-[ t ] [ 10000 [ iota 0 [ drop 187 random + ] reduce ] keep / 2 * 187 10 ~ ] unit-test
-[ t ] [ 10000 [ iota 0 [ drop 400 random + ] reduce ] keep / 2 * 400 10 ~ ] unit-test
+{ t } [ 10000 [ iota 0 [ drop 187 random + ] reduce ] keep / 2 * 187 10 ~ ] unit-test
+{ t } [ 10000 [ iota 0 [ drop 400 random + ] reduce ] keep / 2 * 400 10 ~ ] unit-test
 
-[ t ] [ 1000 [ 400 random ] replicate members length 256 > ] unit-test
+{ t } [ 1000 [ 400 random ] replicate members length 256 > ] unit-test
 
-[ f ] [ 0 random ] unit-test
+{ f } [ 0 random ] unit-test
 
-[ { } ] [ { } randomize ] unit-test
-[ { 1 } ] [ { 1 } randomize ] unit-test
+{ { } } [ { } randomize ] unit-test
+{ { 1 } } [ { 1 } randomize ] unit-test
 
-[ f ]
+{ f }
 [ 100 [ { 0 1 } random ] replicate all-equal? ] unit-test
 
-[ 49 ] [ 50 random-bits* log2 ] unit-test
+{ 49 } [ 50 random-bits* log2 ] unit-test
 
 [ { 1 2 } 3 sample ] [ too-many-samples?  ] must-fail-with
 
-[ 3 ] [ { 1 2 3 4 } 3 sample members length ] unit-test
-[ 99 ] [ 100 iota 99 sample members length ] unit-test
+{ 3 } [ { 1 2 3 4 } 3 sample members length ] unit-test
+{ 99 } [ 100 iota 99 sample members length ] unit-test
 
-[ ]
+{ }
 [ [ 100 random-bytes ] with-system-random drop ] unit-test
 
 { t t }
index f7b75c3f135647219e77ced99f7d4967d8b2c740..4268d5f00172f6995c896299560b3c9799a08a5b 100644 (file)
@@ -5,27 +5,27 @@ sequences tools.test ;
 IN: random.sfmt.tests
 
 ! Period certified by virtue of seed
-[ ] [ 5 <sfmt-19937> drop ] unit-test
+{ } [ 5 <sfmt-19937> drop ] unit-test
 
-[ 1331696015 ]
+{ 1331696015 }
 [ 5 <sfmt-19937> dup generate dup generate uint-array>> first ] unit-test
 
-[ 1432875926 ]
+{ 1432875926 }
 [ 5 <sfmt-19937> random-32* ] unit-test
 
 
 ! Period certified by flipping a bit
-[ ] [ 7 <sfmt-19937> drop ] unit-test
+{ } [ 7 <sfmt-19937> drop ] unit-test
 
-[ 1674111379 ]
+{ 1674111379 }
 [ 7 <sfmt-19937> dup generate dup generate uint-array>> first ] unit-test
 
-[ 489955657 ]
+{ 489955657 }
 [ 7 <sfmt-19937> random-32* ] unit-test
 
 
 ! Test re-seeding SFMT
-[ t ]
+{ t }
 [
     100 <sfmt-19937>
     [ random-32* ]
index afa6817bf2375f296fd318d5cc9984fa6c5cbe55..96ab63a7808d1a39e78df431973cf05c24f8c348 100644 (file)
@@ -2,21 +2,21 @@ USING: boxes kernel namespaces refs tools.test ;
 IN: refs.tests
 
 ! assoc-refs
-[ 3 ] [
+{ 3 } [
     H{ { "a" 3 } } "a" <value-ref> get-ref
 ] unit-test
 
-[ 4 ] [
+{ 4 } [
     4 H{ { "a" 3 } } clone "a" <value-ref>
     [ set-ref ] keep
     get-ref
 ] unit-test
 
-[ "a" ] [
+{ "a" } [
     H{ { "a" 3 } } "a" <key-ref> get-ref
 ] unit-test
 
-[ H{ { "b" 3 } } ] [
+{ H{ { "b" 3 } } } [
     "b" H{ { "a" 3 } } clone [
         "a" <key-ref>
         set-ref
@@ -26,16 +26,16 @@ IN: refs.tests
 SYMBOLS: lion giraffe elephant rabbit ;
 
 ! obj-refs
-[ rabbit ] [ rabbit <obj-ref> get-ref ] unit-test
-[ rabbit ] [ f <obj-ref> rabbit set-ref* get-ref ] unit-test
-[ rabbit ] [ rabbit <obj-ref> take ] unit-test
-[ rabbit f ] [ rabbit <obj-ref> [ take ] keep get-ref ] unit-test
-[ lion ] [ rabbit <obj-ref> dup [ drop lion ] change-ref get-ref ] unit-test
+{ rabbit } [ rabbit <obj-ref> get-ref ] unit-test
+{ rabbit } [ f <obj-ref> rabbit set-ref* get-ref ] unit-test
+{ rabbit } [ rabbit <obj-ref> take ] unit-test
+{ rabbit f } [ rabbit <obj-ref> [ take ] keep get-ref ] unit-test
+{ lion } [ rabbit <obj-ref> dup [ drop lion ] change-ref get-ref ] unit-test
 
 ! var-refs
-[ giraffe ] [ [ giraffe rabbit set rabbit <var-ref> get-ref ] with-scope ] unit-test
+{ giraffe } [ [ giraffe rabbit set rabbit <var-ref> get-ref ] with-scope ] unit-test
 
-[ rabbit ]
+{ rabbit }
 [
     [
         lion rabbit set [
@@ -44,7 +44,7 @@ SYMBOLS: lion giraffe elephant rabbit ;
     ] with-scope
 ] unit-test
 
-[ rabbit ] [
+{ rabbit } [
     rabbit <var-ref>
     [
         lion rabbit set [
@@ -53,7 +53,7 @@ SYMBOLS: lion giraffe elephant rabbit ;
     ] with-scope
 ] unit-test
 
-[ elephant ] [
+{ elephant } [
     rabbit <var-ref>
     [
         elephant rabbit set [
@@ -63,7 +63,7 @@ SYMBOLS: lion giraffe elephant rabbit ;
     ] with-scope
 ] unit-test
 
-[ rabbit ] [
+{ rabbit } [
     rabbit <var-ref>
     [
         elephant set-ref* [
@@ -72,7 +72,7 @@ SYMBOLS: lion giraffe elephant rabbit ;
     ] with-scope
 ] unit-test
 
-[ elephant ] [
+{ elephant } [
     rabbit <var-ref>
     [
         elephant set-ref* [
@@ -83,8 +83,8 @@ SYMBOLS: lion giraffe elephant rabbit ;
 ] unit-test
 
 ! Top Hats
-[ lion ] [ lion rabbit set-global rabbit <global-var-ref> get-ref ] unit-test
-[ giraffe ] [ rabbit <global-var-ref> giraffe set-ref* get-ref ] unit-test
+{ lion } [ lion rabbit set-global rabbit <global-var-ref> get-ref ] unit-test
+{ giraffe } [ rabbit <global-var-ref> giraffe set-ref* get-ref ] unit-test
 
 ! Tuple refs
 TUPLE: foo bar ;
@@ -96,10 +96,10 @@ C: <foo> foo
 : test-slot-ref ( -- slot-ref )
     test-tuple 2 <slot-ref> ; ! hack!
 
-[ rabbit ] [ test-slot-ref get-ref ] unit-test
-[ lion ] [ test-slot-ref lion set-ref* get-ref ] unit-test
+{ rabbit } [ test-slot-ref get-ref ] unit-test
+{ lion } [ test-slot-ref lion set-ref* get-ref ] unit-test
 
 ! Boxes as refs
-[ rabbit ] [ <box> rabbit set-ref* get-ref ] unit-test
+{ rabbit } [ <box> rabbit set-ref* get-ref ] unit-test
 [ <box> rabbit set-ref* lion set-ref* ] must-fail
 [ <box> get-ref ] must-fail
index 4044a059a5ab6245393e54e6b9665b643dc50898..2feed16f132cbb3f17721b9703d7365e2d24d7e1 100644 (file)
@@ -5,56 +5,56 @@ IN: regexp.classes.tests
 
 ! Class algebra
 
-[ f ] [ { 1 2 } <and-class> ] unit-test
-[ T{ or-class f { 1 2 } } ] [ { 1 2 } <or-class> ] unit-test
-[ 3 ] [ { 1 2 } <and-class> 3 2array <or-class> ] unit-test
-[ CHAR: A ] [ CHAR: A LETTER-class <primitive-class> 2array <and-class> ] unit-test
-[ CHAR: A ] [ LETTER-class <primitive-class> CHAR: A 2array <and-class> ] unit-test
-[ T{ primitive-class { class LETTER-class } } ] [ CHAR: A LETTER-class <primitive-class> 2array <or-class> ] unit-test
-[ T{ primitive-class { class LETTER-class } } ] [ LETTER-class <primitive-class> CHAR: A 2array <or-class> ] unit-test
-[ t ] [ { t 1 } <or-class> ] unit-test
-[ t ] [ { 1 t } <or-class> ] unit-test
-[ f ] [ { f 1 } <and-class> ] unit-test
-[ f ] [ { 1 f } <and-class> ] unit-test
-[ 1 ] [ { f 1 } <or-class> ] unit-test
-[ 1 ] [ { 1 f } <or-class> ] unit-test
-[ 1 ] [ { t 1 } <and-class> ] unit-test
-[ 1 ] [ { 1 t } <and-class> ] unit-test
-[ 1 ] [ 1 <not-class> <not-class> ] unit-test
-[ 1 ] [ { 1 1 } <and-class> ] unit-test
-[ 1 ] [ { 1 1 } <or-class> ] unit-test
-[ t ] [ { t t } <or-class> ] unit-test
-[ T{ primitive-class { class letter-class } } ] [ letter-class <primitive-class> dup 2array <and-class> ] unit-test
-[ T{ primitive-class { class letter-class } } ] [ letter-class <primitive-class> dup 2array <or-class> ] unit-test
-[ T{ or-class { seq { 1 2 3 } } } ] [ { 1 2 } <or-class> { 2 3 } <or-class> 2array <or-class> ] unit-test
-[ T{ or-class { seq { 2 3 } } } ] [ { 2 3 } <or-class> 1 <not-class> 2array <and-class> ] unit-test
-[ f ] [ t <not-class> ] unit-test
-[ t ] [ f <not-class> ] unit-test
-[ f ] [ 1 <not-class> 1 t answer ] unit-test
-[ t ] [ { 1 2 } <or-class> <not-class> 1 2 3array <or-class> ] unit-test
-[ f ] [ { 1 2 } <and-class> <not-class> 1 2 3array <and-class> ] unit-test
+{ f } [ { 1 2 } <and-class> ] unit-test
+{ T{ or-class f { 1 2 } } } [ { 1 2 } <or-class> ] unit-test
+{ 3 } [ { 1 2 } <and-class> 3 2array <or-class> ] unit-test
+{ CHAR: A } [ CHAR: A LETTER-class <primitive-class> 2array <and-class> ] unit-test
+{ CHAR: A } [ LETTER-class <primitive-class> CHAR: A 2array <and-class> ] unit-test
+{ T{ primitive-class { class LETTER-class } } } [ CHAR: A LETTER-class <primitive-class> 2array <or-class> ] unit-test
+{ T{ primitive-class { class LETTER-class } } } [ LETTER-class <primitive-class> CHAR: A 2array <or-class> ] unit-test
+{ t } [ { t 1 } <or-class> ] unit-test
+{ t } [ { 1 t } <or-class> ] unit-test
+{ f } [ { f 1 } <and-class> ] unit-test
+{ f } [ { 1 f } <and-class> ] unit-test
+{ 1 } [ { f 1 } <or-class> ] unit-test
+{ 1 } [ { 1 f } <or-class> ] unit-test
+{ 1 } [ { t 1 } <and-class> ] unit-test
+{ 1 } [ { 1 t } <and-class> ] unit-test
+{ 1 } [ 1 <not-class> <not-class> ] unit-test
+{ 1 } [ { 1 1 } <and-class> ] unit-test
+{ 1 } [ { 1 1 } <or-class> ] unit-test
+{ t } [ { t t } <or-class> ] unit-test
+{ T{ primitive-class { class letter-class } } } [ letter-class <primitive-class> dup 2array <and-class> ] unit-test
+{ T{ primitive-class { class letter-class } } } [ letter-class <primitive-class> dup 2array <or-class> ] unit-test
+{ T{ or-class { seq { 1 2 3 } } } } [ { 1 2 } <or-class> { 2 3 } <or-class> 2array <or-class> ] unit-test
+{ T{ or-class { seq { 2 3 } } } } [ { 2 3 } <or-class> 1 <not-class> 2array <and-class> ] unit-test
+{ f } [ t <not-class> ] unit-test
+{ t } [ f <not-class> ] unit-test
+{ f } [ 1 <not-class> 1 t answer ] unit-test
+{ t } [ { 1 2 } <or-class> <not-class> 1 2 3array <or-class> ] unit-test
+{ f } [ { 1 2 } <and-class> <not-class> 1 2 3array <and-class> ] unit-test
 
 ! Making classes into nested conditionals
 
-[ { 1 2 3 4 } ] [ T{ and-class f { 1 T{ not-class f 2 } T{ or-class f { 3 4 } } 2 } } class>questions ] unit-test
-[ { 3 } ] [ { { 3 t } } table>condition ] unit-test
-[ { T{ primitive-class } } ] [ { { 1 t } { 2 T{ primitive-class } } } table>questions ] unit-test
-[ { { 1 t } { 2 t } } ] [ { { 1 t } { 2 T{ primitive-class } } } T{ primitive-class } t assoc-answer ] unit-test
-[ { { 1 t } } ] [ { { 1 t } { 2 T{ primitive-class } } } T{ primitive-class } f assoc-answer ] unit-test
-[ T{ condition f T{ primitive-class } { 1 2 } { 1 } } ] [ { { 1 t } { 2 T{ primitive-class } } } table>condition ] unit-test
+{ { 1 2 3 4 } } [ T{ and-class f { 1 T{ not-class f 2 } T{ or-class f { 3 4 } } 2 } } class>questions ] unit-test
+{ { 3 } } [ { { 3 t } } table>condition ] unit-test
+{ { T{ primitive-class } } } [ { { 1 t } { 2 T{ primitive-class } } } table>questions ] unit-test
+{ { { 1 t } { 2 t } } } [ { { 1 t } { 2 T{ primitive-class } } } T{ primitive-class } t assoc-answer ] unit-test
+{ { { 1 t } } } [ { { 1 t } { 2 T{ primitive-class } } } T{ primitive-class } f assoc-answer ] unit-test
+{ T{ condition f T{ primitive-class } { 1 2 } { 1 } } } [ { { 1 t } { 2 T{ primitive-class } } } table>condition ] unit-test
 
 SYMBOL: foo
 SYMBOL: bar
 
-[ T{ condition f T{ primitive-class f bar } T{ condition f T{ primitive-class f foo } { 1 3 2 } { 1 3 } } T{ condition f T{ primitive-class f foo } { 1 2 } { 1 } } } ] [ { { 1 t } { 3 T{ primitive-class f bar } } { 2 T{ primitive-class f foo } } } table>condition ] unit-test
+{ T{ condition f T{ primitive-class f bar } T{ condition f T{ primitive-class f foo } { 1 3 2 } { 1 3 } } T{ condition f T{ primitive-class f foo } { 1 2 } { 1 } } } } [ { { 1 t } { 3 T{ primitive-class f bar } } { 2 T{ primitive-class f foo } } } table>condition ] unit-test
 
-[ t ] [ foo <primitive-class> dup t answer ] unit-test
-[ f ] [ foo <primitive-class> dup f answer ] unit-test
-[ T{ primitive-class f foo } ] [ foo <primitive-class> bar <primitive-class> t answer ] unit-test
-[ T{ primitive-class f foo } ] [ foo <primitive-class> bar <primitive-class> f answer ] unit-test
-[ T{ primitive-class f foo } ] [ foo <primitive-class> bar <primitive-class> 2array <and-class> bar <primitive-class> t answer ] unit-test
-[ T{ primitive-class f bar } ] [ foo <primitive-class> bar <primitive-class> 2array <and-class> foo <primitive-class> t answer ] unit-test
-[ f ] [ foo <primitive-class> bar <primitive-class> 2array <and-class> foo <primitive-class> f answer ] unit-test
-[ f ] [ foo <primitive-class> bar <primitive-class> 2array <and-class> bar <primitive-class> f answer ] unit-test
-[ t ] [ foo <primitive-class> bar <primitive-class> 2array <or-class> bar <primitive-class> t answer ] unit-test
-[ T{ primitive-class f foo } ] [ foo <primitive-class> bar <primitive-class> 2array <or-class> bar <primitive-class> f answer ] unit-test
+{ t } [ foo <primitive-class> dup t answer ] unit-test
+{ f } [ foo <primitive-class> dup f answer ] unit-test
+{ T{ primitive-class f foo } } [ foo <primitive-class> bar <primitive-class> t answer ] unit-test
+{ T{ primitive-class f foo } } [ foo <primitive-class> bar <primitive-class> f answer ] unit-test
+{ T{ primitive-class f foo } } [ foo <primitive-class> bar <primitive-class> 2array <and-class> bar <primitive-class> t answer ] unit-test
+{ T{ primitive-class f bar } } [ foo <primitive-class> bar <primitive-class> 2array <and-class> foo <primitive-class> t answer ] unit-test
+{ f } [ foo <primitive-class> bar <primitive-class> 2array <and-class> foo <primitive-class> f answer ] unit-test
+{ f } [ foo <primitive-class> bar <primitive-class> 2array <and-class> bar <primitive-class> f answer ] unit-test
+{ t } [ foo <primitive-class> bar <primitive-class> 2array <or-class> bar <primitive-class> t answer ] unit-test
+{ T{ primitive-class f foo } } [ foo <primitive-class> bar <primitive-class> 2array <or-class> bar <primitive-class> f answer ] unit-test
index 85fa190bfe8334730dd4ef3658b46e5535be146a..23583bdf26a91907528a039be70679d9a9a6b7bc 100644 (file)
@@ -6,23 +6,23 @@ IN: regexp.combinators.tests
 : strings ( -- regexp )
     { "foo" "bar" "baz" } <any-of> ;
 
-[ t t t ] [ "foo" "bar" "baz" [ strings matches? ] tri@ ] unit-test
-[ f f f ] [ "food" "ibar" "ba" [ strings matches? ] tri@ ] unit-test
+{ t t t } [ "foo" "bar" "baz" [ strings matches? ] tri@ ] unit-test
+{ f f f } [ "food" "ibar" "ba" [ strings matches? ] tri@ ] unit-test
 
 : conj ( -- regexp )
     { R' .*a' R' b.*' } <and> ;
 
-[ t ] [ "bljhasflsda" conj matches? ] unit-test
-[ f ] [ "bsdfdfs" conj matches? ] unit-test
-[ f ] [ "fsfa" conj matches? ] unit-test
+{ t } [ "bljhasflsda" conj matches? ] unit-test
+{ f } [ "bsdfdfs" conj matches? ] unit-test
+{ f } [ "fsfa" conj matches? ] unit-test
 
-[ f ] [ "bljhasflsda" conj <not> matches? ] unit-test
-[ t ] [ "bsdfdfs" conj <not> matches? ] unit-test
-[ t ] [ "fsfa" conj <not> matches? ] unit-test
+{ f } [ "bljhasflsda" conj <not> matches? ] unit-test
+{ t } [ "bsdfdfs" conj <not> matches? ] unit-test
+{ t } [ "fsfa" conj <not> matches? ] unit-test
 
-[ f f ] [ "" "hi" [ <nothing> matches? ] bi@ ] unit-test
-[ t t ] [ "" "hi" [ <nothing> <not> matches? ] bi@ ] unit-test
+{ f f } [ "" "hi" [ <nothing> matches? ] bi@ ] unit-test
+{ t t } [ "" "hi" [ <nothing> <not> matches? ] bi@ ] unit-test
 
-[ { t t t f } ] [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <zero-or-more> matches? ] map ] unit-test
-[ { f t t f } ] [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <one-or-more> matches? ] map ] unit-test
-[ { t t f f } ] [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <option> matches? ] map ] unit-test
+{ { t t t f } } [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <zero-or-more> matches? ] map ] unit-test
+{ { f t t f } } [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <one-or-more> matches? ] map ] unit-test
+{ { t t f f } } [ { "" "a" "aaaaa" "aab" } [ "a" <literal> <option> matches? ] map ] unit-test
index 8a018ea60ade42884b8990aa8a73f589285b60c9..fc80cc0ac36e3d228630e6f58e471fed8de149b7 100644 (file)
@@ -5,27 +5,27 @@ accessors regexp.transition-tables regexp.parser
 regexp.classes regexp.negation ;
 IN: regexp.minimize.tests
 
-[ t ] [ 1 2 H{ { { 1 2 } t } } same-partition? ] unit-test
-[ t ] [ 2 1 H{ { { 1 2 } t } } same-partition? ] unit-test
-[ f ] [ 2 3 H{ { { 1 2 } t } } same-partition? ] unit-test
+{ t } [ 1 2 H{ { { 1 2 } t } } same-partition? ] unit-test
+{ t } [ 2 1 H{ { { 1 2 } t } } same-partition? ] unit-test
+{ f } [ 2 3 H{ { { 1 2 } t } } same-partition? ] unit-test
 
-[ H{ { 1 1 } { 2 1 } { 3 3 } { 4 3 } } ]
+{ H{ { 1 1 } { 2 1 } { 3 3 } { 4 3 } } }
 [ { { 1 1 } { 1 2 } { 2 2 } { 3 3 } { 3 4 } { 4 4 } } [ t ] H{ } map>assoc partition>classes ] unit-test
 
-[ { { 1 2 } { 3 4 } } ] [ H{ { "elephant" 1 } { "tiger" 3 } } H{ { "elephant" 2 } { "tiger" 4 } } assemble-values ] unit-test
+{ { { 1 2 } { 3 4 } } } [ H{ { "elephant" 1 } { "tiger" 3 } } H{ { "elephant" 2 } { "tiger" 4 } } assemble-values ] unit-test
 
 : regexp-states ( string -- n )
     parse-regexp ast>dfa transitions>> assoc-size ;
 
-[ 3 ] [ "ab|ac" regexp-states ] unit-test
-[ 3 ] [ "a(b|c)" regexp-states ] unit-test
-[ 1 ] [ "((aa*)*)*" regexp-states ] unit-test
-[ 1 ] [ "a|((aa*)*)*" regexp-states ] unit-test
-[ 2 ] [ "ab|((aa*)*)*b" regexp-states ] unit-test
-[ 4 ] [ "ab|cd" regexp-states ] unit-test
-[ 1 ] [ "(?i:[a-z]*|[A-Z]*)" regexp-states ] unit-test
+{ 3 } [ "ab|ac" regexp-states ] unit-test
+{ 3 } [ "a(b|c)" regexp-states ] unit-test
+{ 1 } [ "((aa*)*)*" regexp-states ] unit-test
+{ 1 } [ "a|((aa*)*)*" regexp-states ] unit-test
+{ 2 } [ "ab|((aa*)*)*b" regexp-states ] unit-test
+{ 4 } [ "ab|cd" regexp-states ] unit-test
+{ 1 } [ "(?i:[a-z]*|[A-Z]*)" regexp-states ] unit-test
 
-[
+{
     T{ transition-table
         { transitions H{
             { 0 H{ { CHAR: a 1 } { CHAR: b 1 } } }
@@ -36,7 +36,7 @@ IN: regexp.minimize.tests
         { start-state 0 }
         { final-states HS{ 3 } }
     }
-] [
+} [
     T{ transition-table
         { transitions H{
             { 0 H{ { CHAR: a 1 } { CHAR: b 4 } } }
@@ -54,5 +54,5 @@ IN: regexp.minimize.tests
 
 [ [ ] [ ] while-changes ] must-infer
 
-[ H{ { T{ or-class f { 2 1 } } 3 } { 4 5 } } ]
+{ H{ { T{ or-class f { 2 1 } } 3 } { 4 5 } } }
 [ H{ { 1 3 } { 2 3 } { 4 5 } } combine-state-transitions ] unit-test
index f5c389985dd2ffabfc0adea84ed41ae7d66783aa..452026278ccacccbf8151bd11f55013442fb615a 100644 (file)
@@ -3,7 +3,7 @@
 USING: tools.test regexp.negation regexp.transition-tables regexp.classes ;
 IN: regexp.negation.tests
 
-[
+{
     ! R/ |[^a]|.+/
     T{ transition-table
         { transitions H{
@@ -14,7 +14,7 @@ IN: regexp.negation.tests
         { start-state 0 }
         { final-states HS{ 0 -1 } }
     }
-] [
+} [
     ! R/ a/
     T{ transition-table
         { transitions H{
index d53f50c6d113f320cd6ac69c153e1e6367fb5966..2d981c8c2ca7edc9fc8206d935bdf3a92e9edb12 100644 (file)
@@ -2,575 +2,575 @@ USING: arrays regexp tools.test kernel sequences regexp.parser
 regexp.private eval strings multiline accessors ;
 IN: regexp-tests
 
-[ f ] [ "b" "a*" <regexp> matches? ] unit-test
-[ t ] [ "" "a*" <regexp> matches? ] unit-test
-[ t ] [ "a" "a*" <regexp> matches? ] unit-test
-[ t ] [ "aaaaaaa" "a*"  <regexp> matches? ] unit-test
-[ f ] [ "ab" "a*" <regexp> matches? ] unit-test
-
-[ t ] [ "abc" "abc" <regexp> matches? ] unit-test
-[ t ] [ "a" "a|b|c" <regexp> matches? ] unit-test
-[ t ] [ "b" "a|b|c" <regexp> matches? ] unit-test
-[ t ] [ "c" "a|b|c" <regexp> matches? ] unit-test
-[ f ] [ "c" "d|e|f" <regexp> matches? ] unit-test
-
-[ t ] [ "b" "|b" <regexp> matches? ] unit-test
-[ t ] [ "b" "b|" <regexp> matches? ] unit-test
-[ t ] [ "" "b|" <regexp> matches? ] unit-test
-[ t ] [ "" "b|" <regexp> matches? ] unit-test
-[ t ] [ "" "|" <regexp> matches? ] unit-test
-[ t ] [ "" "|||||||" <regexp> matches? ] unit-test
-
-[ f ] [ "aa" "a|b|c" <regexp> matches? ] unit-test
-[ f ] [ "bb" "a|b|c" <regexp> matches? ] unit-test
-[ f ] [ "cc" "a|b|c" <regexp> matches? ] unit-test
-[ f ] [ "cc" "d|e|f" <regexp> matches? ] unit-test
-
-[ f ] [ "" "a+" <regexp> matches? ] unit-test
-[ t ] [ "a" "a+" <regexp> matches? ] unit-test
-[ t ] [ "aa" "a+" <regexp> matches? ] unit-test
-
-[ t ] [ "" "a?" <regexp> matches? ] unit-test
-[ t ] [ "a" "a?" <regexp> matches? ] unit-test
-[ f ] [ "aa" "a?" <regexp> matches? ] unit-test
-
-[ f ] [ "" "." <regexp> matches? ] unit-test
-[ t ] [ "a" "." <regexp> matches? ] unit-test
-[ t ] [ "." "." <regexp> matches? ] unit-test
+{ f } [ "b" "a*" <regexp> matches? ] unit-test
+{ t } [ "" "a*" <regexp> matches? ] unit-test
+{ t } [ "a" "a*" <regexp> matches? ] unit-test
+{ t } [ "aaaaaaa" "a*"  <regexp> matches? ] unit-test
+{ f } [ "ab" "a*" <regexp> matches? ] unit-test
+
+{ t } [ "abc" "abc" <regexp> matches? ] unit-test
+{ t } [ "a" "a|b|c" <regexp> matches? ] unit-test
+{ t } [ "b" "a|b|c" <regexp> matches? ] unit-test
+{ t } [ "c" "a|b|c" <regexp> matches? ] unit-test
+{ f } [ "c" "d|e|f" <regexp> matches? ] unit-test
+
+{ t } [ "b" "|b" <regexp> matches? ] unit-test
+{ t } [ "b" "b|" <regexp> matches? ] unit-test
+{ t } [ "" "b|" <regexp> matches? ] unit-test
+{ t } [ "" "b|" <regexp> matches? ] unit-test
+{ t } [ "" "|" <regexp> matches? ] unit-test
+{ t } [ "" "|||||||" <regexp> matches? ] unit-test
+
+{ f } [ "aa" "a|b|c" <regexp> matches? ] unit-test
+{ f } [ "bb" "a|b|c" <regexp> matches? ] unit-test
+{ f } [ "cc" "a|b|c" <regexp> matches? ] unit-test
+{ f } [ "cc" "d|e|f" <regexp> matches? ] unit-test
+
+{ f } [ "" "a+" <regexp> matches? ] unit-test
+{ t } [ "a" "a+" <regexp> matches? ] unit-test
+{ t } [ "aa" "a+" <regexp> matches? ] unit-test
+
+{ t } [ "" "a?" <regexp> matches? ] unit-test
+{ t } [ "a" "a?" <regexp> matches? ] unit-test
+{ f } [ "aa" "a?" <regexp> matches? ] unit-test
+
+{ f } [ "" "." <regexp> matches? ] unit-test
+{ t } [ "a" "." <regexp> matches? ] unit-test
+{ t } [ "." "." <regexp> matches? ] unit-test
 
 ! Dotall mode -- when on, . matches newlines.
 ! Off by default.
-[ f ] [ "\n" "." <regexp> matches? ] unit-test
-[ t ] [ "\n" "(?s:.)" <regexp> matches? ] unit-test
-[ t ] [ "\n" R/ ./s matches? ] unit-test
-[ f ] [ "\n\n" "(?s:.)." <regexp> matches? ] unit-test
-
-[ f ] [ "" ".+" <regexp> matches? ] unit-test
-[ t ] [ "a" ".+" <regexp> matches? ] unit-test
-[ t ] [ "ab" ".+" <regexp> matches? ] unit-test
-
-[ t ] [ " " "[\\s]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[\\s]" <regexp> matches? ] unit-test
-[ f ] [ " " "[\\S]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[\\S]" <regexp> matches? ] unit-test
-[ f ] [ " " "[\\w]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[\\w]" <regexp> matches? ] unit-test
-[ t ] [ " " "[\\W]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[\\W]" <regexp> matches? ] unit-test
-
-[ t ] [ "/" "\\/" <regexp> matches? ] unit-test
-
-[ t ] [ "a" R' a'i matches? ] unit-test
-
-[ t ] [ "" "a|b*|c+|d?" <regexp> matches? ] unit-test
-[ t ] [ "a" "a|b*|c+|d?" <regexp> matches? ] unit-test
-[ t ] [ "c" "a|b*|c+|d?" <regexp> matches? ] unit-test
-[ t ] [ "cc" "a|b*|c+|d?" <regexp> matches? ] unit-test
-[ f ] [ "ccd" "a|b*|c+|d?" <regexp> matches? ] unit-test
-[ t ] [ "d" "a|b*|c+|d?" <regexp> matches? ] unit-test
-
-[ t ] [ "foo" "foo|bar" <regexp> matches? ] unit-test
-[ t ] [ "bar" "foo|bar" <regexp> matches? ] unit-test
-[ f ] [ "foobar" "foo|bar" <regexp> matches? ] unit-test
-
-[ f ] [ "" "(a)" <regexp> matches? ] unit-test
-[ t ] [ "a" "(a)" <regexp> matches? ] unit-test
-[ f ] [ "aa" "(a)" <regexp> matches? ] unit-test
-[ t ] [ "aa" "(a*)" <regexp> matches? ] unit-test
-
-[ f ] [ "aababaaabbac" "(a|b)+" <regexp> matches? ] unit-test
-[ t ] [ "ababaaabba" "(a|b)+" <regexp> matches? ] unit-test
-
-[ f ] [ "" "a{1}" <regexp> matches? ] unit-test
-[ t ] [ "a" "a{1}" <regexp> matches? ] unit-test
-[ f ] [ "aa" "a{1}" <regexp> matches? ] unit-test
-
-[ f ] [ "a" "a{2,}" <regexp> matches? ] unit-test
-[ t ] [ "aaa" "a{2,}" <regexp> matches? ] unit-test
-[ t ] [ "aaaa" "a{2,}" <regexp> matches? ] unit-test
-[ t ] [ "aaaaa" "a{2,}" <regexp> matches? ] unit-test
-
-[ t ] [ "" "a{,2}" <regexp> matches? ] unit-test
-[ t ] [ "a" "a{,2}" <regexp> matches? ] unit-test
-[ t ] [ "aa" "a{,2}" <regexp> matches? ] unit-test
-[ f ] [ "aaa" "a{,2}" <regexp> matches? ] unit-test
-[ f ] [ "aaaa" "a{,2}" <regexp> matches? ] unit-test
-[ f ] [ "aaaaa" "a{,2}" <regexp> matches? ] unit-test
-
-[ f ] [ "" "a{1,3}" <regexp> matches? ] unit-test
-[ t ] [ "a" "a{1,3}" <regexp> matches? ] unit-test
-[ t ] [ "aa" "a{1,3}" <regexp> matches? ] unit-test
-[ t ] [ "aaa" "a{1,3}" <regexp> matches? ] unit-test
-[ f ] [ "aaaa" "a{1,3}" <regexp> matches? ] unit-test
-
-[ f ] [ "" "[a]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[a]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[abc]" <regexp> matches? ] unit-test
-[ f ] [ "b" "[a]" <regexp> matches? ] unit-test
-[ f ] [ "d" "[abc]" <regexp> matches? ] unit-test
-[ t ] [ "ab" "[abc]{1,2}" <regexp> matches? ] unit-test
-[ f ] [ "abc" "[abc]{1,2}" <regexp> matches? ] unit-test
-
-[ f ] [ "" "[^a]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[^a]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[^abc]" <regexp> matches? ] unit-test
-[ t ] [ "b" "[^a]" <regexp> matches? ] unit-test
-[ t ] [ "d" "[^abc]" <regexp> matches? ] unit-test
-[ f ] [ "ab" "[^abc]{1,2}" <regexp> matches? ] unit-test
-[ f ] [ "abc" "[^abc]{1,2}" <regexp> matches? ] unit-test
-
-[ t ] [ "]" "[]]" <regexp> matches? ] unit-test
-[ f ] [ "]" "[^]]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^]]" <regexp> matches? ] unit-test
+{ f } [ "\n" "." <regexp> matches? ] unit-test
+{ t } [ "\n" "(?s:.)" <regexp> matches? ] unit-test
+{ t } [ "\n" R/ ./s matches? ] unit-test
+{ f } [ "\n\n" "(?s:.)." <regexp> matches? ] unit-test
+
+{ f } [ "" ".+" <regexp> matches? ] unit-test
+{ t } [ "a" ".+" <regexp> matches? ] unit-test
+{ t } [ "ab" ".+" <regexp> matches? ] unit-test
+
+{ t } [ " " "[\\s]" <regexp> matches? ] unit-test
+{ f } [ "a" "[\\s]" <regexp> matches? ] unit-test
+{ f } [ " " "[\\S]" <regexp> matches? ] unit-test
+{ t } [ "a" "[\\S]" <regexp> matches? ] unit-test
+{ f } [ " " "[\\w]" <regexp> matches? ] unit-test
+{ t } [ "a" "[\\w]" <regexp> matches? ] unit-test
+{ t } [ " " "[\\W]" <regexp> matches? ] unit-test
+{ f } [ "a" "[\\W]" <regexp> matches? ] unit-test
+
+{ t } [ "/" "\\/" <regexp> matches? ] unit-test
+
+{ t } [ "a" R' a'i matches? ] unit-test
+
+{ t } [ "" "a|b*|c+|d?" <regexp> matches? ] unit-test
+{ t } [ "a" "a|b*|c+|d?" <regexp> matches? ] unit-test
+{ t } [ "c" "a|b*|c+|d?" <regexp> matches? ] unit-test
+{ t } [ "cc" "a|b*|c+|d?" <regexp> matches? ] unit-test
+{ f } [ "ccd" "a|b*|c+|d?" <regexp> matches? ] unit-test
+{ t } [ "d" "a|b*|c+|d?" <regexp> matches? ] unit-test
+
+{ t } [ "foo" "foo|bar" <regexp> matches? ] unit-test
+{ t } [ "bar" "foo|bar" <regexp> matches? ] unit-test
+{ f } [ "foobar" "foo|bar" <regexp> matches? ] unit-test
+
+{ f } [ "" "(a)" <regexp> matches? ] unit-test
+{ t } [ "a" "(a)" <regexp> matches? ] unit-test
+{ f } [ "aa" "(a)" <regexp> matches? ] unit-test
+{ t } [ "aa" "(a*)" <regexp> matches? ] unit-test
+
+{ f } [ "aababaaabbac" "(a|b)+" <regexp> matches? ] unit-test
+{ t } [ "ababaaabba" "(a|b)+" <regexp> matches? ] unit-test
+
+{ f } [ "" "a{1}" <regexp> matches? ] unit-test
+{ t } [ "a" "a{1}" <regexp> matches? ] unit-test
+{ f } [ "aa" "a{1}" <regexp> matches? ] unit-test
+
+{ f } [ "a" "a{2,}" <regexp> matches? ] unit-test
+{ t } [ "aaa" "a{2,}" <regexp> matches? ] unit-test
+{ t } [ "aaaa" "a{2,}" <regexp> matches? ] unit-test
+{ t } [ "aaaaa" "a{2,}" <regexp> matches? ] unit-test
+
+{ t } [ "" "a{,2}" <regexp> matches? ] unit-test
+{ t } [ "a" "a{,2}" <regexp> matches? ] unit-test
+{ t } [ "aa" "a{,2}" <regexp> matches? ] unit-test
+{ f } [ "aaa" "a{,2}" <regexp> matches? ] unit-test
+{ f } [ "aaaa" "a{,2}" <regexp> matches? ] unit-test
+{ f } [ "aaaaa" "a{,2}" <regexp> matches? ] unit-test
+
+{ f } [ "" "a{1,3}" <regexp> matches? ] unit-test
+{ t } [ "a" "a{1,3}" <regexp> matches? ] unit-test
+{ t } [ "aa" "a{1,3}" <regexp> matches? ] unit-test
+{ t } [ "aaa" "a{1,3}" <regexp> matches? ] unit-test
+{ f } [ "aaaa" "a{1,3}" <regexp> matches? ] unit-test
+
+{ f } [ "" "[a]" <regexp> matches? ] unit-test
+{ t } [ "a" "[a]" <regexp> matches? ] unit-test
+{ t } [ "a" "[abc]" <regexp> matches? ] unit-test
+{ f } [ "b" "[a]" <regexp> matches? ] unit-test
+{ f } [ "d" "[abc]" <regexp> matches? ] unit-test
+{ t } [ "ab" "[abc]{1,2}" <regexp> matches? ] unit-test
+{ f } [ "abc" "[abc]{1,2}" <regexp> matches? ] unit-test
+
+{ f } [ "" "[^a]" <regexp> matches? ] unit-test
+{ f } [ "a" "[^a]" <regexp> matches? ] unit-test
+{ f } [ "a" "[^abc]" <regexp> matches? ] unit-test
+{ t } [ "b" "[^a]" <regexp> matches? ] unit-test
+{ t } [ "d" "[^abc]" <regexp> matches? ] unit-test
+{ f } [ "ab" "[^abc]{1,2}" <regexp> matches? ] unit-test
+{ f } [ "abc" "[^abc]{1,2}" <regexp> matches? ] unit-test
+
+{ t } [ "]" "[]]" <regexp> matches? ] unit-test
+{ f } [ "]" "[^]]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^]]" <regexp> matches? ] unit-test
 
 [ "^" "[^]" <regexp> matches? ] must-fail
-[ t ] [ "^" "[]^]" <regexp> matches? ] unit-test
-[ t ] [ "]" "[]^]" <regexp> matches? ] unit-test
-
-[ t ] [ "[" "[[]" <regexp> matches? ] unit-test
-[ f ] [ "^" "[^^]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^^]" <regexp> matches? ] unit-test
-
-[ t ] [ "-" "[-]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[-]" <regexp> matches? ] unit-test
-[ f ] [ "-" "[^-]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^-]" <regexp> matches? ] unit-test
-
-[ t ] [ "-" "[-a]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[-a]" <regexp> matches? ] unit-test
-[ t ] [ "-" "[a-]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[a-]" <regexp> matches? ] unit-test
-[ f ] [ "b" "[a-]" <regexp> matches? ] unit-test
-[ f ] [ "-" "[^-]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^-]" <regexp> matches? ] unit-test
-
-[ f ] [ "-" "[a-c]" <regexp> matches? ] unit-test
-[ t ] [ "-" "[^a-c]" <regexp> matches? ] unit-test
-[ t ] [ "b" "[a-c]" <regexp> matches? ] unit-test
-[ f ] [ "b" "[^a-c]" <regexp> matches? ] unit-test
-
-[ t ] [ "-" "[a-c-]" <regexp> matches? ] unit-test
-[ f ] [ "-" "[^a-c-]" <regexp> matches? ] unit-test
-
-[ t ] [ "\\" "[\\\\]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[\\\\]" <regexp> matches? ] unit-test
-[ f ] [ "\\" "[^\\\\]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^\\\\]" <regexp> matches? ] unit-test
-
-[ t ] [ "0" "[\\d]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[\\d]" <regexp> matches? ] unit-test
-[ f ] [ "0" "[^\\d]" <regexp> matches? ] unit-test
-[ t ] [ "a" "[^\\d]" <regexp> matches? ] unit-test
-
-[ t ] [ "a" "[a-z]{1,}|[A-Z]{2,4}|b*|c|(f|g)*" <regexp> matches? ] unit-test
-[ t ] [ "a" "[a-z]{1,2}|[A-Z]{3,3}|b*|c|(f|g)*" <regexp> matches? ] unit-test
-[ t ] [ "a" "[a-z]{1,2}|[A-Z]{3,3}" <regexp> matches? ] unit-test
-
-[ t ] [ "1000" "\\d{4,6}" <regexp> matches? ] unit-test
-[ t ] [ "1000" "[0-9]{4,6}" <regexp> matches? ] unit-test
-
-[ t ] [ "abc" "\\p{Lower}{3}" <regexp> matches? ] unit-test
-[ f ] [ "ABC" "\\p{Lower}{3}" <regexp> matches? ] unit-test
-[ t ] [ "ABC" "\\p{Upper}{3}" <regexp> matches? ] unit-test
-[ f ] [ "abc" "\\p{Upper}{3}" <regexp> matches? ] unit-test
-[ f ] [ "abc" "[\\p{Upper}]{3}" <regexp> matches? ] unit-test
-[ t ] [ "ABC" "[\\p{Upper}]{3}" <regexp> matches? ] unit-test
-
-[ t ] [ "" "\\Q\\E" <regexp> matches? ] unit-test
-[ f ] [ "a" "\\Q\\E" <regexp> matches? ] unit-test
-[ t ] [ "|*+" "\\Q|*+\\E" <regexp> matches? ] unit-test
-[ f ] [ "abc" "\\Q|*+\\E" <regexp> matches? ] unit-test
-[ t ] [ "s" "\\Qs\\E" <regexp> matches? ] unit-test
-
-[ t ] [ "S" "\\0123" <regexp> matches? ] unit-test
-[ t ] [ "SXY" "\\0123XY" <regexp> matches? ] unit-test
-[ t ] [ "x" "\\x78" <regexp> matches? ] unit-test
-[ f ] [ "y" "\\x78" <regexp> matches? ] unit-test
-[ t ] [ "x" "\\u0078" <regexp> matches? ] unit-test
-[ f ] [ "y" "\\u0078" <regexp> matches? ] unit-test
-
-[ t ] [ "ab" "a+b" <regexp> matches? ] unit-test
-[ f ] [ "b" "a+b" <regexp> matches? ] unit-test
-[ t ] [ "aab" "a+b" <regexp> matches? ] unit-test
-[ f ] [ "abb" "a+b" <regexp> matches? ] unit-test
-
-[ t ] [ "abbbb" "ab*" <regexp> matches? ] unit-test
-[ t ] [ "a" "ab*" <regexp> matches? ] unit-test
-[ f ] [ "abab" "ab*" <regexp> matches? ] unit-test
-
-[ f ] [ "x" "\\." <regexp> matches? ] unit-test
-[ t ] [ "." "\\." <regexp> matches? ] unit-test
-
-[ t ] [ "aaaab" "a+ab" <regexp> matches? ] unit-test
-[ f ] [ "aaaxb" "a+ab" <regexp> matches? ] unit-test
-[ t ] [ "aaacb" "a+cb" <regexp> matches? ] unit-test
-
-[ "aaa" ] [ "aaacb" "a*" <regexp> first-match >string ] unit-test
-[ "aa" ] [ "aaacb" "aa?" <regexp> first-match >string ] unit-test
-
-[ t ] [ "aaa" R/ AAA/i matches? ] unit-test
-[ f ] [ "aax" R/ AAA/i matches? ] unit-test
-[ t ] [ "aaa" R/ A*/i matches? ] unit-test
-[ f ] [ "aaba" R/ A*/i matches? ] unit-test
-[ t ] [ "b" R/ [AB]/i matches? ] unit-test
-[ f ] [ "c" R/ [AB]/i matches? ] unit-test
-[ t ] [ "c" R/ [A-Z]/i matches? ] unit-test
-[ f ] [ "3" R/ [A-Z]/i matches? ] unit-test
-
-[ t ] [ "a" "(?i:a)" <regexp> matches? ] unit-test
-[ t ] [ "a" "(?i:a)" <regexp> matches? ] unit-test
-[ t ] [ "A" "(?i:a)" <regexp> matches? ] unit-test
-[ t ] [ "A" "(?i:a)" <regexp> matches? ] unit-test
-
-[ t ] [ "a" R/ (?-i:a)/i matches? ] unit-test
-[ t ] [ "a" R/ (?-i:a)/i matches? ] unit-test
-[ f ] [ "A" R/ (?-i:a)/i matches? ] unit-test
-[ f ] [ "A" R/ (?-i:a)/i matches? ] unit-test
-
-[ f ] [ "A" "[a-z]" <regexp> matches? ] unit-test
-[ t ] [ "A" R/ [a-z]/i matches? ] unit-test
-
-[ f ] [ "A" "\\p{Lower}" <regexp> matches? ] unit-test
-[ t ] [ "A" R/ \p{Lower}/i matches? ] unit-test
-
-[ t ] [ "abc" R/ abc/r matches? ] unit-test
-[ t ] [ "abc" R/ a[bB][cC]/r matches? ] unit-test
-
-[ t ] [ 3 "xabc" R/ abc/r match-index-from >boolean ] unit-test
-[ t ] [ 3 "xabc" R/ a[bB][cC]/r match-index-from >boolean ] unit-test
-
-[ 2 ] [ 0 "llamallol" R/ ll/ match-index-from ] unit-test
-[ 5 ] [ 8 "lolmallol" R/ lol/r match-index-from ] unit-test
-
-[ t ] [ "s@f" "[a-z.-]@[a-z]" <regexp> matches? ] unit-test
-[ f ] [ "a" "[a-z.-]@[a-z]" <regexp> matches? ] unit-test
-[ t ] [ ".o" "\\.[a-z]" <regexp> matches? ] unit-test
-
-[ t ] [ "abc*" "[^\\*]*\\*" <regexp> matches? ] unit-test
-[ t ] [ "bca" "[^a]*a" <regexp> matches? ] unit-test
-
-[ ] [
+{ t } [ "^" "[]^]" <regexp> matches? ] unit-test
+{ t } [ "]" "[]^]" <regexp> matches? ] unit-test
+
+{ t } [ "[" "[[]" <regexp> matches? ] unit-test
+{ f } [ "^" "[^^]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^^]" <regexp> matches? ] unit-test
+
+{ t } [ "-" "[-]" <regexp> matches? ] unit-test
+{ f } [ "a" "[-]" <regexp> matches? ] unit-test
+{ f } [ "-" "[^-]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^-]" <regexp> matches? ] unit-test
+
+{ t } [ "-" "[-a]" <regexp> matches? ] unit-test
+{ t } [ "a" "[-a]" <regexp> matches? ] unit-test
+{ t } [ "-" "[a-]" <regexp> matches? ] unit-test
+{ t } [ "a" "[a-]" <regexp> matches? ] unit-test
+{ f } [ "b" "[a-]" <regexp> matches? ] unit-test
+{ f } [ "-" "[^-]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^-]" <regexp> matches? ] unit-test
+
+{ f } [ "-" "[a-c]" <regexp> matches? ] unit-test
+{ t } [ "-" "[^a-c]" <regexp> matches? ] unit-test
+{ t } [ "b" "[a-c]" <regexp> matches? ] unit-test
+{ f } [ "b" "[^a-c]" <regexp> matches? ] unit-test
+
+{ t } [ "-" "[a-c-]" <regexp> matches? ] unit-test
+{ f } [ "-" "[^a-c-]" <regexp> matches? ] unit-test
+
+{ t } [ "\\" "[\\\\]" <regexp> matches? ] unit-test
+{ f } [ "a" "[\\\\]" <regexp> matches? ] unit-test
+{ f } [ "\\" "[^\\\\]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^\\\\]" <regexp> matches? ] unit-test
+
+{ t } [ "0" "[\\d]" <regexp> matches? ] unit-test
+{ f } [ "a" "[\\d]" <regexp> matches? ] unit-test
+{ f } [ "0" "[^\\d]" <regexp> matches? ] unit-test
+{ t } [ "a" "[^\\d]" <regexp> matches? ] unit-test
+
+{ t } [ "a" "[a-z]{1,}|[A-Z]{2,4}|b*|c|(f|g)*" <regexp> matches? ] unit-test
+{ t } [ "a" "[a-z]{1,2}|[A-Z]{3,3}|b*|c|(f|g)*" <regexp> matches? ] unit-test
+{ t } [ "a" "[a-z]{1,2}|[A-Z]{3,3}" <regexp> matches? ] unit-test
+
+{ t } [ "1000" "\\d{4,6}" <regexp> matches? ] unit-test
+{ t } [ "1000" "[0-9]{4,6}" <regexp> matches? ] unit-test
+
+{ t } [ "abc" "\\p{Lower}{3}" <regexp> matches? ] unit-test
+{ f } [ "ABC" "\\p{Lower}{3}" <regexp> matches? ] unit-test
+{ t } [ "ABC" "\\p{Upper}{3}" <regexp> matches? ] unit-test
+{ f } [ "abc" "\\p{Upper}{3}" <regexp> matches? ] unit-test
+{ f } [ "abc" "[\\p{Upper}]{3}" <regexp> matches? ] unit-test
+{ t } [ "ABC" "[\\p{Upper}]{3}" <regexp> matches? ] unit-test
+
+{ t } [ "" "\\Q\\E" <regexp> matches? ] unit-test
+{ f } [ "a" "\\Q\\E" <regexp> matches? ] unit-test
+{ t } [ "|*+" "\\Q|*+\\E" <regexp> matches? ] unit-test
+{ f } [ "abc" "\\Q|*+\\E" <regexp> matches? ] unit-test
+{ t } [ "s" "\\Qs\\E" <regexp> matches? ] unit-test
+
+{ t } [ "S" "\\0123" <regexp> matches? ] unit-test
+{ t } [ "SXY" "\\0123XY" <regexp> matches? ] unit-test
+{ t } [ "x" "\\x78" <regexp> matches? ] unit-test
+{ f } [ "y" "\\x78" <regexp> matches? ] unit-test
+{ t } [ "x" "\\u0078" <regexp> matches? ] unit-test
+{ f } [ "y" "\\u0078" <regexp> matches? ] unit-test
+
+{ t } [ "ab" "a+b" <regexp> matches? ] unit-test
+{ f } [ "b" "a+b" <regexp> matches? ] unit-test
+{ t } [ "aab" "a+b" <regexp> matches? ] unit-test
+{ f } [ "abb" "a+b" <regexp> matches? ] unit-test
+
+{ t } [ "abbbb" "ab*" <regexp> matches? ] unit-test
+{ t } [ "a" "ab*" <regexp> matches? ] unit-test
+{ f } [ "abab" "ab*" <regexp> matches? ] unit-test
+
+{ f } [ "x" "\\." <regexp> matches? ] unit-test
+{ t } [ "." "\\." <regexp> matches? ] unit-test
+
+{ t } [ "aaaab" "a+ab" <regexp> matches? ] unit-test
+{ f } [ "aaaxb" "a+ab" <regexp> matches? ] unit-test
+{ t } [ "aaacb" "a+cb" <regexp> matches? ] unit-test
+
+{ "aaa" } [ "aaacb" "a*" <regexp> first-match >string ] unit-test
+{ "aa" } [ "aaacb" "aa?" <regexp> first-match >string ] unit-test
+
+{ t } [ "aaa" R/ AAA/i matches? ] unit-test
+{ f } [ "aax" R/ AAA/i matches? ] unit-test
+{ t } [ "aaa" R/ A*/i matches? ] unit-test
+{ f } [ "aaba" R/ A*/i matches? ] unit-test
+{ t } [ "b" R/ [AB]/i matches? ] unit-test
+{ f } [ "c" R/ [AB]/i matches? ] unit-test
+{ t } [ "c" R/ [A-Z]/i matches? ] unit-test
+{ f } [ "3" R/ [A-Z]/i matches? ] unit-test
+
+{ t } [ "a" "(?i:a)" <regexp> matches? ] unit-test
+{ t } [ "a" "(?i:a)" <regexp> matches? ] unit-test
+{ t } [ "A" "(?i:a)" <regexp> matches? ] unit-test
+{ t } [ "A" "(?i:a)" <regexp> matches? ] unit-test
+
+{ t } [ "a" R/ (?-i:a)/i matches? ] unit-test
+{ t } [ "a" R/ (?-i:a)/i matches? ] unit-test
+{ f } [ "A" R/ (?-i:a)/i matches? ] unit-test
+{ f } [ "A" R/ (?-i:a)/i matches? ] unit-test
+
+{ f } [ "A" "[a-z]" <regexp> matches? ] unit-test
+{ t } [ "A" R/ [a-z]/i matches? ] unit-test
+
+{ f } [ "A" "\\p{Lower}" <regexp> matches? ] unit-test
+{ t } [ "A" R/ \p{Lower}/i matches? ] unit-test
+
+{ t } [ "abc" R/ abc/r matches? ] unit-test
+{ t } [ "abc" R/ a[bB][cC]/r matches? ] unit-test
+
+{ t } [ 3 "xabc" R/ abc/r match-index-from >boolean ] unit-test
+{ t } [ 3 "xabc" R/ a[bB][cC]/r match-index-from >boolean ] unit-test
+
+{ 2 } [ 0 "llamallol" R/ ll/ match-index-from ] unit-test
+{ 5 } [ 8 "lolmallol" R/ lol/r match-index-from ] unit-test
+
+{ t } [ "s@f" "[a-z.-]@[a-z]" <regexp> matches? ] unit-test
+{ f } [ "a" "[a-z.-]@[a-z]" <regexp> matches? ] unit-test
+{ t } [ ".o" "\\.[a-z]" <regexp> matches? ] unit-test
+
+{ t } [ "abc*" "[^\\*]*\\*" <regexp> matches? ] unit-test
+{ t } [ "bca" "[^a]*a" <regexp> matches? ] unit-test
+
+{ } [
     "(0[lL]?|[1-9]\\d{0,9}(\\d{0,9}[lL])?|0[xX]\\p{XDigit}{1,8}(\\p{XDigit}{0,8}[lL])?|0[0-7]{1,11}([0-7]{0,11}[lL])?|([0-9]+\\.[0-9]*|\\.[0-9]+)([eE][+-]?[0-9]+)?[fFdD]?|[0-9]+([eE][+-]?[0-9]+[fFdD]?|([eE][+-]?[0-9]+)?[fFdD]))"
     <regexp> drop
 ] unit-test
 
-[ ] [ "(\\$[\\p{XDigit}]|[\\p{Digit}])" <regexp> drop ] unit-test
+{ } [ "(\\$[\\p{XDigit}]|[\\p{Digit}])" <regexp> drop ] unit-test
 
 ! Comment inside a regular expression
-[ t ] [ "ac" "a(?#boo)c" <regexp> matches? ] unit-test
+{ t } [ "ac" "a(?#boo)c" <regexp> matches? ] unit-test
 
-[ ] [ "USING: regexp kernel ; R' -{3}[+]{1,6}(?:!!)?\\s' drop" eval( -- ) ] unit-test
+{ } [ "USING: regexp kernel ; R' -{3}[+]{1,6}(?:!!)?\\s' drop" eval( -- ) ] unit-test
 
-[ ] [ "USING: regexp kernel ; R' (ftp|http|https)://(\\w+:?\\w*@)?(\\S+)(:[0-9]+)?(/|/([\\w#!:.?+=&%@!\\-/]))?' drop" eval( -- ) ] unit-test
+{ } [ "USING: regexp kernel ; R' (ftp|http|https)://(\\w+:?\\w*@)?(\\S+)(:[0-9]+)?(/|/([\\w#!:.?+=&%@!\\-/]))?' drop" eval( -- ) ] unit-test
 
-[ ] [ "USING: regexp kernel ; R' \\*[^\s*][^*]*\\*' drop" eval( -- ) ] unit-test
+{ } [ "USING: regexp kernel ; R' \\*[^\s*][^*]*\\*' drop" eval( -- ) ] unit-test
 
-[ "ab" ] [ "ab" "(a|ab)(bc)?" <regexp> first-match >string ] unit-test
-[ "abc" ] [ "abc" "(a|ab)(bc)?" <regexp> first-match >string ] unit-test
+{ "ab" } [ "ab" "(a|ab)(bc)?" <regexp> first-match >string ] unit-test
+{ "abc" } [ "abc" "(a|ab)(bc)?" <regexp> first-match >string ] unit-test
 
-[ "ab" ] [ "ab" "(ab|a)(bc)?" <regexp> first-match >string ] unit-test
-[ "abc" ] [ "abc" "(ab|a)(bc)?" <regexp> first-match >string ] unit-test
+{ "ab" } [ "ab" "(ab|a)(bc)?" <regexp> first-match >string ] unit-test
+{ "abc" } [ "abc" "(ab|a)(bc)?" <regexp> first-match >string ] unit-test
 
-[ "b" ] [ "aaaaaaaaaaaaaaaaaaaaaaab" "((a*)*b)*b" <regexp> first-match >string ] unit-test
+{ "b" } [ "aaaaaaaaaaaaaaaaaaaaaaab" "((a*)*b)*b" <regexp> first-match >string ] unit-test
 
-[ T{ slice { from 5 } { to 10 } { seq "hellohello" } } ]
+{ T{ slice { from 5 } { to 10 } { seq "hellohello" } } }
 [ "hellohello" R/ hello/r first-match ]
 unit-test
 
-[ { "1" "2" "3" "4" } ]
+{ { "1" "2" "3" "4" } }
 [ "1ABC2DEF3GHI4" R/ [A-Z]+/ re-split [ >string ] map ] unit-test
 
-[ { "1" "2" "3" "4" "" } ]
+{ { "1" "2" "3" "4" "" } }
 [ "1ABC2DEF3GHI4JK" R/ [A-Z]+/ re-split [ >string ] map ] unit-test
 
-[ { "" } ] [ "" R/ =/ re-split [ >string ] map ] unit-test
+{ { "" } } [ "" R/ =/ re-split [ >string ] map ] unit-test
 
-[ { "a" "" } ] [ "a=" R/ =/ re-split [ >string ] map ] unit-test
+{ { "a" "" } } [ "a=" R/ =/ re-split [ >string ] map ] unit-test
 
-[ { "he" "o" } ] [ "hello" R/ l+/ re-split [ >string ] map ] unit-test
+{ { "he" "o" } } [ "hello" R/ l+/ re-split [ >string ] map ] unit-test
 
-[ { "h" "llo" } ] [ "hello" R/ e+/ re-split [ >string ] map ] unit-test
+{ { "h" "llo" } } [ "hello" R/ e+/ re-split [ >string ] map ] unit-test
 
-[ { "" "h" "" "l" "l" "o" "" } ] [ "hello" R/ e*/ re-split [ >string ] map ] unit-test
+{ { "" "h" "" "l" "l" "o" "" } } [ "hello" R/ e*/ re-split [ >string ] map ] unit-test
 
-[ { { 0 5 "hellohello" } { 5 10 "hellohello" } } ]
+{ { { 0 5 "hellohello" } { 5 10 "hellohello" } } }
 [ "hellohello" R/ hello/ [ 3array ] map-matches ]
 unit-test
 
-[ { { 5 10 "hellohello" } { 0 5 "hellohello" } } ]
+{ { { 5 10 "hellohello" } { 0 5 "hellohello" } } }
 [ "hellohello" R/ hello/r [ 3array ] map-matches ]
 unit-test
 
-[ { "ABC" "DEF" "GHI" } ]
+{ { "ABC" "DEF" "GHI" } }
 [ "1ABC2DEF3GHI4" R/ [A-Z]+/ all-matching-subseqs ] unit-test
 
-[ { "ee" "e" } ] [ "heellohello" R/ e+/ all-matching-subseqs ] unit-test
-[ { "e" "ee" } ] [ "heellohello" R/ e+/r all-matching-subseqs ] unit-test
+{ { "ee" "e" } } [ "heellohello" R/ e+/ all-matching-subseqs ] unit-test
+{ { "e" "ee" } } [ "heellohello" R/ e+/r all-matching-subseqs ] unit-test
 
-[ 3 ] [ "1ABC2DEF3GHI4" R/ [A-Z]+/ count-matches ] unit-test
+{ 3 } [ "1ABC2DEF3GHI4" R/ [A-Z]+/ count-matches ] unit-test
 
-[ 3 ] [ "1ABC2DEF3GHI4" R/ [A-Z]+/r count-matches ] unit-test
+{ 3 } [ "1ABC2DEF3GHI4" R/ [A-Z]+/r count-matches ] unit-test
 
-[ 1 ] [ "" R/ / count-matches ] unit-test
+{ 1 } [ "" R/ / count-matches ] unit-test
 
-[ 1 ] [ "" R/ /r count-matches ] unit-test
+{ 1 } [ "" R/ /r count-matches ] unit-test
 
-[ 0 ] [ "123" R/ [A-Z]+/ count-matches ] unit-test
+{ 0 } [ "123" R/ [A-Z]+/ count-matches ] unit-test
 
-[ 0 ] [ "123" R/ [A-Z]+/r count-matches ] unit-test
+{ 0 } [ "123" R/ [A-Z]+/r count-matches ] unit-test
 
-[ 6 ] [ "hello" R/ e*/ count-matches ] unit-test
+{ 6 } [ "hello" R/ e*/ count-matches ] unit-test
 
-[ 6 ] [ "hello" R/ e*/r count-matches ] unit-test
+{ 6 } [ "hello" R/ e*/r count-matches ] unit-test
 
-[ 11 ] [ "hello world" R/ l*/ count-matches ] unit-test
+{ 11 } [ "hello world" R/ l*/ count-matches ] unit-test
 
-[ 11 ] [ "hello world" R/ l*/r count-matches ] unit-test
+{ 11 } [ "hello world" R/ l*/r count-matches ] unit-test
 
-[ 1 ] [ "hello" R/ e+/ count-matches ] unit-test
+{ 1 } [ "hello" R/ e+/ count-matches ] unit-test
 
-[ 2 ] [ "hello world" R/ l+/r count-matches ] unit-test
+{ 2 } [ "hello world" R/ l+/r count-matches ] unit-test
 
-[ "1.2.3.4." ] [ "1ABC2DEF3GHI4JK" R/ [A-Z]+/ "." re-replace ] unit-test
-[ "XhXXlXlXoX XwXoXrXlXdX" ] [ "hello world" R/ e*/ "X" re-replace ] unit-test
-[ "-- title --" ] [ "== title ==" R/ =/ "-" re-replace ] unit-test
+{ "1.2.3.4." } [ "1ABC2DEF3GHI4JK" R/ [A-Z]+/ "." re-replace ] unit-test
+{ "XhXXlXlXoX XwXoXrXlXdX" } [ "hello world" R/ e*/ "X" re-replace ] unit-test
+{ "-- title --" } [ "== title ==" R/ =/ "-" re-replace ] unit-test
 
-[ "" ] [ "ab" "a(?!b)" <regexp> first-match >string ] unit-test
-[ "a" ] [ "ac" "a(?!b)" <regexp> first-match >string ] unit-test
-[ t ] [ "fxxbar" ".{3}(?!foo)bar" <regexp> matches? ] unit-test
-[ t ] [ "foobar" ".{3}(?!foo)bar" <regexp> matches? ] unit-test
-[ t ] [ "fxxbar" "(?!foo).{3}bar" <regexp> matches? ] unit-test
-[ f ] [ "foobar" "(?!foo).{3}bar" <regexp> matches? ] unit-test
-[ "a" ] [ "ab" "a(?=b)(?=b)" <regexp> first-match >string ] unit-test
-[ "a" ] [ "ba" "(?<=b)(?<=b)a" <regexp> first-match >string ] unit-test
-[ "a" ] [ "cab" "(?<=c)a(?=b)" <regexp> first-match >string ] unit-test
+{ "" } [ "ab" "a(?!b)" <regexp> first-match >string ] unit-test
+{ "a" } [ "ac" "a(?!b)" <regexp> first-match >string ] unit-test
+{ t } [ "fxxbar" ".{3}(?!foo)bar" <regexp> matches? ] unit-test
+{ t } [ "foobar" ".{3}(?!foo)bar" <regexp> matches? ] unit-test
+{ t } [ "fxxbar" "(?!foo).{3}bar" <regexp> matches? ] unit-test
+{ f } [ "foobar" "(?!foo).{3}bar" <regexp> matches? ] unit-test
+{ "a" } [ "ab" "a(?=b)(?=b)" <regexp> first-match >string ] unit-test
+{ "a" } [ "ba" "(?<=b)(?<=b)a" <regexp> first-match >string ] unit-test
+{ "a" } [ "cab" "(?<=c)a(?=b)" <regexp> first-match >string ] unit-test
 
-[ 3 ] [ "foobar" "foo(?=bar)" <regexp> first-match length ] unit-test
-[ f ] [ "foobxr" "foo(?=bar)" <regexp> first-match ] unit-test
+{ 3 } [ "foobar" "foo(?=bar)" <regexp> first-match length ] unit-test
+{ f } [ "foobxr" "foo(?=bar)" <regexp> first-match ] unit-test
 
 ! Bug in parsing word
-[ t ] [ "a" R' a' matches? ] unit-test
+{ t } [ "a" R' a' matches? ] unit-test
 
 ! Testing negation
-[ f ] [ "a" R/ (?~a)/ matches? ] unit-test
-[ t ] [ "aa" R/ (?~a)/ matches? ] unit-test
-[ t ] [ "bb" R/ (?~a)/ matches? ] unit-test
-[ t ] [ "" R/ (?~a)/ matches? ] unit-test
+{ f } [ "a" R/ (?~a)/ matches? ] unit-test
+{ t } [ "aa" R/ (?~a)/ matches? ] unit-test
+{ t } [ "bb" R/ (?~a)/ matches? ] unit-test
+{ t } [ "" R/ (?~a)/ matches? ] unit-test
 
-[ f ] [ "a" R/ (?~a+|b)/ matches? ] unit-test
-[ f ] [ "aa" R/ (?~a+|b)/ matches? ] unit-test
-[ t ] [ "bb" R/ (?~a+|b)/ matches? ] unit-test
-[ f ] [ "b" R/ (?~a+|b)/ matches? ] unit-test
-[ t ] [ "" R/ (?~a+|b)/ matches? ] unit-test
+{ f } [ "a" R/ (?~a+|b)/ matches? ] unit-test
+{ f } [ "aa" R/ (?~a+|b)/ matches? ] unit-test
+{ t } [ "bb" R/ (?~a+|b)/ matches? ] unit-test
+{ f } [ "b" R/ (?~a+|b)/ matches? ] unit-test
+{ t } [ "" R/ (?~a+|b)/ matches? ] unit-test
 
 ! Intersecting classes
-[ t ] [ "ab" R/ ac|\p{Lower}b/ matches? ] unit-test
-[ t ] [ "ab" R/ ac|[a-z]b/ matches? ] unit-test
-[ t ] [ "ac" R/ ac|\p{Lower}b/ matches? ] unit-test
-[ t ] [ "ac" R/ ac|[a-z]b/ matches? ] unit-test
-[ t ] [ "ac" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
-[ t ] [ "ab" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
-[ t ] [ "πb" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
-[ f ] [ "πc" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
-[ f ] [ "Ab" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
-
-[ t ] [ "aaaa" R/ .*a./ matches? ] unit-test
-
-[ f ] [ "ab" R/ (?~ac|\p{Lower}b)/ matches? ] unit-test
-[ f ] [ "ab" R/ (?~ac|[a-z]b)/ matches? ] unit-test
-[ f ] [ "ac" R/ (?~ac|\p{Lower}b)/ matches? ] unit-test
-[ f ] [ "ac" R/ (?~ac|[a-z]b)/ matches? ] unit-test
-[ f ] [ "ac" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
-[ f ] [ "ab" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
-[ f ] [ "πb" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
-[ t ] [ "πc" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
-[ t ] [ "Ab" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
+{ t } [ "ab" R/ ac|\p{Lower}b/ matches? ] unit-test
+{ t } [ "ab" R/ ac|[a-z]b/ matches? ] unit-test
+{ t } [ "ac" R/ ac|\p{Lower}b/ matches? ] unit-test
+{ t } [ "ac" R/ ac|[a-z]b/ matches? ] unit-test
+{ t } [ "ac" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
+{ t } [ "ab" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
+{ t } [ "πb" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
+{ f } [ "πc" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
+{ f } [ "Ab" R/ [a-zA-Z]c|\p{Lower}b/ matches? ] unit-test
+
+{ t } [ "aaaa" R/ .*a./ matches? ] unit-test
+
+{ f } [ "ab" R/ (?~ac|\p{Lower}b)/ matches? ] unit-test
+{ f } [ "ab" R/ (?~ac|[a-z]b)/ matches? ] unit-test
+{ f } [ "ac" R/ (?~ac|\p{Lower}b)/ matches? ] unit-test
+{ f } [ "ac" R/ (?~ac|[a-z]b)/ matches? ] unit-test
+{ f } [ "ac" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
+{ f } [ "ab" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
+{ f } [ "πb" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
+{ t } [ "πc" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
+{ t } [ "Ab" R/ (?~[a-zA-Z]c|\p{Lower}b)/ matches? ] unit-test
 
 ! DFA is compiled when needed, or when literal
-[ regexp-initial-word ] [ "foo" <regexp> dfa>> ] unit-test
-[ f ] [ R/ foo/ dfa>> \ regexp-initial-word = ] unit-test
-
-[ t ] [ "a" R/ ^a/ matches? ] unit-test
-[ f ] [ "\na" R/ ^a/ matches? ] unit-test
-[ f ] [ "\r\na" R/ ^a/ matches? ] unit-test
-[ f ] [ "\ra" R/ ^a/ matches? ] unit-test
-
-[ 1 ] [ "a" R/ ^a/ count-matches ] unit-test
-[ 0 ] [ "\na" R/ ^a/ count-matches ] unit-test
-[ 0 ] [ "\r\na" R/ ^a/ count-matches ] unit-test
-[ 0 ] [ "\ra" R/ ^a/ count-matches ] unit-test
-
-[ t ] [ "a" R/ a$/ matches? ] unit-test
-[ f ] [ "a\n" R/ a$/ matches? ] unit-test
-[ f ] [ "a\r" R/ a$/ matches? ] unit-test
-[ f ] [ "a\r\n" R/ a$/ matches? ] unit-test
-
-[ 1 ] [ "a" R/ a$/ count-matches ] unit-test
-[ 0 ] [ "a\n" R/ a$/ count-matches ] unit-test
-[ 0 ] [ "a\r" R/ a$/ count-matches ] unit-test
-[ 0 ] [ "a\r\n" R/ a$/ count-matches ] unit-test
-
-[ t ] [ "a" R/ a$|b$/ matches? ] unit-test
-[ t ] [ "b" R/ a$|b$/ matches? ] unit-test
-[ f ] [ "ab" R/ a$|b$/ matches? ] unit-test
-[ t ] [ "ba" R/ ba$|b$/ matches? ] unit-test
-
-[ t ] [ "a" R/ \Aa/ matches? ] unit-test
-[ f ] [ "\na" R/ \Aaa/ matches? ] unit-test
-[ f ] [ "\r\na" R/ \Aa/ matches? ] unit-test
-[ f ] [ "\ra" R/ \Aa/ matches? ] unit-test
-
-[ t ] [ "a" R/ \Aa/m matches? ] unit-test
-[ f ] [ "\na" R/ \Aaa/m matches? ] unit-test
-[ f ] [ "\r\na" R/ \Aa/m matches? ] unit-test
-[ f ] [ "\ra" R/ \Aa/m matches? ] unit-test
-[ 0 ] [ "\ra" R/ \Aa/m count-matches ] unit-test
-
-[ f ] [ "\r\n\n\n\nam" R/ ^am/m matches? ] unit-test
-[ 1 ] [ "\r\n\n\n\nam" R/ ^am/m count-matches ] unit-test
-
-[ t ] [ "a" R/ \Aa\z/m matches? ] unit-test
-[ f ] [ "a\n" R/ \Aa\z/m matches? ] unit-test
-
-[ f ] [ "a\r\n" R/ \Aa\Z/m matches? ] unit-test
-[ f ] [ "a\n" R/ \Aa\Z/m matches? ] unit-test
-[ 1 ] [ "a\r\n" R/ \Aa\Z/m count-matches ] unit-test
-[ 1 ] [ "a\n" R/ \Aa\Z/m count-matches ] unit-test
-
-[ t ] [ "a" R/ \Aa\Z/m matches? ] unit-test
-[ f ] [ "\na" R/ \Aaa\Z/m matches? ] unit-test
-[ f ] [ "\r\na" R/ \Aa\Z/m matches? ] unit-test
-[ f ] [ "\ra" R/ \Aa\Z/m matches? ] unit-test
-
-[ 1 ] [ "a" R/ \Aa\Z/m count-matches ] unit-test
-[ 0 ] [ "\na" R/ \Aaa\Z/m count-matches ] unit-test
-[ 0 ] [ "\r\na" R/ \Aa\Z/m count-matches ] unit-test
-[ 0 ] [ "\ra" R/ \Aa\Z/m count-matches ] unit-test
-
-[ t ] [ "a" R/ ^a/m matches? ] unit-test
-[ f ] [ "\na" R/ ^a/m matches? ] unit-test
-[ 1 ] [ "\na" R/ ^a/m count-matches ] unit-test
-[ 1 ] [ "\r\na" R/ ^a/m count-matches ] unit-test
-[ 1 ] [ "\ra" R/ ^a/m count-matches ] unit-test
-
-[ t ] [ "a" R/ a$/m matches? ] unit-test
-[ f ] [ "a\n" R/ a$/m matches? ] unit-test
-[ 1 ] [ "a\n" R/ a$/m count-matches ] unit-test
-[ 1 ] [ "a\r" R/ a$/m count-matches ] unit-test
-[ 1 ] [ "a\r\n" R/ a$/m count-matches ] unit-test
-
-[ f ] [ "foobxr" "foo\\z" <regexp> first-match ] unit-test
-[ 3 ] [ "foo" "foo\\z" <regexp> first-match length ] unit-test
-
-[ t ] [ "a foo b" R/ foo/ re-contains? ] unit-test
-[ f ] [ "a bar b" R/ foo/ re-contains? ] unit-test
-[ t ] [ "foo" R/ foo/ re-contains? ] unit-test
-
-[ { "foo" "fxx" "fab" } ] [ "fab fxx foo" R/ f../r all-matching-subseqs ] unit-test
-
-[ t ] [ "foo" "\\bfoo\\b" <regexp> re-contains? ] unit-test
-[ t ] [ "afoob" "\\Bfoo\\B" <regexp> re-contains? ] unit-test
-[ f ] [ "afoob" "\\bfoo\\b" <regexp> re-contains? ] unit-test
-[ f ] [ "foo" "\\Bfoo\\B" <regexp> re-contains? ] unit-test
-
-[ 3 ] [ "foo bar" "foo\\b" <regexp> first-match length ] unit-test
-[ f ] [ "fooxbar" "foo\\b" <regexp> re-contains? ] unit-test
-[ t ] [ "foo" "foo\\b" <regexp> re-contains? ] unit-test
-[ t ] [ "foo bar" "foo\\b bar" <regexp> matches? ] unit-test
-[ f ] [ "fooxbar" "foo\\bxbar" <regexp> matches? ] unit-test
-[ f ] [ "foo" "foo\\bbar" <regexp> matches? ] unit-test
-
-[ f ] [ "foo bar" "foo\\B" <regexp> re-contains? ] unit-test
-[ 3 ] [ "fooxbar" "foo\\B" <regexp> first-match length ] unit-test
-[ f ] [ "foo" "foo\\B" <regexp> re-contains? ] unit-test
-[ f ] [ "foo bar" "foo\\B bar" <regexp> matches? ] unit-test
-[ t ] [ "fooxbar" "foo\\Bxbar" <regexp> matches? ] unit-test
-[ f ] [ "foo" "foo\\Bbar" <regexp> matches? ] unit-test
-
-[ t ] [ "ab" "a(?=b*)" <regexp> re-contains? ] unit-test
-[ t ] [ "abbbbbc" "a(?=b*c)" <regexp> re-contains? ] unit-test
-[ f ] [ "abbbbb" "a(?=b*c)" <regexp> re-contains? ] unit-test
-[ t ] [ "ab" "a(?=b*)" <regexp> re-contains? ] unit-test
-
-[ "az" ] [ "baz" "(?<=b)(az)" <regexp> first-match >string ] unit-test
-[ f ] [ "chaz" "(?<=b)(az)" <regexp> re-contains? ] unit-test
-[ "a" ] [ "cbaz" "(?<=b*)a" <regexp> first-match >string ] unit-test
-[ f ] [ "baz" "a(?<=b)" <regexp> re-contains? ] unit-test
-
-[ f ] [ "baz" "(?<!b)a" <regexp> re-contains? ] unit-test
-[ t ] [ "caz" "(?<!b)a" <regexp> re-contains? ] unit-test
-
-[ "abcd" ] [ "abcdefg" "a(?=bcdefg)bcd" <regexp> first-match >string ] unit-test
-[ t ] [ "abcdefg" "a(?#bcdefg)bcd" <regexp> re-contains? ] unit-test
-[ t ] [ "abcdefg" "a(?:bcdefg)" <regexp> matches? ] unit-test
-
-[ 3 ] [ "caba" "(?<=b)a" <regexp> first-match from>> ] unit-test
-
-[ t ] [ "\ra" R/ .^a/ms matches? ] unit-test
-[ f ] [ "\ra" R/ .^a/mds matches? ] unit-test
-[ t ] [ "\na" R/ .^a/ms matches? ] unit-test
-[ t ] [ "\na" R/ .^a/mds matches? ] unit-test
-
-[ t ] [ "a\r" R/ a$./ms matches? ] unit-test
-[ f ] [ "a\r" R/ a$./mds matches? ] unit-test
-[ t ] [ "a\n" R/ a$./ms matches? ] unit-test
-[ t ] [ "a\n" R/ a$./mds matches? ] unit-test
+{ regexp-initial-word } [ "foo" <regexp> dfa>> ] unit-test
+{ f } [ R/ foo/ dfa>> \ regexp-initial-word = ] unit-test
+
+{ t } [ "a" R/ ^a/ matches? ] unit-test
+{ f } [ "\na" R/ ^a/ matches? ] unit-test
+{ f } [ "\r\na" R/ ^a/ matches? ] unit-test
+{ f } [ "\ra" R/ ^a/ matches? ] unit-test
+
+{ 1 } [ "a" R/ ^a/ count-matches ] unit-test
+{ 0 } [ "\na" R/ ^a/ count-matches ] unit-test
+{ 0 } [ "\r\na" R/ ^a/ count-matches ] unit-test
+{ 0 } [ "\ra" R/ ^a/ count-matches ] unit-test
+
+{ t } [ "a" R/ a$/ matches? ] unit-test
+{ f } [ "a\n" R/ a$/ matches? ] unit-test
+{ f } [ "a\r" R/ a$/ matches? ] unit-test
+{ f } [ "a\r\n" R/ a$/ matches? ] unit-test
+
+{ 1 } [ "a" R/ a$/ count-matches ] unit-test
+{ 0 } [ "a\n" R/ a$/ count-matches ] unit-test
+{ 0 } [ "a\r" R/ a$/ count-matches ] unit-test
+{ 0 } [ "a\r\n" R/ a$/ count-matches ] unit-test
+
+{ t } [ "a" R/ a$|b$/ matches? ] unit-test
+{ t } [ "b" R/ a$|b$/ matches? ] unit-test
+{ f } [ "ab" R/ a$|b$/ matches? ] unit-test
+{ t } [ "ba" R/ ba$|b$/ matches? ] unit-test
+
+{ t } [ "a" R/ \Aa/ matches? ] unit-test
+{ f } [ "\na" R/ \Aaa/ matches? ] unit-test
+{ f } [ "\r\na" R/ \Aa/ matches? ] unit-test
+{ f } [ "\ra" R/ \Aa/ matches? ] unit-test
+
+{ t } [ "a" R/ \Aa/m matches? ] unit-test
+{ f } [ "\na" R/ \Aaa/m matches? ] unit-test
+{ f } [ "\r\na" R/ \Aa/m matches? ] unit-test
+{ f } [ "\ra" R/ \Aa/m matches? ] unit-test
+{ 0 } [ "\ra" R/ \Aa/m count-matches ] unit-test
+
+{ f } [ "\r\n\n\n\nam" R/ ^am/m matches? ] unit-test
+{ 1 } [ "\r\n\n\n\nam" R/ ^am/m count-matches ] unit-test
+
+{ t } [ "a" R/ \Aa\z/m matches? ] unit-test
+{ f } [ "a\n" R/ \Aa\z/m matches? ] unit-test
+
+{ f } [ "a\r\n" R/ \Aa\Z/m matches? ] unit-test
+{ f } [ "a\n" R/ \Aa\Z/m matches? ] unit-test
+{ 1 } [ "a\r\n" R/ \Aa\Z/m count-matches ] unit-test
+{ 1 } [ "a\n" R/ \Aa\Z/m count-matches ] unit-test
+
+{ t } [ "a" R/ \Aa\Z/m matches? ] unit-test
+{ f } [ "\na" R/ \Aaa\Z/m matches? ] unit-test
+{ f } [ "\r\na" R/ \Aa\Z/m matches? ] unit-test
+{ f } [ "\ra" R/ \Aa\Z/m matches? ] unit-test
+
+{ 1 } [ "a" R/ \Aa\Z/m count-matches ] unit-test
+{ 0 } [ "\na" R/ \Aaa\Z/m count-matches ] unit-test
+{ 0 } [ "\r\na" R/ \Aa\Z/m count-matches ] unit-test
+{ 0 } [ "\ra" R/ \Aa\Z/m count-matches ] unit-test
+
+{ t } [ "a" R/ ^a/m matches? ] unit-test
+{ f } [ "\na" R/ ^a/m matches? ] unit-test
+{ 1 } [ "\na" R/ ^a/m count-matches ] unit-test
+{ 1 } [ "\r\na" R/ ^a/m count-matches ] unit-test
+{ 1 } [ "\ra" R/ ^a/m count-matches ] unit-test
+
+{ t } [ "a" R/ a$/m matches? ] unit-test
+{ f } [ "a\n" R/ a$/m matches? ] unit-test
+{ 1 } [ "a\n" R/ a$/m count-matches ] unit-test
+{ 1 } [ "a\r" R/ a$/m count-matches ] unit-test
+{ 1 } [ "a\r\n" R/ a$/m count-matches ] unit-test
+
+{ f } [ "foobxr" "foo\\z" <regexp> first-match ] unit-test
+{ 3 } [ "foo" "foo\\z" <regexp> first-match length ] unit-test
+
+{ t } [ "a foo b" R/ foo/ re-contains? ] unit-test
+{ f } [ "a bar b" R/ foo/ re-contains? ] unit-test
+{ t } [ "foo" R/ foo/ re-contains? ] unit-test
+
+{ { "foo" "fxx" "fab" } } [ "fab fxx foo" R/ f../r all-matching-subseqs ] unit-test
+
+{ t } [ "foo" "\\bfoo\\b" <regexp> re-contains? ] unit-test
+{ t } [ "afoob" "\\Bfoo\\B" <regexp> re-contains? ] unit-test
+{ f } [ "afoob" "\\bfoo\\b" <regexp> re-contains? ] unit-test
+{ f } [ "foo" "\\Bfoo\\B" <regexp> re-contains? ] unit-test
+
+{ 3 } [ "foo bar" "foo\\b" <regexp> first-match length ] unit-test
+{ f } [ "fooxbar" "foo\\b" <regexp> re-contains? ] unit-test
+{ t } [ "foo" "foo\\b" <regexp> re-contains? ] unit-test
+{ t } [ "foo bar" "foo\\b bar" <regexp> matches? ] unit-test
+{ f } [ "fooxbar" "foo\\bxbar" <regexp> matches? ] unit-test
+{ f } [ "foo" "foo\\bbar" <regexp> matches? ] unit-test
+
+{ f } [ "foo bar" "foo\\B" <regexp> re-contains? ] unit-test
+{ 3 } [ "fooxbar" "foo\\B" <regexp> first-match length ] unit-test
+{ f } [ "foo" "foo\\B" <regexp> re-contains? ] unit-test
+{ f } [ "foo bar" "foo\\B bar" <regexp> matches? ] unit-test
+{ t } [ "fooxbar" "foo\\Bxbar" <regexp> matches? ] unit-test
+{ f } [ "foo" "foo\\Bbar" <regexp> matches? ] unit-test
+
+{ t } [ "ab" "a(?=b*)" <regexp> re-contains? ] unit-test
+{ t } [ "abbbbbc" "a(?=b*c)" <regexp> re-contains? ] unit-test
+{ f } [ "abbbbb" "a(?=b*c)" <regexp> re-contains? ] unit-test
+{ t } [ "ab" "a(?=b*)" <regexp> re-contains? ] unit-test
+
+{ "az" } [ "baz" "(?<=b)(az)" <regexp> first-match >string ] unit-test
+{ f } [ "chaz" "(?<=b)(az)" <regexp> re-contains? ] unit-test
+{ "a" } [ "cbaz" "(?<=b*)a" <regexp> first-match >string ] unit-test
+{ f } [ "baz" "a(?<=b)" <regexp> re-contains? ] unit-test
+
+{ f } [ "baz" "(?<!b)a" <regexp> re-contains? ] unit-test
+{ t } [ "caz" "(?<!b)a" <regexp> re-contains? ] unit-test
+
+{ "abcd" } [ "abcdefg" "a(?=bcdefg)bcd" <regexp> first-match >string ] unit-test
+{ t } [ "abcdefg" "a(?#bcdefg)bcd" <regexp> re-contains? ] unit-test
+{ t } [ "abcdefg" "a(?:bcdefg)" <regexp> matches? ] unit-test
+
+{ 3 } [ "caba" "(?<=b)a" <regexp> first-match from>> ] unit-test
+
+{ t } [ "\ra" R/ .^a/ms matches? ] unit-test
+{ f } [ "\ra" R/ .^a/mds matches? ] unit-test
+{ t } [ "\na" R/ .^a/ms matches? ] unit-test
+{ t } [ "\na" R/ .^a/mds matches? ] unit-test
+
+{ t } [ "a\r" R/ a$./ms matches? ] unit-test
+{ f } [ "a\r" R/ a$./mds matches? ] unit-test
+{ t } [ "a\n" R/ a$./ms matches? ] unit-test
+{ t } [ "a\n" R/ a$./mds matches? ] unit-test
 
 ! Unicode categories
-[ t ] [ "a" R/ \p{L}/ matches? ] unit-test
-[ t ] [ "A" R/ \p{L}/ matches? ] unit-test
-[ f ] [ " " R/ \p{L}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{L}/ matches? ] unit-test
-[ f ] [ "A" R/ \P{L}/ matches? ] unit-test
-[ t ] [ " " R/ \P{L}/ matches? ] unit-test
-
-[ t ] [ "a" R/ \p{Ll}/ matches? ] unit-test
-[ f ] [ "A" R/ \p{Ll}/ matches? ] unit-test
-[ f ] [ " " R/ \p{Ll}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{Ll}/ matches? ] unit-test
-[ t ] [ "A" R/ \P{Ll}/ matches? ] unit-test
-[ t ] [ " " R/ \P{Ll}/ matches? ] unit-test
-
-[ t ] [ "a" R/ \p{script=Latin}/ matches? ] unit-test
-[ f ] [ " " R/ \p{script=Latin}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{script=Latin}/ matches? ] unit-test
-[ t ] [ " " R/ \P{script=Latin}/ matches? ] unit-test
+{ t } [ "a" R/ \p{L}/ matches? ] unit-test
+{ t } [ "A" R/ \p{L}/ matches? ] unit-test
+{ f } [ " " R/ \p{L}/ matches? ] unit-test
+{ f } [ "a" R/ \P{L}/ matches? ] unit-test
+{ f } [ "A" R/ \P{L}/ matches? ] unit-test
+{ t } [ " " R/ \P{L}/ matches? ] unit-test
+
+{ t } [ "a" R/ \p{Ll}/ matches? ] unit-test
+{ f } [ "A" R/ \p{Ll}/ matches? ] unit-test
+{ f } [ " " R/ \p{Ll}/ matches? ] unit-test
+{ f } [ "a" R/ \P{Ll}/ matches? ] unit-test
+{ t } [ "A" R/ \P{Ll}/ matches? ] unit-test
+{ t } [ " " R/ \P{Ll}/ matches? ] unit-test
+
+{ t } [ "a" R/ \p{script=Latin}/ matches? ] unit-test
+{ f } [ " " R/ \p{script=Latin}/ matches? ] unit-test
+{ f } [ "a" R/ \P{script=Latin}/ matches? ] unit-test
+{ t } [ " " R/ \P{script=Latin}/ matches? ] unit-test
 
 ! These should be case-insensitive
-[ f ] [ " " R/ \p{l}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{l}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{ll}/ matches? ] unit-test
-[ t ] [ " " R/ \P{LL}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{sCriPt = latin}/ matches? ] unit-test
-[ t ] [ " " R/ \P{SCRIPT = laTIn}/ matches? ] unit-test
+{ f } [ " " R/ \p{l}/ matches? ] unit-test
+{ f } [ "a" R/ \P{l}/ matches? ] unit-test
+{ f } [ "a" R/ \P{ll}/ matches? ] unit-test
+{ t } [ " " R/ \P{LL}/ matches? ] unit-test
+{ f } [ "a" R/ \P{sCriPt = latin}/ matches? ] unit-test
+{ t } [ " " R/ \P{SCRIPT = laTIn}/ matches? ] unit-test
 
 ! Logical operators
-[ t ] [ "a" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
-[ t ] [ "π" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
-[ t ] [ "A" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
-[ f ] [ "3" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
-
-[ t ] [ "a" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
-[ t ] [ "π" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
-[ t ] [ "A" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
-[ f ] [ "3" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
-
-[ t ] [ "a" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
-[ f ] [ "π" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
-[ f ] [ "A" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
-[ f ] [ "3" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
-
-[ f ] [ "a" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
-[ t ] [ "π" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
-[ t ] [ "A" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
-[ f ] [ "3" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
-
-[ f ] [ "a" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
-[ f ] [ "π" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
-[ t ] [ "A" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
-[ f ] [ "3" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
-
-[ t ] [ " " R/ \P{alpha}/ matches? ] unit-test
-[ f ] [ "" R/ \P{alpha}/ matches? ] unit-test
-[ f ] [ "a " R/ \P{alpha}/ matches? ] unit-test
-[ f ] [ "a" R/ \P{alpha}/ matches? ] unit-test
+{ t } [ "a" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
+{ t } [ "π" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
+{ t } [ "A" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
+{ f } [ "3" R/ [\p{script=latin}\p{lower}]/ matches? ] unit-test
+
+{ t } [ "a" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
+{ t } [ "π" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
+{ t } [ "A" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
+{ f } [ "3" R/ [\p{script=latin}||\p{lower}]/ matches? ] unit-test
+
+{ t } [ "a" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
+{ f } [ "π" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
+{ f } [ "A" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
+{ f } [ "3" R/ [\p{script=latin}&&\p{lower}]/ matches? ] unit-test
+
+{ f } [ "a" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
+{ t } [ "π" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
+{ t } [ "A" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
+{ f } [ "3" R/ [\p{script=latin}~~\p{lower}]/ matches? ] unit-test
+
+{ f } [ "a" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
+{ f } [ "π" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
+{ t } [ "A" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
+{ f } [ "3" R/ [\p{script=latin}--\p{lower}]/ matches? ] unit-test
+
+{ t } [ " " R/ \P{alpha}/ matches? ] unit-test
+{ f } [ "" R/ \P{alpha}/ matches? ] unit-test
+{ f } [ "a " R/ \P{alpha}/ matches? ] unit-test
+{ f } [ "a" R/ \P{alpha}/ matches? ] unit-test
index c7ab7fafd9177081f2407468dc5ae2bf86184326..b43f513a947d5a9968b4fa347585fd228229b105 100644 (file)
@@ -1,43 +1,43 @@
 USING: arrays kernel math roman roman.private sequences tools.test ;
 
-[ "i" ] [ 1 >roman ] unit-test
-[ "ii" ] [ 2 >roman ] unit-test
-[ "iii" ] [ 3 >roman ] unit-test
-[ "iv" ] [ 4 >roman ] unit-test
-[ "v" ] [ 5 >roman ] unit-test
-[ "vi" ] [ 6 >roman ] unit-test
-[ "vii" ] [ 7 >roman ] unit-test
-[ "viii" ] [ 8 >roman ] unit-test
-[ "ix" ] [ 9 >roman ] unit-test
-[ "x" ] [ 10 >roman ] unit-test
-[ "mdclxvi" ] [ 1666 >roman ] unit-test
-[ "mmmcdxliv" ] [ 3444 >roman ] unit-test
-[ "mmmcmxcix" ] [ 3999 >roman ] unit-test
-[ "MMMCMXCIX" ] [ 3999 >ROMAN ] unit-test
-[ 3999 ] [ 3999 >ROMAN roman> ] unit-test
-[ 1 ] [ 1 >roman roman> ] unit-test
-[ 2 ] [ 2 >roman roman> ] unit-test
-[ 3 ] [ 3 >roman roman> ] unit-test
-[ 4 ] [ 4 >roman roman> ] unit-test
-[ 5 ] [ 5 >roman roman> ] unit-test
-[ 6 ] [ 6 >roman roman> ] unit-test
-[ 7 ] [ 7 >roman roman> ] unit-test
-[ 8 ] [ 8 >roman roman> ] unit-test
-[ 9 ] [ 9 >roman roman> ] unit-test
-[ 10 ] [ 10 >roman roman> ] unit-test
-[ 1666 ] [ 1666 >roman roman> ] unit-test
-[ 3444 ] [ 3444 >roman roman> ] unit-test
-[ 3999 ] [ 3999 >roman roman> ] unit-test
+{ "i" } [ 1 >roman ] unit-test
+{ "ii" } [ 2 >roman ] unit-test
+{ "iii" } [ 3 >roman ] unit-test
+{ "iv" } [ 4 >roman ] unit-test
+{ "v" } [ 5 >roman ] unit-test
+{ "vi" } [ 6 >roman ] unit-test
+{ "vii" } [ 7 >roman ] unit-test
+{ "viii" } [ 8 >roman ] unit-test
+{ "ix" } [ 9 >roman ] unit-test
+{ "x" } [ 10 >roman ] unit-test
+{ "mdclxvi" } [ 1666 >roman ] unit-test
+{ "mmmcdxliv" } [ 3444 >roman ] unit-test
+{ "mmmcmxcix" } [ 3999 >roman ] unit-test
+{ "MMMCMXCIX" } [ 3999 >ROMAN ] unit-test
+{ 3999 } [ 3999 >ROMAN roman> ] unit-test
+{ 1 } [ 1 >roman roman> ] unit-test
+{ 2 } [ 2 >roman roman> ] unit-test
+{ 3 } [ 3 >roman roman> ] unit-test
+{ 4 } [ 4 >roman roman> ] unit-test
+{ 5 } [ 5 >roman roman> ] unit-test
+{ 6 } [ 6 >roman roman> ] unit-test
+{ 7 } [ 7 >roman roman> ] unit-test
+{ 8 } [ 8 >roman roman> ] unit-test
+{ 9 } [ 9 >roman roman> ] unit-test
+{ 10 } [ 10 >roman roman> ] unit-test
+{ 1666 } [ 1666 >roman roman> ] unit-test
+{ 3444 } [ 3444 >roman roman> ] unit-test
+{ 3999 } [ 3999 >roman roman> ] unit-test
 [ 0 >roman ] must-fail
 [ 40000 >roman ] must-fail
-[ "vi" ] [ "iii" "iii"  roman+ ] unit-test
-[ "viii" ] [ "x" "ii"  roman- ] unit-test
-[ "ix" ] [ "iii" "iii"  roman* ] unit-test
-[ "i" ] [ "iii" "ii" roman/i ] unit-test
-[ "i" "ii" ] [ "v" "iii"  roman/mod ] unit-test
+{ "vi" } [ "iii" "iii"  roman+ ] unit-test
+{ "viii" } [ "x" "ii"  roman- ] unit-test
+{ "ix" } [ "iii" "iii"  roman* ] unit-test
+{ "i" } [ "iii" "ii" roman/i ] unit-test
+{ "i" "ii" } [ "v" "iii"  roman/mod ] unit-test
 [ "iii" "iii"  roman- ] must-fail
 
-[ 30 ] [ ROMAN: xxx ] unit-test
+{ 30 } [ ROMAN: xxx ] unit-test
 
 [ roman+ ] must-infer
 [ roman- ] must-infer
index 7c40c60f7a30931ecab4a5a045e70450dc145143..034a0a1dda62778945870be923d48f35cd5b1429 100644 (file)
@@ -4,28 +4,28 @@ kernel sequences words deques vocabs dlists ;
 
 <hashed-dlist> "h" set
 
-[ t ] [ "h" get deque-empty? ] unit-test
+{ t } [ "h" get deque-empty? ] unit-test
 
-[ ] [ 3 "h" get push-front* "1" set ] unit-test
-[ ] [ 1 "h" get push-front ] unit-test
-[ ] [ 3 "h" get push-front* "2" set ] unit-test
-[ ] [ 3 "h" get push-front* "3" set ] unit-test
-[ ] [ 7 "h" get push-front ] unit-test
+{ } [ 3 "h" get push-front* "1" set ] unit-test
+{ } [ 1 "h" get push-front ] unit-test
+{ } [ 3 "h" get push-front* "2" set ] unit-test
+{ } [ 3 "h" get push-front* "3" set ] unit-test
+{ } [ 7 "h" get push-front ] unit-test
 
-[ t ] [ "1" get "2" get eq? ] unit-test
-[ t ] [ "2" get "3" get eq? ] unit-test
+{ t } [ "1" get "2" get eq? ] unit-test
+{ t } [ "2" get "3" get eq? ] unit-test
 
-[ t ] [ 7 "h" get deque-member? ] unit-test
+{ t } [ 7 "h" get deque-member? ] unit-test
 
-[ 3 ] [ "1" get node-value ] unit-test
-[ ] [ "1" get "h" get delete-node ] unit-test
+{ 3 } [ "1" get node-value ] unit-test
+{ } [ "1" get "h" get delete-node ] unit-test
 
-[ 1 ] [ "h" get pop-back ] unit-test
-[ 7 ] [ "h" get pop-back ] unit-test
+{ 1 } [ "h" get pop-back ] unit-test
+{ 7 } [ "h" get pop-back ] unit-test
 
-[ f ] [ 7 "h" get deque-member? ] unit-test
+{ f } [ 7 "h" get deque-member? ] unit-test
 
-[ ] [
+{ } [
     <hashed-dlist>
     [ all-words swap [ push-front ] curry each ]
     [ [ drop ] slurp-deque ]
index 0005fb08fd02f923f96a63243aff67e3a0f1f29d..3e5366dde112e87cf219e71f4bad286c638cc0d7 100644 (file)
@@ -3,15 +3,15 @@ IN: see.tests
 
 CONSTANT: test-const 10
 
-[ "IN: see.tests\nCONSTANT: test-const 10 inline\n" ]
+{ "IN: see.tests\nCONSTANT: test-const 10 inline\n" }
 [ [ \ test-const see ] with-string-writer ] unit-test
 
 ALIAS: test-alias +
 
-[ "USING: math ;\nIN: see.tests\nALIAS: test-alias + inline\n" ]
+{ "USING: math ;\nIN: see.tests\nALIAS: test-alias + inline\n" }
 [ [ \ test-alias see ] with-string-writer ] unit-test
 
-[ "IN: see.tests ALIAS: test-alias ( x y -- z )" ]
+{ "IN: see.tests ALIAS: test-alias ( x y -- z )" }
 [ \ test-alias summary ] unit-test
 
-[ ] [ gensym see ] unit-test
+{ } [ gensym see ] unit-test
index b61befaa8f0a218c87b24de3ac5515478397a48d..b3f2c11042ec66c42d949f88c0402a194c9268da 100644 (file)
@@ -5,11 +5,11 @@ IN: sequences.complex-components.tests
 : test-array ( -- x )
     { C{ 1.0 2.0 } 3.0 C{ 5.0 6.0 } } <complex-components> ;
 
-[ 6 ] [ test-array length ] unit-test
+{ 6 } [ test-array length ] unit-test
 
-[ 1.0 ] [ test-array first  ] unit-test
-[ 2.0 ] [ test-array second ] unit-test
-[ 3.0 ] [ test-array third  ] unit-test
-[ 0   ] [ test-array fourth ] unit-test
+{ 1.0 } [ test-array first  ] unit-test
+{ 2.0 } [ test-array second ] unit-test
+{ 3.0 } [ test-array third  ] unit-test
+{ 0   } [ test-array fourth ] unit-test
 
-[ { 1.0 2.0 3.0 0 5.0 6.0 } ] [ test-array >array ] unit-test
+{ { 1.0 2.0 3.0 0 5.0 6.0 } } [ test-array >array ] unit-test
index 3f421bac10017bbee6019ef71cbc4e30b0f7e494..dae3ccc9a6608eb257042ea964765d88e2a03c14 100644 (file)
@@ -9,19 +9,19 @@ IN: sequences.complex.tests
 : odd-length-test-array ( -- x )
     float-array{ 1.0 2.0 3.0 4.0 5.0 } clone <complex-sequence> ;
 
-[ 2 ] [ test-array length ] unit-test
-[ 2 ] [ odd-length-test-array length ] unit-test
+{ 2 } [ test-array length ] unit-test
+{ 2 } [ odd-length-test-array length ] unit-test
 
-[ C{ 1.0 2.0 } ] [ test-array first ] unit-test
-[ C{ 3.0 4.0 } ] [ test-array second ] unit-test
+{ C{ 1.0 2.0 } } [ test-array first ] unit-test
+{ C{ 3.0 4.0 } } [ test-array second ] unit-test
 
-[ { C{ 1.0 2.0 } C{ 3.0 4.0 } } ]
+{ { C{ 1.0 2.0 } C{ 3.0 4.0 } } }
 [ test-array >array ] unit-test
 
-[ float-array{ 1.0 2.0 5.0 6.0 } ]
+{ float-array{ 1.0 2.0 5.0 6.0 } }
 [ test-array [ C{ 5.0 6.0 } 1 rot set-nth ] [ seq>> ] bi ]
 unit-test
 
-[ float-array{ 7.0 0.0 3.0 4.0 } ]
+{ float-array{ 7.0 0.0 3.0 4.0 } }
 [ test-array [ 7.0 0 rot set-nth ] [ seq>> ] bi ]
 unit-test
index fb9c440733ba658037b6926ba063a1052a8fbc7b..943ccd17030fd83e9a9b68165c3fcb1d68803b61 100644 (file)
@@ -1,4 +1,4 @@
 USING: sequences.cords strings tools.test kernel sequences ;
 IN: sequences.cords.tests
 
-[ "hello world" ] [ "hello" " world" cord-append dup like ] unit-test
+{ "hello world" } [ "hello" " world" cord-append dup like ] unit-test
index 5b6d8784af690fde3e0d831063ad4756a659c4d2..b96a51699a528bb70c70b75fe45276bba5775e23 100644 (file)
@@ -2,44 +2,44 @@ USING: sequences.deep kernel tools.test strings math arrays
 namespaces make sequences ;
 IN: sequences.deep.tests
 
-[ [ "hello" 3 4 swap ] ] [ [ { "hello" V{ 3 4 } } swap ] flatten ] unit-test
+{ [ "hello" 3 4 swap ] } [ [ { "hello" V{ 3 4 } } swap ] flatten ] unit-test
 
 { "ABC" } [ { { 65 } 66 { { 67 } } } "" flatten-as ] unit-test
 
-[ "foo" t ] [ { { "foo" } "bar" } [ string? ] (deep-find) ] unit-test
+{ "foo" t } [ { { "foo" } "bar" } [ string? ] (deep-find) ] unit-test
 
-[ f f ] [ { { "foo" } "bar" } [ number? ] (deep-find) ] unit-test
+{ f f } [ { { "foo" } "bar" } [ number? ] (deep-find) ] unit-test
 
-[ { { "foo" } "bar" } t ] [ { { "foo" } "bar" } [ array? ] (deep-find) ] unit-test
+{ { { "foo" } "bar" } t } [ { { "foo" } "bar" } [ array? ] (deep-find) ] unit-test
 
 : change-something ( seq -- newseq )
     dup array? [ "hi" suffix ] [ "hello" append ] if ;
 
-[ { { "heyhello" "hihello" } "hihello" } ]
+{ { { "heyhello" "hihello" } "hihello" } }
 [ "hey" 1array 1array [ change-something ] deep-map ] unit-test
 
-[ { { "heyhello" "hihello" } } ]
+{ { { "heyhello" "hihello" } } }
 [ "hey" 1array 1array [ change-something ] deep-map! ] unit-test
 
-[ t ] [ "foo" [ string? ] deep-any?  ] unit-test
+{ t } [ "foo" [ string? ] deep-any?  ] unit-test
 
-[ "foo" ] [ "foo" [ string? ] deep-find ] unit-test
+{ "foo" } [ "foo" [ string? ] deep-find ] unit-test
 
-[ { { 1 2 } 1 2 } ] [ [ { 1 2 } [ , ] deep-each ] { } make ] unit-test
+{ { { 1 2 } 1 2 } } [ [ { 1 2 } [ , ] deep-each ] { } make ] unit-test
 
-[ t ]
+{ t }
 [ { { 1 2 3 } 4 } { { { 1 { { 1 2 3 } 4 } } } 2 } deep-member? ] unit-test
 
-[ t ]
+{ t }
 [ { { 1 2 3 } 4 } { { { 1 2 3 } 4 } 2 } deep-member? ] unit-test
 
-[ f ]
+{ f }
 [ { 1 2 3 4 } { 1 2 3 { 4 } } deep-subseq? ] unit-test
 
-[ t ]
+{ t }
 [ { 1 2 3 4 } { 1 2 3 4 } deep-subseq? ] unit-test
 
-[ t ]
+{ t }
 [ { 1 2 3 4 } { { 1 2 3 4 } } deep-subseq? ] unit-test
 
 { 3 } [
index b86693bc28126dfb57204841a1088bc4e663a06c..ed69e6493e38bbc5a3b356c5dbaedd0614df7d53 100644 (file)
@@ -3,16 +3,16 @@ USING: tools.test generalizations kernel math arrays sequences
 sequences.generalizations ascii fry math.parser io io.streams.string ;
 IN: sequences.generalizations.tests
 
-[ 1 2 3 4 ] [ { 1 2 3 4 } 4 firstn ] unit-test
-[ { 1 2 3 4 } ] [ 1 2 3 4 { f f f f } [ 4 set-firstn ] keep ] unit-test
+{ 1 2 3 4 } [ { 1 2 3 4 } 4 firstn ] unit-test
+{ { 1 2 3 4 } } [ 1 2 3 4 { f f f f } [ 4 set-firstn ] keep ] unit-test
 [ 1 2 3 4 { f f f } [ 4 set-firstn ] keep ] must-fail
-[ ] [ { } 0 firstn ] unit-test
-[ "a" ] [ { "a" } 1 firstn ] unit-test
+{ } [ { } 0 firstn ] unit-test
+{ "a" } [ { "a" } 1 firstn ] unit-test
 
-[ [ 1 2 ] ] [ 1 2 2 [ ] nsequence ] unit-test
+{ [ 1 2 ] } [ 1 2 2 [ ] nsequence ] unit-test
 
-[ { 1 2 3 4 } ] [ { 1 } { 2 } { 3 } { 4 } 4 nappend ] unit-test
-[ V{ 1 2 3 4 } ] [ { 1 } { 2 } { 3 } { 4 } 4 V{ } nappend-as ] unit-test
+{ { 1 2 3 4 } } [ { 1 } { 2 } { 3 } { 4 } 4 nappend ] unit-test
+{ V{ 1 2 3 4 } } [ { 1 } { 2 } { 3 } { 4 } 4 V{ } nappend-as ] unit-test
 
 [ 4 nappend ] must-infer
 [ 4 { } nappend-as ] must-infer
@@ -42,11 +42,11 @@ IN: sequences.generalizations.tests
     [ [ 2 - ] [ ] [ 1 - ] tri ] 2 nproduce
     [ drop ] 2dip ;
 
-[ """A1a!
+{ """A1a!
 B2b@
 C3c#
 D4d$
-""" ] [
+""" } [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a" "b" "c" "d" }
@@ -54,7 +54,7 @@ D4d$
     [ neach-test ] with-string-writer
 ] unit-test
 
-[ { "A1a!" "B2b@" "C3c#" "D4d$" } ]
+{ { "A1a!" "B2b@" "C3c#" "D4d$" } }
 [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
@@ -63,7 +63,7 @@ D4d$
     nmap-test
 ] unit-test
 
-[ [ "A1a!" "B2b@" "C3c#" "D4d$" ] ]
+{ [ "A1a!" "B2b@" "C3c#" "D4d$" ] }
 [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
@@ -72,11 +72,11 @@ D4d$
     nmap-as-test
 ] unit-test
 
-[
+{
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a!" "b@" "c#" "d$" }
-] [
+} [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a" "b" "c" "d" }
@@ -84,10 +84,10 @@ D4d$
     mnmap-3-test
 ] unit-test
 
-[
+{
     { "A1" "B2" "C3" "D4" }
     { "a!" "b@" "c#" "d$" }
-] [
+} [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a" "b" "c" "d" }
@@ -95,10 +95,10 @@ D4d$
     mnmap-2-test
 ] unit-test
 
-[
+{
     { "A1" "B2" "C3" "D4" }
     [ "a!" "b@" "c#" "d$" ]
-] [
+} [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a" "b" "c" "d" }
@@ -106,7 +106,7 @@ D4d$
     mnmap-as-test
 ] unit-test
 
-[ { "A1a!" "B2b@" "C3c#" "D4d$" } ]
+{ { "A1a!" "B2b@" "C3c#" "D4d$" } }
 [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
@@ -115,11 +115,11 @@ D4d$
     mnmap-1-test
 ] unit-test
 
-[ """A1a!
+{ """A1a!
 B2b@
 C3c#
 D4d$
-""" ] [
+""" } [
     { "A" "B" "C" "D" }
     { "1" "2" "3" "4" }
     { "a" "b" "c" "d" }
@@ -127,10 +127,10 @@ D4d$
     [ mnmap-0-test ] with-string-writer
 ] unit-test
 
-[ { 10 8 6 4 2 } B{ 9 7 5 3 1 } ]
+{ { 10 8 6 4 2 } B{ 9 7 5 3 1 } }
 [ 10 nproduce-as-test ] unit-test
 
-[ { 10 8 6 4 2 } { 9 7 5 3 1 } ]
+{ { 10 8 6 4 2 } { 9 7 5 3 1 } }
 [ 10 nproduce-test ] unit-test
 
 { 45 } [
index cbd4176bef40bb649acb01e1cfbdfc09a70c4de4..a6d97584f83abc030b343cbac1605b4502aefc11 100644 (file)
@@ -1,20 +1,20 @@
 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
-[ 1 { 1 2 } ] [ 2 T{ merged f { { 1 2 } { 3 4 } } } virtual@ ] unit-test
-[ 4 ] [ 3 { { 1 2 3 4 } } <merged> nth ] unit-test
+{ 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
+{ 1 { 1 2 } } [ 2 T{ merged f { { 1 2 } { 3 4 } } } virtual@ ] unit-test
+{ 4 } [ 3 { { 1 2 3 4 } } <merged> nth ] unit-test
 [ 4 { { 1 2 3 4 } } <merged> nth ] must-fail
 
-[ 1 ] [ 0 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
-[ 4 ] [ 1 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
-[ 2 ] [ 2 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
-[ 5 ] [ 3 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
-[ 3 ] [ 4 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
-[ 6 ] [ 5 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 1 } [ 0 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 4 } [ 1 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 2 } [ 2 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 5 } [ 3 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 3 } [ 4 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
+{ 6 } [ 5 { 1 2 3 } { 4 5 6 } <2merged> nth ] unit-test
 
-[ 4 ] [ 4 { 1 2 } { 3 4 } { 5 6 } 3merge nth ] unit-test
+{ 4 } [ 4 { 1 2 } { 3 4 } { 5 6 } 3merge nth ] unit-test
 
-[ "" ] [ "abcdefg" "" 2merge ] unit-test
-[ "a1b2" ] [ "abc" "12" <2merged> "" like ] unit-test
+{ "" } [ "abcdefg" "" 2merge ] unit-test
+{ "a1b2" } [ "abc" "12" <2merged> "" like ] unit-test
index bff95dc440de49f17ba1c687368203ee23a49cd0..620732dbdbd27a6e278245419bebafa002e50520 100644 (file)
@@ -2,30 +2,30 @@ USING: tools.test sequences.parser unicode.categories kernel
 accessors ;
 IN: sequences.parser.tests
 
-[ "hello" ]
+{ "hello" }
 [ "hello" [ take-rest ] parse-sequence ] unit-test
 
-[ "hi" " how are you?" ]
+{ "hi" " how are you?" }
 [
     "hi how are you?"
     [ [ [ current blank? ] take-until ] [ take-rest ] bi ] parse-sequence
 ] unit-test
 
-[ "foo" ";bar" ]
+{ "foo" ";bar" }
 [
     "foo;bar" [
         [ CHAR: ; take-until-object ] [ take-rest ] bi
     ] parse-sequence
 ] unit-test
 
-[ "foo " "and bar" ]
+{ "foo " "and bar" }
 [
     "foo and bar" [
         [ "and" take-until-sequence ] [ take-rest ] bi
     ] parse-sequence
 ] unit-test
 
-[ "foo " " bar" ]
+{ "foo " " bar" }
 [
     "foo and bar" [
         [ "and" take-until-sequence ]
@@ -34,7 +34,7 @@ IN: sequences.parser.tests
     ] parse-sequence
 ] unit-test
 
-[ "foo " " bar" ]
+{ "foo " " bar" }
 [
     "foo and bar" [
         [ "and" take-until-sequence* ]
@@ -42,65 +42,65 @@ IN: sequences.parser.tests
     ] parse-sequence
 ] unit-test
 
-[ { 1 2 } ]
+{ { 1 2 } }
 [ { 1 2 3 4 } <sequence-parser> { 3 4 } take-until-sequence ] unit-test
 
-[ f "aaaa" ]
+{ f "aaaa" }
 [
     "aaaa" <sequence-parser>
     [ "b" take-until-sequence ] [ take-rest ] bi
 ] unit-test
 
-[ 6 ]
+{ 6 }
 [
     "      foo   " [ skip-whitespace n>> ] parse-sequence
 ] unit-test
 
-[ { 1 2 } ]
+{ { 1 2 } }
 [ { 1 2 3 } <sequence-parser> [ current 3 = ] take-until ] unit-test
 
-[ "ab" ]
+{ "ab" }
 [ "abcd" <sequence-parser> "ab" take-sequence ] unit-test
 
-[ f ]
+{ f }
 [ "abcd" <sequence-parser> "lol" take-sequence ] unit-test
 
-[ "ab" ]
+{ "ab" }
 [
     "abcd" <sequence-parser>
     [ "lol" take-sequence drop ] [ "ab" take-sequence ] bi
 ] unit-test
 
-[ "" ]
+{ "" }
 [ "abcd" <sequence-parser> "" take-sequence ] unit-test
 
-[ "cd" ]
+{ "cd" }
 [ "abcd" <sequence-parser> [ "ab" take-sequence drop ] [ "cd" take-sequence ] bi ] unit-test
 
-[ f ]
+{ f }
 [ "" <sequence-parser> take-rest ] unit-test
 
-[ f ]
+{ f }
 [ "abc" <sequence-parser> dup "abc" take-sequence drop take-rest ] unit-test
 
-[ f ]
+{ f }
 [ "abc" <sequence-parser> "abcdefg" take-sequence ] unit-test
 
-[ "1234" ]
+{ "1234" }
 [ "1234f" <sequence-parser> take-integer ] unit-test
 
-[ "yes" ]
+{ "yes" }
 [
     "yes1234f" <sequence-parser>
     [ take-integer drop ] [ "yes" take-sequence ] bi
 ] unit-test
 
-[ f ] [ "" <sequence-parser> 4 take-n ] unit-test
-[ "abcd" ] [ "abcd" <sequence-parser> 4 take-n ] unit-test
-[ "abcd" "efg" ] [ "abcdefg" <sequence-parser> [ 4 take-n ] [ take-rest ] bi ] unit-test
+{ f } [ "" <sequence-parser> 4 take-n ] unit-test
+{ "abcd" } [ "abcd" <sequence-parser> 4 take-n ] unit-test
+{ "abcd" "efg" } [ "abcdefg" <sequence-parser> [ 4 take-n ] [ take-rest ] bi ] unit-test
 
-[ f ]
+{ f }
 [ "\n" <sequence-parser> take-integer ] unit-test
 
-[ "\n" ] [ "\n" <sequence-parser> [ ] take-while ] unit-test
-[ f ] [ "\n" <sequence-parser> [ not ] take-while ] unit-test
+{ "\n" } [ "\n" <sequence-parser> [ ] take-while ] unit-test
+{ f } [ "\n" <sequence-parser> [ not ] take-while ] unit-test
index 9f931293ea7c7ff7bbd4c268a33bc3c3b0fb8d74..bd875756c31070fe70375e9d5f049297be2d50a1 100644 (file)
@@ -3,27 +3,27 @@ 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 "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" } ]
+{ { "a" "aa" "aaa" "b" "bb" "bbb" } }
 [ { { 1 2 3 } { "a" "b" } } [ first2 x ] product-map ] unit-test
 
-[
+{
     {
         { 0 "a" t } { 1 "a" t } { 2 "a" t } { 0 "b" t } { 1 "b" t } { 2 "b" t }
         { 0 "a" f } { 1 "a" f } { 2 "a" f } { 0 "b" f } { 1 "b" f } { 2 "b" f }
     }
-] [ { { 0 1 2 } { "a" "b" } { t f } } [ ] product-map ] unit-test
+} [ { { 0 1 2 } { "a" "b" } { t f } } [ ] product-map ] unit-test
 
-[ "a1b1c1a2b2c2" ] [
+{ "a1b1c1a2b2c2" } [
     [
         { { "a" "b" "c" } { "1" "2" } }
         [ [ % ] each ] product-each
     ] "" make
 ] unit-test
 
-[ { } ] [ { { } { 1 } } [ ] product-map ] unit-test
-[ ] [ { { } { 1 } } [ drop ] product-each ] unit-test
+{ { } } [ { { } { 1 } } [ ] product-map ] unit-test
+{ } [ { { } { 1 } } [ drop ] product-each ] unit-test
index e0d70b4fa7dbc1c39b68ed3966bb3653d7164708..95f544c081cda9a9501a61bd3aaeca7abb89bd7e 100644 (file)
@@ -3,50 +3,50 @@ USING: compiler.test compiler.tree.debugger kernel make math.parser sequences
 sequences.unrolled tools.test ;
 IN: sequences.unrolled.tests
 
-[ { "0" "1" "2" } ] [ { 0 1 2 } 3 [ number>string ] unrolled-map ] unit-test
-[ { "0" "1" "2" } ] [ { 0 1 2 } [ 3 [ number>string ] unrolled-map ] compile-call ] unit-test
+{ { "0" "1" "2" } } [ { 0 1 2 } 3 [ number>string ] unrolled-map ] unit-test
+{ { "0" "1" "2" } } [ { 0 1 2 } [ 3 [ number>string ] unrolled-map ] compile-call ] unit-test
 
-[ { "0" "1" "2" } ] [ [ { 0 1 2 } 3 [ number>string , ] unrolled-each ] { } make ] unit-test
-[ { "0" "1" "2" } ] [ [ { 0 1 2 } [ 3 [ number>string , ] unrolled-each ] compile-call ] { } make ] unit-test
+{ { "0" "1" "2" } } [ [ { 0 1 2 } 3 [ number>string , ] unrolled-each ] { } make ] unit-test
+{ { "0" "1" "2" } } [ [ { 0 1 2 } [ 3 [ number>string , ] unrolled-each ] compile-call ] { } make ] unit-test
 
-[ { "a0" "b1" "c2" } ]
+{ { "a0" "b1" "c2" } }
 [ [ { "a" "b" "c" } 3 [ number>string append , ] unrolled-each-index ] { } make ] unit-test
 
-[ { "a0" "b1" "c2" } ]
+{ { "a0" "b1" "c2" } }
 [ [ { "a" "b" "c" } [ 3 [ number>string append , ] unrolled-each-index ] compile-call ] { } make ] unit-test
 
-[ { "aI" "bII" "cIII" } ]
+{ { "aI" "bII" "cIII" } }
 [ [ { "a" "b" "c" } { "I" "II" "III" } [ 3 [ append , ] unrolled-2each ] compile-call ] { } make ] unit-test
 
-[ { "aI" "bII" "cIII" } ]
+{ { "aI" "bII" "cIII" } }
 [ { "a" "b" "c" } { "I" "II" "III" } 3 [ append ] unrolled-2map ] unit-test
 
-[ { "aI" "bII" "cIII" } ]
+{ { "aI" "bII" "cIII" } }
 [ { "a" "b" "c" } { "I" "II" "III" } [ 3 [ append ] unrolled-2map ] compile-call ] unit-test
 
-[ { "a0" "b1" "c2" } ]
+{ { "a0" "b1" "c2" } }
 [ { "a" "b" "c" } 3 [ number>string append ] unrolled-map-index ] unit-test
 
-[ { "a0" "b1" "c2" } ]
+{ { "a0" "b1" "c2" } }
 [ { "a" "b" "c" } [ 3 [ number>string append ] unrolled-map-index ] compile-call ] unit-test
 
 [ { 0 1 2 } 4 [ number>string ] unrolled-map ] [ unrolled-bounds-error? ] must-fail-with
 [ { 0 1 2 3 } { 0 1 2 } 4 [ number>string append ] unrolled-2map ] [ unrolled-2bounds-error? ] must-fail-with
 
-[ t ]
+{ t }
 [ [ 3 [ number>string ] unrolled-map ] { call } inlined? ] unit-test
 
-[ t ]
+{ t }
 [ [ 3 [ number>string , ] unrolled-each ] { call } inlined? ] unit-test
 
-[ t ]
+{ t }
 [ [ 3 [ number>string append , ] unrolled-each-index ] { call } inlined? ] unit-test
 
-[ t ]
+{ t }
 [ [ 3 [ append , ] unrolled-2each ] { call } inlined? ] unit-test
 
-[ t ]
+{ t }
 [ [ 3 [ append ] unrolled-2map ] { call } inlined? ] unit-test
 
-[ t ]
+{ t }
 [ [ 3 [ number>string append ] unrolled-map-index ] { call } inlined? ] unit-test
index 124abcacfe8ce7881f26077c39e321a2a96e504e..92591acbf2f668b634b83602db1d169c0aa0e028 100644 (file)
@@ -14,7 +14,7 @@ IN: serialize.tests
     binary [ serialize-cell ] with-byte-writer
     binary [ deserialize-cell ] with-byte-reader = ;
 
-[ t ] [
+{ t } [
     100 [
         drop
         {
@@ -78,22 +78,22 @@ CONSTANT: objects
         first2 eq?
     ] if ;
 
-[ t ] [ objects [ check-serialize-1 ] all? ] unit-test
+{ t } [ objects [ check-serialize-1 ] all? ] unit-test
 
-[ t ] [ objects [ check-serialize-2 ] all? ] unit-test
+{ t } [ objects [ check-serialize-2 ] all? ] unit-test
 
-[ t ] [ pi check-serialize-1 ] unit-test
+{ t } [ pi check-serialize-1 ] unit-test
 [ serialize ] must-infer
 [ deserialize ] must-infer
 
-[ t ] [
+{ t } [
     V{ } dup dup push
     object>bytes
     bytes>object
     dup first eq?
 ] unit-test
 
-[ t ] [
+{ t } [
     H{ } dup dup dup set-at
     object>bytes
     bytes>object
index e58cf21ed0ba883fb8e181f3df91ecc2bb924420..2058a252db212a5bf27bab7b3c4c9279b715744a 100644 (file)
@@ -1,9 +1,9 @@
 USING: shuffle tools.test ;
 IN: shuffle.tests
 
-[ 1 2 3 4 ] [ 3 4 1 2 2swap ] unit-test
+{ 1 2 3 4 } [ 3 4 1 2 2swap ] unit-test
 
-[ 4 2 3 ] [ 1 2 3 4 shuffle( a b c d -- d b c ) ] unit-test
+{ 4 2 3 } [ 1 2 3 4 shuffle( a b c d -- d b c ) ] unit-test
 
-[ 2 3 4 1 ] [ 1 2 3 4 roll ] unit-test
-[ 1 2 3 4 ] [ 2 3 4 1 -roll ] unit-test
+{ 2 3 4 1 } [ 1 2 3 4 roll ] unit-test
+{ 1 2 3 4 } [ 2 3 4 1 -roll ] unit-test
index b300aff471a0b1c6a3ea13ee37f61bb34d6bb7a9..292500ac47d26d3ab26b91e60ea57c27efadb062 100644 (file)
@@ -8,14 +8,14 @@ MEMO: <test1> ( -- code-table )
     "vocab:simple-flat-file/test1.txt" flat-file>biassoc ;
 
 
-[ 0 ] [ 0 <test1> at ] unit-test
-[ 0 ] [ 0 <test1> value-at ] unit-test
+{ 0 } [ 0 <test1> at ] unit-test
+{ 0 } [ 0 <test1> value-at ] unit-test
 
-[ 3 ] [ 3 <test1> at ] unit-test
-[ 3 ] [ 3 <test1> value-at ] unit-test
+{ 3 } [ 3 <test1> at ] unit-test
+{ 3 } [ 3 <test1> value-at ] unit-test
 
-[ 0xAD2A ] [ 0x8253 <test1> at ] unit-test
-[ 0x8253 ] [ 0xAD2A <test1> value-at ] unit-test
+{ 0xAD2A } [ 0x8253 <test1> at ] unit-test
+{ 0x8253 } [ 0xAD2A <test1> value-at ] unit-test
 
-[ 0xAD31 ] [ 0x8258 <test1> at ] unit-test
-[ 0x8258 ] [ 0xAD31 <test1> value-at ] unit-test
+{ 0xAD31 } [ 0x8258 <test1> at ] unit-test
+{ 0x8258 } [ 0xAD31 <test1> value-at ] unit-test
index 5f7190331311025d12da2a3acc3c476bc97e8e97..060d254eedb95de74d606e11f1db824a49fdba89 100644 (file)
@@ -3,22 +3,22 @@ USING: simple-tokenizer tools.test ;
 
 [ "" tokenize ] must-fail
 [ "   " tokenize ] must-fail
-[ V{ "a" } ] [ "a" tokenize ] unit-test
-[ V{ "abc" } ] [ "abc" tokenize ] unit-test
-[ V{ "abc" } ] [ "abc   " tokenize ] unit-test
-[ V{ "abc" } ] [ "   abc" tokenize ] unit-test
-[ V{ "abc" "def" } ] [ "abc def" tokenize ] unit-test
-[ V{ "abc def" } ] [ "abc\\ def" tokenize ] unit-test
-[ V{ "abc\\" "def" } ] [ "abc\\\\ def" tokenize ] unit-test
-[ V{ "abc\\ def" } ] [ "\"abc\\\\ def\"" tokenize ] unit-test
-[ V{ "abc\\ def" } ] [ "  \"abc\\\\ def\"" tokenize ] unit-test
-[ V{ "abc\\ def" "hey" } ] [ "\"abc\\\\ def\" hey" tokenize ] unit-test
-[ V{ "abc def" "hey" } ] [ "\"abc def\" \"hey\"" tokenize ] unit-test
+{ V{ "a" } } [ "a" tokenize ] unit-test
+{ V{ "abc" } } [ "abc" tokenize ] unit-test
+{ V{ "abc" } } [ "abc   " tokenize ] unit-test
+{ V{ "abc" } } [ "   abc" tokenize ] unit-test
+{ V{ "abc" "def" } } [ "abc def" tokenize ] unit-test
+{ V{ "abc def" } } [ "abc\\ def" tokenize ] unit-test
+{ V{ "abc\\" "def" } } [ "abc\\\\ def" tokenize ] unit-test
+{ V{ "abc\\ def" } } [ "\"abc\\\\ def\"" tokenize ] unit-test
+{ V{ "abc\\ def" } } [ "  \"abc\\\\ def\"" tokenize ] unit-test
+{ V{ "abc\\ def" "hey" } } [ "\"abc\\\\ def\" hey" tokenize ] unit-test
+{ V{ "abc def" "hey" } } [ "\"abc def\" \"hey\"" tokenize ] unit-test
 [ "\"abc def\" \"hey" tokenize ] must-fail
 [ "\"abc def" tokenize ] must-fail
-[ V{ "abc def" "h\"ey" } ] [ "\"abc def\" \"h\\\"ey\"  " tokenize ] unit-test
+{ V{ "abc def" "h\"ey" } } [ "\"abc def\" \"h\\\"ey\"  " tokenize ] unit-test
 
-[
+{
     V{
         "Hello world.app/Contents/MacOS/hello-ui"
         "-i=boot.macosx-ppc.image"
@@ -28,7 +28,7 @@ USING: simple-tokenizer tools.test ;
         "-no-stack-traces"
         "-no-user-init"
     }
-] [
+} [
     "\"Hello world.app/Contents/MacOS/hello-ui\" -i=boot.macosx-ppc.image \"-include= math compiler ui\" -deploy-vocab=hello-ui \"-output-image=Hello world.app/Contents/Resources/hello-ui.image\" -no-stack-traces -no-user-init" tokenize
 ] unit-test
 
index 8e9c5d0e263e2f937e36983be57d123cf6218ea6..6b718d0424ac335ec144494cd25cb6f0801bc8ce 100644 (file)
@@ -20,34 +20,34 @@ IN: smtp.tests
 
 [ "hello\nworld" validate-address ] must-fail
 
-[ "slava@factorcode.org" ]
+{ "slava@factorcode.org" }
 [ "slava@factorcode.org" validate-address ] unit-test
 
-[ "aGVsbG8Kd29ybGQ=\r\n.\r\n" ] [
+{ "aGVsbG8Kd29ybGQ=\r\n.\r\n" } [
     T{ email { body "hello\nworld" } } [ send-body ] with-string-writer
 ] unit-test
 
 [ { "500 syntax error" } <response> check-response ]
 [ smtp-error? ] must-fail-with
 
-[ ] [ { "220 success" } <response> check-response ] unit-test
+{ } [ { "220 success" } <response> check-response ] unit-test
 
-[ T{ response f 220 { "220 success" } } ] [
+{ T{ response f 220 { "220 success" } } } [
     "220 success" [ receive-response ] with-string-reader
 ] unit-test
 
-[
+{
     T{ response f 220 {
         "220-a multiline response"
         "250-another line"
         "220 the end"
     } }
-] [
+} [
     "220-a multiline response\r\n250-another line\r\n220 the end"
     [ receive-response ] with-string-reader
 ] unit-test
 
-[ ] [
+{ } [
     "220-a multiline response\r\n250-another line\r\n220 the end"
     [ get-ok ] with-string-reader
 ] unit-test
@@ -56,7 +56,7 @@ IN: smtp.tests
     "Subject:\r\nsecurity hole" validate-header
 ] must-fail
 
-[
+{
     {
         { "Content-Transfer-Encoding" "base64" }
         { "Content-Type" "text/plain; charset=UTF-8" }
@@ -67,7 +67,7 @@ IN: smtp.tests
     }
     { "slava@factorcode.org" "dharmatech@factorcode.org" }
     "erg@factorcode.org"
-] [
+} [
     [
         <email>
             "Factor rules" >>subject
@@ -90,7 +90,7 @@ IN: smtp.tests
     ] with-test-smtp-config
 ] unit-test
 
-[ ] [
+{ } [
     <secure-config> f >>verify [
         [
             <email>
index 6f057ecd3b92a40bfd533ff14b7eeaeaa9326119..4e1d496ad9eccb3ef427f61b759e15ed36dc6ec4 100644 (file)
@@ -1,16 +1,16 @@
 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
 
-[ { "4dup" "nip" } ]
+{ { "4dup" "nip" } }
 [ { "4dup" "nip" } [ human<=> ] sort ] unit-test
 
-[ { "4dup" "nip" } ]
+{ { "4dup" "nip" } }
 [ { "nip" "4dup" } [ human<=> ] sort ] unit-test
 
-[ { "4dup" "4nip" "5drop" "nip" "nip2" "nipd" } ]
+{ { "4dup" "4nip" "5drop" "nip" "nip2" "nipd" } }
 [ { "nip" "4dup" "4nip" "5drop" "nip2" "nipd" } [ human<=> ] sort ] unit-test
 
 
index 38b0082adeae6509348fbe284d75281d3f90669a..4defa98ed65e103cce88ea09db30afbe12f72a92 100644 (file)
@@ -1,4 +1,4 @@
 IN: sorting.insertion
 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
index 08fc0e921d4a44b6881b3dff93a5dc0201cb49c4..2b56d5dfe8e59fac6b78fee7a68becb52b8ecec2 100644 (file)
@@ -8,7 +8,7 @@ TUPLE: sort-test a b c tuple2 ;
 
 TUPLE: tuple2 d ;
 
-[
+{
     {
         T{ sort-test { a 1 } { b 3 } { c 9 } }
         T{ sort-test { a 1 } { b 1 } { c 10 } }
@@ -16,7 +16,7 @@ TUPLE: tuple2 d ;
         T{ sort-test { a 2 } { b 5 } { c 2 } }
         T{ sort-test { a 2 } { b 5 } { c 3 } }
     }
-] [
+} [
     {
         T{ sort-test f 1 3 9 }
         T{ sort-test f 1 1 10 }
@@ -26,7 +26,7 @@ TUPLE: tuple2 d ;
     } { { a>> <=> } { b>> >=< } { c>> <=> } } sort-by
 ] unit-test
 
-[
+{
     {
         T{ sort-test { a 1 } { b 3 } { c 9 } }
         T{ sort-test { a 1 } { b 1 } { c 10 } }
@@ -34,7 +34,7 @@ TUPLE: tuple2 d ;
         T{ sort-test { a 2 } { b 5 } { c 2 } }
         T{ sort-test { a 2 } { b 5 } { c 3 } }
     }
-] [
+} [
     {
         T{ sort-test f 1 3 9 }
         T{ sort-test f 1 1 10 }
@@ -44,13 +44,13 @@ TUPLE: tuple2 d ;
     } { { a>> <=> } { b>> >=< } { c>> <=> } } sort-by
 ] unit-test
 
-[ { } ]
+{ { } }
 [ { } { { a>> <=> } { b>> >=< } { c>> <=> } } sort-by ] unit-test
 
-[ { } ]
+{ { } }
 [ { } { } sort-by ] unit-test
 
-[
+{
     {
         T{ sort-test { a 6 } { tuple2 T{ tuple2 { d 1 } } } }
         T{ sort-test { a 6 } { tuple2 T{ tuple2 { d 2 } } } }
@@ -59,7 +59,7 @@ TUPLE: tuple2 d ;
         T{ sort-test { a 6 } { tuple2 T{ tuple2 { d 3 } } } }
         T{ sort-test { a 5 } { tuple2 T{ tuple2 { d 4 } } } }
     }
-] [
+} [
     {
         T{ sort-test f 6 f f T{ tuple2 f 1 } }
         T{ sort-test f 5 f f T{ tuple2 f 4 } }
@@ -71,24 +71,24 @@ TUPLE: tuple2 d ;
 ] unit-test
 
 
-[ { "a" "b" "c" } ] [ { "b" "c" "a" } { <=> <=> } sort-by ] unit-test
-[ { "b" "c" "a" } ] [ { "b" "c" "a" } { } sort-by ] unit-test
+{ { "a" "b" "c" } } [ { "b" "c" "a" } { <=> <=> } sort-by ] unit-test
+{ { "b" "c" "a" } } [ { "b" "c" "a" } { } sort-by ] unit-test
 
 << "length-test" [ length ] define-sorting >>
 
-[ { { 1 } { 1 2 3 } { 1 3 2 } { 3 2 1 } } ]
+{ { { 1 } { 1 2 3 } { 1 3 2 } { 3 2 1 } } }
 [
     { { 3 2 1 } { 1 2 3 } { 1 3 2 } { 1 } }
     { length-test<=> <=> } sort-by
 ] unit-test
 
-[ { { { 0 } 1 } { { 1 } 2 } { { 1 } 1 } { { 3 1 } 2 } } ]
+{ { { { 0 } 1 } { { 1 } 2 } { { 1 } 1 } { { 3 1 } 2 } } }
 [
     { { { 3 1 } 2 } { { 1 } 2 } { { 0 } 1 } { { 1 } 1 } }
     { length-test<=> <=> } sort-keys-by
 ] unit-test
 
-[ { { 0 { 1 } } { 1 { 1 } } { 3 { 2 4 } } { 1 { 2 0 0 0 } } } ]
+{ { { 0 { 1 } } { 1 { 1 } } { 3 { 2 4 } } { 1 { 2 0 0 0 } } } }
 [
     { { 3 { 2 4 } } { 1 { 2 0 0 0 } } { 0 { 1 } } { 1 { 1 } } }
     { length-test<=> <=> } sort-values-by
index 1e978838c58db133ab2fec1f718f8d5e5815d25e..aae733281afc651ec84f135c6c1e1ca09bb7839c 100644 (file)
@@ -22,7 +22,7 @@ IN: sorting.title.tests
         "on belay"
         "for the horde"
     } ;
-[
+{
     {
         "A"
         "Another"
@@ -41,6 +41,6 @@ IN: sorting.title.tests
         "The"
         "la vida loca"
     }
-] [
+} [
     sort-me { title<=> } sort-by
 ] unit-test
index f4bd18e34b4c3d54a973445ed8c88b99e2c21e02..7d303b450140dd7df3261f9ad3210c05ec3c17ae 100644 (file)
@@ -1,5 +1,5 @@
 IN: soundex.tests
 USING: soundex tools.test ;
 
-[ "S162" ] [ "supercalifrag" soundex ] unit-test
-[ "M000" ] [ "M" soundex ] unit-test
+{ "S162" } [ "supercalifrag" soundex ] unit-test
+{ "M000" } [ "M" soundex ] unit-test
index 8aff04d2be143ce9a5ff4d19523cff830cd2af18..583ec9e8f93c4fa67286464f9e1f76eb78c2f495 100644 (file)
@@ -13,13 +13,13 @@ IN: specialized-arrays.tests
 SPECIALIZED-ARRAY: int
 SPECIALIZED-ARRAYS: bool uchar ushort char uint float ulonglong ;
 
-[ t ] [ { 1 2 3 } int >c-array int-array? ] unit-test
+{ t } [ { 1 2 3 } int >c-array int-array? ] unit-test
 
-[ t ] [ int-array{ 1 2 3 } int-array? ] unit-test
+{ t } [ int-array{ 1 2 3 } int-array? ] unit-test
 
-[ 2 ] [ int-array{ 1 2 3 } second ] unit-test
+{ 2 } [ int-array{ 1 2 3 } second ] unit-test
 
-[ t ] [
+{ t } [
     { t f t } bool >c-array underlying>>
     { 1 0 1 } bool heap-size {
         { 1 [ char >c-array ] }
@@ -27,24 +27,24 @@ SPECIALIZED-ARRAYS: bool uchar ushort char uint float ulonglong ;
     } case underlying>> =
 ] unit-test
 
-[ ushort-array{ 1234 } ] [
+{ ushort-array{ 1234 } } [
     little-endian? B{ 210 4 } B{ 4 210 } ? ushort cast-array
 ] unit-test
 
 [ B{ 210 4 1 } ushort cast-array ] must-fail
 
-[ { 3 1 3 3 7 } ] [
+{ { 3 1 3 3 7 } } [
     int-array{ 3 1 3 3 7 } malloc-byte-array [ &free 5 int <c-direct-array> >array ] with-destructors
 ] unit-test
 
-[ float-array{ 0x1.222,222p0   0x1.111,112p0   } ]
+{ float-array{ 0x1.222,222p0   0x1.111,112p0   } }
 [ float-array{ 0x1.222,222,2p0 0x1.111,111,1p0 } ] unit-test
 
-[ f ] [ float-array{ 4 3 2 1 } dup clone [ underlying>> ] bi@ eq? ] unit-test
+{ f } [ float-array{ 4 3 2 1 } dup clone [ underlying>> ] bi@ eq? ] unit-test
 
-[ f ] [ [ float-array{ 4 3 2 1 } dup clone [ underlying>> ] bi@ eq? ] compile-call ] unit-test
+{ f } [ [ float-array{ 4 3 2 1 } dup clone [ underlying>> ] bi@ eq? ] compile-call ] unit-test
 
-[ ushort-array{ 0 0 0 } ] [
+{ ushort-array{ 0 0 0 } } [
     3 ALIEN: 123 100 <direct-ushort-array> new-sequence
     [ drop 0 ] map!
 ] unit-test
@@ -55,25 +55,25 @@ STRUCT: test-struct
 
 SPECIALIZED-ARRAY: test-struct
 
-[ 1 ] [
+{ 1 } [
     1 test-struct-array{ } new-sequence length
 ] unit-test
 
-[ V{ test-struct } ] [
+{ V{ test-struct } } [
     [ [ test-struct-array <struct> ] test-struct-array{ } output>sequence first ] final-classes
 ] unit-test
 
 : make-point ( x y -- struct )
     test-struct <struct-boa> ;
 
-[ 5/4 ] [
+{ 5/4 } [
     2 <test-struct-array>
     1 2 make-point over set-first
     3 4 make-point over set-second
     0 [ [ x>> ] [ y>> ] bi / + ] reduce
 ] unit-test
 
-[ 5/4 ] [
+{ 5/4 } [
     [
         2 \ test-struct malloc-array
         dup &free drop
@@ -83,18 +83,18 @@ SPECIALIZED-ARRAY: test-struct
     ] with-destructors
 ] unit-test
 
-[ ] [ ALIEN: 123 10 <direct-test-struct-array> drop ] unit-test
+{ } [ ALIEN: 123 10 <direct-test-struct-array> drop ] unit-test
 
-[ ] [
+{ } [
     [
         10 \ test-struct malloc-array
         &free drop
     ] with-destructors
 ] unit-test
 
-[ 15 ] [ 15 10 <test-struct-array> resize length ] unit-test
+{ 15 } [ 15 10 <test-struct-array> resize length ] unit-test
 
-[ S{ test-struct f 12 20 } ] [
+{ S{ test-struct f 12 20 } } [
     test-struct-array{
         S{ test-struct f  4 20 }
         S{ test-struct f 12 20 }
@@ -102,7 +102,7 @@ SPECIALIZED-ARRAY: test-struct
     } second
 ] unit-test
 
-[ ] [
+{ } [
     [
         test-struct specialized-array-vocab forget-vocab
     ] with-compilation-unit
@@ -113,24 +113,24 @@ STRUCT: fixed-string { text char[64] } ;
 
 SPECIALIZED-ARRAY: fixed-string
 
-[ { ALIEN: 100 ALIEN: 140 ALIEN: 180 ALIEN: 1c0 } ] [
+{ { ALIEN: 100 ALIEN: 140 ALIEN: 180 ALIEN: 1c0 } } [
     ALIEN: 100 4 <direct-fixed-string-array> [ (underlying)>> ] { } map-as
 ] unit-test
 
 ! Ensure that byte-length works with direct arrays
-[ 400 ] [
+{ 400 } [
     ALIEN: 123 100 <direct-int-array> byte-length
 ] unit-test
 
-[ ] [
+{ } [
     [
         fixed-string specialized-array-vocab forget-vocab
     ] with-compilation-unit
 ] unit-test
 
 ! Test prettyprinting
-[ "int-array{ 1 2 3 }" ] [ int-array{ 1 2 3 } unparse ] unit-test
-[ "c-array@ int f 100" ] [ f 100 <direct-int-array> unparse ] unit-test
+{ "int-array{ 1 2 3 }" } [ int-array{ 1 2 3 } unparse ] unit-test
+{ "c-array@ int f 100" } [ f 100 <direct-int-array> unparse ] unit-test
 
 ! If the C type doesn't exist, don't generate a vocab
 SYMBOL: __does_not_exist__
@@ -143,7 +143,7 @@ USING: specialized-arrays ;
 SPECIALIZED-ARRAY: __does_not_exist__ """ eval( -- )
 ] must-fail
 
-[ ] [
+{ } [
     """
 IN: specialized-arrays.tests
 USING: alien.c-types classes.struct specialized-arrays ;
@@ -154,13 +154,13 @@ SPECIALIZED-ARRAY: __does_not_exist__
 """ eval( -- )
 ] unit-test
 
-[ f ] [
+{ f } [
     "__does_not_exist__-array{"
     __does_not_exist__ specialized-array-vocab lookup-word
     deferred?
 ] unit-test
 
-[ ] [
+{ } [
     [
         \ __does_not_exist__ forget
         __does_not_exist__ specialized-array-vocab forget-vocab
@@ -171,37 +171,37 @@ STRUCT: struct-resize-test { x int } ;
 
 SPECIALIZED-ARRAY: struct-resize-test
 
-[ 40 ] [ 10 <struct-resize-test-array> byte-length ] unit-test
+{ 40 } [ 10 <struct-resize-test-array> byte-length ] unit-test
 
 : struct-resize-test-usage ( seq -- seq )
     [ struct-resize-test <struct> swap >>x ] map
     \ struct-resize-test >c-array
     [ x>> ] { } map-as ;
 
-[ { 10 20 30 } ] [ { 10 20 30 } struct-resize-test-usage ] unit-test
+{ { 10 20 30 } } [ { 10 20 30 } struct-resize-test-usage ] unit-test
 
-[ ] [ "IN: specialized-arrays.tests USE: classes.struct USE: alien.c-types STRUCT: struct-resize-test { x int } { y int } ;" eval( -- ) ] unit-test
+{ } [ "IN: specialized-arrays.tests USE: classes.struct USE: alien.c-types STRUCT: struct-resize-test { x int } { y int } ;" eval( -- ) ] unit-test
 
-[ 80 ] [ 10 <struct-resize-test-array> byte-length ] unit-test
+{ 80 } [ 10 <struct-resize-test-array> byte-length ] unit-test
 
-[ { 10 20 30 } ] [ { 10 20 30 } struct-resize-test-usage ] unit-test
+{ { 10 20 30 } } [ { 10 20 30 } struct-resize-test-usage ] unit-test
 
-[ ] [
+{ } [
     [
         struct-resize-test specialized-array-vocab forget-vocab
         \ struct-resize-test-usage forget
     ] with-compilation-unit
 ] unit-test
 
-[ int-array{ 4 5 6 } ] [ 3 6 int-array{ 1 2 3 4 5 6 7 8 } direct-slice ] unit-test
-[ int-array{ 1 2 3 } ] [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-head ] unit-test
-[ int-array{ 1 2 3 4 5 } ] [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-head* ] unit-test
-[ int-array{ 4 5 6 7 8 } ] [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-tail ] unit-test
-[ int-array{ 6 7 8 } ] [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-tail* ] unit-test
+{ int-array{ 4 5 6 } } [ 3 6 int-array{ 1 2 3 4 5 6 7 8 } direct-slice ] unit-test
+{ int-array{ 1 2 3 } } [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-head ] unit-test
+{ int-array{ 1 2 3 4 5 } } [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-head* ] unit-test
+{ int-array{ 4 5 6 7 8 } } [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-tail ] unit-test
+{ int-array{ 6 7 8 } } [ int-array{ 1 2 3 4 5 6 7 8 } 3 direct-tail* ] unit-test
 
-[ uchar-array{ 0 1 255 } ] [ 3 6 B{ 1 1 1 0 1 255 2 2 2 } direct-slice ] unit-test
+{ uchar-array{ 0 1 255 } } [ 3 6 B{ 1 1 1 0 1 255 2 2 2 } direct-slice ] unit-test
 
-[ int-array{ 1 2 3 4 55555 6 7 8 } ] [
+{ int-array{ 1 2 3 4 55555 6 7 8 } } [
     int-array{ 1 2 3 4 5 6 7 8 }
     3 6 pick direct-slice [ 55555 1 ] dip set-nth
 ] unit-test
index 4522fd059979b3b1aa793d693239f28a93ef1964..e3b4d59420a66efe82e36bc054d5624be779e8c4 100644 (file)
@@ -4,6 +4,6 @@ tools.test kernel sequences alien.c-types ;
 SPECIALIZED-ARRAY: float
 SPECIALIZED-VECTORS: float double ;
 
-[ 3 ] [ double-vector{ 1 2 } 3 suffix! length ] unit-test
+{ 3 } [ double-vector{ 1 2 } 3 suffix! length ] unit-test
 
-[ t ] [ 10 float-array{ } new-resizable float-vector? ] unit-test
+{ t } [ 10 float-array{ } new-resizable float-vector? ] unit-test
index 4703f0273abf129c30c902a7234d4099025300ec..b37e35595fac080166c5efaf7a25257595237ce9 100644 (file)
@@ -5,40 +5,40 @@ USING: tools.test math arrays kernel sequences ;
 { { V{ 1 } } } [ { 1 } [ < ] monotonic-split ] unit-test
 { { V{ 1 2 } } } [ { 1 2 } [ < ] monotonic-split ] unit-test
 { { V{ 1 } V{ 2 } } } [ { 1 2 } [ > ] monotonic-split ] unit-test
-[ { V{ 1 } V{ -1 5 } V{ 2 4 } } ]
+{ { V{ 1 } V{ -1 5 } V{ 2 4 } } }
 [ { 1 -1 5 2 4 } [ < ] monotonic-split ] unit-test
-[ { V{ 1 1 1 1 } V{ 2 2 } V{ 3 } V{ 4 } V{ 5 } V{ 6 6 6 } } ]
+{ { V{ 1 1 1 1 } V{ 2 2 } V{ 3 } V{ 4 } V{ 5 } V{ 6 6 6 } } }
 [ { 1 1 1 1 2 2 3 4 5 6 6 6 } [ = ] monotonic-split ] unit-test
 
-[ { } ]
+{ { } }
 [ { } [ = ] slice monotonic-slice ] unit-test
 
-[ t ]
+{ t }
 [ { 1 } [ = ] slice monotonic-slice [ slice? ] all? ] unit-test
 
-[ { { 1 } } ]
+{ { { 1 } } }
 [ { 1 } [ = ] slice monotonic-slice [ >array ] map ] unit-test
 
 [ { 1 } [ = ] slice monotonic-slice ] must-infer
 
-[ t ]
+{ t }
 [ { 1 1 1 2 2 3 3 4 } [ = ] slice monotonic-slice [ slice? ] all? ] unit-test
 
-[ { { 1 1 1 } { 2 2 } { 3 3 } { 4 } } ]
+{ { { 1 1 1 } { 2 2 } { 3 3 } { 4 } } }
 [ { 1 1 1 2 2 3 3 4 } [ = ] slice monotonic-slice [ >array ] map ] unit-test
 
-[ { { 3 3 } } ]
+{ { { 3 3 } } }
 [ { 3 3 } [ = ] slice monotonic-slice [ >array ] map ] unit-test
 
-[
+{
     {
         T{ upward-slice { from 0 } { to 3 } { seq { 1 2 3 2 1 } } }
         T{ downward-slice { from 2 } { to 5 } { seq { 1 2 3 2 1 } } }
     }
-]
+}
 [ { 1 2 3 2 1 } trends ] unit-test
 
-[
+{
     {
         T{ upward-slice
             { from 0 }
@@ -56,19 +56,19 @@ USING: tools.test math arrays kernel sequences ;
             { seq { 1 2 3 3 2 1 } }
         }
     }
-] [ { 1 2 3 3 2 1 } trends ] unit-test
+} [ { 1 2 3 3 2 1 } trends ] unit-test
 
 
-[ { { 2 2 } { 3 3 3 3 } { 4 } { 5 } } ]
+{ { { 2 2 } { 3 3 3 3 } { 4 } { 5 } } }
 [
     { 2 2 3 3 3 3 4 5 }
     [ [ odd? ] same? ] slice monotonic-slice
     [ >array ] map
 ] unit-test
 
-[
+{
     { { 1 1 1 } { 2 2 2 2 } { 3 3 } }
-] [
+} [
     { 1 1 1 2 2 2 2 3 3 }
     [ [ odd? ] same? ] slice monotonic-slice
     [ >array ] map
index dd7c474848218ac9a265264679095abbbe6e87f7..37815462bc4ec5d231fc03e16c7bdc272bb1f327 100644 (file)
@@ -3,7 +3,7 @@ kernel namespaces stack-checker.state stack-checker.values
 stack-checker.visitor sequences assocs ;
 IN: stack-checker.backend.tests
 
-[ ] [
+{ } [
     V{ } clone (meta-d) set
     V{ } clone (meta-r) set
     V{ } clone literals set
@@ -12,19 +12,19 @@ IN: stack-checker.backend.tests
     0 inner-d-index set
 ] unit-test
 
-[ 0 ] [ 0 ensure-d length ] unit-test
+{ 0 } [ 0 ensure-d length ] unit-test
 
-[ 2 ] [ 2 ensure-d length ] unit-test
+{ 2 } [ 2 ensure-d length ] unit-test
 
-[ t ] [ meta-d [ known-values get at input-parameter? ] all? ] unit-test
+{ t } [ meta-d [ known-values get at input-parameter? ] all? ] unit-test
 
-[ 2 ] [ meta-d length ] unit-test
+{ 2 } [ meta-d length ] unit-test
 
-[ 3 ] [ 3 ensure-d length ] unit-test
-[ 3 ] [ meta-d length ] unit-test
+{ 3 } [ 3 ensure-d length ] unit-test
+{ 3 } [ meta-d length ] unit-test
 
-[ 1 ] [ 1 ensure-d length ] unit-test
-[ 3 ] [ meta-d length ] unit-test
+{ 1 } [ 1 ensure-d length ] unit-test
+{ 3 } [ meta-d length ] unit-test
 
 { } [ 1 consume-d drop ] unit-test
 
index 8e9f97e45794c39728bd3f5300e38bef3ff6f0c5..6c31370e549ab3ee78c83dc4f9c450fc7f857b48 100644 (file)
@@ -144,7 +144,7 @@ SYMBOL: sym-test
 GENERIC: potential-hang ( obj -- obj )
 M: fixnum potential-hang dup [ potential-hang ] when ;
 
-[ ] [ [ 5 potential-hang ] infer drop ] unit-test
+{ } [ [ 5 potential-hang ] infer drop ] unit-test
 
 TUPLE: funny-cons car cdr ;
 GENERIC: iterate ( obj -- )
@@ -296,21 +296,21 @@ DEFER: an-inline-word
 
 ERROR: custom-error ;
 
-[ T{ effect f { } { } t } ] [
+{ T{ effect f { } { } t } } [
     [ custom-error ] infer
 ] unit-test
 
 : funny-throw ( a -- * ) throw ; inline
 
-[ T{ effect f { } { } t } ] [
+{ T{ effect f { } { } t } } [
     [ 3 funny-throw ] infer
 ] unit-test
 
-[ T{ effect f { } { } t } ] [
+{ T{ effect f { } { } t } } [
     [ custom-error inference-error ] infer
 ] unit-test
 
-[ T{ effect f { "x" } { "x" "x" } t } ] [
+{ T{ effect f { "x" } { "x" "x" } t } } [
     [ dup [ 3 throw ] dip ] infer
 ] unit-test
 
@@ -340,7 +340,7 @@ FORGET: bad-recursion-3
     dup bad-recursion-6 call ; inline recursive
 [ [ [ drop f ] bad-recursion-6 ] infer ] must-fail
 
-[ ] [ [ \ bad-recursion-6 forget ] with-compilation-unit ] unit-test
+{ } [ [ \ bad-recursion-6 forget ] with-compilation-unit ] unit-test
 
 { 3 0 } [ [ 2drop "A" throw ] [ ] if 2drop ] must-infer-as
 { 2 0 } [ drop f f [ 2drop "A" throw ] [ ] if 2drop ] must-infer-as
@@ -359,8 +359,8 @@ DEFER: eee'
 
 [ [ eee' ] infer ] [ inference-error? ] must-fail-with
 
-[ ] [ [ \ ddd' forget ] with-compilation-unit ] unit-test
-[ ] [ [ \ eee' forget ] with-compilation-unit ] unit-test
+{ } [ [ \ ddd' forget ] with-compilation-unit ] unit-test
+{ } [ [ \ eee' forget ] with-compilation-unit ] unit-test
 
 : bogus-error ( x -- )
     dup "A" throw [ bogus-error ] [ drop ] if ; inline recursive
@@ -380,7 +380,7 @@ DEFER: eee'
 : forget-test ( -- ) ;
 
 [ forget-test ] must-infer
-[ ] [ [ \ forget-test forget ] with-compilation-unit ] unit-test
+{ } [ [ \ forget-test forget ] with-compilation-unit ] unit-test
 [ forget-test ] must-infer
 
 [ [ cond ] infer ] [ T{ unknown-macro-input f cond } = ] must-fail-with
@@ -404,10 +404,10 @@ DEFER: eee'
 [ [ execute-effect ] infer ] [ T{ unknown-macro-input f execute-effect } = ] must-fail-with
 
 [ \ set-datastack def>> infer ] [ T{ do-not-compile f do-primitive } = ] must-fail-with
-[ ] [ [ \ set-datastack def>> infer ] try ] unit-test
+{ } [ [ \ set-datastack def>> infer ] try ] unit-test
 
 ! Make sure all primitives are covered
-[ { } ] [
+{ { } } [
     all-words [ primitive? ] filter
     [ "default-output-classes" word-prop ] reject
     [ "special" word-prop ] reject
@@ -544,5 +544,5 @@ USING: alien.c-types alien ;
 : inputs-test1 ( x -- n )
     [ + ] curry inputs ;
 
-[ 1 ] [ inputs-test0 ] unit-test
-[ 1 ] [ 10 inputs-test1 ] unit-test
+{ 1 } [ inputs-test0 ] unit-test
+{ 1 } [ 10 inputs-test1 ] unit-test
index 3c0fb988b78d8b19c5d46a5f4f3b388c3e19f457..2a0b5bfcb2e0547cf4ac8c3e1b648da54780ecfe 100644 (file)
@@ -7,7 +7,7 @@ MACRO: compose-n ( n word -- quot' ) <repetition> >quotation ;
 
 : compose-n-test ( a b c -- x ) 2 \ + compose-n ;
 
-[ 6 ] [ 1 2 3 compose-n-test ] unit-test
+{ 6 } [ 1 2 3 compose-n-test ] unit-test
 
 TUPLE: color r g b ;
 
@@ -18,21 +18,21 @@ C: <color> color
 
 { 1 3 } [ cleave-test ] must-infer-as
 
-[ 1 2 3 ] [ 1 2 3 <color> cleave-test ] unit-test
+{ 1 2 3 } [ 1 2 3 <color> cleave-test ] unit-test
 
-[ 1 2 3 ] [ 1 2 3 <color> \ cleave-test def>> call ] unit-test
+{ 1 2 3 } [ 1 2 3 <color> \ cleave-test def>> call ] unit-test
 
 : 2cleave-test ( a b -- c d e ) { [ 2array ] [ + ] [ - ] } 2cleave ;
 
-[ { 1 2 } 3 -1 ] [ 1 2 2cleave-test ] unit-test
+{ { 1 2 } 3 -1 } [ 1 2 2cleave-test ] unit-test
 
-[ { 1 2 } 3 -1 ] [ 1 2 \ 2cleave-test def>> call ] unit-test
+{ { 1 2 } 3 -1 } [ 1 2 \ 2cleave-test def>> call ] unit-test
 
 : spread-test ( a b c -- d e f ) { [ sq ] [ neg ] [ recip ] } spread ;
 
-[ 16 -3 1/6 ] [ 4 3 6 spread-test ] unit-test
+{ 16 -3 1/6 } [ 4 3 6 spread-test ] unit-test
 
-[ 16 -3 1/6 ] [ 4 3 6 \ spread-test def>> call ] unit-test
+{ 16 -3 1/6 } [ 4 3 6 \ spread-test def>> call ] unit-test
 
 [ fixnum instance? ] must-infer
 
@@ -70,8 +70,8 @@ MACRO: curry-folding-test ( quot -- )
 
 : member?-test ( a -- ? ) { 1 2 3 10 7 58 } member? ;
 
-[ f ] [ 1.0 member?-test ] unit-test
-[ t ] [ \ member?-test def>> first [ member?-test ] all? ] unit-test
+{ f } [ 1.0 member?-test ] unit-test
+{ t } [ \ member?-test def>> first [ member?-test ] all? ] unit-test
 
 ! Macro expansion should throw its own type of error
 : bad-macro ( -- ) ;
index 83227148af01e7f681fe3ecf40578d2d27f17f18..dc0d4879902df1c86df1f0feeac543fabd734d73 100644 (file)
@@ -3,12 +3,12 @@
 USING: tools.test strings.tables ;
 IN: strings.tables.tests
 
-[ { } ] [ { } format-table ] unit-test
+{ { } } [ { } format-table ] unit-test
 
-[ { "A  BB" "CC D" } ] [ { { "A" "BB" } { "CC" "D" } } format-table ] unit-test
+{ { "A  BB" "CC D" } } [ { { "A" "BB" } { "CC" "D" } } format-table ] unit-test
 
-[ { "A C" "B " "D E" } ] [ { { "A\nB" "C" } { "D" "E" } } format-table ] unit-test
+{ { "A C" "B " "D E" } } [ { { "A\nB" "C" } { "D" "E" } } format-table ] unit-test
 
-[ { "A B" "  C" "D E" } ] [ { { "A" "B\nC" } { "D" "E" } } format-table ] unit-test
+{ { "A B" "  C" "D E" } } [ { { "A" "B\nC" } { "D" "E" } } format-table ] unit-test
 
-[ { "A B" "C D" "  E" } ] [ { { "A" "B" } { "C" "D\nE" } } format-table ] unit-test
+{ { "A B" "C D" "  E" } } [ { { "A" "B" } { "C" "D\nE" } } format-table ] unit-test
index 9658c6702d3b8bfc17aaffae593d48804d76e026..5431684d0e5cc95b7d7ac47abb6f5dd99c538b27 100644 (file)
@@ -4,7 +4,7 @@ USING: tools.test suffix-arrays kernel namespaces sequences ;
 IN: suffix-arrays.tests
 
 ! built from [ all-words 10 head [ name>> ] map ]
-[ ] [
+{ } [
      {
         "run-tests"
         "must-fail-with"
@@ -19,20 +19,20 @@ IN: suffix-arrays.tests
     } >suffix-array "suffix-array" set
 ] unit-test
 
-[ t ]
+{ t }
 [ "suffix-array" get "" swap query empty? not ] unit-test
 
-[ { } ]
+{ { } }
 [ SA{ } "something" swap query ] unit-test
 
-[ { "unit-test" "(unit-test)" } ]
+{ { "unit-test" "(unit-test)" } }
 [ "suffix-array" get "unit-test" swap query ] unit-test
 
-[ t ]
+{ t }
 [ "suffix-array" get "something else" swap query empty? ] unit-test
 
-[ { "rofl" } ] [ SA{ "rofl" } "r" swap query ] unit-test
-[ { "rofl" } ] [ SA{ "rofl" } "o" swap query ] unit-test
-[ { "rofl" } ] [ SA{ "rofl" } "f" swap query ] unit-test
-[ { "rofl" } ] [ SA{ "rofl" } "l" swap query ] unit-test
-[ { } ] [ SA{ "rofl" } "t" swap query ] unit-test
+{ { "rofl" } } [ SA{ "rofl" } "r" swap query ] unit-test
+{ { "rofl" } } [ SA{ "rofl" } "o" swap query ] unit-test
+{ { "rofl" } } [ SA{ "rofl" } "f" swap query ] unit-test
+{ { "rofl" } } [ SA{ "rofl" } "l" swap query ] unit-test
+{ { } } [ SA{ "rofl" } "t" swap query ] unit-test
index d8bf47c7d9261d65bac948e1c56d5cb82590da9b..ce3fa9332981dd0f54bd9e719ed20271a9975a18 100644 (file)
@@ -7,7 +7,7 @@ IN: syndication.tests
     #! it as an feed tuple.
     binary file-contents parse-feed ;
 
-[ T{
+{ T{
     feed
     f
     "Meerkat"
@@ -22,8 +22,8 @@ IN: syndication.tests
             f
         }
     }
-} ] [ "vocab:syndication/test/rss1.xml" load-news-file ] unit-test
-[ T{
+} } [ "vocab:syndication/test/rss1.xml" load-news-file ] unit-test
+{ T{
     feed
     f
     "dive into mark"
@@ -39,5 +39,5 @@ IN: syndication.tests
             T{ timestamp f 2003 12 13 8 29 29 T{ duration f 0 0 0 -4 0 0 } }
         }
     }
-} ] [ "vocab:syndication/test/atom.xml" load-news-file ] unit-test
-[ t ] [ "vocab:syndication/test/atom.xml" load-news-file dup feed>xml xml>feed = ] unit-test
+} } [ "vocab:syndication/test/atom.xml" load-news-file ] unit-test
+{ t } [ "vocab:syndication/test/atom.xml" load-news-file dup feed>xml xml>feed = ] unit-test
index b7adb8f8514855a64117f51d2c9fd61d9910867b..ec8e2b0c194e1dc7b9cb856eaa1002ed4871681b 100644 (file)
@@ -31,17 +31,17 @@ TUPLE: tup1 a ;
 
 3 "x" set
 [ 2 "x" set ] "Test" spawn drop
-[ 2 ] [ yield "x" get ] unit-test
-[ ] [ [ flush ] "flush test" spawn drop flush ] unit-test
-[ ] [ [ "Errors, errors" throw ] "error test" spawn drop ] unit-test
+{ 2 } [ yield "x" get ] unit-test
+{ } [ [ flush ] "flush test" spawn drop flush ] unit-test
+{ } [ [ "Errors, errors" throw ] "error test" spawn drop ] unit-test
 yield
 
-[ ] [ 0.3 sleep ] unit-test
+{ } [ 0.3 sleep ] unit-test
 [ "hey" sleep ] must-fail
 
-[ 3 ] [ 3 self resume-with "Test suspend" suspend ] unit-test
+{ 3 } [ 3 self resume-with "Test suspend" suspend ] unit-test
 
-[ f ] [ f get-global ] unit-test
+{ f } [ f get-global ] unit-test
 
 { { 0 3 6 9 12 15 18 21 24 27 } } [
     10 iota [
@@ -60,30 +60,30 @@ yield
     ] with-variable
     p ?promise g eq? ;
 
-[ t ] [ spawn-namespace-test ] unit-test
+{ t } [ spawn-namespace-test ] unit-test
 
 [ "a" [ 1 1 + ] spawn 100 sleep ] must-fail
 
-[ ] [ 0.1 seconds sleep ] unit-test
+{ } [ 0.1 seconds sleep ] unit-test
 
 ! Test thread-local variables
 <promise> "p" set
 
 5 "x" tset
 
-[ 5 ] [ "x" tget ] unit-test
+{ 5 } [ "x" tget ] unit-test
 
-[ ] [ "x" [ 1 + ] tchange ] unit-test
+{ } [ "x" [ 1 + ] tchange ] unit-test
 
-[ 6 ] [ "x" tget ] unit-test
+{ 6 } [ "x" tget ] unit-test
 
 ! Are they truly thread-local?
 [ "x" tget "p" get fulfill ] in-thread
 
-[ f ] [ "p" get ?promise ] unit-test
+{ f } [ "p" get ?promise ] unit-test
 
 ! Test system traps inside threads
-[ ] [ [ dup ] in-thread yield ] unit-test
+{ } [ [ dup ] in-thread yield ] unit-test
 
 ! The start-context-and-delete primitive wasn't rewinding the
 ! callstack properly.
@@ -93,7 +93,7 @@ yield
 ! The unit test asserts that the callstack is empty from the
 ! quotation passed to start-context-and-delete.
 
-[ 3 ] [
+{ 3 } [
     <promise> [
         '[
             _ [
index e299e29cad9e2758cfcd078c0874f48aa434b5a6..8e1a6cfc702fadcff0cb56b12505c2bad7e85915 100644 (file)
@@ -3,7 +3,7 @@ concurrency.promises fry kernel math math.order sequences
 threads tools.test tools.time ;
 IN: timers.tests
 
-[ ] [
+{ } [
     1 <count-down>
     { f } clone 2dup
     [ first stop-timer count-down ] 2curry 1 seconds later
@@ -11,12 +11,12 @@ IN: timers.tests
     await
 ] unit-test
 
-[ ] [
+{ } [
     self [ resume ] curry instant later drop
     "test" suspend drop
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         <promise>
         [ '[ t _ fulfill ] 2 seconds later drop ]
@@ -24,41 +24,41 @@ IN: timers.tests
     ] benchmark 1,500,000,000 2,500,000,000 between?
 ] unit-test
 
-[ { 3 } ] [
+{ { 3 } } [
     { 3 } dup
     '[ 4 _ set-first ] 2 seconds later
     1/2 seconds sleep
     stop-timer
 ] unit-test
 
-[ { 1 } ] [
+{ { 1 } } [
     { 0 }
     dup '[ 0 _ [ 1 + ] change-nth ] 3 seconds later
     [ stop-timer ] [ start-timer ] bi
     4 seconds sleep
 ] unit-test
 
-[ { 0 } ] [
+{ { 0 } } [
     { 0 }
     dup '[ 3 seconds sleep 1 _ set-first ] 1 seconds later
     2 seconds sleep stop-timer
     1/2 seconds sleep
 ] unit-test
 
-[ { 0 } ] [
+{ { 0 } } [
     { 0 }
     dup '[ 1 _ set-first ] 300 milliseconds later
     150 milliseconds sleep
     [ restart-timer ] [ 200 milliseconds sleep stop-timer ] bi
 ] unit-test
 
-[ { 1 } ] [
+{ { 1 } } [
     { 0 }
     dup '[ 0 _ [ 1 + ] change-nth ] 200 milliseconds later
     100 milliseconds sleep restart-timer 300 milliseconds sleep
 ] unit-test
 
-[ { 4 } ] [
+{ { 4 } } [
     { 0 }
     dup '[ 0 _ [ 1 + ] change-nth ] 300 milliseconds 300 milliseconds
     <timer> dup start-timer
index 50c24736dfb9d7645c8054a6b57bd3dd85ef3e7a..77fa6bf98983c0e928d56911756da372a19d51fb 100644 (file)
@@ -6,26 +6,26 @@ IN: tools.annotations.tests
 : foo ( -- ) ;
 \ foo watch
 
-[ ] [ foo ] unit-test
+{ } [ foo ] unit-test
 
 ! erg's bug
 GENERIC: some-generic ( a -- b )
 
 M: integer some-generic 1 + ;
 
-[ 4 ] [ 3 some-generic ] unit-test
+{ 4 } [ 3 some-generic ] unit-test
 
-[ ] [ \ some-generic watch ] unit-test
+{ } [ \ some-generic watch ] unit-test
 
-[ 4 ] [ 3 some-generic ] unit-test
+{ 4 } [ 3 some-generic ] unit-test
 
-[ ] [ "IN: tools.annotations.tests USE: math M: integer some-generic 1 - ;" eval( -- ) ] unit-test
+{ } [ "IN: tools.annotations.tests USE: math M: integer some-generic 1 - ;" eval( -- ) ] unit-test
 
-[ 2 ] [ 3 some-generic ] unit-test
+{ 2 } [ 3 some-generic ] unit-test
 
-[ ] [ \ some-generic reset ] unit-test
+{ } [ \ some-generic reset ] unit-test
 
-[ 2 ] [ 3 some-generic ] unit-test
+{ 2 } [ 3 some-generic ] unit-test
 
 ! slava's bug
 GENERIC: another-generic ( a -- b )
@@ -34,22 +34,22 @@ M: object another-generic ;
 
 \ another-generic watch
 
-[ ] [ "IN: tools.annotations.tests GENERIC: another-generic ( a -- b )" eval( -- ) ] unit-test
+{ } [ "IN: tools.annotations.tests GENERIC: another-generic ( a -- b )" eval( -- ) ] unit-test
 
-[ ] [ \ another-generic reset ] unit-test
+{ } [ \ another-generic reset ] unit-test
 
-[ "" ] [ [ 3 another-generic drop ] with-string-writer ] unit-test
+{ "" } [ [ 3 another-generic drop ] with-string-writer ] unit-test
 
 ! reset should do the right thing for generic words
-[ ] [ \ another-generic watch ] unit-test
+{ } [ \ another-generic watch ] unit-test
 
 GENERIC: blah-generic ( a -- b )
 
 M: string blah-generic ;
 
-[ ] [ M\ string blah-generic watch ] unit-test
+{ } [ M\ string blah-generic watch ] unit-test
 
-[ "hi" ] [ "hi" blah-generic ] unit-test
+{ "hi" } [ "hi" blah-generic ] unit-test
 
 ! See how well watch interacts with optimizations.
 GENERIC: my-generic ( a -- b )
@@ -60,12 +60,12 @@ M: object my-generic ;
 : some-code ( -- )
     f my-generic drop ;
 
-[ ] [ some-code ] unit-test
+{ } [ some-code ] unit-test
 
 ! Make sure annotations work on primitives
 \ gc reset
 \ gc watch
 
-[ f ] [ [ [ gc ] with-error>output ] with-string-writer empty? ] unit-test
+{ f } [ [ [ gc ] with-error>output ] with-string-writer empty? ] unit-test
 
 \ gc reset
index 52165b7ddbbf2f72806753f9371e79f6235a9e72..7b445f164275c6b3d8bb4163b3666627a85504e7 100644 (file)
@@ -10,8 +10,8 @@ M: class predicate-test ;
 
 M: generic predicate-test ;
 
-[ f ] [ \ + irrelevant? ] unit-test
-[ t ] [ \ predicate-test "engines" word-prop first irrelevant? ] unit-test
+{ f } [ \ + irrelevant? ] unit-test
+{ t } [ \ predicate-test "engines" word-prop first irrelevant? ] unit-test
 
 GENERIC: foo ( a b -- c )
 
@@ -19,24 +19,24 @@ M: integer foo + ;
 
 "vocab:tools/crossref/test/foo.factor" run-file
 
-[ t ] [ integer \ foo lookup-method \ + usage member? ] unit-test
-[ t ] [ \ foo usage [ pathname? ] any? ] unit-test
+{ t } [ integer \ foo lookup-method \ + usage member? ] unit-test
+{ t } [ \ foo usage [ pathname? ] any? ] unit-test
 
 ! Issues with forget
 GENERIC: generic-forget-test-1 ( a b -- c )
 
 M: integer generic-forget-test-1 / ;
 
-[ t ] [
+{ t } [
     \ / usage [ word? ] filter
     [ name>> "integer=>generic-forget-test-1" = ] any?
 ] unit-test
 
-[ ] [
+{ } [
     [ \ generic-forget-test-1 forget ] with-compilation-unit
 ] unit-test
 
-[ f ] [
+{ f } [
     \ / usage [ word? ] filter
     [ name>> "integer=>generic-forget-test-1" = ] any?
 ] unit-test
@@ -45,16 +45,16 @@ GENERIC: generic-forget-test-2 ( a b -- c )
 
 M: sequence generic-forget-test-2 = ;
 
-[ t ] [
+{ t } [
     \ = usage [ word? ] filter
     [ name>> "sequence=>generic-forget-test-2" = ] any?
 ] unit-test
 
-[ ] [
+{ } [
     [ M\ sequence generic-forget-test-2 forget ] with-compilation-unit
 ] unit-test
 
-[ f ] [
+{ f } [
     \ = usage [ word? ] filter
     [ name>> "sequence=>generic-forget-test-2" = ] any?
 ] unit-test
index e1b37962545ca0001e03e4a104cd9bfdb11ea196..dc77b57d4b9ff6f53a8ef887b8ed977518439a31 100644 (file)
@@ -16,14 +16,14 @@ delete-staging-images
 
 [ "no such vocab, fool!" deploy ] [ bad-vocab-name? ] must-fail-with
 
-[ ] [ "hello-world" shake-and-bake 550000 small-enough? ] unit-test
+{ } [ "hello-world" shake-and-bake 550000 small-enough? ] unit-test
 
-[ ] [ "sudoku" shake-and-bake 800000 small-enough? ] unit-test
+{ } [ "sudoku" shake-and-bake 800000 small-enough? ] unit-test
 
 ! [ ] [ "hello-ui" shake-and-bake 1605000 small-enough? ] unit-test
-[ ] [ "hello-ui" shake-and-bake 2069160 small-enough? ] unit-test
+{ } [ "hello-ui" shake-and-bake 2069160 small-enough? ] unit-test
 
-[ "math-threads-compiler-io-ui" ] [
+{ "math-threads-compiler-io-ui" } [
     "hello-ui" deploy-config [
         bootstrap-profile staging-image-name file-name
         "." split second
@@ -31,29 +31,29 @@ delete-staging-images
 ] unit-test
 
 ! [ ] [ "maze" shake-and-bake 1520000 small-enough? ] unit-test
-[ ] [ "maze" shake-and-bake 2000000 small-enough? ] unit-test
+{ } [ "maze" shake-and-bake 2000000 small-enough? ] unit-test
 
 ! [ ] [ "tetris" shake-and-bake 1734000 small-enough? ] unit-test
-[ ] [ "tetris" shake-and-bake 2186392 small-enough? ] unit-test
+{ } [ "tetris" shake-and-bake 2186392 small-enough? ] unit-test
 
 ! [ ] [ "spheres" shake-and-bake 1557000 small-enough? ] unit-test
-[ ] [ "spheres" shake-and-bake 2031096 small-enough? ] unit-test
+{ } [ "spheres" shake-and-bake 2031096 small-enough? ] unit-test
 
 ! [ ] [ "terrain" shake-and-bake 2053000 small-enough? ] unit-test
-[ ] [ "terrain" shake-and-bake 2671928 small-enough? ] unit-test
+{ } [ "terrain" shake-and-bake 2671928 small-enough? ] unit-test
 
 ! [ ] [ "gpu.demos.raytrace" shake-and-bake 2764000 small-enough? ] unit-test
-[ ] [ "gpu.demos.raytrace" shake-and-bake 3307816 small-enough? ] unit-test
+{ } [ "gpu.demos.raytrace" shake-and-bake 3307816 small-enough? ] unit-test
 
-[ ] [ "bunny" shake-and-bake 2500000 small-enough? ] unit-test
+{ } [ "bunny" shake-and-bake 2500000 small-enough? ] unit-test
 
-[ ] [ "gpu.demos.bunny" shake-and-bake 3500000 small-enough? ] unit-test
+{ } [ "gpu.demos.bunny" shake-and-bake 3500000 small-enough? ] unit-test
 
 os macosx? [
     [ ] [ "webkit-demo" shake-and-bake 600000 small-enough? ] unit-test
 ] when
 
-[ ] [ "benchmark.regex-dna" shake-and-bake 900000 small-enough? ] unit-test
+{ } [ "benchmark.regex-dna" shake-and-bake 900000 small-enough? ] unit-test
 
 {
     "tools.deploy.test.1"
@@ -90,7 +90,7 @@ M: quit-responder call-responder*
     ] with-scope
     "port" set ;
 
-[ ] [
+{ } [
     <dispatcher>
         add-quot-responder
         "vocab:http/test" <static> >>default
@@ -98,7 +98,7 @@ M: quit-responder call-responder*
     test-httpd
 ] unit-test
 
-[ ] [
+{ } [
     "tools.deploy.test.5" shake-and-bake
     run-temp-image
 ] unit-test
@@ -106,7 +106,7 @@ M: quit-responder call-responder*
 : add-port ( url -- url' )
     >url clone "port" get >>port ;
 
-[ ] [ "http://localhost/quit" add-port http-get 2drop ] unit-test
+{ } [ "http://localhost/quit" add-port http-get 2drop ] unit-test
 
 {
     "tools.deploy.test.6"
@@ -130,40 +130,40 @@ os macosx? [
     [ ] [ "tools.deploy.test.14" shake-and-bake run-temp-image ] unit-test
 ] when
 
-[ { "a" "b" "c" } ] [
+{ { "a" "b" "c" } } [
     "tools.deploy.test.15" shake-and-bake deploy-test-command
     { "a" "b" "c" } append
     ascii [ lines ] with-process-reader
     rest
 ] unit-test
 
-[ ] [ "tools.deploy.test.16" shake-and-bake run-temp-image ] unit-test
+{ } [ "tools.deploy.test.16" shake-and-bake run-temp-image ] unit-test
 
-[ ] [ "tools.deploy.test.17" shake-and-bake run-temp-image ] unit-test
+{ } [ "tools.deploy.test.17" shake-and-bake run-temp-image ] unit-test
 
-[ t ] [
+{ t } [
     "tools.deploy.test.18" shake-and-bake
     deploy-test-command ascii [ readln ] with-process-reader
     test-image temp-file =
 ] unit-test
 
-[ ] [ "resource:license.txt" "license.txt" temp-file copy-file ] unit-test
+{ } [ "resource:license.txt" "license.txt" temp-file copy-file ] unit-test
 
-[ ] [ "tools.deploy.test.19" shake-and-bake run-temp-image ] unit-test
+{ } [ "tools.deploy.test.19" shake-and-bake run-temp-image ] unit-test
 
-[ ] [ "tools.deploy.test.20" shake-and-bake ] unit-test
+{ } [ "tools.deploy.test.20" shake-and-bake ] unit-test
 
-[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo>Factor</foo>" ]
+{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo>Factor</foo>" }
 [ deploy-test-command ascii [ readln ] with-process-reader ] unit-test
 
 ! [ ] [ "tools.deploy.test.20" drop 1353000 small-enough? ] unit-test
-[ ] [ "tools.deploy.test.20" drop 1363000 small-enough? ] unit-test
+{ } [ "tools.deploy.test.20" drop 1363000 small-enough? ] unit-test
 
-[ ] [ "tools.deploy.test.21" shake-and-bake ] unit-test
+{ } [ "tools.deploy.test.21" shake-and-bake ] unit-test
 
-[ "1 2 3" ]
+{ "1 2 3" }
 [ deploy-test-command ascii [ readln ] with-process-reader ] unit-test
 
-[ ] [ "tools.deploy.test.21" drop 1260000 small-enough? ] unit-test
+{ } [ "tools.deploy.test.21" drop 1260000 small-enough? ] unit-test
 
-[ ] [ "benchmark.ui-panes" shake-and-bake run-temp-image ] unit-test
+{ } [ "benchmark.ui-panes" shake-and-bake run-temp-image ] unit-test
index 788b67133a82b140f02412858c2a3c874cba34c5..aacf13d2593a926872dc828403cf8b3396258bbf 100644 (file)
@@ -5,8 +5,8 @@ f debug-leaks? set-global
 
 [ [ 3 throw ] leaks. ] must-fail
 
-[ f ] [ debug-leaks? get-global ] unit-test
+{ f } [ debug-leaks? get-global ] unit-test
 
-[ ] [ [ ] leaks. ] unit-test
+{ } [ [ ] leaks. ] unit-test
 
-[ f ] [ debug-leaks? get-global ] unit-test
+{ f } [ debug-leaks? get-global ] unit-test
index 05cb83fa68ef49b8e755ce9556ab0a5c045ad78a..c81a5a35dcd90f1122f2f9dff5bd86018b2decfe 100644 (file)
@@ -3,7 +3,7 @@ IN: tools.errors
 
 DEFER: blah
 
-[ ] [
+{ } [
     {
         T{ compiler-error
            { error T{ do-not-compile f blah } }
index aa4273f35fd606b14dcaacc654decbe4f49a84a9..52ff5ed5eaeba215a765f1900b20618db9ba6982 100644 (file)
@@ -3,6 +3,6 @@
 USING: tools.test tools.files strings kernel ;
 IN: tools.files.tests
 
-[ ] [ "" directory. ] unit-test
+{ } [ "" directory. ] unit-test
 
-[ ] [ file-systems. ] unit-test
+{ } [ file-systems. ] unit-test
index 75537b0c11e5491b673feb5c404a7b15fd281bf5..845462132fd03422c3546a5841cebf2be0e33b21 100644 (file)
@@ -1,11 +1,11 @@
 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
+{ 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
 
-[ t ] [ 256 iota [ ] B{ } map-as hexdump "Length: 256, 100h\n00000000h: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n00000010h: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................\n00000020h: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f  !\"#$%&'()*+,-./\n00000030h: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 0123456789:;<=>?\n00000040h: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f @ABCDEFGHIJKLMNO\n00000050h: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f PQRSTUVWXYZ[\\]^_\n00000060h: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f `abcdefghijklmno\n00000070h: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f pqrstuvwxyz{|}~.\n00000080h: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f ................\n00000090h: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f ................\n000000a0h: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af ................\n000000b0h: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf ................\n000000c0h: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf ................\n000000d0h: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df ................\n000000e0h: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef ................\n000000f0h: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff ................\n" = ] unit-test
+{ t } [ 256 iota [ ] B{ } map-as hexdump "Length: 256, 100h\n00000000h: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n00000010h: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................\n00000020h: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f  !\"#$%&'()*+,-./\n00000030h: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 0123456789:;<=>?\n00000040h: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f @ABCDEFGHIJKLMNO\n00000050h: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f PQRSTUVWXYZ[\\]^_\n00000060h: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f `abcdefghijklmno\n00000070h: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f pqrstuvwxyz{|}~.\n00000080h: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f ................\n00000090h: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f ................\n000000a0h: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af ................\n000000b0h: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf ................\n000000c0h: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf ................\n000000d0h: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df ................\n000000e0h: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef ................\n000000f0h: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff ................\n" = ] unit-test
 
 
-[
-    "Length: 3, 3h\n00000000h: 01 02 03                                        ...\n" ] [ B{ 1 2 3 } hexdump ] unit-test
+{
+    "Length: 3, 3h\n00000000h: 01 02 03                                        ...\n" } [ B{ 1 2 3 } hexdump ] unit-test
index 52c06f4fb0d34e4c39dd0ec88294bce6d717e3c0..a4b1e5a9cab19fbcf3664193ee31f19f22e000c8 100644 (file)
@@ -1,10 +1,10 @@
 USING: tools.test tools.memory memory arrays ;
 IN: tools.memory.tests
 
-[ ] [ room. ] unit-test
-[ ] [ heap-stats. ] unit-test
-[ t ] [ [ gc gc ] collect-gc-events array? ] unit-test
-[ ] [ gc-events. ] unit-test
-[ ] [ gc-stats. ] unit-test
-[ ] [ gc-summary. ] unit-test
-[ ] [ callback-room. ] unit-test
+{ } [ room. ] unit-test
+{ } [ heap-stats. ] unit-test
+{ t } [ [ gc gc ] collect-gc-events array? ] unit-test
+{ } [ gc-events. ] unit-test
+{ } [ gc-stats. ] unit-test
+{ } [ gc-summary. ] unit-test
+{ } [ callback-room. ] unit-test
index 9a05aadda326c85e17beaa9773a95c1a3b400be4..14e60019c876b773b4df5921f88769387195f009 100644 (file)
@@ -11,8 +11,8 @@ TUPLE: boom ;
 { } [ 10 [ [ 100 [ 1000 random (byte-array) drop ] times compact-gc ] profile ] times ] unit-test
 { } [ 2 [ [ 1 seconds sleep ] profile ] times ] unit-test
 
-[ ] [ [ 300,000 iota [ sq sq sq ] map drop ] profile flat profile. ] unit-test
-[ ] [ [ 300,000 iota [ sq sq sq ] map drop ] profile top-down profile. ] unit-test
+{ } [ [ 300,000 iota [ sq sq sq ] map drop ] profile flat profile. ] unit-test
+{ } [ [ 300,000 iota [ sq sq sq ] map drop ] profile top-down profile. ] unit-test
 
 (clear-samples)
 f raw-profile-data set-global
index fe2175ce415e730e613931da668f45fe81f85005..713caa3b599c947a358cd02bc17d0419e909aa5a 100644 (file)
@@ -7,7 +7,7 @@ IN: tools.scaffold.tests
 : undocumented-word ( obj1 obj2 -- obj3 obj4 )
     [ >lower ] [ >upper ] bi* ;
 
-[
+{
 """HELP: undocumented-word
 { $values
     { "obj1" object } { "obj2" object }
@@ -15,7 +15,7 @@ IN: tools.scaffold.tests
 }
 { $description "" } ;
 """
-]
+}
 [
     [ \ undocumented-word (help.) ] with-string-writer
 ] unit-test
@@ -29,4 +29,4 @@ IN: tools.scaffold.tests
 
 : test-maybe ( obj -- obj/f ) ;
 
-[ ] [ \ test-maybe (help.) ] unit-test
+{ } [ \ test-maybe (help.) ] unit-test
index c6ff98789da3eb73ef04b87637d21231455f6bbe..8ce7bf0631e82497870d57880ea34a328f61168e 100644 (file)
@@ -1,7 +1,7 @@
 IN: tools.test.tests
 USING: tools.test tools.test.private namespaces kernel sequences ;
 
-[ 1 ] [
+{ 1 } [
     [
         [ "OOPS" ] must-fail
     ] fake-unit-test length
index 3df61cbd3680950f5dba23ffefa2fed3c79493f6..cefffc74d1a0481cdbcc3a7d1d7eec2ec2ceede7 100644 (file)
@@ -1,4 +1,4 @@
 IN: tools.time.tests
 USING: tools.time tools.test compiler.test ;
 
-[ ] [ [ [ ] time ] compile-call ] unit-test
+{ } [ [ [ ] time ] compile-call ] unit-test
index 06511c7adaeb6af188cac6bcf5394ad2554eaaf6..335f37331ad3d990b572098c106d495772f71f7f 100644 (file)
@@ -2,7 +2,7 @@ IN: tools.trace.tests
 USING: tools.trace tools.test tools.continuations kernel math combinators
 sequences ;
 
-[ { 3 2 1 } ] [ { 1 2 3 } [ reverse ] trace ] unit-test
+{ { 3 2 1 } } [ { 1 2 3 } [ reverse ] trace ] unit-test
 
 GENERIC: method-breakpoint-test ( x -- y )
 
@@ -12,7 +12,7 @@ M: method-breakpoint-tuple method-breakpoint-test break drop 1 2 + ;
 
 \ method-breakpoint-test don't-step-into
 
-[ 3 ]
+{ 3 }
 [ [ T{ method-breakpoint-tuple } method-breakpoint-test ] trace ] unit-test
 
 : case-breakpoint-test ( -- x )
@@ -20,11 +20,11 @@ M: method-breakpoint-tuple method-breakpoint-test break drop 1 2 + ;
 
 \ case-breakpoint-test don't-step-into
 
-[ 6 ] [ [ case-breakpoint-test ] trace ] unit-test
+{ 6 } [ [ case-breakpoint-test ] trace ] unit-test
 
 : call(-breakpoint-test ( -- x )
     [ break 1 ] call( -- x ) 2 + ;
 
 \ call(-breakpoint-test don't-step-into
 
-[ 3 ] [ [ call(-breakpoint-test ] trace ] unit-test
+{ 3 } [ [ call(-breakpoint-test ] trace ] unit-test
index 113e6207198a495a0901360a51018c4db1ce74c1..55b2ba5f837da65f49c0e58d714de5f717e7654b 100644 (file)
@@ -5,112 +5,112 @@ generic.single sequences.private kernel.private
 tools.continuations accessors words combinators ;
 IN: tools.walker.tests
 
-[ { } ] [
+{ { } } [
     [ ] test-walker
 ] unit-test
 
-[ { 1 } ] [
+{ { 1 } } [
     [ 1 ] test-walker
 ] unit-test
 
-[ { 1 2 3 } ] [
+{ { 1 2 3 } } [
     [ 1 2 3 ] test-walker
 ] unit-test
 
-[ { "Yo" 2 } ] [
+{ { "Yo" 2 } } [
     [ 2 [ "Yo" ] dip ] test-walker
 ] unit-test
 
-[ { "Yo" 2 3 } ] [
+{ { "Yo" 2 3 } } [
     [ 2 [ "Yo" ] dip 3 ] test-walker
 ] unit-test
 
-[ { 2 } ] [
+{ { 2 } } [
     [ t [ 2 ] [ "hi" ] if ] test-walker
 ] unit-test
 
-[ { "hi" } ] [
+{ { "hi" } } [
     [ f [ 2 ] [ "hi" ] if ] test-walker
 ] unit-test
 
-[ { 4 } ] [
+{ { 4 } } [
     [ 2 2 fixnum+ ] test-walker
 ] unit-test
 
 : foo ( -- x ) 2 2 fixnum+ ;
 
-[ { 8 } ] [
+{ { 8 } } [
     [ foo 4 fixnum+ ] test-walker
 ] unit-test
 
-[ { C{ 1 1.5 } { } C{ 1 1.5 } { } } ] [
+{ { C{ 1 1.5 } { } C{ 1 1.5 } { } } } [
     [ C{ 1 1.5 } { } 2dup ] test-walker
 ] unit-test
 
-[ { t } ] [
+{ { t } } [
     [ 5 5 number= ] test-walker
 ] unit-test
 
-[ { f } ] [
+{ { f } } [
     [ 5 6 number= ] test-walker
 ] unit-test
 
-[ { 0 } ] [
+{ { 0 } } [
     [ 0 { array-capacity } declare ] test-walker
 ] unit-test
 
-[ { f } ] [
+{ { f } } [
     [ "XYZ" "XYZ" mismatch ] test-walker
 ] unit-test
 
-[ { t } ] [
+{ { t } } [
     [ "XYZ" "XYZ" sequence= ] test-walker
 ] unit-test
 
-[ { t } ] [
+{ { t } } [
     [ "XYZ" "XYZ" = ] test-walker
 ] unit-test
 
-[ { f } ] [
+{ { f } } [
     [ "XYZ" "XuZ" = ] test-walker
 ] unit-test
 
-[ { 4 } ] [
+{ { 4 } } [
     [ 2 2 + ] test-walker
 ] unit-test
 
-[ { 3 } ] [
+{ { 3 } } [
     [ [ 3 "x" set "x" get ] with-scope ] test-walker
 ] unit-test
 
-[ { "hi\n" } ] [
+{ { "hi\n" } } [
     [ [ "hi" print ] with-string-writer ] test-walker
 ] unit-test
 
-[ { "4\n" } ] [
+{ { "4\n" } } [
     [ [ 2 2 + number>string print ] with-string-writer ] test-walker
 ] unit-test
 
-[ { 1 2 3 } ] [
+{ { 1 2 3 } } [
     [ { 1 2 3 } set-datastack ] test-walker
 ] unit-test
 
-[ { 6 } ]
+{ { 6 } }
 [ [ 3 [ nip continue ] callcc0 2 * ] test-walker ] unit-test
 
-[ { 6 } ]
+{ { 6 } }
 [ [ [ 3 swap continue-with ] callcc1 2 * ] test-walker ] unit-test
 
-[ { } ]
+{ { } }
 [ [ [ ] [ ] recover ] test-walker ] unit-test
 
-[ { 6 } ]
+{ { 6 } }
 [ [ [ 3 throw ] [ 2 * ] recover ] test-walker ] unit-test
 
-[ { T{ no-method f + nth } } ]
+{ { T{ no-method f + nth } } }
 [ [ [ 0 \ + nth ] [ ] recover ] test-walker ] unit-test
 
-[ { } ] [
+{ { } } [
     [ "a" "b" set "c" "d" set [ ] test-walker ] with-scope
 ] unit-test
 
@@ -118,9 +118,9 @@ IN: tools.walker.tests
 
 \ breakpoint-test don't-step-into
 
-[ f ] [ \ breakpoint-test optimized? ] unit-test
+{ f } [ \ breakpoint-test optimized? ] unit-test
 
-[ { 3 } ] [ [ breakpoint-test ] test-walker ] unit-test
+{ { 3 } } [ [ breakpoint-test ] test-walker ] unit-test
 
 GENERIC: method-breakpoint-test ( x -- y )
 
@@ -130,7 +130,7 @@ M: method-breakpoint-tuple method-breakpoint-test break drop 1 2 + ;
 
 \ method-breakpoint-test don't-step-into
 
-[ { 3 } ]
+{ { 3 } }
 [ [ T{ method-breakpoint-tuple } method-breakpoint-test ] test-walker ] unit-test
 
 : case-breakpoint-test ( -- x )
@@ -138,11 +138,11 @@ M: method-breakpoint-tuple method-breakpoint-test break drop 1 2 + ;
 
 \ case-breakpoint-test don't-step-into
 
-[ { 6 } ] [ [ case-breakpoint-test ] test-walker ] unit-test
+{ { 6 } } [ [ case-breakpoint-test ] test-walker ] unit-test
 
 : call(-breakpoint-test ( -- x )
     [ break 1 ] call( -- x ) 2 + ;
 
 \ call(-breakpoint-test don't-step-into
 
-[ { 3 } ] [ [ call(-breakpoint-test ] test-walker ] unit-test
+{ { 3 } } [ [ call(-breakpoint-test ] test-walker ] unit-test
index 3434c28216366a5114b28d829a930875ab807b51..f030e1243ef5ba5aee8fde7960781a80564c94f6 100644 (file)
@@ -3,6 +3,6 @@ USING: tr tools.test ascii ;
 
 TR: tr-test ch>upper "ABC" "XYZ" ;
 
-[ "XXYY" ] [ "aabb" tr-test ] unit-test
-[ "XXYY" ] [ "AABB" tr-test ] unit-test
-[ { 12345 } ] [ { 12345 } tr-test ] unit-test
+{ "XXYY" } [ "aabb" tr-test ] unit-test
+{ "XXYY" } [ "AABB" tr-test ] unit-test
+{ { 12345 } } [ { 12345 } tr-test ] unit-test
index 34cd559595fc22419b3b305d79374f256caa0a76..e36feb8945267aae71977fe292f395d947940aab 100644 (file)
@@ -7,29 +7,29 @@ TUPLE: foo bar ; final
 C: <foo> foo
 TUPLE-ARRAY: foo
 
-[ 2 ] [ 2 <foo-array> dup mat set length ] unit-test
-[ T{ foo } ] [ mat get first ] unit-test
-[ T{ foo f 2 } ] [ T{ foo f 2 } 0 mat get [ set-nth ] keep first ] unit-test
-[ t ] [ { T{ foo f 1 } T{ foo f 2 } } >foo-array dup mat set foo-array? ] unit-test
-[ T{ foo f 3 } t ]
+{ 2 } [ 2 <foo-array> dup mat set length ] unit-test
+{ T{ foo } } [ mat get first ] unit-test
+{ T{ foo f 2 } } [ T{ foo f 2 } 0 mat get [ set-nth ] keep first ] unit-test
+{ t } [ { T{ foo f 1 } T{ foo f 2 } } >foo-array dup mat set foo-array? ] unit-test
+{ T{ foo f 3 } t }
 [ mat get [ bar>> 2 + <foo> ] map [ first ] keep foo-array? ] unit-test
 
-[ 2 ] [ 2 <foo-array> dup mat set length ] unit-test
-[ T{ foo } ] [ mat get first ] unit-test
-[ T{ foo f 1 } ] [ T{ foo f 1 } 0 mat get [ set-nth ] keep first ] unit-test
+{ 2 } [ 2 <foo-array> dup mat set length ] unit-test
+{ T{ foo } } [ mat get first ] unit-test
+{ T{ foo f 1 } } [ T{ foo f 1 } 0 mat get [ set-nth ] keep first ] unit-test
 
 TUPLE: baz { bing integer } bong ; final
 TUPLE-ARRAY: baz
 
-[ 0 ] [ 1 <baz-array> first bing>> ] unit-test
-[ f ] [ 1 <baz-array> first bong>> ] unit-test
+{ 0 } [ 1 <baz-array> first bing>> ] unit-test
+{ f } [ 1 <baz-array> first bong>> ] unit-test
 
 TUPLE: broken x ; final
 : broken ( -- ) ;
 
 TUPLE-ARRAY: broken
 
-[ 100 ] [ 100 <broken-array> length ] unit-test
+{ 100 } [ 100 <broken-array> length ] unit-test
 
 ! Can't define a tuple array for a non-tuple class
 [ "IN: tuple-arrays.tests USING: tuple-arrays words ; TUPLE-ARRAY: word" eval( -- ) ]
@@ -48,9 +48,9 @@ TUPLE: empty-tuple ; final
 
 TUPLE-ARRAY: empty-tuple
 
-[ 100 ] [ 100 <empty-tuple-array> length ] unit-test
-[ T{ empty-tuple } ] [ 100 <empty-tuple-array> first ] unit-test
-[ ] [ T{ empty-tuple } 100 <empty-tuple-array> set-first ] unit-test
+{ 100 } [ 100 <empty-tuple-array> length ] unit-test
+{ T{ empty-tuple } } [ 100 <empty-tuple-array> first ] unit-test
+{ } [ T{ empty-tuple } 100 <empty-tuple-array> set-first ] unit-test
 
 ! Changing a tuple into a struct shouldn't break the tuple array to the point
 ! of crashing Factor
@@ -58,14 +58,14 @@ TUPLE: tuple-to-struct x ; final
 
 TUPLE-ARRAY: tuple-to-struct
 
-[ f ] [ tuple-to-struct struct-class? ] unit-test
+{ f } [ tuple-to-struct struct-class? ] unit-test
 
 ! This shouldn't crash
-[ ] [
+{ } [
     "IN: tuple-arrays.tests
     USING: alien.c-types classes.struct ;
     STRUCT: tuple-to-struct { x int } ;"
     eval( -- )
 ] unit-test
 
-[ t ] [ tuple-to-struct struct-class? ] unit-test
+{ t } [ tuple-to-struct struct-class? ] unit-test
index 2c255e388cf0815b2f8b2ba71722b613651f667a..7fe9e59043dff2ca01db6c508c1e95ffd11c109b 100644 (file)
@@ -7,7 +7,7 @@ IN: typed.tests
 TYPED: f+ ( a: float b: float -- c: float )
     + ;
 
-[ 3.5 ]
+{ 3.5 }
 [ 2 1+1/2 f+ ] unit-test
 
 TYPED: fix+ ( a: fixnum b: fixnum -- c: fixnum )
@@ -44,7 +44,7 @@ TYPED: dumdum ( x -- y: tweedle-dum )
 TYPED:: f+locals ( a: float b: float -- c: float )
     a b + ;
 
-[ 3.5 ] [ 2 1+1/2 f+locals ] unit-test
+{ 3.5 } [ 2 1+1/2 f+locals ] unit-test
 
 TUPLE: unboxable
     { x fixnum read-only }
@@ -57,13 +57,13 @@ TUPLE: unboxable2
 TYPED: unboxy ( in: unboxable -- out: unboxable2 )
     dup [ x>> ] [ y>> ] bi - unboxable2 boa ;
 
-[ ( in: fixnum in: fixnum -- out: fixnum out: fixnum out: fixnum ) ]
+{ ( in: fixnum in: fixnum -- out: fixnum out: fixnum out: fixnum ) }
 [ \ unboxy "typed-word" word-prop stack-effect ] unit-test
 
-[ T{ unboxable2 { u T{ unboxable { x 12 } { y 3 } } } { xy 9 } } ]
+{ T{ unboxable2 { u T{ unboxable { x 12 } { y 3 } } } { xy 9 } } }
 [ T{ unboxable { x 12 } { y 3 } } unboxy ] unit-test
 
-[ 9 ]
+{ 9 }
 [
 """
 USING: kernel math ;
@@ -85,7 +85,7 @@ T{ unboxable f 12 3 4.0 } unboxy xy>>
 TYPED: no-inputs ( -- out: integer )
     1 ;
 
-[ 1 ] [ no-inputs ] unit-test
+{ 1 } [ no-inputs ] unit-test
 
 TUPLE: unboxable3
     { x read-only } ; final
@@ -93,23 +93,23 @@ TUPLE: unboxable3
 TYPED: no-inputs-unboxable-output ( -- out: unboxable3 )
     T{ unboxable3 } ;
 
-[ T{ unboxable3 } ] [ no-inputs-unboxable-output ] unit-test
+{ T{ unboxable3 } } [ no-inputs-unboxable-output ] unit-test
 
-[ f ] [ no-inputs-unboxable-output no-inputs-unboxable-output eq? ] unit-test
+{ f } [ no-inputs-unboxable-output no-inputs-unboxable-output eq? ] unit-test
 
 SYMBOL: buh
 
 TYPED: no-outputs ( x: integer -- )
     buh set ;
 
-[ 2 ] [ 2 no-outputs buh get ] unit-test
+{ 2 } [ 2 no-outputs buh get ] unit-test
 
 TYPED: no-outputs-unboxable-input ( x: unboxable3 -- )
     buh set ;
 
-[ T{ unboxable3 } ] [ T{ unboxable3 } no-outputs-unboxable-input buh get ] unit-test
+{ T{ unboxable3 } } [ T{ unboxable3 } no-outputs-unboxable-input buh get ] unit-test
 
-[ f ] [
+{ f } [
     T{ unboxable3 } no-outputs-unboxable-input buh get
     T{ unboxable3 } no-outputs-unboxable-input buh get
     eq?
@@ -121,21 +121,21 @@ TUPLE: subclass < superclass { y read-only } ; final
 
 TYPED: unbox-fail ( a: superclass -- ? ) subclass? ;
 
-[ t ] [ subclass new unbox-fail ] unit-test
+{ t } [ subclass new unbox-fail ] unit-test
 
 ! If a final class becomes non-final, typed words need to be recompiled
 TYPED: recompile-fail ( a: subclass -- ? ) buh get eq? ;
 
-[ f ] [ subclass new [ buh set ] [ recompile-fail ] bi ] unit-test
+{ f } [ subclass new [ buh set ] [ recompile-fail ] bi ] unit-test
 
-[ ] [ "IN: typed.tests TUPLE: subclass < superclass { y read-only } ;" eval( -- ) ] unit-test
+{ } [ "IN: typed.tests TUPLE: subclass < superclass { y read-only } ;" eval( -- ) ] unit-test
 
-[ t ] [ subclass new [ buh set ] [ recompile-fail ] bi ] unit-test
+{ t } [ subclass new [ buh set ] [ recompile-fail ] bi ] unit-test
 
 ! Make sure that foldable and flushable work on typed words
 TYPED: add ( a: integer b: integer -- c: integer ) + ; foldable
 
-[ [ 3 ] ] [ [ 1 2 add ] cleaned-up-tree nodes>quot ] unit-test
+{ [ 3 ] } [ [ 1 2 add ] cleaned-up-tree nodes>quot ] unit-test
 
 TYPED: flush-test ( s: symbol -- ? ) on t ; flushable
 
@@ -144,14 +144,14 @@ TYPED: flush-test ( s: symbol -- ? ) on t ; flushable
 
 SYMBOL: a-symbol
 
-[ f ] [
+{ f } [
     f a-symbol [
         a-symbol flush-print-1
         a-symbol get
     ] with-variable
 ] unit-test
 
-[ t ] [
+{ t } [
     f a-symbol [
         a-symbol flush-print-2
         a-symbol get
@@ -163,25 +163,25 @@ TUPLE: forget-class { x read-only } ; final
 
 TYPED: forget-fail ( a: forget-class -- ) drop ;
 
-[ ] [ [ \ forget-class forget ] with-compilation-unit ] unit-test
+{ } [ [ \ forget-class forget ] with-compilation-unit ] unit-test
 
-[ ] [ [ \ forget-fail forget ] with-compilation-unit ] unit-test
+{ } [ [ \ forget-fail forget ] with-compilation-unit ] unit-test
 
 TYPED: typed-maybe ( x: maybe{ integer } -- ? ) >boolean ;
 
-[ f ] [ f typed-maybe ] unit-test
-[ t ] [ 30 typed-maybe ] unit-test
+{ f } [ f typed-maybe ] unit-test
+{ t } [ 30 typed-maybe ] unit-test
 [ 30.0 typed-maybe ] [ input-mismatch-error? ] must-fail-with
 
 TYPED: typed-union ( x: union{ integer string } -- ? ) >boolean ;
 
-[ t ] [ 3 typed-union ] unit-test
-[ t ] [ "asdf" typed-union ] unit-test
+{ t } [ 3 typed-union ] unit-test
+{ t } [ "asdf" typed-union ] unit-test
 [ 3.3 typed-union ] [ input-mismatch-error? ] must-fail-with
 
 TYPED: typed-intersection ( x: intersection{ integer bignum } -- ? ) >boolean ;
 
-[ t ] [ 5555555555555555555555555555555555555555555555555555 typed-intersection ] unit-test
+{ t } [ 5555555555555555555555555555555555555555555555555555 typed-intersection ] unit-test
 [ 0 typed-intersection ] [ input-mismatch-error? ] must-fail-with
 
 [
index a9643968b9cb432070b6c5c7e9d9f3f15cbb2331..8eec38b3706e5bd37407a3ac7e946ab011451eb3 100644 (file)
@@ -2,7 +2,7 @@ IN: ui.backend.cocoa.views.tests
 USING: ui.backend.cocoa.views tools.test kernel math.rectangles
 namespaces ;
 
-[ t ] [
+{ t } [
     T{ rect
         { loc { 0 0 } }
         { dim { 1000 1000 } }
index 874c0151c9f29d19e3fb0aaf8ff0b0937748308e..d1134e3e243659c4aefb76d2355ad7fd247f690e 100644 (file)
@@ -5,13 +5,13 @@ ui.baseline-alignment ui.baseline-alignment.private ;
 IN: ui.baseline-alignment.tests
 
 ! Test baseline calculations
-[ 10 0 ] [ 0 10 0 10 combine-metrics ] unit-test
-[ 10 5 ] [ 0 10 5 10 combine-metrics ] unit-test
-[ 15 15 ] [ 30 0 0 0 combine-metrics ] unit-test
-[ 5 30 ] [ 10 0 30 0 combine-metrics ] unit-test
-[ 10 10 ] [ 5 10 10 10 combine-metrics ] unit-test
-[ 15 5 ] [ 20 10 0 10 combine-metrics ] unit-test
-[ 15 40 ] [ 20 10 40 10 combine-metrics ] unit-test
-[ 12 3 ] [ 0 12 3 9 combine-metrics ] unit-test
+{ 10 0 } [ 0 10 0 10 combine-metrics ] unit-test
+{ 10 5 } [ 0 10 5 10 combine-metrics ] unit-test
+{ 15 15 } [ 30 0 0 0 combine-metrics ] unit-test
+{ 5 30 } [ 10 0 30 0 combine-metrics ] unit-test
+{ 10 10 } [ 5 10 10 10 combine-metrics ] unit-test
+{ 15 5 } [ 20 10 0 10 combine-metrics ] unit-test
+{ 15 40 } [ 20 10 40 10 combine-metrics ] unit-test
+{ 12 3 } [ 0 12 3 9 combine-metrics ] unit-test
 
-[ t ] [ \ baseline \ cap-height [ order ] bi@ set= ] unit-test
+{ t } [ \ baseline \ cap-height [ order ] bi@ set= ] unit-test
index bd1e4d4198f59b16742bdd37294bdd729bf3f5d7..48009fb7b4ec6f086b20752479a082e4f4d27743 100644 (file)
@@ -2,19 +2,19 @@ IN: ui.commands.tests
 USING: ui.commands ui.gestures tools.test help.markup io
 io.streams.string system kernel ;
 
-[ "Press Button 2" ] [ T{ button-down f f 2 } gesture>string ] unit-test
+{ "Press Button 2" } [ T{ button-down f f 2 } gesture>string ] unit-test
 
 : com-test-1 ( -- ) ;
 
 \ com-test-1 H{ } define-command
 
-[ [ 3 com-test-1 ] ] [ 3 \ com-test-1 command-quot ] unit-test
+{ [ 3 com-test-1 ] } [ 3 \ com-test-1 command-quot ] unit-test
 
 : com-test-2 ( -- ) ;
 
 \ com-test-2 H{ { +nullary+ t } } define-command
 
-[ [ com-test-2 ] ] [ 3 \ com-test-2 command-quot ] unit-test
+{ [ com-test-2 ] } [ 3 \ com-test-2 command-quot ] unit-test
 
 SYMBOL: testing
 
@@ -44,4 +44,4 @@ os macosx? [
 
 : com-foo. ( -- ) ;
 
-[ "Foo" ] [ \ com-foo. command-name ] unit-test
+{ "Foo" } [ \ com-foo. command-name ] unit-test
index e9d7a5362928890ed2273abea559ed83ffc872bc..1c21a7c23ae478a046c556c8e6b9fec7fe1c0e5e 100644 (file)
@@ -2,24 +2,24 @@ IN: ui.gadgets.borders.tests
 USING: tools.test accessors namespaces kernel ui.gadgets
 ui.gadgets.borders ui.gadgets.borders.private math.rectangles ;
 
-[ { 110 210 } ] [ <gadget> { 100 200 } >>dim { 5 5 } <border> pref-dim ] unit-test
+{ { 110 210 } } [ <gadget> { 100 200 } >>dim { 5 5 } <border> pref-dim ] unit-test
 
-[ ] [ <gadget> { 100 200 } >>dim "g" set ] unit-test
+{ } [ <gadget> { 100 200 } >>dim "g" set ] unit-test
 
-[ ] [ "g" get { 0 0 } <border> { 100 200 } >>dim "b" set ] unit-test
+{ } [ "g" get { 0 0 } <border> { 100 200 } >>dim "b" set ] unit-test
 
-[ T{ rect f { 0 0 } { 100 200 } } ] [ "b" get border-child-rect ] unit-test
+{ T{ rect f { 0 0 } { 100 200 } } } [ "b" get border-child-rect ] unit-test
 
-[ ] [ "g" get { 5 5 } <border> { 210 210 } >>dim "b" set ] unit-test
+{ } [ "g" get { 5 5 } <border> { 210 210 } >>dim "b" set ] unit-test
 
-[ T{ rect f { 55 5 } { 100 200 } } ] [ "b" get border-child-rect ] unit-test
+{ T{ rect f { 55 5 } { 100 200 } } } [ "b" get border-child-rect ] unit-test
 
-[ ] [ "b" get { 0 0 } >>align drop ] unit-test
+{ } [ "b" get { 0 0 } >>align drop ] unit-test
 
-[ { 5 5 } ] [ "b" get { 100 200 } border-loc ] unit-test
+{ { 5 5 } } [ "b" get { 100 200 } border-loc ] unit-test
 
-[ T{ rect f { 5 5 } { 100 200 } } ] [ "b" get border-child-rect ] unit-test
+{ T{ rect f { 5 5 } { 100 200 } } } [ "b" get border-child-rect ] unit-test
 
-[ ] [ "b" get { 1 1 } >>fill drop ] unit-test
+{ } [ "b" get { 1 1 } >>fill drop ] unit-test
 
-[ T{ rect f { 5 5 } { 200 200 } } ] [ "b" get border-child-rect ] unit-test
+{ T{ rect f { 5 5 } { 200 200 } } } [ "b" get border-child-rect ] unit-test
index f7c73b24389d552d2aadea4f3f69763e743695a8..a8e864a25975e3efe2e93cbee97b075dda821caf 100644 (file)
@@ -16,10 +16,10 @@ TUPLE: foo-gadget ;
 
 T{ foo-gadget } <toolbar> "t" set
 
-[ 2 ] [ "t" get children>> length ] unit-test
-[ "Foo A" ] [ "t" get gadget-child gadget-child string>> ] unit-test
+{ 2 } [ "t" get children>> length ] unit-test
+{ "Foo A" } [ "t" get gadget-child gadget-child string>> ] unit-test
 
-[ ] [
+{ } [
     2 <model> {
         { 0 "atheist" }
         { 1 "christian" }
@@ -28,10 +28,10 @@ T{ foo-gadget } <toolbar> "t" set
     } <radio-buttons> "religion" set
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     "religion" get gadget-child value>>
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     "religion" get gadget-child control-value
 ] unit-test
index 630a6d547aeb3497e17c5d500d6124d4e4d9ec58..fa397731b4e70ceb58f29572176f71b343f21618 100644 (file)
@@ -5,7 +5,7 @@ ui.gadgets.debug models documents.elements ui.gadgets.scrollers
 ui.gadgets.line-support sequences ;
 IN: ui.gadgets.editors.tests
 
-[ "foo bar" ] [
+{ "foo bar" } [
     <editor> "editor" set
     "editor" get [
         "foo bar" "editor" get set-editor-string
@@ -14,7 +14,7 @@ IN: ui.gadgets.editors.tests
     ] with-grafted-gadget
 ] unit-test
 
-[ "baz quux" ] [
+{ "baz quux" } [
     <editor> "editor" set
     "editor" get [
         "foo bar\nbaz quux" "editor" get set-editor-string
@@ -23,7 +23,7 @@ IN: ui.gadgets.editors.tests
     ] with-grafted-gadget
 ] unit-test
 
-[ ] [
+{ } [
     <editor> "editor" set
     "editor" get [
         "foo bar\nbaz quux" "editor" get set-editor-string
@@ -32,7 +32,7 @@ IN: ui.gadgets.editors.tests
     ] with-grafted-gadget
 ] unit-test
 
-[ "bar" ] [
+{ "bar" } [
     <editor> "editor" set
     "editor" get [
         "bar\nbaz quux" "editor" get set-editor-string
@@ -48,20 +48,20 @@ IN: ui.gadgets.editors.tests
     [ "hello" ] [ "field" get field-model>> value>> ] unit-test
 ] with-grafted-gadget
 
-[ "Hello world." ] [ "Hello    \n    world." join-lines ] unit-test
-[ "  Hello world.  " ] [ "  Hello    \n    world.  " join-lines ] unit-test
-[ "  Hello world. Goodbye." ] [ "  Hello    \n    world.  \n  Goodbye." join-lines ] unit-test
+{ "Hello world." } [ "Hello    \n    world." join-lines ] unit-test
+{ "  Hello world.  " } [ "  Hello    \n    world.  " join-lines ] unit-test
+{ "  Hello world. Goodbye." } [ "  Hello    \n    world.  \n  Goodbye." join-lines ] unit-test
 
-[ ] [ <editor> com-join-lines ] unit-test
-[ ] [ <editor> "A" over set-editor-string com-join-lines ] unit-test
-[ "A B" ] [ <editor> "A\nB" over set-editor-string [ com-join-lines ] [ editor-string ] bi ] unit-test
-[ "A B\nC\nD" ] [ <editor> "A\nB\nC\nD" over set-editor-string { 0 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
-[ "A\nB C\nD" ] [ <editor> "A\nB\nC\nD" over set-editor-string { 1 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
-[ "A\nB\nC D" ] [ <editor> "A\nB\nC\nD" over set-editor-string { 2 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
+{ } [ <editor> com-join-lines ] unit-test
+{ } [ <editor> "A" over set-editor-string com-join-lines ] unit-test
+{ "A B" } [ <editor> "A\nB" over set-editor-string [ com-join-lines ] [ editor-string ] bi ] unit-test
+{ "A B\nC\nD" } [ <editor> "A\nB\nC\nD" over set-editor-string { 0 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
+{ "A\nB C\nD" } [ <editor> "A\nB\nC\nD" over set-editor-string { 1 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
+{ "A\nB\nC D" } [ <editor> "A\nB\nC\nD" over set-editor-string { 2 0 } over set-caret dup mark>caret [ com-join-lines ] [ editor-string ] bi ] unit-test
 
-[ 2 ] [ <editor> 20 >>min-rows 20 >>min-cols pref-viewport-dim length ] unit-test
+{ 2 } [ <editor> 20 >>min-rows 20 >>min-cols pref-viewport-dim length ] unit-test
 
-[ 20 ] [
+{ 20 } [
     <editor> 20 >>min-rows 20 >>min-cols
     dup pref-viewport-dim >>dim
     visible-lines
index f301abd6d6cc416bb963c204a7ee10378b7bf5bb..f807bcf99373bf6b1b2aeadf0612a3f51e1e19f6 100644 (file)
@@ -2,9 +2,9 @@ USING: accessors kernel namespaces tools.test ui.gadgets
 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
 
-[ { 1000 1000 } ] [
+{ { 1000 1000 } } [
     1 1 <frame>
     { 0 0 } >>filled-cell
     <gadget> dup "c" set { 0 0 } grid-add
@@ -13,7 +13,7 @@ IN: ui.gadgets.frames.tests
     "c" get dim>>
 ] unit-test
 
-[ t ] [
+{ t } [
     1 2 <frame>
         { 0 0 } >>filled-cell
         "Hello world" <label> { 0 0 } grid-add
@@ -26,7 +26,7 @@ IN: ui.gadgets.frames.tests
     "dim1" get "dim2" get =
 ] unit-test
 
-[ { 5 20 } { 20 20 } ] [
+{ { 5 20 } { 20 20 } } [
     2 3 <frame>
     { 0 1 } >>filled-cell
     { 5 5 } >>gap
index e9d677537c275b31316354e8a0e8d75860a3176a..71b605816ddcd928ba74cd61e9ff994974d52b7e 100644 (file)
@@ -5,7 +5,7 @@ io.streams.string math.rectangles ui.gadgets.private sets generic ;
 FROM: namespaces => set ;
 IN: ui.gadgets.tests
 
-[ { 300 300 } ]
+{ { 300 300 } }
 [
     ! c contains b contains a
     <gadget> "a" set
@@ -37,15 +37,15 @@ IN: ui.gadgets.tests
 "g2" get "g1" get add-gadget drop
 "g3" get "g2" get add-gadget drop
 
-[ { 30 30 } ] [ "g1" get screen-loc ] unit-test
-[ { 30 30 } ] [ "g1" get screen-rect loc>> ] unit-test
-[ { 30 30 } ] [ "g1" get screen-rect dim>> ] unit-test
-[ { 20 20 } ] [ "g2" get screen-loc ] unit-test
-[ { 20 20 } ] [ "g2" get screen-rect loc>> ] unit-test
-[ { 50 180 } ] [ "g2" get screen-rect dim>> ] unit-test
-[ { 0 0 } ] [ "g3" get screen-loc ] unit-test
-[ { 0 0 } ] [ "g3" get screen-rect loc>> ] unit-test
-[ { 100 200 } ] [ "g3" get screen-rect dim>> ] unit-test
+{ { 30 30 } } [ "g1" get screen-loc ] unit-test
+{ { 30 30 } } [ "g1" get screen-rect loc>> ] unit-test
+{ { 30 30 } } [ "g1" get screen-rect dim>> ] unit-test
+{ { 20 20 } } [ "g2" get screen-loc ] unit-test
+{ { 20 20 } } [ "g2" get screen-rect loc>> ] unit-test
+{ { 50 180 } } [ "g2" get screen-rect dim>> ] unit-test
+{ { 0 0 } } [ "g3" get screen-loc ] unit-test
+{ { 0 0 } } [ "g3" get screen-rect loc>> ] unit-test
+{ { 100 200 } } [ "g3" get screen-rect dim>> ] unit-test
 
 <gadget> "g1" set
 "g1" get { 300 300 } >>dim drop
@@ -58,20 +58,20 @@ IN: ui.gadgets.tests
 "g3" get { 100 100 } >>loc
          { 20 20 } >>dim drop
 
-[ t ] [ { 30 30 } "g2" get contains-point? ] unit-test
+{ t } [ { 30 30 } "g2" get contains-point? ] unit-test
 
-[ t ] [ { 30 30 } "g1" get pick-up "g2" get eq? ] unit-test
+{ t } [ { 30 30 } "g1" get pick-up "g2" get eq? ] unit-test
 
-[ t ] [ { 30 30 } "g1" get pick-up "g2" get eq? ] unit-test
+{ t } [ { 30 30 } "g1" get pick-up "g2" get eq? ] unit-test
 
-[ t ] [ { 110 110 } "g1" get pick-up "g3" get eq? ] unit-test
+{ t } [ { 110 110 } "g1" get pick-up "g3" get eq? ] unit-test
 
 <gadget> "g4" set
 "g2" get "g4" get add-gadget drop
 "g4" get { 5 5 } >>loc
          { 1 1 } >>dim drop
 
-[ t ] [ { 25 25 } "g1" get pick-up "g4" get eq? ] unit-test
+{ t } [ { 25 25 } "g1" get pick-up "g4" get eq? ] unit-test
 
 TUPLE: mock-gadget < gadget graft-called ungraft-called ;
 
index 00598412c40b3b8bebd61b86f0fe42f06e52ac3a..b73bd06a6cb7d34c27368a6d9e16d675b3d15c57 100644 (file)
@@ -2,7 +2,7 @@ IN: ui.gadgets.glass.tests
 USING: tools.test ui.gadgets.glass ui.gadgets.worlds ui.gadgets
 math.rectangles namespaces accessors models sequences arrays ;
 
-[ ] [
+{ } [
     <world-attributes>
     <gadget> 1array >>gadgets
     <world>
@@ -10,12 +10,12 @@ math.rectangles namespaces accessors models sequences arrays ;
     "w" set
 ] unit-test
 
-[ ] [ <gadget> "g" set ] unit-test
+{ } [ <gadget> "g" set ] unit-test
 
-[ ] [ "w" get "g" get { 0 0 } { 100 100 } <rect> show-glass ] unit-test
+{ } [ "w" get "g" get { 0 0 } { 100 100 } <rect> show-glass ] unit-test
 
-[ ] [ "g" get hide-glass ] unit-test
+{ } [ "g" get hide-glass ] unit-test
 
-[ f ] [ "g" get parent>> parent>> ] unit-test
+{ f } [ "g" get parent>> parent>> ] unit-test
 
-[ t ] [ "w" get layers>> empty? ] unit-test
+{ t } [ "w" get layers>> empty? ] unit-test
index 457c13f2259b67ba8a26503715eb6947256b1b5c..9baae3a15e59db0de3355e30b1674a710be7e8ac 100644 (file)
@@ -4,14 +4,14 @@ ui.gadgets.grids.private accessors arrays ui.gadgets.grids sorting kernel ;
 
 : 100x100 ( -- gadget ) <gadget> { 100 100 } >>dim ;
 
-[
+{
     {
         { { 0 0 } { 0 101 } }
         { { 0 0 } { 101 0 } }
         { { 0 100 } { 101 100 } }
         { { 100 0 } { 100 101 } }
     }
-] [
+} [
     100x100 1array
     1array
     <grid>
@@ -19,14 +19,14 @@ ui.gadgets.grids.private accessors arrays ui.gadgets.grids sorting kernel ;
     compute-grid-lines natural-sort
 ] unit-test
 
-[
+{
     {
         { { 5 5 } { 5 116 } }
         { { 5 5 } { 116 5 } }
         { { 5 115 } { 116 115 } }
         { { 115 5 } { 115 116 } }
     }
-] [
+} [
     100x100 1array
     1array
     <grid>
@@ -35,7 +35,7 @@ ui.gadgets.grids.private accessors arrays ui.gadgets.grids sorting kernel ;
     compute-grid-lines natural-sort
 ] unit-test
 
-[
+{
     {
         { { 0 0 } { 0 201 } }
         { { 0 0 } { 201 0 } }
@@ -44,7 +44,7 @@ ui.gadgets.grids.private accessors arrays ui.gadgets.grids sorting kernel ;
         { { 100 0 } { 100 201 } }
         { { 200 0 } { 200 201 } }
     }
-] [
+} [
     100x100 100x100 2array
     100x100 100x100 2array
     2array
@@ -53,14 +53,14 @@ ui.gadgets.grids.private accessors arrays ui.gadgets.grids sorting kernel ;
     compute-grid-lines natural-sort
 ] unit-test
 
-[
+{
     {
         { { 0 0 } { 0 3 } }
         { { 2 0 } { 2 3 } }
         { { 0 0 } { 3 0 } }
         { { 0 2 } { 3 2 } }
     }
-] [
+} [
     <gadget> { 1 1 } >>dim
     1array 1array <grid> { 1 1 } >>gap
     dup prefer
index 5775e55fe7ab56b9583be87924577d72571bdee0..cb72ddd6e7d0ac8173141fb0d38f3f8e07258ff4 100644 (file)
@@ -3,41 +3,41 @@ namespaces math.rectangles accessors ui.gadgets.grids.private
 ui.gadgets.debug sequences classes ;
 IN: ui.gadgets.grids.tests
 
-[ { 0 0 } ] [ { } <grid> pref-dim ] unit-test
+{ { 0 0 } } [ { } <grid> pref-dim ] unit-test
 
 : 100x100 ( -- gadget ) <gadget> { 100 100 } >>dim ;
 
 : 200x200 ( -- gadget ) <gadget> { 200 200 } >>dim ;
 
-[ { 100 100 } ] [
+{ { 100 100 } } [
     100x100
     1array 1array <grid> pref-dim
 ] unit-test
 
-[ { 100 100 } ] [
+{ { 100 100 } } [
     100x100
     1array 1array <grid> pref-dim
 ] unit-test
 
-[ { 200 100 } ] [
+{ { 200 100 } } [
     100x100
     100x100
     2array 1array <grid> pref-dim
 ] unit-test
 
-[ { 100 200 } ] [
+{ { 100 200 } } [
     100x100
     100x100
     [ 1array ] bi@ 2array <grid> pref-dim
 ] unit-test
 
-[ ] [
+{ } [
     100x100
     100x100
     [ 1array ] bi@ 2array <grid> layout
 ] unit-test
 
-[ { 230 120 } { 100 100 } { 100 100 } ] [
+{ { 230 120 } { 100 100 } { 100 100 } } [
     100x100 dup "a" set
     100x100 dup "b" set
     2array 1array <grid>
@@ -49,7 +49,7 @@ IN: ui.gadgets.grids.tests
     "b" get dim>>
 ] unit-test
 
-[ ] [
+{ } [
     100x100 dup "a" set
     100x100 dup "b" set
     100x100 dup "c" set
@@ -58,47 +58,47 @@ IN: ui.gadgets.grids.tests
     { 10 10 } >>gap "g" set
 ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get prefer ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ { 10 10 } ] [ "a" get loc>> ] unit-test
-[ { 100 100 } ] [ "a" get dim>> ] unit-test
+{ { 10 10 } } [ "a" get loc>> ] unit-test
+{ { 100 100 } } [ "a" get dim>> ] unit-test
 
-[ { 10 120 } ] [ "b" get loc>> ] unit-test
-[ { 100 100 } ] [ "b" get dim>> ] unit-test
+{ { 10 120 } } [ "b" get loc>> ] unit-test
+{ { 100 100 } } [ "b" get dim>> ] unit-test
 
-[ { 10 230 } ] [ "c" get loc>> ] unit-test
-[ { 100 100 } ] [ "c" get dim>> ] unit-test
+{ { 10 230 } } [ "c" get loc>> ] unit-test
+{ { 100 100 } } [ "c" get dim>> ] unit-test
 
 5 10 { 10 10 } <baseline-gadget>
 10 10 { 10 10 } <baseline-gadget> 2array
 1array <grid> f >>fill?
 "g" set
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ { 20 15 } ] [ "g" get dim>> ] unit-test
+{ { 20 15 } } [ "g" get dim>> ] unit-test
 
-[ V{ { 0 5 } { 10 0 } } ] [
+{ V{ { 0 5 } { 10 0 } } } [
     "g" get
     dup layout
     children>> [ loc>> ] map
 ] unit-test
 
 ! children-on logic was insufficient
-[ ] [
+{ } [
     100x100 dup "a" set 200x200 2array
     100x100 dup "b" set 200x200 2array 2array <grid> f >>fill? "g" set
 ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get prefer ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ { 0 50 } ] [ "a" get loc>> ] unit-test
-[ { 0 250 } ] [ "b" get loc>> ] unit-test
+{ { 0 50 } } [ "a" get loc>> ] unit-test
+{ { 0 250 } } [ "b" get loc>> ] unit-test
 
-[ gadget { 200 200 } ]
+{ gadget { 200 200 } }
 [ { 120 20 } "g" get pick-up [ class-of ] [ dim>> ] bi ] unit-test
 
-[ gadget { 200 200 } ]
+{ gadget { 200 200 } }
 [ { 120 220 } "g" get pick-up [ class-of ] [ dim>> ] bi ] unit-test
index ae6d05617b5fa408e876af4ca705e5385bd75289..c886dc5812855031467e66b3388f611565179cc3 100644 (file)
@@ -1,4 +1,4 @@
 IN: ui.gadgets.labeled.tests
 USING: ui.gadgets ui.gadgets.labeled accessors tools.test ;
 
-[ t ] [ <gadget> "Hey" <labeled-gadget> content>> gadget? ] unit-test
+{ t } [ <gadget> "Hey" <labeled-gadget> content>> gadget? ] unit-test
index a9b5074e4c5b9441ad42205bcdee885f18bc30fc..0e64677d5ff537d316f40317ba5935679fb540b3 100644 (file)
@@ -1,7 +1,7 @@
 USING: accessors tools.test ui.gadgets ui.gadgets.labels ;
 IN: ui.gadgets.labels.tests
 
-[ { 119 14 } ] [
+{ { 119 14 } } [
     <gadget> { 100 14 } >>dim
     <gadget> { 14 14 } >>dim
     label-on-right { 5 5 } >>gap
index ff9d9ea181e414621b2fc6399b998069f29a4f51..3ca722158330f7e27dcf6bc941337a0fd8b42c13 100644 (file)
@@ -4,7 +4,7 @@ ui.baseline-alignment kernel namespaces tools.test math.parser
 sequences math.rectangles accessors math ;
 IN: ui.gadgets.packs.tests
 
-[ t ] [
+{ t } [
     { 0 0 } { 100 100 } <rect> clip set
 
     <pile>
@@ -14,7 +14,7 @@ IN: ui.gadgets.packs.tests
     visible-children [ label? ] all?
 ] unit-test
 
-[ { { 10 30 } } ] [
+{ { { 10 30 } } } [
     { { 10 20 } }
     { { 100 30 } }
     <gadget> vertical >>orientation
@@ -27,11 +27,11 @@ IN: ui.gadgets.packs.tests
     10 10 { 10 10 } <baseline-gadget> add-gadget
 "g" set
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ { 20 15 } ] [ "g" get dim>> ] unit-test
+{ { 20 15 } } [ "g" get dim>> ] unit-test
 
-[ V{ { 0 5 } { 10 0 } } ] [
+{ V{ { 0 5 } { 10 0 } } } [
     "g" get
     dup layout
     children>> [ loc>> ] map
@@ -43,11 +43,11 @@ IN: ui.gadgets.packs.tests
     10 10 { 10 10 } <baseline-gadget> add-gadget
 "g" set
 
-[ { 30 20 } ] [ "g" get pref-dim ] unit-test
+{ { 30 20 } } [ "g" get pref-dim ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 0 } { 20 5 } } ] [
+{ V{ { 0 0 } { 20 5 } } } [
     "g" get children>> [ loc>> ] map
 ] unit-test
 
@@ -56,13 +56,13 @@ IN: ui.gadgets.packs.tests
     5 5 { 10 10 } <baseline-gadget> add-gadget
 "g" set
 
-[ { 25 15 } ] [ "g" get pref-dim ] unit-test
+{ { 25 15 } } [ "g" get pref-dim ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 0 } { 15 5 } } ] [
+{ V{ { 0 0 } { 15 5 } } } [
     "g" get children>> [ loc>> ] map
 ] unit-test
 
@@ -71,13 +71,13 @@ IN: ui.gadgets.packs.tests
     30 30 { 10 50 } <baseline-gadget> add-gadget
 "g" set
 
-[ { 30 50 } ] [ "g" get pref-dim ] unit-test
+{ { 30 50 } } [ "g" get pref-dim ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 5 } { 20 0 } } ] [
+{ V{ { 0 5 } { 20 0 } } } [
     "g" get children>> [ loc>> ] map
 ] unit-test
 
@@ -86,11 +86,11 @@ IN: ui.gadgets.packs.tests
     30 4 { 30 30 } <baseline-gadget> add-gadget
 "g" set
 
-[ { 60 43 } ] [ "g" get pref-dim ] unit-test
+{ { 60 43 } } [ "g" get pref-dim ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
 ! Baseline alignment without any text gadgets should behave like align=1/2
 <shelf> +baseline+ >>align
@@ -98,13 +98,13 @@ IN: ui.gadgets.packs.tests
     <gadget> { 30 20 } >>dim add-gadget
 "g" set
 
-[ { 60 30 } ] [ "g" get pref-dim ] unit-test
+{ { 60 30 } } [ "g" get pref-dim ] unit-test
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 0 } { 30 5 } } ]
+{ V{ { 0 0 } { 30 5 } } }
 [ "g" get children>> [ loc>> ] map ] unit-test
 
 <shelf> +baseline+ >>align
@@ -112,11 +112,11 @@ IN: ui.gadgets.packs.tests
 10 10 { 10 10 } <baseline-gadget> add-gadget
 "g" set
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 0 } { 30 10 } } ]
+{ V{ { 0 0 } { 30 10 } } }
 [ "g" get children>> [ loc>> ] map ] unit-test
 
 <shelf> +baseline+ >>align
@@ -124,11 +124,11 @@ IN: ui.gadgets.packs.tests
 10 10 { 10 10 } <baseline-gadget> add-gadget
 "g" set
 
-[ ] [ "g" get prefer ] unit-test
+{ } [ "g" get prefer ] unit-test
 
-[ ] [ "g" get layout ] unit-test
+{ } [ "g" get layout ] unit-test
 
-[ V{ { 0 0 } { 30 10 } } ]
+{ V{ { 0 0 } { 30 10 } } }
 [ "g" get children>> [ loc>> ] map ] unit-test
 
 <shelf> +baseline+ >>align
@@ -136,4 +136,4 @@ IN: ui.gadgets.packs.tests
 12 9 { 15 15 } <baseline-gadget> add-gadget
 "g" set
 
-[ { 39 24 } ] [ "g" get pref-dim ] unit-test
+{ { 39 24 } } [ "g" get pref-dim ] unit-test
index 0eecd2b56a5eed04cc20d6df63962d17edac4115..878f2e9180d8d29e03ec61ea4f970412c28669f0 100644 (file)
@@ -7,29 +7,29 @@ IN: ui.gadgets.panes.tests
 
 : #children ( -- n ) "pane" get children>> length ;
 
-[ ] [ <pane> "pane" set ] unit-test
+{ } [ <pane> "pane" set ] unit-test
 
-[ ] [ #children "num-children" set ] unit-test
+{ } [ #children "num-children" set ] unit-test
 
-[ ] [
+{ } [
     "pane" get <pane-stream> [ 100 [ . ] each-integer ] with-output-stream*
 ] unit-test
 
-[ t ] [ #children "num-children" get = ] unit-test
+{ t } [ #children "num-children" get = ] unit-test
 
 : test-gadget-text ( quot -- ? )
     '[ _ call( -- ) ]
     [ make-pane gadget-text dup print "======" print ]
     [ with-string-writer dup print ] bi = ;
 
-[ t ] [ [ "hello" write ] test-gadget-text ] unit-test
-[ t ] [ [ "hello" pprint ] test-gadget-text ] unit-test
-[ t ] [
+{ t } [ [ "hello" write ] test-gadget-text ] unit-test
+{ t } [ [ "hello" pprint ] test-gadget-text ] unit-test
+{ t } [
     [
         H{ { wrap-margin 100 } } [ "hello" pprint ] with-nesting
     ] test-gadget-text
 ] unit-test
-[ t ] [
+{ t } [
     [
         H{ { wrap-margin 100 } } [
             H{ } [
@@ -38,12 +38,12 @@ IN: ui.gadgets.panes.tests
         ] with-nesting
     ] test-gadget-text
 ] unit-test
-[ t ] [ [ [ 1 2 3 ] pprint ] test-gadget-text ] unit-test
-[ t ] [ [ \ + describe ] test-gadget-text ] unit-test
-[ t ] [ [ \ = see ] test-gadget-text ] unit-test
-[ t ] [ [ \ = print-topic ] test-gadget-text ] unit-test
+{ t } [ [ [ 1 2 3 ] pprint ] test-gadget-text ] unit-test
+{ t } [ [ \ + describe ] test-gadget-text ] unit-test
+{ t } [ [ \ = see ] test-gadget-text ] unit-test
+{ t } [ [ \ = print-topic ] test-gadget-text ] unit-test
 
-[ t ] [
+{ t } [
     [
         title-style get [
                 "Hello world" write
@@ -52,7 +52,7 @@ IN: ui.gadgets.panes.tests
 ] unit-test
 
 
-[ t ] [
+{ t } [
     [
         title-style get [
                 "Hello world" write
@@ -60,7 +60,7 @@ IN: ui.gadgets.panes.tests
     ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         title-style get [
             title-style get [
@@ -70,7 +70,7 @@ IN: ui.gadgets.panes.tests
     ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         title-style get [
             title-style get [
@@ -80,7 +80,7 @@ IN: ui.gadgets.panes.tests
     ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         last-element off
         \ = >link $title
@@ -88,7 +88,7 @@ IN: ui.gadgets.panes.tests
     ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [
         last-element off
         \ = >link title-style get [
@@ -98,40 +98,40 @@ IN: ui.gadgets.panes.tests
     ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { { "a\n" } } simple-table. ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [ { { "a" } } simple-table. "x" write ] test-gadget-text
 ] unit-test
 
-[ t ] [
+{ t } [
     [ H{ } [ { { "a" } } simple-table. ] with-nesting "x" write ] test-gadget-text
 ] unit-test
 
 ARTICLE: "test-article-1" "This is a test article"
 "Hello world, how are you today." ;
 
-[ t ] [ [ "test-article-1" $title ] test-gadget-text ] unit-test
+{ t } [ [ "test-article-1" $title ] test-gadget-text ] unit-test
 
-[ t ] [ [ "test-article-1" print-topic ] test-gadget-text ] unit-test
+{ t } [ [ "test-article-1" print-topic ] test-gadget-text ] unit-test
 
 ARTICLE: "test-article-2" "This is a test article"
 "Hello world, how are you today."
 { $table { "a" "b" } { "c" "d" } } ;
 
-[ t ] [ [ "test-article-2" print-topic ] test-gadget-text ] unit-test
+{ t } [ [ "test-article-2" print-topic ] test-gadget-text ] unit-test
 
 <pane> [ \ = see ] with-pane
 <pane> [ \ = print-topic ] with-pane
 
-[ ] [
+{ } [
     \ = <model> [ see ] <pane-control> [ ] with-grafted-gadget
 ] unit-test
 
 : <test-pane> ( -- foo )
     <gadget> pane new-pane ;
 
-[ t ] [ <test-pane> dup input>> child? ] unit-test
-[ t ] [ <test-pane> dup last-line>> child? ] unit-test
+{ t } [ <test-pane> dup input>> child? ] unit-test
+{ t } [ <test-pane> dup last-line>> child? ] unit-test
index 44c0ca567738e2f173c35e17adaa2afe080f0825..20ab000f20003d95cd609235c5ec985ee35d65ac 100644 (file)
@@ -17,19 +17,19 @@ INSTANCE: fake-break word-break
 <gadget> { 50 20 } >>dim dup "c" set add-gadget
 "p" set
 
-[ { 4 1 } ] [ "p" get wrap-paragraph [ words>> length ] map ] unit-test
+{ { 4 1 } } [ "p" get wrap-paragraph [ words>> length ] map ] unit-test
 
-[ { 85 50 } ] [ "p" get pref-dim ] unit-test
+{ { 85 50 } } [ "p" get pref-dim ] unit-test
 
-[ ] [ "p" get prefer ] unit-test
+{ } [ "p" get prefer ] unit-test
 
-[ ] [ "p" get layout ] unit-test
+{ } [ "p" get layout ] unit-test
 
-[ { 0 0 } ] [ "a" get loc>> ] unit-test
+{ { 0 0 } } [ "a" get loc>> ] unit-test
 
-[ { 45 7 } ] [ "b" get loc>> ] unit-test
+{ { 45 7 } } [ "b" get loc>> ] unit-test
 
-[ { 0 30 } ] [ "c" get loc>> ] unit-test
+{ { 0 30 } } [ "c" get loc>> ] unit-test
 
 100 <paragraph>
 15 15 { 40 30 } <baseline-gadget> dup "a" set add-gadget
@@ -39,14 +39,14 @@ INSTANCE: fake-break word-break
 20 20 { 40 30 } <baseline-gadget> dup "c" set add-gadget
 "p" set
 
-[ { 85 65 } ] [ "p" get pref-dim ] unit-test
+{ { 85 65 } } [ "p" get pref-dim ] unit-test
 
-[ ] [ "p" get prefer ] unit-test
+{ } [ "p" get prefer ] unit-test
 
-[ ] [ "p" get layout ] unit-test
+{ } [ "p" get layout ] unit-test
 
-[ { 0 0 } ] [ "a" get loc>> ] unit-test
+{ { 0 0 } } [ "a" get loc>> ] unit-test
 
-[ { 45 5 } ] [ "b" get loc>> ] unit-test
+{ { 45 5 } } [ "b" get loc>> ] unit-test
 
-[ { 0 35 } ] [ "c" get loc>> ] unit-test
+{ { 0 35 } } [ "c" get loc>> ] unit-test
index 358bf2b7914793e0705ccd45df0a5ae3b20dc68f..a255ad4d97ba0487aeb453ee318f341ccebfeb65 100644 (file)
@@ -3,11 +3,11 @@ prettyprint ui.gadgets.buttons io io.streams.string kernel
 classes.tuple accessors ;
 IN: ui.gadgets.presentations.tests
 
-[ t ] [
+{ t } [
     "Hi" \ + <presentation> gadget?
 ] unit-test
 
-[ "+" ] [
+{ "+" } [
     [
         \ + f \ pprint <command-button> dup quot>> call
     ] with-string-writer
index c89461cd5ab01d218238199692632e35a46c6072..9f9cc213be3aeba17bff2c658d58e16fa46c2bb5 100644 (file)
@@ -6,20 +6,20 @@ accessors ui.gadgets.buttons ui.gadgets.packs
 ui.gadgets.scrollers.private ;
 IN: ui.gadgets.scrollers.tests
 
-[ ] [
+{ } [
     <gadget> "g" set
     "g" get <scroller> "s" set
 ] unit-test
 
-[ { 100 200 } ] [
+{ { 100 200 } } [
     { 100 200 } point>rect "g" get scroll>rect
     "s" get follows>> loc>>
 ] unit-test
 
-[ ] [ "s" get scroll>bottom ] unit-test
-[ t ] [ "s" get follows>> ] unit-test
+{ } [ "s" get scroll>bottom ] unit-test
+{ t } [ "s" get follows>> ] unit-test
 
-[ ] [
+{ } [
     <gadget> dup "g" set
     10 1 0 100 1 <range> 20 1 0 100 1 <range> 2array <product>
     <viewport> "v" set
@@ -31,14 +31,14 @@ IN: ui.gadgets.scrollers.tests
     [ { 10 20 } ] [ "g" get loc>> vneg ] unit-test
 ] with-grafted-gadget
 
-[ ] [
+{ } [
     <gadget> { 100 100 } >>dim
     dup "g" set <scroller> "s" set
 ] unit-test
 
-[ ] [ "s" get { 50 50 } >>dim drop ] unit-test
+{ } [ "s" get { 50 50 } >>dim drop ] unit-test
 
-[ ] [ "s" get layout ] unit-test
+{ } [ "s" get layout ] unit-test
 
 "s" get [
     [ { 31 31 } ] [ "s" get viewport>> dim>> ] unit-test
@@ -69,7 +69,7 @@ IN: ui.gadgets.scrollers.tests
 dup layout
 "s" set
 
-[ t ] [
+{ t } [
     10 iota [
         drop
         "g2" get scroll>gadget
@@ -78,23 +78,23 @@ dup layout
     ] map [ { 0 0 } = ] all?
 ] unit-test
 
-[ ] [ "Hi" <label> dup "l" set <scroller> "s" set ] unit-test
+{ } [ "Hi" <label> dup "l" set <scroller> "s" set ] unit-test
 
-[ t ] [ "l" get find-scroller "s" get eq? ] unit-test
-[ t ] [ "l" get dup find-scroller viewport>> swap child? ] unit-test
-[ t ] [ "l" get find-scroller* "s" get eq? ] unit-test
-[ f ] [ "s" get viewport>> find-scroller* ] unit-test
-[ t ] [ "s" get { 1 0 } grid-child slider? ] unit-test
-[ f ] [ "s" get { 1 0 } grid-child find-scroller* ] unit-test
+{ t } [ "l" get find-scroller "s" get eq? ] unit-test
+{ t } [ "l" get dup find-scroller viewport>> swap child? ] unit-test
+{ t } [ "l" get find-scroller* "s" get eq? ] unit-test
+{ f } [ "s" get viewport>> find-scroller* ] unit-test
+{ t } [ "s" get { 1 0 } grid-child slider? ] unit-test
+{ f } [ "s" get { 1 0 } grid-child find-scroller* ] unit-test
 
-[ ] [
+{ } [
     "Click Me" [ [ scroll>gadget ] [ unparent ] bi ] <border-button>
     [ <pile> swap add-gadget <scroller> ] keep
     dup quot>> call
     layout
 ] unit-test
 
-[ t ] [
+{ t } [
     <gadget> { 200 200 } >>dim
     [ [ scroll>gadget ] [ unparent ] bi ] <border-button>
     dup
index 5f729249547e91019bd49df13e1a4730bcad142b..012a27c84984fe36da9bd6cb985fd8c493c14e61 100644 (file)
@@ -4,4 +4,4 @@ arrays sequences tools.test ;
 
 [ [ second ] <search-table> ] must-infer
 
-[ t ] [ f <model> trivial-renderer [ second ] <search-table> pref-dim pair? ] unit-test
+{ t } [ f <model> trivial-renderer [ second ] <search-table> pref-dim pair? ] unit-test
index f1b856949c05024b16b91318d67161504a96d930..c6b9a49d0801f01c1fd471c13244489bc8d94261 100644 (file)
@@ -1,4 +1,4 @@
 IN: ui.gadgets.slots.tests
 USING: assocs ui.gadgets.slots tools.test refs ;
 
-[ t ] [ [ ] [ ] { { 1 1 } { 2 2 } { 3 3 } } 2 <value-ref> <slot-editor> slot-editor? ] unit-test
+{ t } [ [ ] [ ] { { 1 1 } { 2 2 } { 3 3 } } 2 <value-ref> <slot-editor> slot-editor? ] unit-test
index b92f72a2dd97327709a933a4337b98bf1cfa18b0..cef352b3d0bd19b4280f2605cf7394826b229575 100644 (file)
@@ -15,15 +15,15 @@ M: test-renderer column-titles drop { "First" "Last" } ;
         { "Don" "Stewart" }
     } <model> test-renderer <table> ;
 
-[ ] [
+{ } [
     test-table "table" set
 ] unit-test
 
-[ ] [
+{ } [
     "table" get <scroller> "scroller" set
 ] unit-test
 
-[ { "Justin" "Timberlake" } { "Britney" "Spears" } ] [
+{ { "Justin" "Timberlake" } { "Britney" "Spears" } } [
     test-table t >>selection-required? dup [
         {
             [ 1 select-row ]
@@ -55,7 +55,7 @@ M: silly-renderer column-titles drop { "Foo" } ;
 : test-table-2 ( -- table )
     { 1 2 f } <model> silly-renderer <table> ;
 
-[ f f ] [
+{ f f } [
     test-table dup [
         selected-row
     ] with-grafted-gadget
index 5d169cc7c177ffb5145ead7759332e7de3cef7f1..ccfafdeebdb13680644bc145d0f7451168184752 100644 (file)
@@ -2,27 +2,27 @@ USING: kernel ui.gadgets ui.gadgets.tracks tools.test
 math.rectangles accessors sequences namespaces ;
 IN: ui.gadgets.tracks.tests
 
-[ { 100 100 } ] [
+{ { 100 100 } } [
     vertical <track>
         <gadget> { 100 100 } >>dim 1 track-add
     pref-dim
 ] unit-test
 
-[ { 100 110 } ] [
+{ { 100 110 } } [
     vertical <track>
         <gadget> { 10 10 } >>dim f track-add
         <gadget> { 100 100 } >>dim 1 track-add
     pref-dim
 ] unit-test
 
-[ { 10 10 } ] [
+{ { 10 10 } } [
     vertical <track>
         <gadget> { 10 10 } >>dim 1 track-add
         <gadget> { 10 10 } >>dim 0 track-add
     pref-dim
 ] unit-test
 
-[ { 10 30 } ] [
+{ { 10 30 } } [
     vertical <track>
         <gadget> { 10 10 } >>dim f track-add
         <gadget> { 10 10 } >>dim f track-add
@@ -30,7 +30,7 @@ IN: ui.gadgets.tracks.tests
     pref-dim
 ] unit-test
 
-[ { 10 40 } ] [
+{ { 10 40 } } [
     vertical <track>
         { 5 5 } >>gap
         <gadget> { 10 10 } >>dim f track-add
@@ -39,7 +39,7 @@ IN: ui.gadgets.tracks.tests
     pref-dim
 ] unit-test
 
-[ V{ { 10 10 } { 10 80 } { 10 10 } } ] [
+{ V{ { 10 10 } { 10 80 } { 10 10 } } } [
     vertical <track>
         0 >>fill
         <gadget> { 10 10 } >>dim f track-add
@@ -49,7 +49,7 @@ IN: ui.gadgets.tracks.tests
     [ layout ] [ children>> [ dim>> ] map ] bi
 ] unit-test
 
-[ ] [
+{ } [
     vertical <track>
         0 >>fill
         <gadget> { 10 10 } >>dim f track-add
@@ -61,13 +61,13 @@ IN: ui.gadgets.tracks.tests
     "track" set
 ] unit-test
 
-[ V{ { 10 10 } { 10 35 } { 10 10 } { 10 35 } { 10 10 } } ]
+{ V{ { 10 10 } { 10 35 } { 10 10 } { 10 35 } { 10 10 } } }
 [ "track" get [ layout ] [ children>> [ dim>> ] map ] bi ] unit-test
 
-[ V{ { 10 10 } { 10 80 } { 10 10 } } ] [
+{ V{ { 10 10 } { 10 80 } { 10 10 } } } [
     "g1" get unparent
     "g2" get unparent
     "track" get [ layout ] [ children>> [ dim>> ] map ] bi
 ] unit-test
 
-[ 3 ] [ "track" get sizes>> length ] unit-test
+{ 3 } [ "track" get sizes>> length ] unit-test
index 515a0b3aa8af8a7f3aeca79d3b7156f05c9d3c60..e8f54e7669fc70f9045c11c1a1827e4a845eede2 100644 (file)
@@ -8,27 +8,27 @@ IN: ui.gadgets.worlds.tests
 : <test-world> ( gadget -- world )
     <world-attributes> "Hi" >>title swap 1array >>gadgets <world> ;
 
-[ ] [
+{ } [
     "g1" get <test-world> "w" set
 ] unit-test
 
-[ ] [ "g1" get request-focus ] unit-test
+{ } [ "g1" get request-focus ] unit-test
 
-[ t ] [ "w" get focus>> "g1" get eq? ] unit-test
+{ t } [ "w" get focus>> "g1" get eq? ] unit-test
 
 <gadget> "g1" set
 <gadget> "g2" set
 "g2" get "g1" get add-gadget drop
 
-[ ] [
+{ } [
     "g2" get <test-world> "w" set
 ] unit-test
 
-[ ] [ "g1" get request-focus ] unit-test
+{ } [ "g1" get request-focus ] unit-test
 
-[ t ] [ "w" get focus>> "g2" get eq? ] unit-test
-[ t ] [ "g2" get focus>> "g1" get eq? ] unit-test
-[ f ] [ "g1" get focus>> ] unit-test
+{ t } [ "w" get focus>> "g2" get eq? ] unit-test
+{ t } [ "g2" get focus>> "g1" get eq? ] unit-test
+{ f } [ "g1" get focus>> ] unit-test
 
 <gadget> "g1" set
 <gadget> "g2" set
@@ -36,15 +36,15 @@ IN: ui.gadgets.worlds.tests
 "g3" get "g1" get add-gadget drop
 "g3" get "g2" get add-gadget drop
 
-[ ] [
+{ } [
     "g3" get <test-world> "w" set
 ] unit-test
 
-[ ] [ "g1" get request-focus ] unit-test
-[ ] [ "g2" get unparent ] unit-test
-[ t ] [ "g3" get focus>> "g1" get eq? ] unit-test
+{ } [ "g1" get request-focus ] unit-test
+{ } [ "g2" get unparent ] unit-test
+{ t } [ "g3" get focus>> "g1" get eq? ] unit-test
 
-[ t ] [ <gadget> dup <test-world> focusable-child eq? ] unit-test
+{ t } [ <gadget> dup <test-world> focusable-child eq? ] unit-test
 
 TUPLE: focusing < gadget ;
 
@@ -59,8 +59,8 @@ M: focus-test focusable-child* gadget-child ;
 
 <focus-test> "f" set
 
-[ ] [ "f" get <test-world> request-focus ] unit-test
+{ } [ "f" get <test-world> request-focus ] unit-test
 
-[ t ] [ "f" get focus>> "f" get gadget-child eq? ] unit-test
+{ t } [ "f" get focus>> "f" get gadget-child eq? ] unit-test
 
-[ t ] [ "f" get gadget-child focusing? ] unit-test
+{ t } [ "f" get gadget-child focusing? ] unit-test
index 6e8339a539e64e66d9e492cec9ca09572b34c48c..e0852b8f0337d8783fae0add9fced4c51f192e00 100644 (file)
@@ -7,22 +7,22 @@ io.streams.string math help help.markup accessors ;
 
 [ drop t ] \ my-pprint [ ] f operation boa "op" set
 
-[ [ 3 my-pprint ] ] [
+{ [ 3 my-pprint ] } [
     3 "op" get command>> command-quot
 ] unit-test
 
-[ "3" ] [ [ 3 "op" get invoke-command ] with-string-writer ] unit-test
+{ "3" } [ [ 3 "op" get invoke-command ] with-string-writer ] unit-test
 
 [ drop t ] \ my-pprint [ editor-string ] f operation boa
 "op" set
 
-[ "\"4\"" ] [
+{ "\"4\"" } [
     [
         "4" <editor> [ set-editor-string ] keep
         "op" get invoke-command
     ] with-string-writer
 ] unit-test
 
-[ ] [
+{ } [
     [ { $operations \ + } print-element ] with-string-writer drop
 ] unit-test
index 22802d39aee565d29a34af5f8e8843fd669cc3f0..1e3776aff32eb6977a25b6eaad0ce006869fd341 100644 (file)
@@ -3,7 +3,7 @@ colors.constants specialized-arrays alien.c-types ;
 SPECIALIZED-ARRAY: float
 IN: ui.pens.gradient.tests
 
-[
+{
     float-array{
         0.0
         0.0
@@ -18,7 +18,7 @@ IN: ui.pens.gradient.tests
         100.0
         100.0
     }
-] [
+} [
     { 1 0 } { 100 100 } { COLOR: red COLOR: green COLOR: blue }
     gradient-vertices
 ] unit-test
index d365168ba1f50f9adb4ef30c32bdd45b3b4961f2..bb0219eb02e267948bb9620d149f948567746b15 100644 (file)
@@ -4,22 +4,22 @@ USING: tools.test ui.text images fonts math arrays accessors kernel
 sequences ;
 IN: ui.text.tests
 
-[ t ] [ 0 sans-serif-font "aaa" offset>x zero? ] unit-test
-[ t ] [ 1 sans-serif-font "aaa" offset>x 0.0 > ] unit-test
-[ t ] [ 3 sans-serif-font "aaa" offset>x 0.0 > ] unit-test
-[ t ] [ 1 monospace-font "a" offset>x 0.0 > ] unit-test
-[ 0 ] [ 0 sans-serif-font "aaa" x>offset ] unit-test
-[ 3 ] [ 100 sans-serif-font "aaa" x>offset ] unit-test
-[ 0 ] [ 0 sans-serif-font "" x>offset ] 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 } [ 3 sans-serif-font "aaa" offset>x 0.0 > ] unit-test
+{ t } [ 1 monospace-font "a" offset>x 0.0 > ] unit-test
+{ 0 } [ 0 sans-serif-font "aaa" x>offset ] unit-test
+{ 3 } [ 100 sans-serif-font "aaa" x>offset ] unit-test
+{ 0 } [ 0 sans-serif-font "" x>offset ] unit-test
 
-[ t ] [
+{ t } [
     sans-serif-font "aaa" line-metrics
     [ [ ascent>> ] [ descent>> ] bi + ] [ height>> ] bi =
 ] unit-test
 
-[ f ] [ sans-serif-font "\0a" text-dim first zero? ] unit-test
-[ t ] [ sans-serif-font "" text-dim first zero? ] unit-test
+{ f } [ sans-serif-font "\0a" text-dim first zero? ] unit-test
+{ t } [ sans-serif-font "" text-dim first zero? ] unit-test
 
-[ f ] [ sans-serif-font font-metrics height>> zero? ] unit-test
+{ f } [ sans-serif-font font-metrics height>> zero? ] unit-test
 
-[ t ] [ serif-font "Hello world" string>image [ image? ] [ pair? ] bi* and ] unit-test
+{ t } [ serif-font "Hello world" string>image [ image? ] [ pair? ] bi* and ] unit-test
index 8027babc3fb3a24e58e0d5d8d34195df595ad359..55cfad0af05085d089519857b25948bc99d78c68 100644 (file)
@@ -1,4 +1,4 @@
 IN: ui.tools.browser.tests
 USING: tools.test ui.gadgets.debug ui.tools.browser math ;
 
-[ ] [ \ + <browser-gadget> [ ] with-grafted-gadget ] unit-test
+{ } [ \ + <browser-gadget> [ ] with-grafted-gadget ] unit-test
index 9095881c78b71b755dc759eb8bef81bce4f5d593..df5c55c9e5a4ad85dbe75a2d1519dc2d4098486a 100644 (file)
@@ -11,31 +11,31 @@ dummy new <history> "history" set
 
 "history" get add-history
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get add-history
 3 "history" get owner>> set-history-value
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get add-history
 4 "history" get owner>> set-history-value
 
-[ f ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ f } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get go-back
 
-[ 3 ] [ "history" get owner>> history-value ] unit-test
+{ 3 } [ "history" get owner>> history-value ] unit-test
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ f ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ f } [ "history" get forward>> empty? ] unit-test
 
 "history" get go-forward
 
-[ 4 ] [ "history" get owner>> history-value ] unit-test
+{ 4 } [ "history" get owner>> history-value ] unit-test
 
-[ f ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ f } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
index 65f06ecfbaf7207f7237abf84ff7a13055b626b9..a6468976481702aa3dfa7b540dcb879cc9897bd1 100644 (file)
@@ -1,4 +1,4 @@
 IN: ui.tools.inspector.tests
 USING: tools.test ui.tools.inspector math models ;
 
-[ ] [ \ + <model> <inspector-gadget> com-edit-slot ] unit-test
+{ } [ \ + <model> <inspector-gadget> com-edit-slot ] unit-test
index 331437c4721f21ac7dab37c08f997200dc25e50e..762cec9f44a92685f65d286bf058e2b619758a82 100644 (file)
@@ -6,68 +6,68 @@ sequences tools.test ui.tools.listener.history ;
 
 IN: ui.tools.listener.history.tests
 
-[ ] [ <document> "d" set ] unit-test
-[ ] [ "d" get <history> "h" set ] unit-test
+{ } [ <document> "d" set ] unit-test
+{ } [ "d" get <history> "h" set ] unit-test
 
-[ ] [ "1" "d" get set-doc-string ] unit-test
-[ T{ input f "1" } ] [ "h" get history-add ] unit-test
+{ } [ "1" "d" get set-doc-string ] unit-test
+{ T{ input f "1" } } [ "h" get history-add ] unit-test
 
-[ ] [ "2" "d" get set-doc-string ] unit-test
-[ T{ input f "2" } ] [ "h" get history-add ] unit-test
+{ } [ "2" "d" get set-doc-string ] unit-test
+{ T{ input f "2" } } [ "h" get history-add ] unit-test
 
-[ ] [ "3" "d" get set-doc-string ] unit-test
-[ T{ input f "3" } ] [ "h" get history-add ] unit-test
+{ } [ "3" "d" get set-doc-string ] unit-test
+{ T{ input f "3" } } [ "h" get history-add ] unit-test
 
-[ ] [ "" "d" get set-doc-string ] unit-test
+{ } [ "" "d" get set-doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "3" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "3" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "2" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "2" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "1" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "1" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "1" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "1" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-next ] unit-test
-[ "2" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-next ] unit-test
+{ "2" } [ "d" get doc-string ] unit-test
 
-[ ] [ "22" "d" get set-doc-string ] unit-test
+{ } [ "22" "d" get set-doc-string ] unit-test
 
-[ ] [ "h" get history-recall-next ] unit-test
-[ "3" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-next ] unit-test
+{ "3" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "22" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "22" } [ "d" get doc-string ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ "1" ] [ "d" get doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ "1" } [ "d" get doc-string ] unit-test
 
-[ ] [ "222" "d" get set-doc-string ] unit-test
-[ T{ input f "222" } ] [ "h" get history-add ] unit-test
+{ } [ "222" "d" get set-doc-string ] unit-test
+{ T{ input f "222" } } [ "h" get history-add ] unit-test
 
-[ ] [ "h" get history-recall-previous ] unit-test
-[ ] [ "h" get history-recall-previous ] unit-test
-[ ] [ "h" get history-recall-previous ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
 
-[ "22" ] [ "d" get doc-string ] unit-test
+{ "22" } [ "d" get doc-string ] unit-test
 
-[ ] [ <document> "d" set ] unit-test
-[ ] [ "d" get <history> "h" set ] unit-test
+{ } [ <document> "d" set ] unit-test
+{ } [ "d" get <history> "h" set ] unit-test
 
-[ ] [ "aaa" "d" get set-doc-string ] unit-test
-[ T{ input f "aaa" } ] [ "h" get history-add ] unit-test
+{ } [ "aaa" "d" get set-doc-string ] unit-test
+{ T{ input f "aaa" } } [ "h" get history-add ] unit-test
 
-[ ] [ "" "d" get set-doc-string ] unit-test
-[ T{ input f "" } ] [ "h" get history-add ] unit-test
-[ T{ input f "" } ] [ "h" get history-add ] unit-test
-[ ] [ "   " "d" get set-doc-string ] unit-test
-[ ] [ "h" get history-recall-previous ] unit-test
+{ } [ "" "d" get set-doc-string ] unit-test
+{ T{ input f "" } } [ "h" get history-add ] unit-test
+{ T{ input f "" } } [ "h" get history-add ] unit-test
+{ } [ "   " "d" get set-doc-string ] unit-test
+{ } [ "h" get history-recall-previous ] unit-test
 
-[ 1 ] [
+{ 1 } [
     "abc" <document> [ set-doc-string ] [ <history> ] bi
     [ history-add drop ]
     [ history-add drop ]
index 54094f9f9657f90276c4a860939654badadb998f..4e1c583eb6f3a331fff93c7fb75091ec3ff4f019 100644 (file)
@@ -101,63 +101,63 @@ IN: ui.tools.listener.tests
 ] with-interactive-vocabs
 
 ! Hang
-[ ] [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
+{ } [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
 
-[ ] [ [ "interactor" get stream-read-quot drop ] "A" spawn drop ] unit-test
+{ } [ [ "interactor" get stream-read-quot drop ] "A" spawn drop ] unit-test
 
-[ ] [ [ "interactor" get stream-read-quot drop ] "B" spawn drop ] unit-test
+{ } [ [ "interactor" get stream-read-quot drop ] "B" spawn drop ] unit-test
 
-[ ] [ 1 seconds sleep ] unit-test
+{ } [ 1 seconds sleep ] unit-test
 
-[ ] [ "interactor" get interactor-eof ] unit-test
+{ } [ "interactor" get interactor-eof ] unit-test
 
-[ ] [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
+{ } [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
 
 CONSTANT: text "Hello world.\nThis is a test."
 
-[ ] [ text "interactor" get set-editor-string ] unit-test
+{ } [ text "interactor" get set-editor-string ] unit-test
 
-[ ] [ <promise> "promise" set ] unit-test
+{ } [ <promise> "promise" set ] unit-test
 
-[ ] [
+{ } [
     [
         "interactor" get register-self
         "interactor" get stream-contents "promise" get fulfill
     ] in-thread
 ] unit-test
 
-[ ] [ 100 milliseconds sleep ] unit-test
+{ } [ 100 milliseconds sleep ] unit-test
 
-[ ] [ "interactor" get evaluate-input ] unit-test
+{ } [ "interactor" get evaluate-input ] unit-test
 
-[ ] [ 100 milliseconds sleep ] unit-test
+{ } [ 100 milliseconds sleep ] unit-test
 
-[ ] [ "interactor" get interactor-eof ] unit-test
+{ } [ "interactor" get interactor-eof ] unit-test
 
-[ t ] [ "promise" get 2 seconds ?promise-timeout text = ] unit-test
+{ t } [ "promise" get 2 seconds ?promise-timeout text = ] unit-test
 
-[ ] [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
+{ } [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
 
-[ ] [ text "interactor" get set-editor-string ] unit-test
+{ } [ text "interactor" get set-editor-string ] unit-test
 
-[ ] [ <promise> "promise" set ] unit-test
+{ } [ <promise> "promise" set ] unit-test
 
-[ ] [
+{ } [
     [
         "interactor" get register-self
         "interactor" get stream-read1 "promise" get fulfill
     ] in-thread
 ] unit-test
 
-[ ] [ 100 milliseconds sleep ] unit-test
+{ } [ 100 milliseconds sleep ] unit-test
 
-[ ] [ "interactor" get evaluate-input ] unit-test
+{ } [ "interactor" get evaluate-input ] unit-test
 
-[ CHAR: H ] [ "promise" get 2 seconds ?promise-timeout ] unit-test
+{ CHAR: H } [ "promise" get 2 seconds ?promise-timeout ] unit-test
 
-[ ] [ <listener-gadget> [ ] with-grafted-gadget ] unit-test
+{ } [ <listener-gadget> [ ] with-grafted-gadget ] unit-test
 
-[ ] [ <listener-gadget> "listener" set ] unit-test
+{ } [ <listener-gadget> "listener" set ] unit-test
 
 "listener" get [
     <interactor> <pane> <pane-stream> >>output "i" set
@@ -193,8 +193,8 @@ CONSTANT: text "Hello world.\nThis is a test."
     [ ] [ "listener" get com-end ] unit-test
 ] with-grafted-gadget
 
-[ ] [ \ + <interactor> manifest>> use-if-necessary ] unit-test
+{ } [ \ + <interactor> manifest>> use-if-necessary ] unit-test
 
-[ ] [ <listener-gadget> "l" set ] unit-test
-[ ] [ "l" get com-scroll-up ] unit-test
-[ ] [ "l" get com-scroll-down ] unit-test
+{ } [ <listener-gadget> "l" set ] unit-test
+{ } [ "l" get com-scroll-up ] unit-test
+{ } [ "l" get com-scroll-down ] unit-test
index 4d2072db1c70e6448f6bedded25ec3f258fa4145..b1ff99c08b6acaa8a840fe01275b3fbd73bea979 100644 (file)
@@ -18,47 +18,47 @@ M: object (flatten-tree) , ;
 : gadgets-in-range ( frompath topath gadget -- seq )
     gadget-subtree flatten-tree ;
 
-[ { "a" "b" "c" "d" } ] [
+{ { "a" "b" "c" "d" } } [
     { 0 } { } { "a" "b" "c" "d" } gadgets-in-range
 ] unit-test
 
-[ { "a" "b" } ] [
+{ { "a" "b" } } [
     { } { 1 } { "a" "b" "c" "d" } gadgets-in-range
 ] unit-test
 
-[ { "a" } ] [
+{ { "a" } } [
     { 0 } { 0 } { "a" "b" "c" "d" } gadgets-in-range
 ] unit-test
 
-[ { "a" "b" "c" } ] [
+{ { "a" "b" "c" } } [
     { 0 } { 2 } { "a" "b" "c" "d" } gadgets-in-range
 ] unit-test
 
-[ { "a" "b" "c" "d" } ] [
+{ { "a" "b" "c" "d" } } [
     { 0 } { 3 } { "a" "b" "c" "d" } gadgets-in-range
 ] unit-test
 
-[ { "a" "b" "c" "d" } ] [
+{ { "a" "b" "c" "d" } } [
     { 0 0 } { 0 3 } { { "a" "b" "c" "d" } } gadgets-in-range
 ] unit-test
 
-[ { "b" "c" "d" "e" } ] [
+{ { "b" "c" "d" "e" } } [
     { 0 1 } { 1 } { { "a" "b" "c" "d" } "e" } gadgets-in-range
 ] unit-test
 
-[ { "b" "c" "d" "e" "f" } ] [
+{ { "b" "c" "d" "e" "f" } } [
     { 0 1 } { 1 1 } { { "a" "b" "c" "d" } { "e" "f" "g" } } gadgets-in-range
 ] unit-test
 
-[ { "b" "c" "d" { "e" "f" "g" } "h" "i" } ] [
+{ { "b" "c" "d" { "e" "f" "g" } "h" "i" } } [
     { 0 1 } { 2 1 } { { "a" "b" "c" "d" } { "e" "f" "g" } { "h" "i" } } gadgets-in-range
 ] unit-test
 
-[ { "b" "c" "d" { "e" "f" "g" } "h" } ] [
+{ { "b" "c" "d" { "e" "f" "g" } "h" } } [
     { 0 1 } { 2 0 0 } { { "a" "b" "c" "d" } { "e" "f" "g" } { { "h" "i" } "j" } } gadgets-in-range
 ] unit-test
 
-[ { "b" "c" "d" { "e" "f" "g" } "h" "i" } ] [
+{ { "b" "c" "d" { "e" "f" "g" } "h" "i" } } [
     { 0 1 } { 2 0 1 } { { "a" "b" "c" "d" } { "e" "f" "g" } { { "h" "i" } "j" } } gadgets-in-range
 ] unit-test
 
index a3acaf3c4ff06b5e36eaa6d187747244a0b62af4..6de334cc5b2afd6511b6a0be66eac7a038033af7 100644 (file)
@@ -3,19 +3,19 @@ unicode.categories io.pathnames io.encodings.utf8 io.files
 strings quotations math.parser locals ;
 IN: unicode.breaks.tests
 
-[ "\u001112\u001161\u0011abA\u000300a\r\r\n" ]
+{ "\u001112\u001161\u0011abA\u000300a\r\r\n" }
 [ "\r\n\raA\u000300\u001112\u001161\u0011ab" string-reverse ] unit-test
-[ "dcba" ] [ "abcd" string-reverse ] unit-test
-[ 3 ] [ "\u001112\u001161\u0011abA\u000300a"
+{ "dcba" } [ "abcd" string-reverse ] unit-test
+{ 3 } [ "\u001112\u001161\u0011abA\u000300a"
         dup last-grapheme head last-grapheme ] unit-test
 
-[ 3 ] [ 2 "hello" first-grapheme-from ] unit-test
-[ 1 ] [ 2 "hello" last-grapheme-from ] unit-test
+{ 3 } [ 2 "hello" first-grapheme-from ] unit-test
+{ 1 } [ 2 "hello" last-grapheme-from ] unit-test
 
-[ 4 ] [ 2 "what am I saying" first-word-from ] unit-test
-[ 0 ] [ 2 "what am I saying" last-word-from ] unit-test
-[ 16 ] [ 11 "what am I saying" first-word-from ] unit-test
-[ 10 ] [ 11 "what am I saying" last-word-from ] unit-test
+{ 4 } [ 2 "what am I saying" first-word-from ] unit-test
+{ 0 } [ 2 "what am I saying" last-word-from ] unit-test
+{ 16 } [ 11 "what am I saying" first-word-from ] unit-test
+{ 10 } [ 11 "what am I saying" last-word-from ] unit-test
 
 : grapheme-break-test ( -- filename )
     "vocab:unicode/breaks/GraphemeBreakTest.txt" ;
@@ -51,4 +51,4 @@ IN: unicode.breaks.tests
 grapheme-break-test parse-test-file [ >graphemes ] test
 word-break-test parse-test-file [ >words ] test
 
-[ { t f t t f t } ] [ 6 iota [ "as df" word-break-at? ] map ] unit-test
+{ { t f t t f t } } [ 6 iota [ "as df" word-break-at? ] map ] unit-test
index 3f29bfde714c91bed220d00eeababc0db30544c2..60cf5558c000d2170d66d0a791d872e94b70232e 100644 (file)
@@ -4,10 +4,10 @@ USING: unicode.case tools.test namespaces strings unicode.normalize
 unicode.case.private ;
 IN: unicode.case.tests
 
-[ "Hello How Are You? I'm Good" ] [ "hEllo how ARE yOU? I'm good" >title ] unit-test
-[ "FUSS" ] [ "Fu\u0000DF" >upper ] unit-test
-[ "\u0003C3a\u0003C2 \u0003C3\u0003C2 \u0003C3a\u0003C2" ] [ "\u0003A3A\u0003A3 \u0003A3\u0003A3 \u0003A3A\u0003A3" >lower ] unit-test
-[ t ] [ "hello how are you?" lower? ] unit-test
+{ "Hello How Are You? I'm Good" } [ "hEllo how ARE yOU? I'm good" >title ] unit-test
+{ "FUSS" } [ "Fu\u0000DF" >upper ] unit-test
+{ "\u0003C3a\u0003C2 \u0003C3\u0003C2 \u0003C3a\u0003C2" } [ "\u0003A3A\u0003A3 \u0003A3\u0003A3 \u0003A3A\u0003A3" >lower ] unit-test
+{ t } [ "hello how are you?" lower? ] unit-test
 [
     [ f ] [ locale get i-dot? ] unit-test
     [ f ] [ locale get lithuanian? ] unit-test
@@ -26,8 +26,8 @@ IN: unicode.case.tests
 !    [ "I\u000300" ] [ "i\u000307\u000300" >title ] unit-test
 ] with-scope
 
-[ t ] [ "asdf" lower? ] unit-test
-[ f ] [ "asdF" lower? ] unit-test
+{ t } [ "asdf" lower? ] unit-test
+{ f } [ "asdF" lower? ] unit-test
 
-[ t ] [ "ASDF" upper? ] unit-test
-[ f ] [ "ASDf" upper? ] unit-test
+{ t } [ "ASDF" upper? ] unit-test
+{ f } [ "ASDf" upper? ] unit-test
index 51ac5b5857a31eec69a32c71721027711111f5c1..52ade759446e67c0c33729f36b7c12ff87ed1253 100644 (file)
@@ -3,17 +3,17 @@
 USING: tools.test kernel unicode.categories words sequences unicode.data ;
 IN: unicode.categories.tests
 
-[ { f f t t f t t f f t } ] [ CHAR: A {
+{ { f f t t f t t f f t } } [ CHAR: A {
     blank? letter? LETTER? Letter? digit?
     printable? alpha? control? uncased? character?
 } [ execute ] with map ] unit-test
-[ "Nd" ] [ CHAR: 3 category ] unit-test
-[ "Lo" ] [ 0x3400 category ] unit-test
-[ "Lo" ] [ 0x3450 category ] unit-test
-[ "Lo" ] [ 0x4DB5 category ] unit-test
-[ "Cs" ] [ 0xDD00 category ] unit-test
-[ t ] [ CHAR: \t blank? ] unit-test
-[ t ] [ CHAR: \s blank? ] unit-test
-[ t ] [ CHAR: \r blank? ] unit-test
-[ t ] [ CHAR: \n blank? ] unit-test
-[ f ] [ CHAR: a blank? ] unit-test
+{ "Nd" } [ CHAR: 3 category ] unit-test
+{ "Lo" } [ 0x3400 category ] unit-test
+{ "Lo" } [ 0x3450 category ] unit-test
+{ "Lo" } [ 0x4DB5 category ] unit-test
+{ "Cs" } [ 0xDD00 category ] unit-test
+{ t } [ CHAR: \t blank? ] unit-test
+{ t } [ CHAR: \s blank? ] unit-test
+{ t } [ CHAR: \r blank? ] unit-test
+{ t } [ CHAR: \n blank? ] unit-test
+{ f } [ CHAR: a blank? ] unit-test
index f76e93d0661f0ba85e880db0db34ba7c99bb7803..1ec0126d3cf388fbd893c75019dc08208d5228e2 100644 (file)
@@ -16,12 +16,12 @@ IN: unicode.collation.tests
     [ execute( a b -- ? ) ] 2with map
     first4 ;
 
-[ f f f f ] [ "hello" "hi" test-equality ] unit-test
-[ t f f f ] [ "hello" "h\u0000e9llo" test-equality ] unit-test
-[ t t f f ] [ "hello" "HELLO" test-equality ] unit-test
-[ t t t f ] [ "hello" "h e l l o." test-equality ] unit-test
-[ t t t t ] [ "hello" "\0hello\0" test-equality ] unit-test
-[ { "good bye" "goodbye" "hello" "HELLO" } ]
+{ f f f f } [ "hello" "hi" test-equality ] unit-test
+{ t f f f } [ "hello" "h\u0000e9llo" test-equality ] unit-test
+{ t t f f } [ "hello" "HELLO" test-equality ] unit-test
+{ t t t f } [ "hello" "h e l l o." test-equality ] unit-test
+{ t t t t } [ "hello" "\0hello\0" test-equality ] unit-test
+{ { "good bye" "goodbye" "hello" "HELLO" } }
 [ { "HELLO" "goodbye" "good bye" "hello" } sort-strings ]
 unit-test
 
index ff2c808fdef7e8bb24507c4798ff7e316a70474e..77eb7f3edf1135387a9a4335f32302ac8394f3ee 100644 (file)
@@ -3,22 +3,22 @@ simple-flat-file io.encodings.utf8 io.files splitting math.parser
 locals math quotations assocs combinators unicode.normalize.private ;
 IN: unicode.normalize.tests
 
-[ "ab\u000323\u000302cd" ] [ "ab\u000302" "\u000323cd" string-append ] unit-test
+{ "ab\u000323\u000302cd" } [ "ab\u000302" "\u000323cd" string-append ] unit-test
 
-[ "ab\u00064b\u000347\u00034e\u00034d\u000346" ] [ "ab\u000346\u000347\u00064b\u00034e\u00034d" dup reorder ] unit-test
-[ "hello" "hello" ] [ "hello" [ nfd ] keep nfkd ] unit-test
-[ "\u00FB012\u002075\u00017F\u000323\u000307" "fi25s\u000323\u000307" ]
+{ "ab\u00064b\u000347\u00034e\u00034d\u000346" } [ "ab\u000346\u000347\u00064b\u00034e\u00034d" dup reorder ] unit-test
+{ "hello" "hello" } [ "hello" [ nfd ] keep nfkd ] unit-test
+{ "\u00FB012\u002075\u00017F\u000323\u000307" "fi25s\u000323\u000307" }
 [ "\u00FB012\u002075\u001E9B\u000323" [ nfd ] keep nfkd ] unit-test
 
-[ "\u001E69" "s\u000323\u000307" ] [ "\u001E69" [ nfc ] keep nfd ] unit-test
-[ "\u001E0D\u000307" ] [ "\u001E0B\u000323" nfc ] unit-test
+{ "\u001E69" "s\u000323\u000307" } [ "\u001E69" [ nfc ] keep nfd ] unit-test
+{ "\u001E0D\u000307" } [ "\u001E0B\u000323" nfc ] unit-test
 
-[ 54620 ] [ 4370 4449 4523 jamo>hangul ] unit-test
-[ 4370 4449 4523 ] [ 54620 hangul>jamo first3 ] unit-test
-[ t ] [ 54620 hangul? ] unit-test
-[ f ] [ 0 hangul? ] unit-test
-[ "\u001112\u001161\u0011ab" ] [ "\u00d55c" nfd ] unit-test
-[ "\u00d55c" ] [ "\u001112\u001161\u0011ab" nfc ] unit-test
+{ 54620 } [ 4370 4449 4523 jamo>hangul ] unit-test
+{ 4370 4449 4523 } [ 54620 hangul>jamo first3 ] unit-test
+{ t } [ 54620 hangul? ] unit-test
+{ f } [ 0 hangul? ] unit-test
+{ "\u001112\u001161\u0011ab" } [ "\u00d55c" nfd ] unit-test
+{ "\u00d55c" } [ "\u001112\u001161\u0011ab" nfc ] unit-test
 
 : parse-test ( -- tests )
     "vocab:unicode/normalize/NormalizationTest.txt" data
index 9a2467354a21158d27c0f1d7a8e93d3afe698946..de57fa2b0eb0d5775cb223a2c9f0a4c1399efa94 100644 (file)
@@ -1,4 +1,4 @@
 USING: unicode.script tools.test ;
 
-[ "Latin" ] [ CHAR: a script-of ] unit-test
-[ "Common" ] [ 0 script-of ] unit-test
+{ "Latin" } [ CHAR: a script-of ] unit-test
+{ "Common" } [ 0 script-of ] unit-test
index 6ea0f9d432d4fd44cf56d0ffd2cdd8fa99ded546..a529ef514fe0e6f4388d6f610c8287f611f6ef04 100644 (file)
@@ -2,12 +2,12 @@ USING: accessors alien.c-types io.encodings.utf8 kernel
 sequences tools.test unix.ffi unix.utilities ;
 IN: unix.ffi.tests
 
-[ 80 ] [ "http" f getservbyname port>> ntohs ] unit-test
+{ 80 } [ "http" f getservbyname port>> ntohs ] unit-test
 
 ! Aliases seem unreliable. Leave this as an example but don't rely
 ! on aliases working.
-[ ] [
+{ } [
     "http" f getservbyname aliases>> utf8 alien>strings drop
 ] unit-test
 
-[ "http" ] [ 80 htons f getservbyport name>> ] unit-test
+{ "http" } [ 80 htons f getservbyport name>> ] unit-test
index 53a8a593ea5445c22e55f25515af347b0937b551..db6ccf81538feebdb1b7591fcdc844733f822fbf 100644 (file)
@@ -3,39 +3,39 @@
 USING: kernel math sequences strings tools.test unix.groups ;
 IN: unix.groups.tests
 
-[ ] [ all-groups drop ] unit-test
+{ } [ all-groups drop ] unit-test
 
-[ t ] [ real-group-name string? ] unit-test
-[ t ] [ effective-group-name string? ] unit-test
+{ t } [ real-group-name string? ] unit-test
+{ t } [ effective-group-name string? ] unit-test
 
-[ t ] [ real-group-id integer? ] unit-test
-[ t ] [ effective-group-id integer? ] unit-test
+{ t } [ real-group-id integer? ] unit-test
+{ t } [ effective-group-id integer? ] unit-test
 
-[ ] [ real-group-id set-real-group ] unit-test
-[ ] [ effective-group-id set-effective-group ] unit-test
+{ } [ real-group-id set-real-group ] unit-test
+{ } [ effective-group-id set-effective-group ] unit-test
 
-[ ] [ real-group-name [ ] with-real-group ] unit-test
-[ ] [ real-group-id [ ] with-real-group ] unit-test
+{ } [ real-group-name [ ] with-real-group ] unit-test
+{ } [ real-group-id [ ] with-real-group ] unit-test
 
-[ ] [ effective-group-name [ ] with-effective-group ] unit-test
-[ ] [ effective-group-id [ ] with-effective-group ] unit-test
+{ } [ effective-group-name [ ] with-effective-group ] unit-test
+{ } [ effective-group-id [ ] with-effective-group ] unit-test
 
-[ ] [ [ ] with-group-cache ] unit-test
+{ } [ [ ] with-group-cache ] unit-test
 
-[ ] [ real-group-id group-name drop ] unit-test
+{ } [ real-group-id group-name drop ] unit-test
 
-[ "888888888888888" ] [ 888888888888888 group-name ] unit-test
-[ f ] [ "please-oh-please-don't-have-a-group-named-this123lalala" group-struct ] unit-test
-[ f ] [ "please-oh-please-don't-have-a-group-named-this123lalala" group-exists? ] unit-test
+{ "888888888888888" } [ 888888888888888 group-name ] unit-test
+{ f } [ "please-oh-please-don't-have-a-group-named-this123lalala" group-struct ] unit-test
+{ f } [ "please-oh-please-don't-have-a-group-named-this123lalala" group-exists? ] unit-test
 [ "please-oh-please-don't-have-a-group-named-this123lalala" ?group-id ] must-fail
 
-[ 3 ] [ f [ 3 ] with-effective-group ] unit-test
-[ 3 ] [ f [ 3 ] with-real-group ] unit-test
+{ 3 } [ f [ 3 ] with-effective-group ] unit-test
+{ 3 } [ f [ 3 ] with-real-group ] unit-test
 
-[ f ]
+{ f }
 [ all-groups drop all-groups empty? ] unit-test
 
-[ f ]
+{ f }
 [ all-group-names drop all-group-names empty? ] unit-test
 
 { f }
index cfa0525b2cb2033de8657f64e95fa88f4140a6f6..43de224cfd3f1832a984c66bf7d69004c1309e3d 100644 (file)
@@ -25,7 +25,7 @@ test-sigusr1-handler SIGUSR1 add-signal-handler
 
 ] [ test-sigusr1-handler SIGUSR1 remove-signal-handler ] [ ] cleanup
 
-[ 0 ] [
+{ 0 } [
     sigusr1-count get-global
     SIGUSR1 raise drop
     0.5 seconds sleep
index 5ab9a8c147a8fc5512bf42ffcb650bd3ee873e43..adf2a2b50762dccb4992bb3c726ddcc6cf614d9a 100644 (file)
@@ -3,38 +3,38 @@
 USING: tools.test unix.users kernel strings math sequences ;
 IN: unix.users.tests
 
-[ ] [ all-users drop ] unit-test
+{ } [ all-users drop ] unit-test
 
-[ t ] [ real-user-name string? ] unit-test
-[ t ] [ effective-user-name string? ] unit-test
+{ t } [ real-user-name string? ] unit-test
+{ t } [ effective-user-name string? ] unit-test
 
-[ t ] [ real-user-id integer? ] unit-test
-[ t ] [ effective-user-id integer? ] unit-test
+{ t } [ real-user-id integer? ] unit-test
+{ t } [ effective-user-id integer? ] unit-test
 
-[ ] [ real-user-id set-real-user ] unit-test
-[ ] [ effective-user-id set-effective-user ] unit-test
+{ } [ real-user-id set-real-user ] unit-test
+{ } [ effective-user-id set-effective-user ] unit-test
 
-[ ] [ real-user-name [ ] with-real-user ] unit-test
-[ ] [ real-user-id [ ] with-real-user ] unit-test
+{ } [ real-user-name [ ] with-real-user ] unit-test
+{ } [ real-user-id [ ] with-real-user ] unit-test
 
-[ ] [ effective-user-name [ ] with-effective-user ] unit-test
-[ ] [ effective-user-id [ ] with-effective-user ] unit-test
+{ } [ effective-user-name [ ] with-effective-user ] unit-test
+{ } [ effective-user-id [ ] with-effective-user ] unit-test
 
-[ ] [ [ ] with-user-cache ] unit-test
+{ } [ [ ] with-user-cache ] unit-test
 
-[ "9999999999999999999" ] [ 9999999999999999999 user-name ] unit-test
+{ "9999999999999999999" } [ 9999999999999999999 user-name ] unit-test
 
-[ f ] [ 89898989898989898989898989898 user-passwd ] unit-test
+{ f } [ 89898989898989898989898989898 user-passwd ] unit-test
 
-[ f ] [ "thisusershouldnotexistabcdefg12345asdfasdfasdfasdfasdfasdfasdf" user-id ] unit-test
-[ f ] [ "thisusershouldnotexistabcdefg12345asdfasdfasdfasdfasdfasdfasdf" user-exists? ] unit-test
+{ f } [ "thisusershouldnotexistabcdefg12345asdfasdfasdfasdfasdfasdfasdf" user-id ] unit-test
+{ f } [ "thisusershouldnotexistabcdefg12345asdfasdfasdfasdfasdfasdfasdf" user-exists? ] unit-test
 [ "thisusershouldnotexistabcdefg12345asdfasdfasdfasdfasdfasdfasdf" ?user-id ] must-fail
 
-[ 3 ] [ f [ 3 ] with-effective-user ] unit-test
-[ 3 ] [ f [ 3 ] with-real-user ] unit-test
+{ 3 } [ f [ 3 ] with-effective-user ] unit-test
+{ 3 } [ f [ 3 ] with-real-user ] unit-test
 
-[ f ]
+{ f }
 [ all-users drop all-users empty? ] unit-test
 
-[ f ]
+{ f }
 [ all-user-names drop all-user-names empty? ] unit-test
index d434b78a8e0f280ba5eba0807e09c063e206a7d0..71879b6d316d2e0b54fae067b5be2ef8fd723cd3 100644 (file)
@@ -2,22 +2,22 @@ USING: unrolled-lists tools.test deques kernel sequences
 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-back ] unit-test
-[ 1 ] [ <unrolled-list> 1 over push-back pop-front ] unit-test
-[ 1 ] [ <unrolled-list> 1 over push-back pop-back ] 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-back pop-front ] unit-test
+{ 1 } [ <unrolled-list> 1 over push-back pop-back ] unit-test
 
-[ 1 2 ] [
+{ 1 2 } [
     <unrolled-list> 1 over push-back 2 over push-back
     [ pop-front ] [ pop-front ] bi
 ] unit-test
 
-[ 2 1 ] [
+{ 2 1 } [
     <unrolled-list> 1 over push-back 2 over push-back
     [ pop-back ] [ pop-back ] bi
 ] unit-test
 
-[ 1 2 3 ] [
+{ 1 2 3 } [
     <unrolled-list>
     1 over push-back
     2 over push-back
@@ -25,7 +25,7 @@ IN: unrolled-lists.tests
     [ pop-front ] [ pop-front ] [ pop-front ] tri
 ] unit-test
 
-[ 3 2 1 ] [
+{ 3 2 1 } [
     <unrolled-list>
     1 over push-back
     2 over push-back
@@ -33,21 +33,21 @@ IN: unrolled-lists.tests
     [ pop-back ] [ pop-back ] [ pop-back ] tri
 ] unit-test
 
-[ { 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 } ] [
+{ { 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 } } [
     <unrolled-list>
     32 [ over push-front ] each-integer
     32 [ dup pop-back ] replicate
     nip
 ] unit-test
 
-[ { 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 } ] [
+{ { 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 } } [
     <unrolled-list>
     32 [ over push-front ] each-integer
     32 [ dup pop-front ] replicate reverse
     nip
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1000 [ 1000 random ] replicate
     [ [ over push-front ] each ]
@@ -58,7 +58,7 @@ IN: unrolled-lists.tests
     nip
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1000 [ 1000 random ] replicate
     [
@@ -72,37 +72,37 @@ IN: unrolled-lists.tests
     nip
 ] unit-test
 
-[ t ] [ <unrolled-list> deque-empty? ] unit-test
+{ t } [ <unrolled-list> deque-empty? ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1 over push-front
     dup pop-front*
     deque-empty?
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1 over push-back
     dup pop-front*
     deque-empty?
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1 over push-front
     dup pop-back*
     deque-empty?
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     1 over push-back
     dup pop-back*
     deque-empty?
 ] unit-test
 
-[ t ] [
+{ t } [
     <unrolled-list>
     21 over push-front
     22 over push-front
index 7f7586ba24a3da35302ffe6296c2d73d31f5037c..0d67573d3b6539ad0ad8d811d69f817b4532621e 100644 (file)
@@ -1,40 +1,40 @@
 IN: urls.encoding.tests
 USING: urls.encoding tools.test arrays kernel assocs present accessors ;
 
-[ "~hello world" ] [ "%7ehello world" url-decode ] unit-test
-[ "" ] [ "%XX%XX%XX" url-decode ] unit-test
-[ "" ] [ "%XX%XX%X" url-decode ] unit-test
+{ "~hello world" } [ "%7ehello world" url-decode ] unit-test
+{ "" } [ "%XX%XX%XX" url-decode ] unit-test
+{ "" } [ "%XX%XX%X" url-decode ] unit-test
 
-[ "hello world" ] [ "hello%20world" url-decode ] unit-test
-[ " ! "         ] [ "%20%21%20"     url-decode ] unit-test
-[ "hello world" ] [ "hello world%"  url-decode ] unit-test
-[ "hello world" ] [ "hello world%x" url-decode ] unit-test
-[ "hello%20world" ] [ "hello world" url-encode ] unit-test
+{ "hello world" } [ "hello%20world" url-decode ] unit-test
+{ " ! "         } [ "%20%21%20"     url-decode ] unit-test
+{ "hello world" } [ "hello world%"  url-decode ] unit-test
+{ "hello world" } [ "hello world%x" url-decode ] unit-test
+{ "hello%20world" } [ "hello world" url-encode ] unit-test
 
-[ "~foo" ] [ "~foo" url-encode ] unit-test
-[ "~foo" ] [ "~foo" url-encode-full ] unit-test
+{ "~foo" } [ "~foo" url-encode ] unit-test
+{ "~foo" } [ "~foo" url-encode-full ] unit-test
 
-[ ":foo" ] [ ":foo" url-encode ] unit-test
-[ "%3Afoo" ] [ ":foo" url-encode-full ] unit-test
+{ ":foo" } [ ":foo" url-encode ] unit-test
+{ "%3Afoo" } [ ":foo" url-encode-full ] unit-test
 
-[ "hello world" ] [ "hello+world" query-decode ] unit-test
+{ "hello world" } [ "hello+world" query-decode ] unit-test
 
-[ "\u001234hi\u002045" ] [ "\u001234hi\u002045" url-encode url-decode ] unit-test
+{ "\u001234hi\u002045" } [ "\u001234hi\u002045" url-encode url-decode ] unit-test
 
-[ "a=b&a=c" ] [ { { "a" { "b" "c" } } } assoc>query ] unit-test
+{ "a=b&a=c" } [ { { "a" { "b" "c" } } } assoc>query ] unit-test
 
-[ H{ { "a" "b" } } ] [ "a=b" query>assoc ] unit-test
+{ H{ { "a" "b" } } } [ "a=b" query>assoc ] unit-test
 
-[ H{ { "a" { "b" "c" } } } ] [ "a=b&a=c" query>assoc ] unit-test
+{ H{ { "a" { "b" "c" } } } } [ "a=b&a=c" query>assoc ] unit-test
 
-[ H{ { "a" { "b" "c" } } } ] [ "a=b;a=c" query>assoc ] unit-test
+{ H{ { "a" { "b" "c" } } } } [ "a=b;a=c" query>assoc ] unit-test
 
-[ H{ { "text" "hello world" } } ] [ "text=hello+world" query>assoc ] unit-test
+{ H{ { "text" "hello world" } } } [ "text=hello+world" query>assoc ] unit-test
 
-[ "foo=%3A" ] [ { { "foo" ":" } } assoc>query ] unit-test
+{ "foo=%3A" } [ { { "foo" ":" } } assoc>query ] unit-test
 
-[ "a=3" ] [ { { "a" 3 } } assoc>query ] unit-test
+{ "a=3" } [ { { "a" 3 } } assoc>query ] unit-test
 
-[ "a" ] [ { { "a" f } } assoc>query ] unit-test
+{ "a" } [ { { "a" f } } assoc>query ] unit-test
 
-[ H{ { "a" f } } ] [ "a" query>assoc ] unit-test
+{ H{ { "a" f } } } [ "a" query>assoc ] unit-test
index f66f40b1cf897a9f234021465c9e5827ea8ea703..a9d04bda046d79c0f784cb46882d4121477302e6 100644 (file)
@@ -99,26 +99,26 @@ urls [
     swap [ 1array ] [ [ present ] curry ] bi* unit-test
 ] assoc-each
 
-[ "b" ] [ "a" "b" url-append-path ] unit-test
+{ "b" } [ "a" "b" url-append-path ] unit-test
 
-[ "a/b" ] [ "a/c" "b" url-append-path ] unit-test
+{ "a/b" } [ "a/c" "b" url-append-path ] unit-test
 
-[ "a/b" ] [ "a/" "b" url-append-path ] unit-test
+{ "a/b" } [ "a/" "b" url-append-path ] unit-test
 
-[ "/b" ] [ "a" "/b" url-append-path ] unit-test
+{ "/b" } [ "a" "/b" url-append-path ] unit-test
 
-[ "/b" ] [ "a/b/" "/b" url-append-path ] unit-test
+{ "/b" } [ "a/b/" "/b" url-append-path ] unit-test
 
-[ "/xxx/bar" ] [ "/xxx/baz" "bar" url-append-path ] unit-test
+{ "/xxx/bar" } [ "/xxx/baz" "bar" url-append-path ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
         { port 1234 }
         { path "/a/path" }
     }
-] [
+} [
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -133,7 +133,7 @@ urls [
     derive-url
 ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -142,7 +142,7 @@ urls [
         { query H{ { "a" "b" } } }
         { anchor "foo" }
     }
-] [
+} [
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -159,7 +159,7 @@ urls [
     derive-url
 ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -168,7 +168,7 @@ urls [
         { query H{ { "a" "b" } } }
         { anchor "foo" }
     }
-] [
+} [
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -185,13 +185,13 @@ urls [
     derive-url
 ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
         { path "/xxx/baz" }
     }
-] [
+} [
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -205,12 +205,12 @@ urls [
     derive-url
 ] unit-test
 
-[
+{
     T{ url
         { protocol "https" }
         { host "www.apple.com" }
     }
-] [
+} [
     T{ url
         { protocol "http" }
         { host "www.apple.com" }
@@ -226,52 +226,52 @@ urls [
 ] unit-test
 
 ! Support //foo.com, which has the same protocol as the url we derive from
-[ URL" http://foo.com" ]
+{ URL" http://foo.com" }
 [ URL" http://google.com" URL" //foo.com" derive-url ] unit-test
 
-[ URL" https://foo.com" ]
+{ URL" https://foo.com" }
 [ URL" https://google.com" URL" //foo.com" derive-url ] unit-test
 
-[ "a" ] [
+{ "a" } [
     <url> "a" "b" set-query-param "b" query-param
 ] unit-test
 
-[ "foo#3" ] [ URL" foo" clone 3 >>anchor present ] unit-test
+{ "foo#3" } [ URL" foo" clone 3 >>anchor present ] unit-test
 
-[ "http://www.foo.com/" ] [ "http://www.foo.com:80" >url present ] unit-test
+{ "http://www.foo.com/" } [ "http://www.foo.com:80" >url present ] unit-test
 
-[ f ] [ URL" /gp/redirect.html/002-7009742-0004012?location=http://advantage.amazon.com/gp/vendor/public/join%26token%3d77E3769AB3A5B6CF611699E150DC33010761CE12" protocol>> ] unit-test
+{ f } [ URL" /gp/redirect.html/002-7009742-0004012?location=http://advantage.amazon.com/gp/vendor/public/join%26token%3d77E3769AB3A5B6CF611699E150DC33010761CE12" protocol>> ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "localhost" }
         { query H{ { "foo" "bar" } } }
         { path "/" }
     }
-]
+}
 [ "http://localhost?foo=bar" >url ] unit-test
 
-[
+{
     T{ url
         { protocol "http" }
         { host "localhost" }
         { query H{ { "foo" "bar" } } }
         { path "/" }
     }
-]
+}
 [ "http://localhost/?foo=bar" >url ] unit-test
 
-[ "/" ] [ "http://www.jedit.org" >url path>> ] unit-test
+{ "/" } [ "http://www.jedit.org" >url path>> ] unit-test
 
-[ "USING: urls ;\nURL\" foo\"" ] [ URL" foo" unparse-use ] unit-test
+{ "USING: urls ;\nURL\" foo\"" } [ URL" foo" unparse-use ] unit-test
 
-[ T{ inet { host "google.com" } { port 80 } } ]
+{ T{ inet { host "google.com" } { port 80 } } }
 [ URL" http://google.com/" url-addr ] unit-test
 
-[
+{
     T{ secure
        { addrspec T{ inet { host "google.com" } { port 443 } } }
     }
-]
+}
 [ URL" https://google.com/" url-addr ] unit-test
index 577f77e687238dfa3e16d7a87d921be0c38fcf57..be034e4937c54276177637e0fd3a7a3be86e0e33 100644 (file)
@@ -5,13 +5,13 @@ USING: kernel uuid tools.test ;
 
 IN: uuid.tests
 
-[ t ] [ NAMESPACE_DNS  [ 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_X500 [ 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_OID  [ uuid-parse uuid-unparse ] keep = ] unit-test
+{ t } [ NAMESPACE_X500 [ uuid-parse uuid-unparse ] keep = ] unit-test
 
-[ t ] [ NAMESPACE_URL "ABCD" uuid3
+{ t } [ NAMESPACE_URL "ABCD" uuid3
         "2e10e403-d7fa-3ffb-808f-ab834a46890e" = ] unit-test
 
-[ t ] [ NAMESPACE_URL "ABCD" uuid5
+{ t } [ NAMESPACE_URL "ABCD" uuid5
         "0aa883d6-7953-57e7-a8f0-66db29ce5a91" = ] unit-test
index 6b5936977f433bae7745c8cc48c1a2660301242f..1685a99626330d0ebec1ce04d84e2b47ca03c09b 100644 (file)
@@ -2,23 +2,23 @@ IN: validators.tests
 USING: kernel sequences tools.test validators accessors
 namespaces assocs ;
 
-[ t ] [ "on" v-checkbox ] unit-test
-[ f ] [ "off" v-checkbox ] unit-test
+{ t } [ "on" v-checkbox ] unit-test
+{ f } [ "off" v-checkbox ] unit-test
 
-[ "default test" ] [ "" "default test" v-default ] unit-test
-[ "blah" ] [ "blah" "default test" v-default ] unit-test
+{ "default test" } [ "" "default test" v-default ] unit-test
+{ "blah" } [ "blah" "default test" v-default ] unit-test
 
 [ "foo" v-number ] must-fail
-[ 123 ] [ "123" v-number ] unit-test
-[ 123 ] [ "123" v-integer ] unit-test
+{ 123 } [ "123" v-number ] unit-test
+{ 123 } [ "123" v-integer ] unit-test
 
 [ "1.0" v-integer ] [ "must be an integer" = ] must-fail-with
 
-[ "slava@factorcode.org" ] [
+{ "slava@factorcode.org" } [
     "slava@factorcode.org" v-email
 ] unit-test
 
-[ "slava+foo@factorcode.org" ] [
+{ "slava+foo@factorcode.org" } [
     "slava+foo@factorcode.org" v-email
 ] unit-test
 
@@ -31,25 +31,25 @@ namespaces assocs ;
 [ "slava@factorcodeorg" v-email ]
 [ "invalid e-mail" = ] must-fail-with
 
-[ "http://www.factorcode.org" ]
+{ "http://www.factorcode.org" }
 [ "http://www.factorcode.org" v-url ] unit-test
 
 [ "http:/www.factorcode.org" v-url ]
 [ "invalid URL" = ] must-fail-with
 
 [ "" v-one-line ] must-fail
-[ "hello world" ] [ "hello world" v-one-line ] unit-test
+{ "hello world" } [ "hello world" v-one-line ] unit-test
 [ "hello\nworld" v-one-line ] must-fail
 
 [ "" v-one-word ] must-fail
-[ "hello" ] [ "hello" v-one-word ] unit-test
+{ "hello" } [ "hello" v-one-word ] unit-test
 [ "hello world" v-one-word ] must-fail
 
-[ 4561261212345467 ] [ "4561261212345467" v-credit-card ] unit-test
+{ 4561261212345467 } [ "4561261212345467" v-credit-card ] unit-test
 
-[ 4561261212345467 ] [ "4561-2612-1234-5467" v-credit-card ] unit-test
+{ 4561261212345467 } [ "4561-2612-1234-5467" v-credit-card ] unit-test
 
-[ 0 ] [ "0000000000000000" v-credit-card ] unit-test
+{ 0 } [ "0000000000000000" v-credit-card ] unit-test
 
 [ "000000000" v-credit-card ] must-fail
 
@@ -59,4 +59,4 @@ namespaces assocs ;
 
 [ "4561-2621-1234-5467" v-credit-card ] must-fail
 
-[ t ] [ "http://double.co.nz/w?v=foo" dup v-url = ] unit-test
+{ t } [ "http://double.co.nz/w?v=foo" dup v-url = ] unit-test
index 0bf0d95c4995ffa9d143205fd3396dbf483c3c0e..22f2d913155a4cbdab4c06c7d4112e38072541ab 100644 (file)
@@ -2,10 +2,10 @@ USING: vlists kernel persistent.sequences arrays tools.test
 namespaces accessors sequences assocs ;
 IN: vlists.tests
 
-[ { "hi" "there" } ]
+{ { "hi" "there" } }
 [ VL{ } "hi" swap ppush "there" swap ppush >array ] unit-test
 
-[ VL{ "hi" "there" "foo" } VL{ "hi" "there" "bar" } t ]
+{ VL{ "hi" "there" "foo" } VL{ "hi" "there" "bar" } t }
 [
     VL{ } "hi" swap ppush "there" swap ppush "v" set
     "foo" "v" get ppush
@@ -13,7 +13,7 @@ IN: vlists.tests
     dup "baz" over ppush [ vector>> ] bi@ eq?
 ] unit-test
 
-[ "foo" VL{ "hi" "there" } t ]
+{ "foo" VL{ "hi" "there" } t }
 [
     VL{ "hi" "there" "foo" } dup "v" set
     [ last ] [ ppop ] bi
@@ -24,18 +24,18 @@ IN: vlists.tests
 
 [ 4 VL{ "hi" } set-first ] must-fail
 
-[ 5 t ] [
+{ 5 t } [
     "rice" VA{ { "rice" 5 } { "beans" 10 } } at*
 ] unit-test
 
-[ 6 t ] [
+{ 6 t } [
     "rice" VA{ { "rice" 5 } { "beans" 10 } { "rice" 6 } } at*
 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     VA{ { "rice" 5 } { "beans" 10 } { "rice" 6 } } assoc-size
 ] unit-test
 
-[ f f ] [
+{ f f } [
     "meat" VA{ { "rice" 5 } { "beans" 10 } { "rice" 6 } } at*
 ] unit-test
index aed1ab5a7779745500e7f7183813a3bcd0867814..59b360104672c258cf83eb7bbe6ca89580088394 100644 (file)
@@ -1,7 +1,7 @@
 IN: vocabs.files.tests
 USING: tools.test vocabs.files vocabs arrays grouping ;
 
-[ t ] [
+{ t } [
     "kernel" vocab-files
     "kernel" lookup-vocab vocab-files
     "kernel" <vocab-link> vocab-files
index 5c50406a264da2db7a508458ec88c293c78a2a20..96ff25a69621ccf6de5d51e50a1ea2ca08fe91cf 100644 (file)
@@ -2,17 +2,17 @@
 USING: sorting tools.test vocabs.metadata.resources ;
 IN: vocabs.metadata.resources.tests
 
-[ { "bar" "bas" "foo" } ]
+{ { "bar" "bas" "foo" } }
 [ "vocabs.metadata.resources.test.1" vocab-resource-files natural-sort ] unit-test
 
-[ { "bar.wtf" "foo.wtf" } ]
+{ { "bar.wtf" "foo.wtf" } }
 [ "vocabs.metadata.resources.test.2" vocab-resource-files natural-sort ] unit-test
 
-[ {
+{ {
     "resource-dir"
     "resource-dir/bar"
     "resource-dir/bas"
     "resource-dir/bas/zang"
     "resource-dir/bas/zim"
     "resource-dir/foo"
-} ] [ "vocabs.metadata.resources.test.3" vocab-resource-files natural-sort ] unit-test
+} } [ "vocabs.metadata.resources.test.3" vocab-resource-files natural-sort ] unit-test
index 5c81f373d8931f7b1bd82e9f082c8b43070e468b..b3b7dfd9acc85c467104330031b902f92593e4fe 100644 (file)
@@ -7,9 +7,9 @@ IN: vocabs.prettyprint.tests
 
     << manifest get pprint-manifest >>""" ;
 
-[
+{
 """USING: kernel namespaces vocabs.parser vocabs.prettyprint ;"""
-]
+}
 [ [ manifest-test-1 eval( -- ) ] with-string-writer ] unit-test
 
 : manifest-test-2 ( -- string )
@@ -18,10 +18,10 @@ IN: vocabs.prettyprint.tests
 
     << manifest get pprint-manifest >>""" ;
 
-[
+{
 """USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
 IN: vocabs.prettyprint.tests"""
-]
+}
 [ [ manifest-test-2 eval( -- ) ] with-string-writer ] unit-test
 
 : manifest-test-3 ( -- string )
@@ -34,21 +34,21 @@ IN: vocabs.prettyprint.tests"""
 
     << manifest get pprint-manifest >>""" ;
 
-[
+{
 """USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
 FROM: math => + - ;
 QUALIFIED: system
 QUALIFIED-WITH: assocs a
 EXCLUDE: parser => run-file ;
 IN: vocabs.prettyprint.tests"""
-]
+}
 [ [ manifest-test-3 eval( -- ) ] with-string-writer ] unit-test
 
-[
+{
 """USING: alien.c-types alien.syntax byte-arrays io
 io.encodings.binary io.encodings.string io.encodings.utf8
 io.streams.byte-array kernel sequences system system-info unix ;"""
-] [
+} [
     [
         {
             "alien.c-types"
index 86091189a5c41024f8f796eb32ab6e52aa1a4c49..b64d02ecb2a7122bd362140712c159110d69771c 100644 (file)
@@ -1,6 +1,6 @@
 USING: tools.test vocabs.refresh.monitor io.pathnames ;
 IN: vocabs.refresh.monitor.tests
 
-[ "kernel" ] [ "core/kernel/kernel.factor" path>vocab ] unit-test
-[ "kernel" ] [ "core/kernel/" path>vocab ] unit-test
-[ "kernel" ] [ "core/kernel/" resource-path path>vocab ] unit-test
+{ "kernel" } [ "core/kernel/kernel.factor" path>vocab ] unit-test
+{ "kernel" } [ "core/kernel/" path>vocab ] unit-test
+{ "kernel" } [ "core/kernel/" resource-path path>vocab ] unit-test
index 8d397aa1afe226b816e8ff4935b70fa8209a1851..31e7f7c58757922546b22083856833110956f78e 100644 (file)
@@ -1,7 +1,7 @@
 IN: vocabs.refresh.tests
 USING: vocabs.refresh tools.test continuations namespaces ;
 
-[ ] [
+{ } [
     changed-vocabs get-global
     f changed-vocabs set-global
     [ t ] [ "kernel" changed-vocab-by-name? ] unit-test
index 9eab9ca72509c884195a69fb715664be4b79f693..87491908395d3b78e978ceb2afa3f6624e84fd76 100644 (file)
@@ -3,26 +3,26 @@
 USING: kernel tools.test wrap.strings ;
 IN: wrap.strings.tests
 
-[
+{
     """This is a
 long piece
 of text
 that we
 wish to
 word wrap."""
-] [
+} [
     """This is a long piece of text that we wish to word wrap.""" 10
     wrap-string
 ] unit-test
 
-[
+{
     """  This is a
   long piece
   of text
   that we
   wish to
   word wrap."""
-] [
+} [
     """This is a long piece of text that we wish to word wrap.""" 12
     "  " wrap-indented-string
 ] unit-test
@@ -32,20 +32,20 @@ word wrap."""
     [ "  " wrap-indented-string ] [ 2 wrap-indented-string ] 2bi =
 ] unit-test
 
-[ "this text\nhas lots of\nspaces" ]
+{ "this text\nhas lots of\nspaces" }
 [ "this text        has lots of       spaces" 12 wrap-string ] unit-test
 
-[ "hello\nhow\nare\nyou\ntoday?" ]
+{ "hello\nhow\nare\nyou\ntoday?" }
 [ "hello how are you today?" 3 wrap-string ] unit-test
 
-[ "aaa\nbb cc\nddddd" ] [ "aaa bb cc ddddd" 6 wrap-string ] unit-test
-[ "aaa\nbb ccc\ndddddd" ] [ "aaa bb ccc dddddd" 6 wrap-string ] unit-test
-[ "aaa bb\ncccc\nddddd" ] [ "aaa bb cccc ddddd" 6 wrap-string ] unit-test
-[ "aaa bb\nccccccc\nddddddd" ] [ "aaa bb ccccccc ddddddd" 6 wrap-string ] unit-test
+{ "aaa\nbb cc\nddddd" } [ "aaa bb cc ddddd" 6 wrap-string ] unit-test
+{ "aaa\nbb ccc\ndddddd" } [ "aaa bb ccc dddddd" 6 wrap-string ] unit-test
+{ "aaa bb\ncccc\nddddd" } [ "aaa bb cccc ddddd" 6 wrap-string ] unit-test
+{ "aaa bb\nccccccc\nddddddd" } [ "aaa bb ccccccc ddddddd" 6 wrap-string ] unit-test
 
-[ "a b c d e f\ng h" ] [ "a b c d e f g h" 11 wrap-string ] unit-test
+{ "a b c d e f\ng h" } [ "a b c d e f g h" 11 wrap-string ] unit-test
 
-[ "" ] [ "" 10 wrap-string ] unit-test
-[ "Hello" ] [ "\nHello\n" 10 wrap-string ] unit-test
+{ "" } [ "" 10 wrap-string ] unit-test
+{ "Hello" } [ "\nHello\n" 10 wrap-string ] unit-test
 
 { " > > > " } [ "" 70 " > > > " wrap-indented-string ] unit-test
index b62fdef192249f0a3deb6940861a9a0dd2adc1d2..2d9b11b90ab9f2733074dfc3a09ada890d2a2fc9 100644 (file)
@@ -3,7 +3,7 @@
 USING: tools.test wrap.words sequences ;
 IN: wrap.words.tests
 
-[
+{
     {
         {
             T{ word f 1 10 f }
@@ -15,7 +15,7 @@ IN: wrap.words.tests
             T{ word f 5 10 f }
         }
     }
-] [
+} [
     {
         T{ word f 1 10 f }
         T{ word f 2 10 f }
@@ -25,7 +25,7 @@ IN: wrap.words.tests
     } 35 35 wrap-words [ { } like ] map
 ] unit-test
 
-[
+{
     {
         {
             T{ word f 1 10 f }
@@ -39,7 +39,7 @@ IN: wrap.words.tests
             T{ word f 5 10 f }
         }
     }
-] [
+} [
     {
         T{ word f 1 10 f }
         T{ word f 2 10 f }
@@ -51,7 +51,7 @@ IN: wrap.words.tests
     } 35 35 wrap-words [ { } like ] map
 ] unit-test
 
-[
+{
     {
         {
             T{ word f 1 10 t }
@@ -67,7 +67,7 @@ IN: wrap.words.tests
             T{ word f 5 10 f }
         }
     }
-] [
+} [
     {
         T{ word f 1 10 t }
         T{ word f 1 10 f }
index e597b95088965ae90f22da035de5b5d86d42f6b9..0e4c069b97f3f140786161ba1c058565fd623144 100644 (file)
@@ -2,4 +2,4 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: wrap tools.test ;
 
-[ { } ] [ { } 10 10 wrap ] unit-test
+{ { } } [ { } 10 10 wrap ] unit-test
index 0ccdf8bdfb967603673a67dec8b1e82fc1711dfe..c1399c2bad59974d462cb6254bcd1b9ad46d4bb8 100644 (file)
@@ -1,5 +1,5 @@
 USING: xml-rpc tools.test ;
 
-[ T{ rpc-method f "blah" { 1 H{ { "2" 3 } { "5" t } } } } ]
+{ T{ rpc-method f "blah" { 1 H{ { "2" 3 } { "5" t } } } } }
 [ "blah" { 1 H{ { "2" 3 } { "5" t } } }
     <rpc-method> send-rpc receive-rpc ] unit-test
index aa1e45883186090bbf1be2b6c269f51bdb2a1430..013609746b2672df8c2ee31554a13139cc4a05e1 100644 (file)
@@ -29,18 +29,18 @@ TAG: neg calculate
 : calc-arith ( string -- n )
     string>xml first-child-tag calculate ;
 
-[ 32 ] [
+{ 32 } [
     "<math><times><add><number>1</number><number>3</number></add><neg><number>-8</number></neg></times></math>"
     calc-arith
 ] unit-test
 
 XML-NS: foo http://blah.com
 
-[ T{ name { main "bling" } { url "http://blah.com" } } ] [ "bling" foo ] unit-test
+{ T{ name { main "bling" } { url "http://blah.com" } } } [ "bling" foo ] unit-test
 
 ! XML literals
 
-[ "a" "c" { "a" "c" f } ] [
+{ "a" "c" { "a" "c" f } } [
     "<?xml version='1.0'?><x><-a-><b val=<-c->/><-></x>"
     string>doc
     [ second var>> ]
@@ -54,15 +54,15 @@ XML-NS: foo http://blah.com
   <b val="two"/>
   y
   <foo/>
-</x>""" ] [
+</x>""" ] {
     [let "one" :> a "two" :> c "y" :> x [XML <-x-> <foo/> XML] :> d
         <XML
             <x> <-a-> <b val=<-c->/> <-d-> </x>
         XML> pprint-xml>string
-    ]
+    }
 ] unit-test
 
-[ """<?xml version="1.0" encoding="UTF-8"?>
+{ """<?xml version="1.0" encoding="UTF-8"?>
 <doc>
   <item>
     one
@@ -73,36 +73,36 @@ XML-NS: foo http://blah.com
   <item>
     three
   </item>
-</doc>""" ] [
+</doc>""" } [
     "one two three" " " split
     [ [XML <item><-></item> XML] ] map
     <XML <doc><-></doc> XML> pprint-xml>string
 ] unit-test
 
-[ """<?xml version="1.0" encoding="UTF-8"?>
-<x number="3" url="http://factorcode.org/" string="hello" word="drop"/>""" ]
+{ """<?xml version="1.0" encoding="UTF-8"?>
+<x number="3" url="http://factorcode.org/" string="hello" word="drop"/>""" }
 [ 3 f "http://factorcode.org/" "hello" \ drop
   <XML <x number=<-> false=<-> url=<-> string=<-> word=<->/> XML>
   pprint-xml>string  ] unit-test
 
-[ "<x>3</x>" ] [ 3 [XML <x><-></x> XML] xml>string ] unit-test
-[ "<x></x>" ] [ f [XML <x><-></x> XML] xml>string ] unit-test
+{ "<x>3</x>" } [ 3 [XML <x><-></x> XML] xml>string ] unit-test
+{ "<x></x>" } [ f [XML <x><-></x> XML] xml>string ] unit-test
 
 [ [XML <-> XML] ] must-infer
 [ [XML <foo><-></foo> <bar val=<->/> XML] ] must-infer
 
-[ xml-chunk ] [ [ [XML <foo/> XML] ] first class-of ] unit-test
-[ xml ] [ [ <XML <foo/> XML> ] first class-of ] unit-test
-[ xml-chunk ] [ [ [XML <foo val=<->/> XML] ] third class-of ] unit-test
-[ xml ] [ [ <XML <foo val=<->/> XML> ] third class-of ] unit-test
-[ 1 ] [ [ [XML <foo/> XML] ] length ] unit-test
-[ 1 ] [ [ <XML <foo/> XML> ] length ] unit-test
+{ xml-chunk } [ [ [XML <foo/> XML] ] first class-of ] unit-test
+{ xml } [ [ <XML <foo/> XML> ] first class-of ] unit-test
+{ xml-chunk } [ [ [XML <foo val=<->/> XML] ] third class-of ] unit-test
+{ xml } [ [ <XML <foo val=<->/> XML> ] third class-of ] unit-test
+{ 1 } [ [ [XML <foo/> XML] ] length ] unit-test
+{ 1 } [ [ <XML <foo/> XML> ] length ] unit-test
 
-[ "" ] [ [XML XML] concat ] unit-test
+{ "" } [ [XML XML] concat ] unit-test
 
-[ "foo" ] [ [XML <a>foo</a> XML] [ [XML <a><-></a> XML] ] undo ] unit-test
-[ "foo" ] [ [XML <a bar='foo'/> XML] [ [XML <a bar=<-> /> XML] ] undo ] unit-test
-[ "foo" "baz" ] [ [XML <a bar='foo'>baz</a> XML] [ [XML <a bar=<->><-></a> XML] ] undo ] unit-test
+{ "foo" } [ [XML <a>foo</a> XML] [ [XML <a><-></a> XML] ] undo ] unit-test
+{ "foo" } [ [XML <a bar='foo'/> XML] [ [XML <a bar=<-> /> XML] ] undo ] unit-test
+{ "foo" "baz" } [ [XML <a bar='foo'>baz</a> XML] [ [XML <a bar=<->><-></a> XML] ] undo ] unit-test
 
 : dispatch ( xml -- string )
     {
@@ -112,13 +112,13 @@ XML-NS: foo http://blah.com
         { [ [XML <b val=<->/> XML] ] [ "bno" prepend ] }
     } switch ;
 
-[ "apple" ] [ [XML <a>pple</a> XML] dispatch ] unit-test
-[ "banana" ] [ [XML <b>anana</b> XML] dispatch ] unit-test
-[ "byes" ] [ [XML <b val="yes"/> XML] dispatch ] unit-test
-[ "bnowhere" ] [ [XML <b val="where"/> XML] dispatch ] unit-test
-[ "baboon" ] [ [XML <b val="something">aboon</b> XML] dispatch ] unit-test
-[ "apple" ] [ <XML <a>pple</a> XML> dispatch ] unit-test
-[ "apple" ] [ <XML <a>pple</a> XML> body>> dispatch ] unit-test
+{ "apple" } [ [XML <a>pple</a> XML] dispatch ] unit-test
+{ "banana" } [ [XML <b>anana</b> XML] dispatch ] unit-test
+{ "byes" } [ [XML <b val="yes"/> XML] dispatch ] unit-test
+{ "bnowhere" } [ [XML <b val="where"/> XML] dispatch ] unit-test
+{ "baboon" } [ [XML <b val="something">aboon</b> XML] dispatch ] unit-test
+{ "apple" } [ <XML <a>pple</a> XML> dispatch ] unit-test
+{ "apple" } [ <XML <a>pple</a> XML> body>> dispatch ] unit-test
 
 : dispatch-doc ( xml -- string )
     {
@@ -128,9 +128,9 @@ XML-NS: foo http://blah.com
         { [ <XML <b val=<->/> XML> ] [ "bno" prepend ] }
     } switch ;
 
-[ "apple" ] [ <XML <a>pple</a> XML> dispatch-doc ] unit-test
-[ "apple" ] [ [XML <a>pple</a> XML] dispatch-doc ] unit-test
-[ "apple" ] [ <XML <a>pple</a> XML> body>> dispatch-doc ] unit-test
+{ "apple" } [ <XML <a>pple</a> XML> dispatch-doc ] unit-test
+{ "apple" } [ [XML <a>pple</a> XML] dispatch-doc ] unit-test
+{ "apple" } [ <XML <a>pple</a> XML> body>> dispatch-doc ] unit-test
 
 ! Make sure nested XML documents interpolate correctly
 {
index 43076a5a416e65301a1aba8c29049c3b789dc8e7..822a3cc4cb5f8e326f3d717c0ef31d1ff10880ef 100644 (file)
@@ -3,23 +3,23 @@
 USING: xml xml.traversal tools.test xml.data sequences arrays kernel ;
 IN: xml.traversal.tests
 
-[ "bar" ] [ "<foo>bar</foo>" string>xml children>string ] unit-test
+{ "bar" } [ "<foo>bar</foo>" string>xml children>string ] unit-test
 
-[ "" ] [ "<foo></foo>" string>xml children>string ] unit-test
+{ "" } [ "<foo></foo>" string>xml children>string ] unit-test
 
-[ "" ] [ "<foo/>" string>xml children>string ] unit-test
+{ "" } [ "<foo/>" string>xml children>string ] unit-test
 
-[ "bar qux" ] [ "<foo>bar <baz>qux</baz></foo>" string>xml deep-children>string ] unit-test
+{ "bar qux" } [ "<foo>bar <baz>qux</baz></foo>" string>xml deep-children>string ] unit-test
 
-[ "blah" ] [ "<foo attr='blah'/>" string>xml-chunk "foo" deep-tag-named "attr" attr ] unit-test
+{ "blah" } [ "<foo attr='blah'/>" string>xml-chunk "foo" deep-tag-named "attr" attr ] unit-test
 
-[ { "blah" } ] [ "<foo attr='blah'/>" string>xml-chunk "foo" deep-tags-named [ "attr" attr ] map ] unit-test
+{ { "blah" } } [ "<foo attr='blah'/>" string>xml-chunk "foo" deep-tags-named [ "attr" attr ] map ] unit-test
 
-[ "blah" ] [ "<foo attr='blah'/>" string>xml "foo" deep-tag-named "attr" attr ] unit-test
+{ "blah" } [ "<foo attr='blah'/>" string>xml "foo" deep-tag-named "attr" attr ] unit-test
 
-[ { "blah" } ] [ "<foo attr='blah'/>" string>xml "foo" deep-tags-named [ "attr" attr ] map ] unit-test
+{ { "blah" } } [ "<foo attr='blah'/>" string>xml "foo" deep-tags-named [ "attr" attr ] map ] unit-test
 
-[ { "blah" } ] [ "<foo><bar attr='blah'/></foo>" string>xml "blah" "attr" tags-with-attr [ "attr" attr ] map ] unit-test
-[ { "blah" } ] [ "bar" { { "attr" "blah" } } f <tag> 1array "blah" "attr" tags-with-attr [ "attr" attr ] map ] unit-test
+{ { "blah" } } [ "<foo><bar attr='blah'/></foo>" string>xml "blah" "attr" tags-with-attr [ "attr" attr ] map ] unit-test
+{ { "blah" } } [ "bar" { { "attr" "blah" } } f <tag> 1array "blah" "attr" tags-with-attr [ "attr" attr ] map ] unit-test
 
-[ { "http://hub.example.com" "http://alt.example.com" } ] [ "<head><link rel='alternate' href='http://alt.example.com'/><link rel='hub' href='http://hub.example.com'/></head>" string>xml-chunk "head" tag-named [ "link" "hub" "rel" tag-named-with-attr ] [ "link" "alternate" "rel" tag-named-with-attr ] bi [ "href" attr ] bi@ 2array ] unit-test
+{ { "http://hub.example.com" "http://alt.example.com" } } [ "<head><link rel='alternate' href='http://alt.example.com'/><link rel='hub' href='http://hub.example.com'/></head>" string>xml-chunk "head" tag-named [ "link" "hub" "rel" tag-named-with-attr ] [ "link" "alternate" "rel" tag-named-with-attr ] bi [ "href" attr ] bi@ 2array ] unit-test
index e27c500f3366eeb7a7268279ead7c2a5b6692332..3276482eb2fc2518d3de81b350f0a043a4004e4c 100644 (file)
@@ -8,9 +8,9 @@ IN: xml.writer.tests
 
 ! Add a test for pprint-xml with sensitive-tags
 
-[ "foo" ] [ T{ name { main "foo" } } name>string ] unit-test
-[ "foo" ] [ T{ name { space "" } { main "foo" } } name>string ] unit-test
-[ "ns:foo" ] [ T{ name { space "ns" } { main "foo" } } name>string ] unit-test
+{ "foo" } [ T{ name { main "foo" } } name>string ] unit-test
+{ "foo" } [ T{ name { space "" } { main "foo" } } name>string ] unit-test
+{ "ns:foo" } [ T{ name { space "ns" } { main "foo" } } name>string ] unit-test
 
 : reprints-as ( to from -- )
      [ ] [ string>xml xml>string ] bi-curry* unit-test ;
@@ -50,25 +50,25 @@ IN: xml.writer.tests
 ]>
 <x>&foo;</x>""" pprint-reprints-as
 
-[ t ] [ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\" >" dup string>xml-chunk xml>string = ] unit-test
-[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><a b=\"c\"/>" ]
+{ t } [ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\" >" dup string>xml-chunk xml>string = ] unit-test
+{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><a b=\"c\"/>" }
     [ "<a b='c'/>" string>xml xml>string ] unit-test
-[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo>bar baz</foo>" ]
+{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo>bar baz</foo>" }
 [ "<foo>bar</foo>" string>xml [ " baz" append ] map xml>string ] unit-test
-[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<foo>\n  bar\n</foo>" ]
+{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<foo>\n  bar\n</foo>" }
 [ "<foo>         bar            </foo>" string>xml pprint-xml>string ] unit-test
-[ "<foo'>" ] [ "<foo'>" <unescaped> xml>string ] unit-test
+{ "<foo'>" } [ "<foo'>" <unescaped> xml>string ] unit-test
 
 : test-file ( -- path )
     "test.xml" temp-file ;
 
-[ ] [
+{ } [
     "<?xml version='1.0' encoding='UTF-16BE'?><x/>" string>xml test-file utf8 [ write-xml ] with-file-writer
 ] unit-test
-[ "x" ] [ test-file file>xml body>> name>> main>> ] unit-test
-[ ] [ test-file delete-file ] unit-test
+{ "x" } [ test-file file>xml body>> name>> main>> ] unit-test
+{ } [ test-file delete-file ] unit-test
 
-[ ] [
+{ } [
     { 1 2 3 4 } [
         [ number>string ] [ sq number>string ] bi
         [XML <tr><td><-></td><td><-></td></tr> XML]
index 75e377bc973b75c9a9d85a5638cb31c5bee9b043..38b16956ff49d41991782cb8d2ec13ec37eb4de9 100644 (file)
@@ -2,9 +2,9 @@ IN: xmode.catalog.tests
 USING: xmode.catalog tools.test hashtables assocs
 kernel sequences io ;
 
-[ t ] [ modes hashtable? ] unit-test
+{ t } [ modes hashtable? ] unit-test
 
-[ ] [
+{ } [
     modes keys [
         dup print flush load-mode drop reset-modes
     ] each
index f00c8a537cb0921f31be0baef4459203ec83582a..0ae9c910d5eee668f8cb7501c45ba8f2eebce8ba 100644 (file)
@@ -3,25 +3,25 @@ USING: xmode.code2html xmode.catalog
 tools.test multiline splitting memoize
 kernel io.streams.string xml.writer ;
 
-[ ] [ \ (load-mode) reset-memoized ] unit-test
+{ } [ \ (load-mode) reset-memoized ] unit-test
 
-[ ] [
+{ } [
     """<style type="text/css" media="screen" >
     *        {margin:0; padding:0; border:0;}"""
     string-lines "html" htmlize-lines drop
 ] unit-test
 
-[ ] [
+{ } [
     "test.c"
     """int x = "hi";
 /* a comment */""" <string-reader> htmlize-stream
     write-xml
 ] unit-test
 
-[ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [
+{ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" } [
     { ": foo ;" } "factor" htmlize-lines xml>string
 ] unit-test
 
-[ ":foo" ] [
+{ ":foo" } [
     { ":foo" } "factor" htmlize-lines xml>string
 ] unit-test
index 0e5c03fb571163f2b5dfccb811ca79cf2e30140f..17644fb451bedd7f4a9c238e1a3e1f144d8fdff8 100644 (file)
@@ -10,11 +10,11 @@ f <keyword-map> dup "k" set
     { "size_t" KEYWORD3 }
 } assoc-union! drop
 
-[ 3 ] [ "k" get assoc-size ] unit-test
-[ KEYWORD1 ] [ "int" "k" get at ] unit-test
-[ "_" ] [ "k" get keyword-map-no-word-sep* >string ] unit-test
-[ ] [ LITERAL1 "x-y" "k" get set-at ] unit-test
-[ "-_" ] [ "k" get keyword-map-no-word-sep* >string ] unit-test
+{ 3 } [ "k" get assoc-size ] unit-test
+{ KEYWORD1 } [ "int" "k" get at ] unit-test
+{ "_" } [ "k" get keyword-map-no-word-sep* >string ] unit-test
+{ } [ LITERAL1 "x-y" "k" get set-at ] unit-test
+{ "-_" } [ "k" get keyword-map-no-word-sep* >string ] unit-test
 
 t <keyword-map> dup "k" set
 {
@@ -23,8 +23,8 @@ t <keyword-map> dup "k" set
     { "BAZ" KEYWORD3 }
 } assoc-union! drop
 
-[ KEYWORD1 ] [ "fOo" "k" get at ] unit-test
+{ KEYWORD1 } [ "fOo" "k" get at ] unit-test
 
-[ KEYWORD2 ] [ "BBAR" "k" get at ] unit-test
+{ KEYWORD2 } [ "BBAR" "k" get at ] unit-test
 
-[ KEYWORD3 ] [ "baz" "k" get at ] unit-test
+{ KEYWORD3 } [ "baz" "k" get at ] unit-test
index c67148c0c79d4beabe22d44c4b7d2be9671e3388..7b0fc9ab45a3aeec3dbe4efabe373d1bd2233d98 100644 (file)
@@ -2,15 +2,15 @@ USING: xmode.tokens xmode.catalog
 xmode.marker tools.test kernel ;
 IN: xmode.marker.tests
 
-[
+{
     {
         T{ token f "int" KEYWORD3 }
         T{ token f " " f }
         T{ token f "x" f }
     }
-] [ f "int x" "c" load-mode tokenize-line nip ] unit-test
+} [ f "int x" "c" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "\"" LITERAL1 }
         T{ token f "hello\\\"" LITERAL1 }
@@ -18,25 +18,25 @@ IN: xmode.marker.tests
         T{ token f "world" LITERAL1 }
         T{ token f "\"" LITERAL1 }
     }
-] [ f "\"hello\\\" world\"" "c" load-mode tokenize-line nip ] unit-test
+} [ f "\"hello\\\" world\"" "c" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "\"" LITERAL1 }
         T{ token f "hello\\\ world" LITERAL1 }
         T{ token f "\"" LITERAL1 }
     }
-] [ f "\"hello\\\ world\"" "c" load-mode tokenize-line nip ] unit-test
+} [ f "\"hello\\\ world\"" "c" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "int" KEYWORD3 }
         T{ token f " " f }
         T{ token f "x" f }
     }
-] [ f "int x" "java" load-mode tokenize-line nip ] unit-test
+} [ f "int x" "java" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "//" COMMENT2 }
         T{ token f " " COMMENT2 }
@@ -44,34 +44,34 @@ IN: xmode.marker.tests
         T{ token f " " COMMENT2 }
         T{ token f "world" COMMENT2 }
     }
-] [ f "// hello world" "java" load-mode tokenize-line nip ] unit-test
+} [ f "// hello world" "java" load-mode tokenize-line nip ] unit-test
 
 
-[
+{
     {
         T{ token f "hello" f }
         T{ token f " " f }
         T{ token f "world" f }
         T{ token f ":" f }
     }
-] [ f "hello world:" "java" load-mode tokenize-line nip ] unit-test
+} [ f "hello world:" "java" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "hello_world" LABEL }
         T{ token f ":" OPERATOR }
     }
-] [ f "hello_world:" "java" load-mode tokenize-line nip ] unit-test
+} [ f "hello_world:" "java" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "\t" f }
         T{ token f "hello_world" LABEL }
         T{ token f ":" OPERATOR }
     }
-] [ f "\thello_world:" "java" load-mode tokenize-line nip ] unit-test
+} [ f "\thello_world:" "java" load-mode tokenize-line nip ] unit-test
 
-[
+{
     {
         T{ token f "<!" KEYWORD2 }
         T{ token f "ELEMENT" KEYWORD2 }
@@ -82,11 +82,11 @@ IN: xmode.marker.tests
         T{ token f " " KEYWORD2 }
         T{ token f ">" KEYWORD2 }
     }
-] [
+} [
      f "<!ELEMENT %hello; >" "xml" load-mode tokenize-line nip
 ] unit-test
 
-[
+{
     {
         T{ token f "<!" KEYWORD2 }
         T{ token f "ELEMENT" KEYWORD2 }
@@ -97,47 +97,47 @@ IN: xmode.marker.tests
         T{ token f " " KEYWORD2 }
         T{ token f ">" KEYWORD2 }
     }
-] [
+} [
      f "<!ELEMENT %hello-world; >" "xml" load-mode tokenize-line nip
 ] unit-test
 
-[
+{
     {
         T{ token f "$" KEYWORD2 }
         T{ token f "FOO" KEYWORD2 }
     }
-] [
+} [
     f "$FOO" "shellscript" load-mode tokenize-line nip
 ] unit-test
 
-[
+{
     {
         T{ token f "AND" KEYWORD1 }
     }
-] [
+} [
     f "AND" "pascal" load-mode tokenize-line nip
 ] unit-test
 
-[
+{
     {
         T{ token f "Comment {" COMMENT1 }
         T{ token f "XXX" COMMENT1 }
         T{ token f "}" COMMENT1 }
     }
-] [
+} [
     f "Comment {XXX}" "rebol" load-mode tokenize-line nip
 ] unit-test
 
-[
+{
 
-] [
+} [
     f "font:75%/1.6em \"Lucida Grande\", \"Lucida Sans Unicode\", verdana, geneva, sans-serif;" "css" load-mode tokenize-line 2drop
 ] unit-test
 
-[
+{
     {
         T{ token f "<" MARKUP }
         T{ token f "aaa" MARKUP }
         T{ token f ">" MARKUP }
     }
-] [ f "<aaa>" "html" load-mode tokenize-line nip ] unit-test
+} [ f "<aaa>" "html" load-mode tokenize-line nip ] unit-test
index 5fc62f39e971d282b50dff90a759f55e4b12b417..13e4ce5361f1c9f0ec19b447647bac187a980559 100644 (file)
@@ -1,6 +1,6 @@
 IN: xmode.rules.tests
 USING: xmode.rules tools.test ;
 
-[ { 1 2 3 } ] [ f { 1 2 3 } ?push-all ] unit-test
-[ { 1 2 3 } ] [ { 1 2 3 } f ?push-all ] unit-test
-[ V{ 1 2 3 4 5 } ] [ { 1 2 3 } { 4 5 } ?push-all ] unit-test
+{ { 1 2 3 } } [ f { 1 2 3 } ?push-all ] unit-test
+{ { 1 2 3 } } [ { 1 2 3 } f ?push-all ] unit-test
+{ V{ 1 2 3 4 5 } } [ { 1 2 3 } { 4 5 } ?push-all ] unit-test
index 34126e9227e1eca49db7c50966393a711cef1a35..7b9e527e8b25782a1ebeaef13ac54c3fb11b17fd 100644 (file)
@@ -5,40 +5,40 @@ tools.test ;
 FROM: namespaces => set ;
 IN: alien.tests
 
-[ t ] [ -1 <alien> alien-address 0 > ] unit-test
+{ t } [ -1 <alien> alien-address 0 > ] unit-test
 
-[ t ] [ 0 <alien> 0 <alien> = ] unit-test
-[ f ] [ 0 <alien> 1024 <alien> = ] unit-test
-[ f ] [ "hello" 1024 <alien> = ] unit-test
-[ f ] [ 0 <alien> ] unit-test
-[ f ] [ 0 f <displaced-alien> ] unit-test
+{ t } [ 0 <alien> 0 <alien> = ] unit-test
+{ f } [ 0 <alien> 1024 <alien> = ] unit-test
+{ f } [ "hello" 1024 <alien> = ] unit-test
+{ f } [ 0 <alien> ] unit-test
+{ f } [ 0 f <displaced-alien> ] unit-test
 
 ! Testing the various bignum accessor
 10 <byte-array> "dump" set
 
 [ "dump" get alien-address ] must-fail
 
-[ 123 ] [
+{ 123 } [
     123 "dump" get 0 set-alien-signed-1
     "dump" get 0 alien-signed-1
 ] unit-test
 
-[ 12345 ] [
+{ 12345 } [
     12345 "dump" get 0 set-alien-signed-2
     "dump" get 0 alien-signed-2
 ] unit-test
 
-[ 12345678 ] [
+{ 12345678 } [
     12345678 "dump" get 0 set-alien-signed-4
     "dump" get 0 alien-signed-4
 ] unit-test
 
-[ 12345678901234567 ] [
+{ 12345678901234567 } [
     12345678901234567 "dump" get 0 set-alien-signed-8
     "dump" get 0 alien-signed-8
 ] unit-test
 
-[ -1 ] [
+{ -1 } [
     -1 "dump" get 0 set-alien-signed-8
     "dump" get 0 alien-signed-8
 ] unit-test
@@ -57,35 +57,35 @@ cell 8 = [
     ] unit-test
 ] when
 
-[ "ALIEN: 1234" ] [ 0x1234 <alien> unparse ] unit-test
+{ "ALIEN: 1234" } [ 0x1234 <alien> unparse ] unit-test
 
-[ ] [ 0 B{ 1 2 3 } <displaced-alien> drop ] unit-test
+{ } [ 0 B{ 1 2 3 } <displaced-alien> drop ] unit-test
 
 [ 0 B{ 1 2 3 } <displaced-alien> alien-address ] must-fail
 
 [ 1 1 <displaced-alien> ] must-fail
 
-[ f ] [ 1 B{ 1 2 3 } <displaced-alien> pinned-c-ptr? ] unit-test
+{ f } [ 1 B{ 1 2 3 } <displaced-alien> pinned-c-ptr? ] unit-test
 
-[ f ] [ 2 B{ 1 2 3 } <displaced-alien> 1 swap <displaced-alien> pinned-c-ptr? ] unit-test
+{ f } [ 2 B{ 1 2 3 } <displaced-alien> 1 swap <displaced-alien> pinned-c-ptr? ] unit-test
 
-[ t ] [ 0 B{ 1 2 3 } <displaced-alien> 1 swap <displaced-alien> underlying>> byte-array? ] unit-test
+{ t } [ 0 B{ 1 2 3 } <displaced-alien> 1 swap <displaced-alien> underlying>> byte-array? ] unit-test
 
-[ "( displaced alien )" ] [ 1 B{ 1 2 3 } <displaced-alien> unparse ] unit-test
+{ "( displaced alien )" } [ 1 B{ 1 2 3 } <displaced-alien> unparse ] unit-test
 
 SYMBOL: initialize-test
 
 f initialize-test set-global
 
-[ 31337 ] [ initialize-test [ 31337 ] initialize-alien ] unit-test
+{ 31337 } [ initialize-test [ 31337 ] initialize-alien ] unit-test
 
-[ 31337 ] [ initialize-test [ 69 ] initialize-alien ] unit-test
+{ 31337 } [ initialize-test [ 69 ] initialize-alien ] unit-test
 
-[ ] [ initialize-test get BAD-ALIEN >>alien drop ] unit-test
+{ } [ initialize-test get BAD-ALIEN >>alien drop ] unit-test
 
-[ 7575 ] [ initialize-test [ 7575 ] initialize-alien ] unit-test
+{ 7575 } [ initialize-test [ 7575 ] initialize-alien ] unit-test
 
-[ { BAD-ALIEN } ] [ { BAD-ALIEN BAD-ALIEN BAD-ALIEN } members ] unit-test
+{ { BAD-ALIEN } } [ { BAD-ALIEN BAD-ALIEN BAD-ALIEN } members ] unit-test
 
 ! Generate callbacks until the whole callback-heap is full, then free
 ! them. Do it ten times in a row for good measure.
index c6516d3839bf4f80fb962df72d3b4b91520e12c7..b554b1bcfa09f9f37687124311af6935b25fc9f9 100644 (file)
@@ -3,32 +3,32 @@ kernel libc io.encodings.utf8 io.encodings.utf16 io.encodings.utf16n
 io.encodings.ascii alien io.encodings.string io.encodings.8-bit.latin1 ;
 IN: alien.strings.tests
 
-[ "\u0000ff" ]
+{ "\u0000ff" }
 [ "\u0000ff" latin1 string>alien latin1 alien>string ]
 unit-test
 
-[ "hello world" ]
+{ "hello world" }
 [ "hello world" latin1 string>alien latin1 alien>string ]
 unit-test
 
-[ "hello\u00abcdworld" ]
+{ "hello\u00abcdworld" }
 [ "hello\u00abcdworld" utf16le string>alien utf16le alien>string ]
 unit-test
 
-[ t ] [ f expired? ] unit-test
+{ t } [ f expired? ] unit-test
 
-[ "hello world" ] [
+{ "hello world" } [
     "hello world" ascii malloc-string
     dup ascii alien>string swap free
 ] unit-test
 
-[ "hello world" ] [
+{ "hello world" } [
     "hello world" utf16n malloc-string
     dup utf16n alien>string swap free
 ] unit-test
 
-[ f ] [ f utf8 alien>string ] unit-test
+{ f } [ f utf8 alien>string ] unit-test
 
-[ "hello" ] [ "hello" utf16 encode utf16 decode ] unit-test
+{ "hello" } [ "hello" utf16 encode utf16 decode ] unit-test
 
-[ "hello" ] [ "hello" utf16 string>alien utf16 alien>string ] unit-test
+{ "hello" } [ "hello" utf16 string>alien utf16 alien>string ] unit-test
index b0d7eae7193d64c0a20a21e65b81157ad5cca38f..e0d171a3989d3af8ee648926b11ffe402df6490a 100644 (file)
@@ -7,15 +7,15 @@ IN: arrays.tests
 [ 10 { "a" "b" "c" } nth ] must-fail
 [ "hi" -2 { "a" "b" "c" } set-nth ] must-fail
 [ "hi" 10 { "a" "b" "c" } set-nth ] must-fail
-[ f ] [ { "a" "b" "c" } dup clone eq? ] unit-test
-[ "hi" ] [ "hi" 1 { "a" "b" "c" } clone [ set-nth ] keep second ] unit-test
-[ V{ "a" "b" "c" } ] [ { "a" "b" "c" } >vector ] unit-test
-[ f ] [ { "a" "b" "c" } dup >array eq? ] unit-test
-[ t ] [ { "a" "b" "c" } dup { } like eq? ] unit-test
-[ t ] [ { "a" "b" "c" } dup dup length vector boa underlying>> eq? ] unit-test
-[ V{ "a" "b" "c" } ] [ { "a" "b" "c" } V{ } like ] unit-test
-[ { "a" "b" "c" } ] [ { "a" } { "b" "c" } append ] unit-test
-[ { "a" "b" "c" "d" "e" } ]
+{ f } [ { "a" "b" "c" } dup clone eq? ] unit-test
+{ "hi" } [ "hi" 1 { "a" "b" "c" } clone [ set-nth ] keep second ] unit-test
+{ V{ "a" "b" "c" } } [ { "a" "b" "c" } >vector ] unit-test
+{ f } [ { "a" "b" "c" } dup >array eq? ] unit-test
+{ t } [ { "a" "b" "c" } dup { } like eq? ] unit-test
+{ t } [ { "a" "b" "c" } dup dup length vector boa underlying>> eq? ] unit-test
+{ V{ "a" "b" "c" } } [ { "a" "b" "c" } V{ } like ] unit-test
+{ { "a" "b" "c" } } [ { "a" } { "b" "c" } append ] unit-test
+{ { "a" "b" "c" "d" "e" } }
 [ { "a" } { "b" "c" } { "d" "e" } 3append ] unit-test
 
 [ -1 f <array> ] must-fail
index 4dd3614cd24640c6796788c00e80f7ea8fec648e..6e715a32489e91dccb5d3592e124303ac891b811 100644 (file)
@@ -4,18 +4,18 @@ continuations specialized-arrays alien.c-types ;
 SPECIALIZED-ARRAY: double
 IN: assocs.tests
 
-[ t ] [ H{ } dup assoc-subset? ] unit-test
-[ f ] [ H{ { 1 3 } } H{ } assoc-subset? ] unit-test
-[ t ] [ H{ } H{ { 1 3 } } assoc-subset? ] unit-test
-[ t ] [ H{ { 1 3 } } H{ { 1 3 } } assoc-subset? ] unit-test
-[ f ] [ H{ { 1 3 } } H{ { 1 "hey" } } assoc-subset? ] unit-test
-[ f ] [ H{ { 1 f } } H{ } assoc-subset? ] unit-test
-[ t ] [ H{ { 1 f } } H{ { 1 f } } assoc-subset? ] unit-test
+{ t } [ H{ } dup assoc-subset? ] unit-test
+{ f } [ H{ { 1 3 } } H{ } assoc-subset? ] unit-test
+{ t } [ H{ } H{ { 1 3 } } assoc-subset? ] unit-test
+{ t } [ H{ { 1 3 } } H{ { 1 3 } } assoc-subset? ] unit-test
+{ f } [ H{ { 1 3 } } H{ { 1 "hey" } } assoc-subset? ] unit-test
+{ f } [ H{ { 1 f } } H{ } assoc-subset? ] unit-test
+{ t } [ H{ { 1 f } } H{ { 1 f } } assoc-subset? ] unit-test
 
 ! Test some combinators
-[
+{
     { 4 14 32 }
-] [
+} [
     [
         H{
             { 1 2 }
@@ -25,42 +25,42 @@ IN: assocs.tests
     ] { } make
 ] unit-test
 
-[ t ] [ H{ } [ 2drop f ] assoc-all? ] unit-test
-[ t ] [ H{ { 1 1 } } [ = ] assoc-all? ] unit-test
-[ f ] [ H{ { 1 2 } } [ = ] assoc-all? ] unit-test
-[ t ] [ H{ { 1 1 } { 2 2 } } [ = ] assoc-all? ] unit-test
-[ f ] [ H{ { 1 2 } { 2 2 } } [ = ] assoc-all? ] unit-test
+{ t } [ H{ } [ 2drop f ] assoc-all? ] unit-test
+{ t } [ H{ { 1 1 } } [ = ] assoc-all? ] unit-test
+{ f } [ H{ { 1 2 } } [ = ] assoc-all? ] unit-test
+{ t } [ H{ { 1 1 } { 2 2 } } [ = ] assoc-all? ] unit-test
+{ f } [ H{ { 1 2 } { 2 2 } } [ = ] assoc-all? ] unit-test
 
-[ H{ } ] [ H{ { t f } { f t } } [ 2drop f ] assoc-filter ] unit-test
-[ H{ } ] [ H{ { t f } { f t } } clone dup [ 2drop f ] assoc-filter! drop ] unit-test
-[ H{ } ] [ H{ { t f } { f t } } clone [ 2drop f ] assoc-filter! ] unit-test
+{ H{ } } [ H{ { t f } { f t } } [ 2drop f ] assoc-filter ] unit-test
+{ H{ } } [ H{ { t f } { f t } } clone dup [ 2drop f ] assoc-filter! drop ] unit-test
+{ H{ } } [ H{ { t f } { f t } } clone [ 2drop f ] assoc-filter! ] unit-test
 
-[ H{ { 3 4 } { 4 5 } { 6 7 } } ] [
+{ H{ { 3 4 } { 4 5 } { 6 7 } } } [
     H{ { 1 2 } { 2 3 } { 3 4 } { 4 5 } { 6 7 } }
     [ drop 3 >= ] assoc-filter
 ] unit-test
 
-[ H{ { 3 4 } { 4 5 } { 6 7 } } ] [
+{ H{ { 3 4 } { 4 5 } { 6 7 } } } [
     H{ { 1 2 } { 2 3 } { 3 4 } { 4 5 } { 6 7 } } clone
     [ drop 3 >= ] assoc-filter!
 ] unit-test
 
-[ H{ { 3 4 } { 4 5 } { 6 7 } } ] [
+{ H{ { 3 4 } { 4 5 } { 6 7 } } } [
     H{ { 1 2 } { 2 3 } { 3 4 } { 4 5 } { 6 7 } } clone dup
     [ drop 3 >= ] assoc-filter! drop
 ] unit-test
 
-[ H{ { 1 2 } { 2 3 } } ] [
+{ H{ { 1 2 } { 2 3 } } } [
     H{ { 1 2 } { 2 3 } { 3 4 } { 4 5 } { 6 7 } }
     [ drop 3 >= ] assoc-reject
 ] unit-test
 
-[ H{ { 1 2 } { 2 3 } } ] [
+{ H{ { 1 2 } { 2 3 } } } [
     H{ { 1 2 } { 2 3 } { 3 4 } { 4 5 } { 6 7 } } clone
     [ drop 3 >= ] assoc-reject!
 ] unit-test
 
-[ 21 ] [
+{ 21 } [
     0 H{
         { 1 2 }
         { 3 4 }
@@ -72,83 +72,83 @@ IN: assocs.tests
 
 H{ } clone "cache-test" set
 
-[ 4 ] [ 1 "cache-test" get [ 3 + ] cache ] unit-test
-[ 5 ] [ 2 "cache-test" get [ 3 + ] cache ] unit-test
-[ 4 ] [ 1 "cache-test" get [ 3 + ] cache ] unit-test
-[ 5 ] [ 2 "cache-test" get [ 3 + ] cache ] unit-test
+{ 4 } [ 1 "cache-test" get [ 3 + ] cache ] unit-test
+{ 5 } [ 2 "cache-test" get [ 3 + ] cache ] unit-test
+{ 4 } [ 1 "cache-test" get [ 3 + ] cache ] unit-test
+{ 5 } [ 2 "cache-test" get [ 3 + ] cache ] unit-test
 
-[
+{
     H{ { "factor" "rocks" } { 3 4 } }
-] [
+} [
     H{ { "factor" "rocks" } { "dup" "sq" } { 3 4 } }
     H{ { "factor" "rocks" } { 1 2 } { 2 3 } { 3 4 } }
     assoc-intersect
 ] unit-test
 
-[
+{
     H{ { 1 2 } { 2 3 } { 6 5 } }
-] [
+} [
     H{ { 2 4 } { 6 5 } } H{ { 1 2 } { 2 3 } }
     assoc-union
 ] unit-test
 
-[
+{
     H{ { 1 2 } { 2 3 } { 6 5 } }
-] [
+} [
     H{ { 2 4 } { 6 5 } } clone dup H{ { 1 2 } { 2 3 } }
     assoc-union! drop
 ] unit-test
 
-[
+{
     H{ { 1 2 } { 2 3 } { 6 5 } }
-] [
+} [
     H{ { 2 4 } { 6 5 } } clone H{ { 1 2 } { 2 3 } }
     assoc-union!
 ] unit-test
 
-[ H{ { 1 2 } { 2 3 } } t ] [
+{ H{ { 1 2 } { 2 3 } } t } [
     f H{ { 1 2 } { 2 3 } } [ assoc-union ] 2keep swap assoc-union dupd =
 ] unit-test
 
-[
+{
     H{ { 1 f } }
-] [
+} [
     H{ { 1 f } } H{ { 1 f } } assoc-intersect
 ] unit-test
 
-[
+{
     H{ { 3 4 } }
-] [
+} [
     H{ { 1 2 } { 3 4 } } H{ { 1 3 } } assoc-diff
 ] unit-test
 
-[
+{
     H{ { 3 4 } }
-] [
+} [
     H{ { 1 2 } { 3 4 } } clone dup H{ { 1 3 } } assoc-diff! drop
 ] unit-test
 
-[
+{
     H{ { 3 4 } }
-] [
+} [
     H{ { 1 2 } { 3 4 } } clone H{ { 1 3 } } assoc-diff!
 ] unit-test
 
-[ H{ { "hi" 2 } { 3 4 } } ]
+{ H{ { "hi" 2 } { 3 4 } } }
 [ "hi" 1 H{ { 1 2 } { 3 4 } } clone [ rename-at ] keep ]
 unit-test
 
-[ H{ { 1 2 } { 3 4 } } ]
+{ H{ { 1 2 } { 3 4 } } }
 [ "hi" 5 H{ { 1 2 } { 3 4 } } clone [ rename-at ] keep ]
 unit-test
 
-[
+{
     H{ { 1.0 1.0 } { 2.0 2.0 } }
-] [
+} [
     double-array{ 1.0 2.0 } [ dup ] H{ } map>assoc
 ] unit-test
 
-[ { 3 } ] [
+{ { 3 } } [
     [
         3
         H{ } clone
@@ -159,12 +159,12 @@ unit-test
     ] { } make
 ] unit-test
 
-[
+{
     H{
         { "bangers" "mash" }
         { "fries" "onion rings" }
     }
-] [
+} [
     { "bangers" "fries" } H{
         { "fish" "chips" }
         { "bangers" "mash" }
@@ -173,7 +173,7 @@ unit-test
     } extract-keys
 ] unit-test
 
-[ H{ { "b" [ 2 ] } { "d" [ 4 ] } } H{ { "a" [ 1 ] } { "c" [ 3 ] } } ] [
+{ H{ { "b" [ 2 ] } { "d" [ 4 ] } } H{ { "a" [ 1 ] } { "c" [ 3 ] } } } [
     H{
         { "a" [ 1 ] }
         { "b" [ 2 ] }
@@ -182,14 +182,14 @@ unit-test
     } [ nip first even? ] assoc-partition
 ] unit-test
 
-[ 1 f ] [ 1 H{ } ?at ] unit-test
-[ 2 t ] [ 1 H{ { 1 2 } } ?at ] unit-test
+{ 1 f } [ 1 H{ } ?at ] unit-test
+{ 2 t } [ 1 H{ { 1 2 } } ?at ] unit-test
 
-[ f ] [ 1 2 H{ { 2 1 } } maybe-set-at ] unit-test
-[ t ] [ 1 3 H{ { 2 1 } } clone maybe-set-at ] unit-test
-[ t ] [ 3 2 H{ { 2 1 } } clone maybe-set-at ] unit-test
+{ f } [ 1 2 H{ { 2 1 } } maybe-set-at ] unit-test
+{ t } [ 1 3 H{ { 2 1 } } clone maybe-set-at ] unit-test
+{ t } [ 3 2 H{ { 2 1 } } clone maybe-set-at ] unit-test
 
-[ H{ { 1 2 } { 2 3 } } ] [
+{ H{ { 1 2 } { 2 3 } } } [
     {
         H{ { 1 3 } }
         H{ { 2 3 } }
@@ -197,7 +197,7 @@ unit-test
     } assoc-combine
 ] unit-test
 
-[ H{ { 1 7 } } ] [
+{ H{ { 1 7 } } } [
     {
         H{ { 1 2 } { 2 4 } { 5 6 } }
         H{ { 1 3 } { 2 5 } }
@@ -205,10 +205,10 @@ unit-test
     } assoc-refine
 ] unit-test
 
-[ f ] [ "a" { } assoc-stack ] unit-test
-[ 1 ] [ "a" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
-[ 2 ] [ "b" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
-[ f ] [ "c" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
+{ f } [ "a" { } assoc-stack ] unit-test
+{ 1 } [ "a" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
+{ 2 } [ "b" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
+{ f } [ "c" { H{ { "a" 1 } } H{ { "b" 2 } } } assoc-stack ] unit-test
 
 
 {
index 09f9b927f244a6d9ab04fa3ab13d00762e7ebe28..a63d3c1d8f849088a3ced1fb5381cac2f5f238ce 100644 (file)
@@ -2,20 +2,20 @@ USING: byte-arrays kernel math sequences sequences.private
 tools.test ;
 IN: byte-arrays.tests
 
-[ 6 B{ 1 2 3 } ] [
+{ 6 B{ 1 2 3 } } [
     6 B{ 1 2 3 } resize-byte-array
     [ length ] [ 3 head ] bi
 ] unit-test
 
-[ B{ 1 2 } ] [ 2 B{ 1 2 3 4 5 6 7 8 9 } resize-byte-array ] unit-test
+{ B{ 1 2 } } [ 2 B{ 1 2 3 4 5 6 7 8 9 } resize-byte-array ] unit-test
 
 [ -10 B{ } resize-byte-array ] must-fail
 
-[ B{ 123 } ] [ 123 1byte-array ] unit-test
+{ B{ 123 } } [ 123 1byte-array ] unit-test
 
-[ B{ 123 } ] [ 123 0 B{ 0 } [ set-nth ] keep ] unit-test
+{ B{ 123 } } [ 123 0 B{ 0 } [ set-nth ] keep ] unit-test
 
-[ B{ 123 } ] [ 123 >bignum 0 B{ 0 } [ set-nth ] keep ] unit-test
+{ B{ 123 } } [ 123 >bignum 0 B{ 0 } [ set-nth ] keep ] unit-test
 
 [ 1.5 B{ 1 2 3 } nth-unsafe ] must-fail
 [ 0 1.5 B{ 1 2 3 } set-nth-unsafe ] must-fail
index 4022eaf7db7c293728dfa1c877093d6b9f6f4506..58dd39a5d75f4d48ecc09d71aca06e00777f78ed 100644 (file)
@@ -2,16 +2,16 @@ USING: tools.test byte-vectors vectors sequences kernel
 prettyprint math ;
 IN: byte-vectors.tests
 
-[ 0 ] [ 123 <byte-vector> length ] unit-test
+{ 0 } [ 123 <byte-vector> length ] unit-test
 
 : do-it ( seq -- seq )
     123 [ suffix! ] each-integer ;
 
-[ t ] [
+{ t } [
     3 <byte-vector> do-it
     3 <vector> do-it sequence=
 ] unit-test
 
-[ t ] [ BV{ } byte-vector? ] unit-test
+{ t } [ BV{ } byte-vector? ] unit-test
 
-[ "BV{ }" ] [ BV{ } unparse ] unit-test
+{ "BV{ }" } [ BV{ } unparse ] unit-test
index 15d83d1b02a385b6d63f1b1674fb65d0dd22e0fd..8922f5a2063c455a1f33294844debd1f86e5da8f 100644 (file)
@@ -1,5 +1,5 @@
 USING: checksums checksums.crc32 kernel math tools.test namespaces ;
 
-[ B{ 0 0 0 0 } ] [ "" crc32 checksum-bytes ] unit-test
+{ B{ 0 0 0 0 } } [ "" crc32 checksum-bytes ] unit-test
 
-[ B{ 0xcb 0xf4 0x39 0x26 } ] [ "123456789" crc32 checksum-bytes ] unit-test
+{ B{ 0xcb 0xf4 0x39 0x26 } } [ "123456789" crc32 checksum-bytes ] unit-test
index 11a6d9257c6be1277c9bff3ebc41f1c166707334..9403a890e6838622a17f25c1255a3bc333c17ee6 100644 (file)
@@ -43,242 +43,242 @@ MIXIN: mixin-with-one-member
 INSTANCE: union-with-one-member mixin-with-one-member
 
 ! class<=
-[ t ] [ \ fixnum \ integer class<= ] unit-test
-[ t ] [ \ fixnum \ fixnum class<= ] unit-test
-[ f ] [ \ integer \ fixnum class<= ] unit-test
-[ t ] [ \ integer \ object class<= ] unit-test
-[ f ] [ \ integer \ null class<= ] unit-test
-[ t ] [ \ null \ object class<= ] unit-test
+{ t } [ \ fixnum \ integer class<= ] unit-test
+{ t } [ \ fixnum \ fixnum class<= ] unit-test
+{ f } [ \ integer \ fixnum class<= ] unit-test
+{ t } [ \ integer \ object class<= ] unit-test
+{ f } [ \ integer \ null class<= ] unit-test
+{ t } [ \ null \ object class<= ] unit-test
 
-[ t ] [ \ generic \ word class<= ] unit-test
-[ f ] [ \ word \ generic class<= ] unit-test
+{ t } [ \ generic \ word class<= ] unit-test
+{ f } [ \ word \ generic class<= ] unit-test
 
-[ f ] [ \ reversed \ slice class<= ] unit-test
-[ f ] [ \ slice \ reversed class<= ] unit-test
+{ f } [ \ reversed \ slice class<= ] unit-test
+{ f } [ \ slice \ reversed class<= ] unit-test
 
-[ t ] [ no-docs no-docs-union class<= ] unit-test
-[ f ] [ no-docs-union no-docs class<= ] unit-test
+{ t } [ no-docs no-docs-union class<= ] unit-test
+{ f } [ no-docs-union no-docs class<= ] unit-test
 
-[ t ] [ \ c \ tuple class<= ] unit-test
-[ f ] [ \ tuple \ c class<= ] unit-test
+{ t } [ \ c \ tuple class<= ] unit-test
+{ f } [ \ tuple \ c class<= ] unit-test
 
-[ t ] [ \ tuple-class \ class class<= ] unit-test
-[ f ] [ \ class \ tuple-class class<= ] unit-test
+{ t } [ \ tuple-class \ class class<= ] unit-test
+{ f } [ \ class \ tuple-class class<= ] unit-test
 
-[ t ] [ \ null \ tuple-example class<= ] unit-test
-[ f ] [ \ object \ tuple-example class<= ] unit-test
-[ f ] [ \ object \ tuple-example class<= ] unit-test
-[ t ] [ \ tuple-example \ tuple class<= ] unit-test
-[ f ] [ \ tuple \ tuple-example class<= ] unit-test
+{ t } [ \ null \ tuple-example class<= ] unit-test
+{ f } [ \ object \ tuple-example class<= ] unit-test
+{ f } [ \ object \ tuple-example class<= ] unit-test
+{ t } [ \ tuple-example \ tuple class<= ] unit-test
+{ f } [ \ tuple \ tuple-example class<= ] unit-test
 
-[ f ] [ z1 x1 y1 class-and class<= ] unit-test
+{ f } [ z1 x1 y1 class-and class<= ] unit-test
 
-[ t ] [ x1 y1 class-and a1 class<= ] unit-test
+{ t } [ x1 y1 class-and a1 class<= ] unit-test
 
-[ f ] [ b1 c1 class-or a1 b1 class-or a1 c1 class-and class-and class<= ] unit-test
+{ f } [ b1 c1 class-or a1 b1 class-or a1 c1 class-and class-and class<= ] unit-test
 
-[ t ] [ a1 b1 class-or a1 c1 class-or class-and a1 class<= ] unit-test
+{ t } [ a1 b1 class-or a1 c1 class-or class-and a1 class<= ] unit-test
 
-[ f ] [ growable tuple sequence class-and class<= ] unit-test
+{ f } [ growable tuple sequence class-and class<= ] unit-test
 
-[ f ] [ growable assoc class-and tuple class<= ] unit-test
+{ f } [ growable assoc class-and tuple class<= ] unit-test
 
-[ t ] [ object \ f \ f class-not class-or class<= ] unit-test
+{ t } [ object \ f \ f class-not class-or class<= ] unit-test
 
-[ t ] [ fixnum class-not integer class-and bignum class= ] unit-test
+{ t } [ fixnum class-not integer class-and bignum class= ] unit-test
 
-[ t ] [ array number class-not class<= ] unit-test
+{ t } [ array number class-not class<= ] unit-test
 
-[ f ] [ bignum number class-not class<= ] unit-test
+{ f } [ bignum number class-not class<= ] unit-test
 
-[ t ] [ fixnum fixnum bignum class-or class<= ] unit-test
+{ t } [ fixnum fixnum bignum class-or class<= ] unit-test
 
-[ f ] [ fixnum class-not integer class-and array class<= ] unit-test
+{ f } [ fixnum class-not integer class-and array class<= ] unit-test
 
-[ f ] [ fixnum class-not integer class<= ] unit-test
+{ f } [ fixnum class-not integer class<= ] unit-test
 
-[ f ] [ number class-not array class<= ] unit-test
+{ f } [ number class-not array class<= ] unit-test
 
-[ f ] [ fixnum class-not array class<= ] unit-test
+{ f } [ fixnum class-not array class<= ] unit-test
 
-[ t ] [ number class-not integer class-not class<= ] unit-test
+{ t } [ number class-not integer class-not class<= ] unit-test
 
-[ f ] [ fixnum class-not integer class<= ] unit-test
+{ f } [ fixnum class-not integer class<= ] unit-test
 
-[ t ] [ object empty-intersection class<= ] unit-test
-[ t ] [ empty-intersection object class<= ] unit-test
-[ t ] [ \ f class-not empty-intersection class<= ] unit-test
-[ f ] [ empty-intersection \ f class-not class<= ] unit-test
-[ t ] [ \ number empty-intersection class<= ] unit-test
-[ t ] [ empty-intersection class-not null class<= ] unit-test
-[ t ] [ null empty-intersection class-not class<= ] unit-test
+{ t } [ object empty-intersection class<= ] unit-test
+{ t } [ empty-intersection object class<= ] unit-test
+{ t } [ \ f class-not empty-intersection class<= ] unit-test
+{ f } [ empty-intersection \ f class-not class<= ] unit-test
+{ t } [ \ number empty-intersection class<= ] unit-test
+{ t } [ empty-intersection class-not null class<= ] unit-test
+{ t } [ null empty-intersection class-not class<= ] unit-test
 
-[ t ] [ \ f class-not \ f class-or empty-intersection class<= ] unit-test
-[ t ] [ empty-intersection \ f class-not \ f class-or class<= ] unit-test
+{ t } [ \ f class-not \ f class-or empty-intersection class<= ] unit-test
+{ t } [ empty-intersection \ f class-not \ f class-or class<= ] unit-test
 
-[ t ] [ object \ f class-not \ f class-or class<= ] unit-test
+{ t } [ object \ f class-not \ f class-or class<= ] unit-test
 
-[ t ] [
+{ t } [
     fixnum class-not
     fixnum fixnum class-not class-or
     class<=
 ] unit-test
 
-[ t ] [ generic-class generic class<= ] unit-test
-[ t ] [ generic-class \ class class<= ] unit-test
+{ t } [ generic-class generic class<= ] unit-test
+{ t } [ generic-class \ class class<= ] unit-test
 
-[ t ] [ a union-with-one-member class<= ] unit-test
-[ f ] [ union-with-one-member class-not integer class<= ] unit-test
+{ t } [ a union-with-one-member class<= ] unit-test
+{ f } [ union-with-one-member class-not integer class<= ] unit-test
 
 MIXIN: empty-mixin
 
-[ f ] [ empty-mixin class-not null class<= ] unit-test
-[ f ] [ empty-mixin null class<= ] unit-test
+{ f } [ empty-mixin class-not null class<= ] unit-test
+{ f } [ empty-mixin null class<= ] unit-test
 
-[ t ] [ empty-mixin class-not object class<= ] unit-test
-[ t ] [ empty-mixin object class<= ] unit-test
+{ t } [ empty-mixin class-not object class<= ] unit-test
+{ t } [ empty-mixin object class<= ] unit-test
 
-[ t ] [ empty-mixin class-not object class<= ] unit-test
-[ t ] [ empty-mixin object class<= ] unit-test
+{ t } [ empty-mixin class-not object class<= ] unit-test
+{ t } [ empty-mixin object class<= ] unit-test
 
-[ t ] [ object empty-mixin class-not class<= ] unit-test
+{ t } [ object empty-mixin class-not class<= ] unit-test
 
-[ t ] [ array sequence vector class-not class-and class<= ] unit-test
-[ f ] [ vector sequence vector class-not class-and class<= ] unit-test
+{ t } [ array sequence vector class-not class-and class<= ] unit-test
+{ f } [ vector sequence vector class-not class-and class<= ] unit-test
 
 ! class-and
 : class-and* ( cls1 cls2 cls3 -- ? ) [ class-and ] dip class= ;
 
-[ t ] [ object  object  object class-and* ] unit-test
-[ t ] [ fixnum  object  fixnum class-and* ] unit-test
-[ t ] [ object  fixnum  fixnum class-and* ] unit-test
-[ t ] [ fixnum  fixnum  fixnum class-and* ] unit-test
-[ t ] [ fixnum  integer fixnum class-and* ] unit-test
-[ t ] [ integer fixnum  fixnum class-and* ] unit-test
+{ t } [ object  object  object class-and* ] unit-test
+{ t } [ fixnum  object  fixnum class-and* ] unit-test
+{ t } [ object  fixnum  fixnum class-and* ] unit-test
+{ t } [ fixnum  fixnum  fixnum class-and* ] unit-test
+{ t } [ fixnum  integer fixnum class-and* ] unit-test
+{ t } [ integer fixnum  fixnum class-and* ] unit-test
 
-[ t ] [ vector    fixnum   null   class-and* ] unit-test
-[ t ] [ number    object   number class-and* ] unit-test
-[ t ] [ object    number   number class-and* ] unit-test
-[ t ] [ slice     reversed null   class-and* ] unit-test
-[ t ] [ \ f class-not \ f      null   class-and* ] unit-test
+{ t } [ vector    fixnum   null   class-and* ] unit-test
+{ t } [ number    object   number class-and* ] unit-test
+{ t } [ object    number   number class-and* ] unit-test
+{ t } [ slice     reversed null   class-and* ] unit-test
+{ t } [ \ f class-not \ f      null   class-and* ] unit-test
 
-[ t ] [ vector array class-not vector class-and* ] unit-test
+{ t } [ vector array class-not vector class-and* ] unit-test
 
-[ object ] [ object empty-mixin class-not class-and ] unit-test
-[ object ] [ empty-mixin class-not object class-and ] unit-test
+{ object } [ object empty-mixin class-not class-and ] unit-test
+{ object } [ empty-mixin class-not object class-and ] unit-test
 
 ! class-or
 : class-or* ( cls1 cls2 cls3 -- ? ) [ class-or ] dip class= ;
 
-[ t ] [ \ f class-not \ f      object class-or*  ] unit-test
+{ t } [ \ f class-not \ f      object class-or*  ] unit-test
 
-[ object ] [ object empty-mixin class-not class-or ] unit-test
-[ object ] [ empty-mixin class-not object class-or ] unit-test
+{ object } [ object empty-mixin class-not class-or ] unit-test
+{ object } [ empty-mixin class-not object class-or ] unit-test
 
 ! class-not
-[ vector ] [ vector class-not class-not ] unit-test
+{ vector } [ vector class-not class-not ] unit-test
 
 ! classes-intersect?
-[ t ] [ both tuple classes-intersect? ] unit-test
-[ t ] [ tuple both classes-intersect? ] unit-test
+{ t } [ both tuple classes-intersect? ] unit-test
+{ t } [ tuple both classes-intersect? ] unit-test
 
-[ f ] [ vector virtual-sequence classes-intersect? ] unit-test
-[ f ] [ virtual-sequence vector classes-intersect? ] unit-test
+{ f } [ vector virtual-sequence classes-intersect? ] unit-test
+{ f } [ virtual-sequence vector classes-intersect? ] unit-test
 
-[ t ] [ number vector class-or sequence classes-intersect? ] unit-test
-[ t ] [ sequence number vector class-or classes-intersect? ] unit-test
+{ t } [ number vector class-or sequence classes-intersect? ] unit-test
+{ t } [ sequence number vector class-or classes-intersect? ] unit-test
 
-[ f ] [ number vector class-and sequence classes-intersect? ] unit-test
-[ f ] [ sequence number vector class-and classes-intersect? ] unit-test
+{ f } [ number vector class-and sequence classes-intersect? ] unit-test
+{ f } [ sequence number vector class-and classes-intersect? ] unit-test
 
-[ f ] [ y1 z1 class-and x1 classes-intersect? ] unit-test
-[ f ] [ x1 y1 z1 class-and classes-intersect? ] unit-test
+{ f } [ y1 z1 class-and x1 classes-intersect? ] unit-test
+{ f } [ x1 y1 z1 class-and classes-intersect? ] unit-test
 
-[ f ] [ a1 c1 class-or b1 c1 class-or class-and a1 b1 class-or classes-intersect? ] unit-test
-[ f ] [ a1 b1 class-or a1 c1 class-or b1 c1 class-or class-and classes-intersect? ] unit-test
+{ f } [ a1 c1 class-or b1 c1 class-or class-and a1 b1 class-or classes-intersect? ] unit-test
+{ f } [ a1 b1 class-or a1 c1 class-or b1 c1 class-or class-and classes-intersect? ] unit-test
 
-[ f ] [ integer integer class-not classes-intersect? ] unit-test
-[ f ] [ integer class-not integer classes-intersect? ] unit-test
+{ f } [ integer integer class-not classes-intersect? ] unit-test
+{ f } [ integer class-not integer classes-intersect? ] unit-test
 
-[ f ] [ fixnum class-not number class-and array classes-intersect? ] unit-test
-[ f ] [ array fixnum class-not number class-and classes-intersect? ] unit-test
+{ f } [ fixnum class-not number class-and array classes-intersect? ] unit-test
+{ f } [ array fixnum class-not number class-and classes-intersect? ] unit-test
 
-[ t ] [ \ word generic-class classes-intersect? ] unit-test
-[ t ] [ generic-class \ word classes-intersect? ] unit-test
-[ f ] [ number generic-class classes-intersect? ] unit-test
-[ f ] [ generic-class number classes-intersect? ] unit-test
+{ t } [ \ word generic-class classes-intersect? ] unit-test
+{ t } [ generic-class \ word classes-intersect? ] unit-test
+{ f } [ number generic-class classes-intersect? ] unit-test
+{ f } [ generic-class number classes-intersect? ] unit-test
 
-[ f ] [ sa sb classes-intersect? ] unit-test
-[ f ] [ sb sa classes-intersect? ] unit-test
+{ f } [ sa sb classes-intersect? ] unit-test
+{ f } [ sb sa classes-intersect? ] unit-test
 
-[ t ] [ a union-with-one-member classes-intersect? ] unit-test
-[ f ] [ fixnum union-with-one-member classes-intersect? ] unit-test
-[ t ] [ object union-with-one-member classes-intersect? ] unit-test
+{ t } [ a union-with-one-member classes-intersect? ] unit-test
+{ f } [ fixnum union-with-one-member classes-intersect? ] unit-test
+{ t } [ object union-with-one-member classes-intersect? ] unit-test
 
-[ t ] [ union-with-one-member a classes-intersect? ] unit-test
-[ f ] [ union-with-one-member fixnum classes-intersect? ] unit-test
-[ t ] [ union-with-one-member object classes-intersect? ] unit-test
+{ t } [ union-with-one-member a classes-intersect? ] unit-test
+{ f } [ union-with-one-member fixnum classes-intersect? ] unit-test
+{ t } [ union-with-one-member object classes-intersect? ] unit-test
 
-[ t ] [ a mixin-with-one-member classes-intersect? ] unit-test
-[ f ] [ fixnum mixin-with-one-member classes-intersect? ] unit-test
-[ t ] [ object mixin-with-one-member classes-intersect? ] unit-test
+{ t } [ a mixin-with-one-member classes-intersect? ] unit-test
+{ f } [ fixnum mixin-with-one-member classes-intersect? ] unit-test
+{ t } [ object mixin-with-one-member classes-intersect? ] unit-test
 
-[ t ] [ mixin-with-one-member a classes-intersect? ] unit-test
-[ f ] [ mixin-with-one-member fixnum classes-intersect? ] unit-test
-[ t ] [ mixin-with-one-member object classes-intersect? ] unit-test
+{ t } [ mixin-with-one-member a classes-intersect? ] unit-test
+{ f } [ mixin-with-one-member fixnum classes-intersect? ] unit-test
+{ t } [ mixin-with-one-member object classes-intersect? ] unit-test
 
-[ f ] [ null object classes-intersect? ] unit-test
-[ f ] [ object null classes-intersect? ] unit-test
+{ f } [ null object classes-intersect? ] unit-test
+{ f } [ object null classes-intersect? ] unit-test
 
-[ t ] [ null class-not object class= ] unit-test
+{ t } [ null class-not object class= ] unit-test
 
-[ t ] [ object class-not null class= ] unit-test
+{ t } [ object class-not null class= ] unit-test
 
-[ f ] [ object class-not object class= ] unit-test
+{ f } [ object class-not object class= ] unit-test
 
-[ f ] [ null class-not null class= ] unit-test
+{ f } [ null class-not null class= ] unit-test
 
 ! smallest-class etc
-[ real ] [ { real sequence } smallest-class ] unit-test
-[ real ] [ { sequence real } smallest-class ] unit-test
+{ real } [ { real sequence } smallest-class ] unit-test
+{ real } [ { sequence real } smallest-class ] unit-test
 
 : min-class ( class classes -- class/f )
     interesting-classes smallest-class ;
 
-[ f ] [ fixnum { } min-class ] unit-test
+{ f } [ fixnum { } min-class ] unit-test
 
-[ string ] [
+{ string } [
     \ string
     [ integer string array reversed sbuf
     slice vector quotation ]
     sort-classes min-class
 ] unit-test
 
-[ fixnum ] [
+{ fixnum } [
     \ fixnum
     [ fixnum integer object ]
     sort-classes min-class
 ] unit-test
 
-[ integer ] [
+{ integer } [
     \ fixnum
     [ integer float object ]
     sort-classes min-class
 ] unit-test
 
-[ object ] [
+{ object } [
     \ word
     [ integer float object ]
     sort-classes min-class
 ] unit-test
 
-[ reversed ] [
+{ reversed } [
     \ reversed
     [ integer reversed slice ]
     sort-classes min-class
 ] unit-test
 
-[ f ] [ null { number fixnum null } min-class ] unit-test
+{ f } [ null { number fixnum null } min-class ] unit-test
 
 ! Test for hangs?
 : random-class ( -- class ) classes random ;
@@ -340,11 +340,11 @@ MIXIN: empty-mixin
 SINGLETON: xxx
 UNION: yyy xxx ;
 
-[ { yyy xxx } ] [ { xxx yyy } sort-classes ] unit-test
-[ { yyy xxx } ] [ { yyy xxx } sort-classes ] unit-test
+{ { yyy xxx } } [ { xxx yyy } sort-classes ] unit-test
+{ { yyy xxx } } [ { yyy xxx } sort-classes ] unit-test
 
-[ { number ratio integer } ] [ { ratio number integer } sort-classes ] unit-test
-[ { sequence number ratio } ] [ { ratio number sequence } sort-classes ] unit-test
+{ { number ratio integer } } [ { ratio number integer } sort-classes ] unit-test
+{ { sequence number ratio } } [ { ratio number sequence } sort-classes ] unit-test
 
 TUPLE: xa ;
 TUPLE: xb ;
@@ -355,12 +355,12 @@ TUPLE: xf < xb ;
 TUPLE: xg < xb ;
 TUPLE: xh < xb ;
 
-[ t ] [ { xa xb xc xd xe xf xg xh } sort-classes dup sort-classes = ] unit-test
+{ t } [ { xa xb xc xd xe xf xg xh } sort-classes dup sort-classes = ] unit-test
 
-[ H{ { word word } } ] [
+{ H{ { word word } } } [
     generic-class flatten-class
 ] unit-test
 
-[ sa ] [ sa { sa sb sc } min-class ] unit-test
+{ sa } [ sa { sa sb sc } min-class ] unit-test
 
 [ \ + flatten-class ] must-fail
index c6ce302c269ed71556c9ea16bccdb642af7a1d74..1d862a8240bcd56c74c0fef5be0e1540f65018f8 100644 (file)
@@ -1,7 +1,7 @@
 USING: tools.test words sequences kernel memory accessors ;
 IN: classes.builtin.tests
 
-[ f ] [
+{ f } [
     [ word? ] instances
     [
         [ name>> "f?" = ]
index 2f46d516aa0dfd1969816635ea5f3bf8b4f08e27..1fbbb62899cad0134968a53b34450662feafe729 100644 (file)
@@ -6,22 +6,22 @@ classes.algebra definitions source-files compiler.units
 kernel.private sorting vocabs memory eval accessors sets ;
 IN: classes.tests
 
-[ t ] [ 3 object instance? ] unit-test
-[ t ] [ 3 fixnum instance? ] unit-test
-[ f ] [ 3 float instance? ] unit-test
-[ t ] [ 3 number instance? ] unit-test
-[ f ] [ 3 null instance? ] unit-test
+{ t } [ 3 object instance? ] unit-test
+{ t } [ 3 fixnum instance? ] unit-test
+{ f } [ 3 float instance? ] unit-test
+{ t } [ 3 number instance? ] unit-test
+{ f } [ 3 null instance? ] unit-test
 
 ! Regression
 GENERIC: method-forget-test ( obj -- obj )
 TUPLE: method-forget-class ;
 M: method-forget-class method-forget-test ;
 
-[ f ] [ \ method-forget-test "methods" word-prop assoc-empty? ] unit-test
-[ ] [ [ \ method-forget-class forget ] with-compilation-unit ] unit-test
-[ t ] [ \ method-forget-test "methods" word-prop assoc-empty? ] unit-test
+{ f } [ \ method-forget-test "methods" word-prop assoc-empty? ] unit-test
+{ } [ [ \ method-forget-class forget ] with-compilation-unit ] unit-test
+{ t } [ \ method-forget-test "methods" word-prop assoc-empty? ] unit-test
 
-[ { } { } ] [
+{ { } { } } [
     all-words [ class? ] filter
     implementors-map get keys
     [ natural-sort ] bi@
@@ -32,7 +32,7 @@ M: method-forget-class method-forget-test ;
 USE: multiline
 
 ! So the user has some code...
-[ ] [
+{ } [
     """IN: classes.test.a
     GENERIC: g ( a -- b )
     TUPLE: x ;
@@ -42,7 +42,7 @@ USE: multiline
 ] unit-test
 
 ! Note that q inlines M: x g ;
-[ ] [
+{ } [
     """IN: classes.test.b
     USE: classes.test.a
     USE: kernel
@@ -51,7 +51,7 @@ USE: multiline
 ] unit-test
 
 ! Now, the user removes the z class and adds a method,
-[ ] [
+{ } [
     """IN: classes.test.a
     GENERIC: g ( a -- b )
     TUPLE: x ;
@@ -62,7 +62,7 @@ USE: multiline
 ] unit-test
 
 ! And changes the definition of q
-[ ] [
+{ } [
     """IN: classes.test.b
     USE: classes.test.a
     USE: kernel
@@ -71,7 +71,7 @@ USE: multiline
 ] unit-test
 
 ! Similar problem, but with anonymous classes
-[ ] [
+{ } [
     """IN: classes.test.c
     USE: kernel
     GENERIC: g ( a -- b )
@@ -80,7 +80,7 @@ USE: multiline
     "class-intersect-no-method-c" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     """IN: classes.test.d
     USE: classes.test.c
     USE: kernel
@@ -89,7 +89,7 @@ USE: multiline
 ] unit-test
 
 ! Now, the user removes the z class and adds a method,
-[ ] [
+{ } [
     """IN: classes.test.c
     USE: kernel
     GENERIC: g ( a -- b )
@@ -107,11 +107,11 @@ USE: multiline
 
 TUPLE: forgotten-predicate-test ;
 
-[ ] [ [ \ forgotten-predicate-test forget ] with-compilation-unit ] unit-test
-[ f ] [ \ forgotten-predicate-test? predicate? ] unit-test
+{ } [ [ \ forgotten-predicate-test forget ] with-compilation-unit ] unit-test
+{ f } [ \ forgotten-predicate-test? predicate? ] unit-test
 
 GENERIC: generic-predicate? ( a -- b )
 
-[ ] [ "IN: classes.tests TUPLE: generic-predicate ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tests TUPLE: generic-predicate ;" eval( -- ) ] unit-test
 
-[ f ] [ \ generic-predicate? generic? ] unit-test
+{ f } [ \ generic-predicate? generic? ] unit-test
index b0435a211996f9c095297392d2cd0a3b087bd19e..b0749b8723d0bb3e594bfa9d7ef442eb552449c8 100644 (file)
@@ -14,13 +14,13 @@ GENERIC: x ( a -- b )
 M: c x drop c ;
 M: a x drop a ;
 
-[ a ] [ T{ a } x ] unit-test
-[ a ] [ T{ a1 } x ] unit-test
-[ a ] [ T{ a2 } x ] unit-test
+{ a } [ T{ a } x ] unit-test
+{ a } [ T{ a1 } x ] unit-test
+{ a } [ T{ a2 } x ] unit-test
 
-[ t ] [ T{ a3 } c? ] unit-test
-[ t ] [ T{ a3 } \ x effective-method M\ c x eq? nip ] unit-test
-[ c ] [ T{ a3 } x ] unit-test
+{ t } [ T{ a3 } c? ] unit-test
+{ t } [ T{ a3 } \ x effective-method M\ c x eq? nip ] unit-test
+{ c } [ T{ a3 } x ] unit-test
 
 ! More complex case
 TUPLE: t1 ;
@@ -35,8 +35,8 @@ GENERIC: g ( a -- b )
 M: i g drop i ;
 M: t4 g drop t4 ;
 
-[ t4 ] [ T{ t4 } g ] unit-test
-[ i ] [ T{ t5 } g ] unit-test
+{ t4 } [ T{ t4 } g ] unit-test
+{ i } [ T{ t5 } g ] unit-test
 
 PREDICATE: odd-integer < integer odd? ;
 
@@ -45,15 +45,15 @@ PREDICATE: odd-integer < integer odd? ;
 
 TUPLE: omg { a intersection{ fixnum odd-integer } initial: 1 } ;
 
-[ 1 ] [ omg new a>> ] unit-test
-[ 3 ] [ omg new 3 >>a a>> ] unit-test
+{ 1 } [ omg new a>> ] unit-test
+{ 3 } [ omg new 3 >>a a>> ] unit-test
 [ omg new 1.2 >>a a>> ] [ bad-slot-value? ] must-fail-with
 
 PREDICATE: odd/float-between-10-20 < union{ odd-integer float }
     10 20 between? ;
 
-[ t ] [ 17 odd/float-between-10-20? ] unit-test
-[ t ] [ 17.4 odd/float-between-10-20? ] unit-test
-[ f ] [ 18 odd/float-between-10-20? ] unit-test
-[ f ] [ 5 odd/float-between-10-20? ] unit-test
-[ f ] [ 5.75 odd/float-between-10-20? ] unit-test
+{ t } [ 17 odd/float-between-10-20? ] unit-test
+{ t } [ 17.4 odd/float-between-10-20? ] unit-test
+{ f } [ 18 odd/float-between-10-20? ] unit-test
+{ f } [ 5 odd/float-between-10-20? ] unit-test
+{ f } [ 5.75 odd/float-between-10-20? ] unit-test
index f2e2d281c6c9f150b234fbe0b9d3d288f9ce8833..4ff2817905129d71353a0082feb83dfb45085c0b 100644 (file)
@@ -5,53 +5,53 @@ math classes accessors slots classes.algebra
 classes.algebra.private ;
 IN: classes.maybe.tests
 
-[ t ] [ 3 maybe{ integer } instance? ] unit-test
-[ t ] [ f maybe{ integer } instance? ] unit-test
-[ f ] [ 3.0 maybe{ integer } instance? ] unit-test
+{ t } [ 3 maybe{ integer } instance? ] unit-test
+{ t } [ f maybe{ integer } instance? ] unit-test
+{ f } [ 3.0 maybe{ integer } instance? ] unit-test
 
 TUPLE: maybe-integer-container { something maybe{ integer } } ;
 
-[ f ] [ maybe-integer-container new something>> ] unit-test
-[ 3 ] [ maybe-integer-container new 3 >>something something>> ] unit-test
+{ f } [ maybe-integer-container new something>> ] unit-test
+{ 3 } [ maybe-integer-container new 3 >>something something>> ] unit-test
 [ maybe-integer-container new 3.0 >>something ] [ bad-slot-value? ] must-fail-with
 
 TUPLE: self-pointer { next maybe{ self-pointer } } ;
 
-[ T{ self-pointer { next T{ self-pointer } } } ]
+{ T{ self-pointer { next T{ self-pointer } } } }
 [ self-pointer new self-pointer new >>next ] unit-test
 
-[ t ] [ f maybe{ POSTPONE: f } instance? ] unit-test
+{ t } [ f maybe{ POSTPONE: f } instance? ] unit-test
 
 PREDICATE: natural < maybe{ integer }
     0 > ;
 
-[ f ] [ -1 natural? ] unit-test
-[ f ] [ 0 natural? ] unit-test
-[ t ] [ 1 natural? ] unit-test
+{ f } [ -1 natural? ] unit-test
+{ f } [ 0 natural? ] unit-test
+{ t } [ 1 natural? ] unit-test
 
-[ t ] [ f maybe{ maybe{ integer } } instance? ] unit-test
-[ t ] [ 3 maybe{ maybe{ integer } } instance? ] unit-test
-[ f ] [ 3.03 maybe{ maybe{ integer } } instance? ] unit-test
+{ t } [ f maybe{ maybe{ integer } } instance? ] unit-test
+{ t } [ 3 maybe{ maybe{ integer } } instance? ] unit-test
+{ f } [ 3.03 maybe{ maybe{ integer } } instance? ] unit-test
 
 INTERSECTION: only-f maybe{ integer } POSTPONE: f ;
 
-[ t ] [ f only-f instance? ] unit-test
-[ f ] [ t only-f instance? ] unit-test
-[ f ] [ 30 only-f instance? ] unit-test
+{ t } [ f only-f instance? ] unit-test
+{ f } [ t only-f instance? ] unit-test
+{ f } [ 30 only-f instance? ] unit-test
 
 UNION: ?integer-float maybe{ integer } maybe{ float } ;
 
-[ t ] [ 30 ?integer-float instance? ] unit-test
-[ t ] [ 30.0 ?integer-float instance? ] unit-test
-[ t ] [ f ?integer-float instance? ] unit-test
-[ f ] [ t ?integer-float instance? ] unit-test
+{ t } [ 30 ?integer-float instance? ] unit-test
+{ t } [ 30.0 ?integer-float instance? ] unit-test
+{ t } [ f ?integer-float instance? ] unit-test
+{ f } [ t ?integer-float instance? ] unit-test
 
 TUPLE: foo ;
 GENERIC: lol ( obj -- string )
 M: maybe{ foo } lol drop "lol" ;
 
-[ "lol" ] [ foo new lol ] unit-test
-[ "lol" ] [ f lol ] unit-test
+{ "lol" } [ foo new lol ] unit-test
+{ "lol" } [ f lol ] unit-test
 [ 3 lol ] [ no-method? ] must-fail-with
 
 TUPLE: foo2 a ;
@@ -59,12 +59,12 @@ GENERIC: lol2 ( obj -- string )
 M: maybe{ foo } lol2 drop "lol2" ;
 M: f lol2 drop "lol22" ;
 
-[ "lol2" ] [ foo new lol2 ] unit-test
-[ "lol22" ] [ f lol2 ] unit-test
+{ "lol2" } [ foo new lol2 ] unit-test
+{ "lol22" } [ f lol2 ] unit-test
 [ 3 lol2 ] [ no-method? ] must-fail-with
 
-[ t ] [ \ + <maybe> classoid? ] unit-test
-[ f ] [ \ + <maybe> valid-classoid? ] unit-test
+{ t } [ \ + <maybe> classoid? ] unit-test
+{ f } [ \ + <maybe> valid-classoid? ] unit-test
 
 [ "IN: classes-tests maybe{ 1 2 3 }" eval( -- ) ]
 [ error>> not-classoids? ] must-fail-with
index 83c73cee719d6541fa19fef833c4b76b9d892c65..e62dca4c6d285e6ed632a9b1e8b325fff7ca8022 100644 (file)
@@ -22,12 +22,12 @@ M: sequence-mixin collection-size length ;
 
 M: assoc-mixin collection-size assoc-size ;
 
-[ t ] [ array sequence-mixin class<= ] unit-test
-[ t ] [ { 1 2 3 } sequence-mixin? ] unit-test
-[ 3 ] [ { 1 2 3 } collection-size ] unit-test
-[ f ] [ H{ { 1 2 } { 2 3 } } sequence-mixin? ] unit-test
-[ t ] [ H{ { 1 2 } { 2 3 } } assoc-mixin? ] unit-test
-[ 2 ] [ H{ { 1 2 } { 2 3 } } collection-size ] unit-test
+{ t } [ array sequence-mixin class<= ] unit-test
+{ t } [ { 1 2 3 } sequence-mixin? ] unit-test
+{ 3 } [ { 1 2 3 } collection-size ] unit-test
+{ f } [ H{ { 1 2 } { 2 3 } } sequence-mixin? ] unit-test
+{ t } [ H{ { 1 2 } { 2 3 } } assoc-mixin? ] unit-test
+{ 2 } [ H{ { 1 2 } { 2 3 } } collection-size ] unit-test
 
 ! Test mixing in of new classes after the fact
 DEFER: mx1
@@ -37,14 +37,14 @@ MIXIN: mx1
 
 INSTANCE: integer mx1
 
-[ t ] [ integer mx1 class<= ] unit-test
-[ f ] [ mx1 integer class<= ] unit-test
-[ f ] [ mx1 number class<= ] unit-test
+{ t } [ integer mx1 class<= ] unit-test
+{ f } [ mx1 integer class<= ] unit-test
+{ f } [ mx1 number class<= ] unit-test
 
 "IN: classes.mixin.tests USE: arrays INSTANCE: array mx1" eval( -- )
 
-[ t ] [ array mx1 class<= ] unit-test
-[ f ] [ mx1 number class<= ] unit-test
+{ t } [ array mx1 class<= ] unit-test
+{ f } [ mx1 number class<= ] unit-test
 
 [ \ mx1 forget ] with-compilation-unit
 
@@ -93,31 +93,31 @@ TUPLE: flat-mx-1-4 ; INSTANCE: flat-mx-1-4 flat-mx-1
 MIXIN: flat-mx-2     INSTANCE: flat-mx-2 flat-mx-1
 TUPLE: flat-mx-2-1 ; INSTANCE: flat-mx-2-1 flat-mx-2
 
-[ t ] [ T{ flat-mx-2-1 } flat-mx-1? ] unit-test
+{ t } [ T{ flat-mx-2-1 } flat-mx-1? ] unit-test
 
 ! Too eager with reset-class
 
-[ ] [ "IN: classes.mixin.tests MIXIN: blah SINGLETON: boo INSTANCE: boo blah" <string-reader> "mixin-reset-test" parse-stream drop ] unit-test
+{ } [ "IN: classes.mixin.tests MIXIN: blah SINGLETON: boo INSTANCE: boo blah" <string-reader> "mixin-reset-test" parse-stream drop ] unit-test
 
-[ t ] [ "blah" "classes.mixin.tests" lookup-word mixin-class? ] unit-test
+{ t } [ "blah" "classes.mixin.tests" lookup-word mixin-class? ] unit-test
 
-[ ] [ "IN: classes.mixin.tests MIXIN: blah" <string-reader> "mixin-reset-test" parse-stream drop ] unit-test
+{ } [ "IN: classes.mixin.tests MIXIN: blah" <string-reader> "mixin-reset-test" parse-stream drop ] unit-test
 
-[ t ] [ "blah" "classes.mixin.tests" lookup-word mixin-class? ] unit-test
+{ t } [ "blah" "classes.mixin.tests" lookup-word mixin-class? ] unit-test
 
 MIXIN: empty-mixin
 
-[ f ] [ "hi" empty-mixin? ] unit-test
+{ f } [ "hi" empty-mixin? ] unit-test
 
 MIXIN: move-instance-declaration-mixin
 
-[ ] [ "IN: classes.mixin.tests.a USE: strings USE: classes.mixin.tests INSTANCE: string move-instance-declaration-mixin" <string-reader> "move-mixin-test-1" parse-stream drop ] unit-test
+{ } [ "IN: classes.mixin.tests.a USE: strings USE: classes.mixin.tests INSTANCE: string move-instance-declaration-mixin" <string-reader> "move-mixin-test-1" parse-stream drop ] unit-test
 
-[ ] [ "IN: classes.mixin.tests.b USE: strings USE: classes.mixin.tests INSTANCE: string move-instance-declaration-mixin" <string-reader> "move-mixin-test-2" parse-stream drop ] unit-test
+{ } [ "IN: classes.mixin.tests.b USE: strings USE: classes.mixin.tests INSTANCE: string move-instance-declaration-mixin" <string-reader> "move-mixin-test-2" parse-stream drop ] unit-test
 
-[ ] [ "IN: classes.mixin.tests.a" <string-reader> "move-mixin-test-1" parse-stream drop ] unit-test
+{ } [ "IN: classes.mixin.tests.a" <string-reader> "move-mixin-test-1" parse-stream drop ] unit-test
 
-[ { string } ] [ move-instance-declaration-mixin members ] unit-test
+{ { string } } [ move-instance-declaration-mixin members ] unit-test
 
 MIXIN: silly-mixin
 SYMBOL: not-a-class
@@ -138,13 +138,13 @@ GENERIC: metaclass-change-generic ( a -- b )
 
 M: metaclass-change-mixin metaclass-change-generic ;
 
-[ T{ metaclass-change } ] [ T{ metaclass-change } metaclass-change-generic ] unit-test
+{ T{ metaclass-change } } [ T{ metaclass-change } metaclass-change-generic ] unit-test
 
-[ ] [ "IN: classes.mixin.tests USE: math UNION: metaclass-change integer ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.mixin.tests USE: math UNION: metaclass-change integer ;" eval( -- ) ] unit-test
 
-[ 0 ] [ 0 metaclass-change-generic ] unit-test
+{ 0 } [ 0 metaclass-change-generic ] unit-test
 
 ! Forgetting a mixin member class should remove it from the mixin
-[ ] [ [ metaclass-change forget-class ] with-compilation-unit ] unit-test
+{ } [ [ metaclass-change forget-class ] with-compilation-unit ] unit-test
 
-[ t ] [ metaclass-change-mixin members empty? ] unit-test
+{ t } [ metaclass-change-mixin members empty? ] unit-test
index 7a63b88a655f4bd10b993d439a034fb94a9df162..46ab84d0d954df240fc2c05c933598e9718ae60e 100644 (file)
@@ -6,21 +6,21 @@ IN: classes.predicate.tests
 PREDICATE: negative < integer 0 < ;
 PREDICATE: positive < integer 0 > ;
 
-[ t ] [ negative integer class< ] unit-test
-[ t ] [ positive integer class< ] unit-test
-[ f ] [ integer negative class< ] unit-test
-[ f ] [ integer positive class< ] unit-test
-[ f ] [ negative negative class< ] unit-test
-[ f ] [ positive negative class< ] unit-test
+{ t } [ negative integer class< ] unit-test
+{ t } [ positive integer class< ] unit-test
+{ f } [ integer negative class< ] unit-test
+{ f } [ integer positive class< ] unit-test
+{ f } [ negative negative class< ] unit-test
+{ f } [ positive negative class< ] unit-test
 
 GENERIC: abs ( n -- n )
 M: integer abs ;
 M: negative abs -1 * ;
 M: positive abs ;
 
-[ 10 ] [ -10 abs ] unit-test
-[ 10 ] [ 10 abs ] unit-test
-[ 0 ] [ 0 abs ] unit-test
+{ 10 } [ -10 abs ] unit-test
+{ 10 } [ 10 abs ] unit-test
+{ 0 } [ 0 abs ] unit-test
 
 ! Bug report from Bruno Deferrari
 TUPLE: tuple-a slot ;
@@ -32,8 +32,8 @@ GENERIC: ptest ( tuple -- x )
 M: tuple-a ptest drop tuple-a ;
 M: tuple-c ptest drop tuple-c ;
 
-[ tuple-a ] [ tuple-b new ptest ] unit-test
-[ tuple-c ] [ tuple-b new t >>slot ptest ] unit-test
+{ tuple-a } [ tuple-b new ptest ] unit-test
+{ tuple-c } [ tuple-b new t >>slot ptest ] unit-test
 
 PREDICATE: tuple-d < tuple-a slot>> ;
 
@@ -41,8 +41,8 @@ GENERIC: ptest' ( tuple -- x )
 M: tuple-a ptest' drop tuple-a ;
 M: tuple-d ptest' drop tuple-d ;
 
-[ tuple-a ] [ tuple-b new ptest' ] unit-test
-[ tuple-d ] [ tuple-b new t >>slot ptest' ] unit-test
+{ tuple-a } [ tuple-b new ptest' ] unit-test
+{ tuple-d } [ tuple-b new t >>slot ptest' ] unit-test
 
 PREDICATE: bad-inheritance-predicate < string ;
 [
@@ -59,7 +59,7 @@ PREDICATE: bad-inheritance-predicate3 < bad-inheritance-predicate2 ;
 PREDICATE: tup < string ;
 UNION: u tup ;
 
-[ ] [ "IN: classes.predicate.tests PREDICATE: u < tup ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.predicate.tests PREDICATE: u < tup ;" eval( -- ) ] unit-test
 
 ! Changing the metaclass of the predicate superclass should work
 GENERIC: change-meta-test ( a -- b )
@@ -70,20 +70,20 @@ PREDICATE: change-meta-test-predicate < change-meta-test-class length>> 2 > ;
 
 M: change-meta-test-predicate change-meta-test length>> ;
 
-[ f ] [ \ change-meta-test "methods" word-prop assoc-empty? ] unit-test
+{ f } [ \ change-meta-test "methods" word-prop assoc-empty? ] unit-test
 
 [ T{ change-meta-test-class f 0 } change-meta-test ] [ no-method? ] must-fail-with
-[ 7 ] [ T{ change-meta-test-class f 7 } change-meta-test ] unit-test
+{ 7 } [ T{ change-meta-test-class f 7 } change-meta-test ] unit-test
 
-[ ] [ "IN: classes.predicate.tests USE: arrays UNION: change-meta-test-class array ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.predicate.tests USE: arrays UNION: change-meta-test-class array ;" eval( -- ) ] unit-test
 
 ! Should not have changed
-[ change-meta-test-class ] [ change-meta-test-predicate superclass ] unit-test
+{ change-meta-test-class } [ change-meta-test-predicate superclass ] unit-test
 [ { } change-meta-test ] [ no-method? ] must-fail-with
-[ 4 ] [ { 1 2 3 4 } change-meta-test ] unit-test
+{ 4 } [ { 1 2 3 4 } change-meta-test ] unit-test
 
-[ ] [ [ \ change-meta-test-class forget-class ] with-compilation-unit ] unit-test
+{ } [ [ \ change-meta-test-class forget-class ] with-compilation-unit ] unit-test
 
-[ f ] [ change-meta-test-predicate class? ] unit-test
+{ f } [ change-meta-test-predicate class? ] unit-test
 
-[ t ] [ \ change-meta-test "methods" word-prop assoc-empty? ] unit-test
+{ t } [ \ change-meta-test "methods" word-prop assoc-empty? ] unit-test
index 9d0bb7d16f35ea87e82e4fdf68c143d10699fe5b..d177e1854d472583c879631b2c9886d788e6d0d1 100644 (file)
@@ -1,19 +1,19 @@
 USING: kernel classes.singleton tools.test prettyprint io.streams.string see ;
 IN: classes.singleton.tests
 
-[ ] [ SINGLETON: bzzt ] unit-test
-[ t ] [ bzzt bzzt? ] unit-test
-[ t ] [ bzzt bzzt eq? ] unit-test
+{ } [ SINGLETON: bzzt ] unit-test
+{ t } [ bzzt bzzt? ] unit-test
+{ t } [ bzzt bzzt eq? ] unit-test
 GENERIC: zammo ( obj -- str )
-[ ] [ M: bzzt zammo drop "yes!" ; ] unit-test
-[ "yes!" ] [ bzzt zammo ] unit-test
-[ ] [ SINGLETON: omg ] unit-test
-[ t ] [ omg singleton-class? ] unit-test
-[ "IN: classes.singleton.tests\nSINGLETON: omg\n" ] [ [ omg see ] with-string-writer ] unit-test
+{ } [ M: bzzt zammo drop "yes!" ; ] unit-test
+{ "yes!" } [ bzzt zammo ] unit-test
+{ } [ SINGLETON: omg ] unit-test
+{ t } [ omg singleton-class? ] unit-test
+{ "IN: classes.singleton.tests\nSINGLETON: omg\n" } [ [ omg see ] with-string-writer ] unit-test
 
 SINGLETON: word-and-singleton
 
 : word-and-singleton ( -- x ) 3 ;
 
-[ t ] [ \ word-and-singleton word-and-singleton? ] unit-test
-[ 3 ] [ word-and-singleton ] unit-test
+{ t } [ \ word-and-singleton word-and-singleton? ] unit-test
+{ 3 } [ word-and-singleton ] unit-test
index 931f6d9d32244cf8ee91e0a1c62204e946c99fe5..8e43909c66bf78e690899793f7f7a3c3aaf92898 100644 (file)
@@ -5,26 +5,26 @@ IN: classes.tuple.parser.tests
 
 TUPLE: test-1 ;
 
-[ t ] [ test-1 "slots" word-prop empty? ] unit-test
+{ t } [ test-1 "slots" word-prop empty? ] unit-test
 
 TUPLE: test-2 < test-1 ;
 
-[ t ] [ test-2 "slots" word-prop empty? ] unit-test
-[ test-1 ] [ test-2 superclass ] unit-test
+{ t } [ test-2 "slots" word-prop empty? ] unit-test
+{ test-1 } [ test-2 superclass ] unit-test
 
 TUPLE: test-3 a ;
 
-[ { "a" } ] [ test-3 "slots" word-prop [ name>> ] map ] unit-test
+{ { "a" } } [ test-3 "slots" word-prop [ name>> ] map ] unit-test
 
-[ object ] [ "a" test-3 "slots" word-prop slot-named class>> ] unit-test
+{ object } [ "a" test-3 "slots" word-prop slot-named class>> ] unit-test
 
 TUPLE: test-4 < test-3 b ;
 
-[ { "b" } ] [ test-4 "slots" word-prop [ name>> ] map ] unit-test
+{ { "b" } } [ test-4 "slots" word-prop [ name>> ] map ] unit-test
 
 TUPLE: test-5 { a integer } ;
 
-[ { { "a" integer } } ]
+{ { { "a" integer } } }
 [
     test-5 "slots" word-prop
     [ [ name>> ] [ class>> ] bi 2array ] map
@@ -32,9 +32,9 @@ TUPLE: test-5 { a integer } ;
 
 TUPLE: test-6 < test-5 { b integer } ;
 
-[ integer ] [ "b" test-6 "slots" word-prop slot-named class>> ] unit-test
+{ integer } [ "b" test-6 "slots" word-prop slot-named class>> ] unit-test
 
-[ { { "b" integer } } ]
+{ { { "b" integer } } }
 [
     test-6 "slots" word-prop
     [ [ name>> ] [ class>> ] bi 2array ] map
@@ -42,11 +42,11 @@ TUPLE: test-6 < test-5 { b integer } ;
 
 TUPLE: test-7 { b integer initial: 3 } ;
 
-[ 3 ] [ "b" test-7 "slots" word-prop slot-named initial>> ] unit-test
+{ 3 } [ "b" test-7 "slots" word-prop slot-named initial>> ] unit-test
 
 TUPLE: test-8 { b integer read-only } ;
 
-[ t ] [ "b" test-8 "slots" word-prop slot-named read-only>> ] unit-test
+{ t } [ "b" test-8 "slots" word-prop slot-named read-only>> ] unit-test
 
 DEFER: foo
 
@@ -82,9 +82,9 @@ must-fail-with
 [ error>> duplicate-slot-names? ]
 must-fail-with
 
-[ f ] [ \ foo tuple-class? ] unit-test
+{ f } [ \ foo tuple-class? ] unit-test
 
-[ ] [
+{ } [
     [
         { test-1 test-2 test-3 test-4 test-5 test-6 test-7 test-8 foo }
         [ dup class? [ forget-class ] [ drop ] if ] each
@@ -93,14 +93,14 @@ must-fail-with
 
 TUPLE: syntax-test bar baz ;
 
-[ T{ syntax-test } ] [ T{ syntax-test } ] unit-test
-[ T{ syntax-test f { 2 3 } { 4 { 5 } } } ]
+{ T{ syntax-test } } [ T{ syntax-test } ] unit-test
+{ T{ syntax-test f { 2 3 } { 4 { 5 } } } }
 [ T{ syntax-test { bar { 2 3 } } { baz { 4 { 5 } } } } ] unit-test
 
 ! Corner case
 TUPLE: parsing-corner-case x ;
 
-[ T{ parsing-corner-case f 3 } ] [
+{ T{ parsing-corner-case f 3 } } [
     {
         "USE: classes.tuple.parser.tests"
         "T{ parsing-corner-case"
@@ -110,7 +110,7 @@ TUPLE: parsing-corner-case x ;
     } "\n" join eval( -- tuple )
 ] unit-test
 
-[ T{ parsing-corner-case f 3 } ] [
+{ T{ parsing-corner-case f 3 } } [
     {
         "USE: classes.tuple.parser.tests"
         "T{ parsing-corner-case"
@@ -119,7 +119,7 @@ TUPLE: parsing-corner-case x ;
     } "\n" join eval( -- tuple )
 ] unit-test
 
-[ T{ parsing-corner-case f 3 } ] [
+{ T{ parsing-corner-case f 3 } } [
     {
         "USE: classes.tuple.parser.tests"
         "T{ parsing-corner-case {"
@@ -158,6 +158,6 @@ TUPLE: bad-inheritance-tuple3 < bad-inheritance-tuple2 ;
 TUPLE: tup ;
 UNION: u tup ;
 
-[ ] [ "IN: classes.tuple.parser.tests TUPLE: u < tup ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.parser.tests TUPLE: u < tup ;" eval( -- ) ] unit-test
 
-[ t ] [ u new tup? ] unit-test
+{ t } [ u new tup? ] unit-test
index fbf4613a9cfee042bc9f5e9d6c7662d87a65a379..a6d1d6f1467dd8af4be01cb8f0f24561d6ea7cee 100644 (file)
@@ -16,9 +16,9 @@ TUPLE: rect x y w h ;
 : move ( x rect -- rect )
     [ + ] change-x ;
 
-[ f ] [ 10 20 30 40 <rect> dup clone 5 swap move = ] unit-test
+{ f } [ 10 20 30 40 <rect> dup clone 5 swap move = ] unit-test
 
-[ t ] [ 10 20 30 40 <rect> dup clone 0 swap move = ] unit-test
+{ t } [ 10 20 30 40 <rect> dup clone 0 swap move = ] unit-test
 
 ! Make sure we handle tuple class redefinition
 TUPLE: redefinition-test ;
@@ -27,42 +27,42 @@ C: <redefinition-test> redefinition-test
 
 <redefinition-test> "redefinition-test" set
 
-[ t ] [ "redefinition-test" get redefinition-test? ] unit-test
+{ t } [ "redefinition-test" get redefinition-test? ] unit-test
 
 "IN: classes.tuple.tests TUPLE: redefinition-test ;" eval( -- )
 
-[ t ] [ "redefinition-test" get redefinition-test? ] unit-test
+{ t } [ "redefinition-test" get redefinition-test? ] unit-test
 
 ! Make sure we handle changing shapes!
 TUPLE: point x y ;
 
-[ ] [ 100 200 point boa "p" set ] unit-test
+{ } [ 100 200 point boa "p" set ] unit-test
 
 ! Use eval to sequence parsing explicitly
-[ ] [ "IN: classes.tuple.tests TUPLE: point x y z ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: point x y z ;" eval( -- ) ] unit-test
 
-[ 100 ] [ "p" get x>> ] unit-test
-[ 200 ] [ "p" get y>> ] unit-test
-[ f ] [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
+{ 100 } [ "p" get x>> ] unit-test
+{ 200 } [ "p" get y>> ] unit-test
+{ f } [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
 
-[ ] [ "p" get 300 ">>z" "accessors" lookup-word execute drop ] unit-test
+{ } [ "p" get 300 ">>z" "accessors" lookup-word execute drop ] unit-test
 
-[ 3 ] [ "p" get tuple-size ] unit-test
+{ 3 } [ "p" get tuple-size ] unit-test
 
-[ 300 ] [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
+{ 300 } [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: point z y ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: point z y ;" eval( -- ) ] unit-test
 
-[ 2 ] [ "p" get tuple-size ] unit-test
+{ 2 } [ "p" get tuple-size ] unit-test
 
 [ "p" get x>> ] must-fail
-[ 200 ] [ "p" get y>> ] unit-test
-[ 300 ] [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
+{ 200 } [ "p" get y>> ] unit-test
+{ 300 } [ "p" get "z>>" "accessors" lookup-word execute ] unit-test
 
 TUPLE: slotty a b c ;
 
-[ T{ slotty } ] [ H{ } slotty from-slots ] unit-test
-[ T{ slotty f 1 2 f } ] [ H{ { "a" 1 } { "b" 2 } } slotty from-slots ] unit-test
+{ T{ slotty } } [ H{ } slotty from-slots ] unit-test
+{ T{ slotty f 1 2 f } } [ H{ { "a" 1 } { "b" 2 } } slotty from-slots ] unit-test
 [ H{ { "d" 0 } } slotty new set-slots ] must-fail
 
 TUPLE: predicate-test ;
@@ -71,7 +71,7 @@ C: <predicate-test> predicate-test
 
 : predicate-test ( a -- ? ) drop f ;
 
-[ t ] [ <predicate-test> predicate-test? ] unit-test
+{ t } [ <predicate-test> predicate-test? ] unit-test
 
 PREDICATE: silly-pred < tuple
     class-of \ rect = ;
@@ -82,24 +82,24 @@ M: silly-pred area dup w>> swap h>> * ;
 TUPLE: circle radius ;
 M: circle area radius>> sq pi * ;
 
-[ 200 ] [ T{ rect f 0 0 10 20 } area ] unit-test
+{ 200 } [ T{ rect f 0 0 10 20 } area ] unit-test
 
 ! Hashcode breakage
 TUPLE: empty ;
 
 C: <empty> empty
 
-[ t ] [ <empty> hashcode fixnum? ] unit-test
+{ t } [ <empty> hashcode fixnum? ] unit-test
 
 ! Compiler regression
 [ t length ] [ object>> t eq? ] must-fail-with
 
-[ "<constructor-test>" ]
+{ "<constructor-test>" }
 [ "IN: classes.tuple.test TUPLE: constructor-test ; C: <constructor-test> constructor-test" eval( -- ) last-word name>> ] unit-test
 
 TUPLE: size-test a b c d ;
 
-[ t ] [
+{ t } [
     T{ size-test } tuple-size
     size-test tuple-layout second =
 ] unit-test
@@ -108,9 +108,9 @@ GENERIC: <yo-momma> ( a -- b )
 
 TUPLE: yo-momma ;
 
-[ ] [ "IN: classes.tuple.tests C: <yo-momma> yo-momma" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests C: <yo-momma> yo-momma" eval( -- ) ] unit-test
 
-[ f ] [ \ <yo-momma> generic? ] unit-test
+{ f } [ \ <yo-momma> generic? ] unit-test
 
 ! Test forget
 [
@@ -122,7 +122,7 @@ TUPLE: yo-momma ;
 
 TUPLE: loc-recording ;
 
-[ f ] [ \ loc-recording where not ] unit-test
+{ f } [ \ loc-recording where not ] unit-test
 
 ! 'forget' wasn't robust enough
 
@@ -166,8 +166,8 @@ M: t4 m2 nip ;
 
 C: <t4> t4
 
-[ 1 ] [ 1 <t4> m1 ] unit-test
-[ 1 ] [ <t4> 1 m2 ] unit-test
+{ 1 } [ 1 <t4> m1 ] unit-test
+{ 1 } [ <t4> 1 m2 ] unit-test
 
 ! another combination issue
 GENERIC: silly ( obj -- obj obj )
@@ -190,7 +190,7 @@ M: string silly "t" ;
 
 M: vector silly "z" ;
 
-[ "zz" ] [ 123 <reversed> silly nip ] unit-test
+{ "zz" } [ 123 <reversed> silly nip ] unit-test
 
 ! Typo
 SYMBOL: not-a-tuple-class
@@ -207,22 +207,22 @@ C: <erg's-reshape-problem> erg's-reshape-problem
 TUPLE: computer cpu ram ;
 C: <computer> computer
 
-[ "TUPLE: computer cpu ram ;" ] [
+{ "TUPLE: computer cpu ram ;" } [
     [ \ computer see ] with-string-writer string-lines second
 ] unit-test
 
 TUPLE: laptop < computer battery ;
 C: <laptop> laptop
 
-[ t ] [ laptop tuple-class? ] unit-test
-[ t ] [ laptop tuple class<= ] unit-test
-[ t ] [ laptop computer class<= ] unit-test
-[ t ] [ laptop computer classes-intersect? ] unit-test
+{ t } [ laptop tuple-class? ] unit-test
+{ t } [ laptop tuple class<= ] unit-test
+{ t } [ laptop computer class<= ] unit-test
+{ t } [ laptop computer classes-intersect? ] unit-test
 
-[ ] [ "Pentium" 128 3 hours <laptop> "laptop" set ] unit-test
-[ t ] [ "laptop" get laptop? ] unit-test
-[ t ] [ "laptop" get computer? ] unit-test
-[ t ] [ "laptop" get tuple? ] unit-test
+{ } [ "Pentium" 128 3 hours <laptop> "laptop" set ] unit-test
+{ t } [ "laptop" get laptop? ] unit-test
+{ t } [ "laptop" get computer? ] unit-test
+{ t } [ "laptop" get tuple? ] unit-test
 
 : test-laptop-slot-values ( -- )
     [ laptop ] [ "laptop" get class-of ] unit-test
@@ -232,24 +232,24 @@ C: <laptop> laptop
 
 test-laptop-slot-values
 
-[ "TUPLE: laptop < computer battery ;" ] [
+{ "TUPLE: laptop < computer battery ;" } [
     [ \ laptop see ] with-string-writer string-lines second
 ] unit-test
 
-[ { tuple computer laptop } ] [ laptop superclasses ] unit-test
+{ { tuple computer laptop } } [ laptop superclasses ] unit-test
 
 TUPLE: server < computer rackmount ;
 C: <server> server
 
-[ t ] [ server tuple-class? ] unit-test
-[ t ] [ server tuple class<= ] unit-test
-[ t ] [ server computer class<= ] unit-test
-[ t ] [ server computer classes-intersect? ] unit-test
+{ t } [ server tuple-class? ] unit-test
+{ t } [ server tuple class<= ] unit-test
+{ t } [ server computer class<= ] unit-test
+{ t } [ server computer classes-intersect? ] unit-test
 
-[ ] [ "PowerPC" 64 "1U" <server> "server" set ] unit-test
-[ t ] [ "server" get server? ] unit-test
-[ t ] [ "server" get computer? ] unit-test
-[ t ] [ "server" get tuple? ] unit-test
+{ } [ "PowerPC" 64 "1U" <server> "server" set ] unit-test
+{ t } [ "server" get server? ] unit-test
+{ t } [ "server" get computer? ] unit-test
+{ t } [ "server" get tuple? ] unit-test
 
 : test-server-slot-values ( -- )
     [ server ] [ "server" get class-of ] unit-test
@@ -259,17 +259,17 @@ C: <server> server
 
 test-server-slot-values
 
-[ f ] [ "server" get laptop? ] unit-test
-[ f ] [ "laptop" get server? ] unit-test
+{ f } [ "server" get laptop? ] unit-test
+{ f } [ "laptop" get server? ] unit-test
 
-[ f ] [ server laptop class<= ] unit-test
-[ f ] [ laptop server class<= ] unit-test
-[ f ] [ laptop server classes-intersect? ] unit-test
+{ f } [ server laptop class<= ] unit-test
+{ f } [ laptop server class<= ] unit-test
+{ f } [ laptop server classes-intersect? ] unit-test
 
-[ f ] [ 1 2 <computer> laptop? ] unit-test
-[ f ] [ \ + server? ] unit-test
+{ f } [ 1 2 <computer> laptop? ] unit-test
+{ f } [ \ + server? ] unit-test
 
-[ "TUPLE: server < computer rackmount ;" ] [
+{ "TUPLE: server < computer rackmount ;" } [
     [ \ server see ] with-string-writer string-lines second
 ] unit-test
 
@@ -282,73 +282,73 @@ TUPLE: electronic-device ;
 
 : computer?' ( a -- b ) computer? ;
 
-[ t ] [ laptop new computer?' ] unit-test
+{ t } [ laptop new computer?' ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: computer < electronic-device cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: computer < electronic-device cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
-[ t ] [ laptop new computer?' ] unit-test
+{ t } [ laptop new computer?' ] unit-test
 
-[ f ] [ electronic-device laptop class<= ] unit-test
-[ t ] [ server electronic-device class<= ] unit-test
-[ t ] [ laptop server class-or electronic-device class<= ] unit-test
+{ f } [ electronic-device laptop class<= ] unit-test
+{ t } [ server electronic-device class<= ] unit-test
+{ t } [ laptop server class-or electronic-device class<= ] unit-test
 
-[ t ] [ "laptop" get electronic-device? ] unit-test
-[ t ] [ "laptop" get computer? ] unit-test
-[ t ] [ "laptop" get laptop? ] unit-test
-[ f ] [ "laptop" get server? ] unit-test
+{ t } [ "laptop" get electronic-device? ] unit-test
+{ t } [ "laptop" get computer? ] unit-test
+{ t } [ "laptop" get laptop? ] unit-test
+{ f } [ "laptop" get server? ] unit-test
 
-[ t ] [ "server" get electronic-device? ] unit-test
-[ t ] [ "server" get computer? ] unit-test
-[ f ] [ "server" get laptop? ] unit-test
-[ t ] [ "server" get server? ] unit-test
+{ t } [ "server" get electronic-device? ] unit-test
+{ t } [ "server" get computer? ] unit-test
+{ f } [ "server" get laptop? ] unit-test
+{ t } [ "server" get server? ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: computer cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: computer cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
-[ f ] [ "laptop" get electronic-device? ] unit-test
-[ t ] [ "laptop" get computer? ] unit-test
+{ f } [ "laptop" get electronic-device? ] unit-test
+{ t } [ "laptop" get computer? ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: computer < electronic-device cpu ram disk ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: computer < electronic-device cpu ram disk ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
 test-laptop-slot-values
 test-server-slot-values
 
-[ ] [ "IN: classes.tuple.tests TUPLE: electronic-device voltage ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: electronic-device voltage ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
 test-laptop-slot-values
 test-server-slot-values
 
 TUPLE: make-me-some-accessors voltage grounded? ;
 
-[ f ] [ "laptop" get voltage>> ] unit-test
-[ f ] [ "server" get voltage>> ] unit-test
+{ f } [ "laptop" get voltage>> ] unit-test
+{ f } [ "server" get voltage>> ] unit-test
 
-[ ] [ "laptop" get 220 >>voltage drop ] unit-test
-[ ] [ "server" get 110 >>voltage drop ] unit-test
+{ } [ "laptop" get 220 >>voltage drop ] unit-test
+{ } [ "server" get 110 >>voltage drop ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: electronic-device voltage grounded? ; C: <computer> computer" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: electronic-device voltage grounded? ; C: <computer> computer" eval( -- ) ] unit-test
 
 test-laptop-slot-values
 test-server-slot-values
 
-[ 220 ] [ "laptop" get voltage>> ] unit-test
-[ 110 ] [ "server" get voltage>> ] unit-test
+{ 220 } [ "laptop" get voltage>> ] unit-test
+{ 110 } [ "server" get voltage>> ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: electronic-device grounded? voltage ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: electronic-device grounded? voltage ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
 test-laptop-slot-values
 test-server-slot-values
 
-[ 220 ] [ "laptop" get voltage>> ] unit-test
-[ 110 ] [ "server" get voltage>> ] unit-test
+{ 220 } [ "laptop" get voltage>> ] unit-test
+{ 110 } [ "server" get voltage>> ] unit-test
 
 ! Reshaping superclass and subclass simultaneously
-[ ] [ "IN: classes.tuple.tests TUPLE: electronic-device voltage ; TUPLE: computer < electronic-device cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: electronic-device voltage ; TUPLE: computer < electronic-device cpu ram ; C: <computer> computer C: <laptop> laptop C: <server> server" eval( -- ) ] unit-test
 
 test-laptop-slot-values
 test-server-slot-values
 
-[ 220 ] [ "laptop" get voltage>> ] unit-test
-[ 110 ] [ "server" get voltage>> ] unit-test
+{ 220 } [ "laptop" get voltage>> ] unit-test
+{ 110 } [ "server" get voltage>> ] unit-test
 
 ! Reshape crash
 TUPLE: test1 a ; TUPLE: test2 < test1 b ;
@@ -361,11 +361,11 @@ TUPLE: test1 a ; TUPLE: test2 < test1 b ;
 
 test-a/b
 
-[ ] [ "IN: classes.tuple.tests TUPLE: test1 a x ; TUPLE: test2 < test1 b y ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: test1 a x ; TUPLE: test2 < test1 b y ;" eval( -- ) ] unit-test
 
 test-a/b
 
-[ ] [ "IN: classes.tuple.tests TUPLE: test1 a ; TUPLE: test2 < test1 b ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: test1 a ; TUPLE: test2 < test1 b ;" eval( -- ) ] unit-test
 
 test-a/b
 
@@ -390,19 +390,19 @@ T{ move-up-2 f "a" "b" "c" } "move-up" set
 
 test-move-up
 
-[ ] [ "IN: classes.tuple.tests TUPLE: move-up-1 a b c ; TUPLE: move-up-2 < move-up-1 ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: move-up-1 a b c ; TUPLE: move-up-2 < move-up-1 ;" eval( -- ) ] unit-test
 
 test-move-up
 
-[ ] [ "IN: classes.tuple.tests TUPLE: move-up-1 a c ; TUPLE: move-up-2 < move-up-1 b ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: move-up-1 a c ; TUPLE: move-up-2 < move-up-1 b ;" eval( -- ) ] unit-test
 
 test-move-up
 
-[ ] [ "IN: classes.tuple.tests TUPLE: move-up-1 c ; TUPLE: move-up-2 < move-up-1 b a ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: move-up-1 c ; TUPLE: move-up-2 < move-up-1 b a ;" eval( -- ) ] unit-test
 
 test-move-up
 
-[ ] [ "IN: classes.tuple.tests TUPLE: move-up-1 ; TUPLE: move-up-2 < move-up-1 a b c ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: move-up-1 ; TUPLE: move-up-2 < move-up-1 a b c ;" eval( -- ) ] unit-test
 
 ! Constructors must be recompiled when changing superclass
 TUPLE: constructor-update-1 xxx ;
@@ -413,32 +413,32 @@ TUPLE: constructor-update-2 < constructor-update-1 yyy zzz ;
 
 { 3 1 } [ <constructor-update-2> ] must-infer-as
 
-[ ] [ "IN: classes.tuple.tests TUPLE: constructor-update-1 xxx ttt www ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: constructor-update-1 xxx ttt www ;" eval( -- ) ] unit-test
 
 { 3 1 } [ <constructor-update-2> ] must-infer-as
 
 [ 1 2 3 4 5 <constructor-update-2> ] [ not-compiled? ] must-fail-with
 
-[ ] [ [ \ <constructor-update-2> forget ] with-compilation-unit ] unit-test
+{ } [ [ \ <constructor-update-2> forget ] with-compilation-unit ] unit-test
 
 ! Redefinition problem
 TUPLE: redefinition-problem ;
 
 UNION: redefinition-problem' redefinition-problem integer ;
 
-[ t ] [ 3 redefinition-problem'? ] unit-test
+{ t } [ 3 redefinition-problem'? ] unit-test
 
 TUPLE: redefinition-problem-2 ;
 
 "IN: classes.tuple.tests TUPLE: redefinition-problem < redefinition-problem-2 ;" eval( -- )
 
-[ t ] [ 3 redefinition-problem'? ] unit-test
+{ t } [ 3 redefinition-problem'? ] unit-test
 
 ! Hardcore unit tests
 
 \ thread "slots" word-prop "slots" set
 
-[ ] [
+{ } [
     [
         \ thread tuple { "xxx" } "slots" get append
         define-tuple-class
@@ -454,7 +454,7 @@ TUPLE: redefinition-problem-2 ;
 
 \ vocab "slots" word-prop "slots" set
 
-[ ] [
+{ } [
     [
         \ vocab identity-tuple { "xxx" } "slots" get append
         define-tuple-class
@@ -473,47 +473,47 @@ TUPLE: redefinition-problem-2 ;
 must-fail-with
 
 ! Accessors not being forgotten...
-[ [ ] ] [
+{ [ ] } [
     "IN: classes.tuple.tests TUPLE: forget-accessors-test x y z ;"
     <string-reader>
     "forget-accessors-test" parse-stream
 ] unit-test
 
-[ t ] [ "forget-accessors-test" "classes.tuple.tests" lookup-word class? ] unit-test
+{ t } [ "forget-accessors-test" "classes.tuple.tests" lookup-word class? ] unit-test
 
 : accessor-exists? ( name -- ? )
     [ "forget-accessors-test" "classes.tuple.tests" lookup-word ] dip
     ">>" append "accessors" lookup-word ?lookup-method >boolean ;
 
-[ t ] [ "x" accessor-exists? ] unit-test
-[ t ] [ "y" accessor-exists? ] unit-test
-[ t ] [ "z" accessor-exists? ] unit-test
+{ t } [ "x" accessor-exists? ] unit-test
+{ t } [ "y" accessor-exists? ] unit-test
+{ t } [ "z" accessor-exists? ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: classes.tuple.tests GENERIC: forget-accessors-test ( a -- b )"
     <string-reader>
     "forget-accessors-test" parse-stream
 ] unit-test
 
-[ f ] [ "forget-accessors-test" "classes.tuple.tests" lookup-word class? ] unit-test
+{ f } [ "forget-accessors-test" "classes.tuple.tests" lookup-word class? ] unit-test
 
-[ f ] [ "x" accessor-exists? ] unit-test
-[ f ] [ "y" accessor-exists? ] unit-test
-[ f ] [ "z" accessor-exists? ] unit-test
+{ f } [ "x" accessor-exists? ] unit-test
+{ f } [ "y" accessor-exists? ] unit-test
+{ f } [ "z" accessor-exists? ] unit-test
 
 TUPLE: another-forget-accessors-test ;
 
 
-[ [ ] ] [
+{ [ ] } [
     "IN: classes.tuple.tests GENERIC: another-forget-accessors-test ( a -- b )"
     <string-reader>
     "another-forget-accessors-test" parse-stream
 ] unit-test
 
-[ t ] [ \ another-forget-accessors-test class? ] unit-test
+{ t } [ \ another-forget-accessors-test class? ] unit-test
 
 ! Shadowing test
-[ f ] [
+{ f } [
     f parser-quiet? [
         [
             "IN: classes.tuple.tests TUPLE: shadow-1 a b ; TUPLE: shadow-2 < shadow-1 a b ;" eval( -- )
@@ -530,7 +530,7 @@ TUPLE: another-forget-accessors-test ;
 ! Check type declarations
 TUPLE: declared-types { n fixnum } { m string } ;
 
-[ T{ declared-types f 0 "hi" } ]
+{ T{ declared-types f 0 "hi" } }
 [ { declared-types 0 "hi" } >tuple ]
 unit-test
 
@@ -543,7 +543,7 @@ must-fail-with
 
 [ declared-types new 0.0 >>n n>> ] [ T{ no-method f 0.0 integer>fixnum-strict } = ] must-fail-with
 
-[ T{ declared-types f 33333 "asdf" } ]
+{ T{ declared-types f 33333 "asdf" } }
 [ 33333 >bignum "asdf" declared-types boa ] unit-test
 
 [ 444444444444444444444444444444444444444444444444433333 >bignum "asdf" declared-types boa ]
@@ -554,16 +554,16 @@ must-fail-with
 ! Check bignum coercer
 TUPLE: bignum-coercer { n bignum initial: $[ 0 >bignum ] } ;
 
-[ 13 bignum ] [ 13.5 bignum-coercer boa n>> dup class-of ] unit-test
+{ 13 bignum } [ 13.5 bignum-coercer boa n>> dup class-of ] unit-test
 
-[ 13 bignum ] [ bignum-coercer new 13.5 >>n n>> dup class-of ] unit-test
+{ 13 bignum } [ bignum-coercer new 13.5 >>n n>> dup class-of ] unit-test
 
 ! Check float coercer
 TUPLE: float-coercer { n float } ;
 
-[ 13.0 float ] [ 13 float-coercer boa n>> dup class-of ] unit-test
+{ 13.0 float } [ 13 float-coercer boa n>> dup class-of ] unit-test
 
-[ 13.0 float ] [ float-coercer new 13 >>n n>> dup class-of ] unit-test
+{ 13.0 float } [ float-coercer new 13 >>n n>> dup class-of ] unit-test
 
 ! Check integer coercer
 TUPLE: integer-coercer { n integer } ;
@@ -594,85 +594,85 @@ must-fail-with
 [ T{ bad-slot-value f { } string } = ]
 must-fail-with
 
-[ T{ declared-types f 0 "" } ] [ declared-types new ] unit-test
+{ T{ declared-types f 0 "" } } [ declared-types new ] unit-test
 
 : blah ( -- vec ) vector new ;
 
 [ vector new ] must-infer
 
-[ V{ } ] [ blah ] unit-test
+{ V{ } } [ blah ] unit-test
 
 ! Test reshaping with type declarations and slot attributes
 TUPLE: reshape-test x ;
 
 T{ reshape-test f "hi" } "tuple" set
 
-[ ] [ "IN: classes.tuple.tests TUPLE: reshape-test { x read-only } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: reshape-test { x read-only } ;" eval( -- ) ] unit-test
 
-[ f ] [ \ reshape-test \ x<< ?lookup-method ] unit-test
+{ f } [ \ reshape-test \ x<< ?lookup-method ] unit-test
 
 [ "tuple" get 5 >>x ] must-fail
 
-[ "hi" ] [ "tuple" get x>> ] unit-test
+{ "hi" } [ "tuple" get x>> ] unit-test
 
-[ ] [ "IN: classes.tuple.tests USE: math TUPLE: reshape-test { x integer read-only } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests USE: math TUPLE: reshape-test { x integer read-only } ;" eval( -- ) ] unit-test
 
-[ 0 ] [ "tuple" get x>> ] unit-test
+{ 0 } [ "tuple" get x>> ] unit-test
 
-[ ] [ "IN: classes.tuple.tests USE: math TUPLE: reshape-test { x fixnum initial: 4 read-only } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests USE: math TUPLE: reshape-test { x fixnum initial: 4 read-only } ;" eval( -- ) ] unit-test
 
-[ 0 ] [ "tuple" get x>> ] unit-test
+{ 0 } [ "tuple" get x>> ] unit-test
 
 TUPLE: boa-coercer-test { x array-capacity } ;
 
-[ fixnum ] [ 0 >bignum boa-coercer-test boa x>> class-of ] unit-test
+{ fixnum } [ 0 >bignum boa-coercer-test boa x>> class-of ] unit-test
 
-[ T{ boa-coercer-test f 0 } ] [ T{ boa-coercer-test } ] unit-test
+{ T{ boa-coercer-test f 0 } } [ T{ boa-coercer-test } ] unit-test
 
 ! Test error classes
 ERROR: error-class-test a b c ;
 
-[ "( a b c -- * )" ] [ \ error-class-test stack-effect effect>string ] unit-test
-[ f ] [ \ error-class-test "inline" word-prop ] unit-test
+{ "( a b c -- * )" } [ \ error-class-test stack-effect effect>string ] unit-test
+{ f } [ \ error-class-test "inline" word-prop ] unit-test
 
 [ "IN: classes.tuple.tests ERROR: error-x ; : error-x 3 ;" eval( -- ) ]
 [ error>> error>> redefine-error? ] must-fail-with
 
 DEFER: error-y
 
-[ ] [ [ \ error-y dup class? [ forget-class ] [ drop ] if ] with-compilation-unit ] unit-test
+{ } [ [ \ error-y dup class? [ forget-class ] [ drop ] if ] with-compilation-unit ] unit-test
 
-[ ] [ "IN: classes.tuple.tests GENERIC: error-y ( a -- b )" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests GENERIC: error-y ( a -- b )" eval( -- ) ] unit-test
 
-[ f ] [ \ error-y tuple-class? ] unit-test
+{ f } [ \ error-y tuple-class? ] unit-test
 
-[ f ] [ \ error-y error-class? ] unit-test
+{ f } [ \ error-y error-class? ] unit-test
 
-[ t ] [ \ error-y generic? ] unit-test
+{ t } [ \ error-y generic? ] unit-test
 
-[ ] [ "IN: classes.tuple.tests ERROR: error-y ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests ERROR: error-y ;" eval( -- ) ] unit-test
 
-[ t ] [ \ error-y tuple-class? ] unit-test
+{ t } [ \ error-y tuple-class? ] unit-test
 
-[ t ] [ \ error-y error-class? ] unit-test
+{ t } [ \ error-y error-class? ] unit-test
 
-[ f ] [ \ error-y generic? ] unit-test
+{ f } [ \ error-y generic? ] unit-test
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests TUPLE: forget-subclass-test ; TUPLE: forget-subclass-test' < forget-subclass-test ;"
     <string-reader> "forget-subclass-test" parse-stream
     drop
 ] unit-test
 
-[ ] [ "forget-subclass-test'" "classes.tuple.tests" lookup-word new "bad-object" set ] unit-test
+{ } [ "forget-subclass-test'" "classes.tuple.tests" lookup-word new "bad-object" set ] unit-test
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests TUPLE: forget-subclass-test a ;"
     <string-reader> "forget-subclass-test" parse-stream
     drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: sequences TUPLE: reversed { seq read-only } ;" eval( -- )
 ] unit-test
 
@@ -682,54 +682,54 @@ TUPLE: bogus-hashcode-2 x ;
 
 M: bogus-hashcode-1 hashcode* 2drop 0 >bignum ;
 
-[ ] [ T{ bogus-hashcode-2 f T{ bogus-hashcode-1 } } hashcode drop ] unit-test
+{ } [ T{ bogus-hashcode-2 f T{ bogus-hashcode-1 } } hashcode drop ] unit-test
 
 DEFER: change-slot-test
 SLOT: kex
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests USING: kernel accessors ; TUPLE: change-slot-test ; SLOT: kex M: change-slot-test kex>> drop 3 ;"
     <string-reader> "change-slot-test" parse-stream
     drop
 ] unit-test
 
-[ t ] [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
+{ t } [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests USING: kernel accessors ; TUPLE: change-slot-test kex ;"
     <string-reader> "change-slot-test" parse-stream
     drop
 ] unit-test
 
-[ t ] [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
+{ t } [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests USING: kernel accessors ; TUPLE: change-slot-test ; SLOT: kex M: change-slot-test kex>> drop 3 ;"
     <string-reader> "change-slot-test" parse-stream
     drop
 ] unit-test
 
-[ t ] [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
-[ f ] [ \ change-slot-test \ kex>> ?lookup-method "reading" word-prop ] unit-test
+{ t } [ \ change-slot-test \ kex>> ?lookup-method >boolean ] unit-test
+{ f } [ \ change-slot-test \ kex>> ?lookup-method "reading" word-prop ] unit-test
 
 DEFER: redefine-tuple-twice
 
-[ ] [ "IN: classes.tuple.tests TUPLE: redefine-tuple-twice ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: redefine-tuple-twice ;" eval( -- ) ] unit-test
 
-[ t ] [ \ redefine-tuple-twice symbol? ] unit-test
+{ t } [ \ redefine-tuple-twice symbol? ] unit-test
 
-[ ] [ "IN: classes.tuple.tests DEFER: redefine-tuple-twice" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests DEFER: redefine-tuple-twice" eval( -- ) ] unit-test
 
-[ t ] [ \ redefine-tuple-twice deferred? ] unit-test
+{ t } [ \ redefine-tuple-twice deferred? ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: redefine-tuple-twice ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: redefine-tuple-twice ;" eval( -- ) ] unit-test
 
-[ t ] [ \ redefine-tuple-twice symbol? ] unit-test
+{ t } [ \ redefine-tuple-twice symbol? ] unit-test
 
 ERROR: base-error x y ;
 ERROR: derived-error < base-error z ;
 
-[ ( x y z -- * ) ] [ \ derived-error stack-effect ] unit-test
+{ ( x y z -- * ) } [ \ derived-error stack-effect ] unit-test
 
 ! Make sure that tuple reshaping updates code heap roots
 TUPLE: code-heap-ref ;
@@ -737,100 +737,100 @@ TUPLE: code-heap-ref ;
 : code-heap-ref' ( -- a ) T{ code-heap-ref } ;
 
 ! Push foo's literal to tenured space
-[ ] [ gc ] unit-test
+{ } [ gc ] unit-test
 
 ! Reshape!
-[ ] [ "IN: classes.tuple.tests USE: math TUPLE: code-heap-ref { x integer initial: 5 } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests USE: math TUPLE: code-heap-ref { x integer initial: 5 } ;" eval( -- ) ] unit-test
 
 ! Code heap reference
-[ t ] [ code-heap-ref' code-heap-ref? ] unit-test
-[ 5 ] [ code-heap-ref' x>> ] unit-test
+{ t } [ code-heap-ref' code-heap-ref? ] unit-test
+{ 5 } [ code-heap-ref' x>> ] unit-test
 
 ! Data heap reference
-[ t ] [ \ code-heap-ref' def>> first code-heap-ref? ] unit-test
-[ 5 ] [ \ code-heap-ref' def>> first x>> ] unit-test
+{ t } [ \ code-heap-ref' def>> first code-heap-ref? ] unit-test
+{ 5 } [ \ code-heap-ref' def>> first x>> ] unit-test
 
 ! If the metaclass of a superclass changes into something other
 ! than a tuple class, the tuple needs to have its superclass reset
 TUPLE: metaclass-change ;
 TUPLE: metaclass-change-subclass < metaclass-change ;
 
-[ metaclass-change ] [ metaclass-change-subclass superclass ] unit-test
+{ metaclass-change } [ metaclass-change-subclass superclass ] unit-test
 
-[ ] [ "IN: classes.tuple.tests MIXIN: metaclass-change" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests MIXIN: metaclass-change" eval( -- ) ] unit-test
 
-[ t ] [ metaclass-change-subclass tuple-class? ] unit-test
-[ tuple ] [ metaclass-change-subclass superclass ] unit-test
+{ t } [ metaclass-change-subclass tuple-class? ] unit-test
+{ tuple } [ metaclass-change-subclass superclass ] unit-test
 
 ! Reshaping bug related to the above
 TUPLE: a-g ;
 TUPLE: g < a-g ;
 
-[ ] [ g new "g" set ] unit-test
+{ } [ g new "g" set ] unit-test
 
-[ ] [ "IN: classes.tuple.tests MIXIN: a-g TUPLE: g ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests MIXIN: a-g TUPLE: g ;" eval( -- ) ] unit-test
 
-[ t ] [ g new layout-of "g" get layout-of eq? ] unit-test
+{ t } [ g new layout-of "g" get layout-of eq? ] unit-test
 
 ! Joe Groff discovered this bug
 DEFER: factor-crashes-anymore
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests
     TUPLE: unsafe-slot-access ;
     CONSTANT: unsafe-slot-access' T{ unsafe-slot-access }" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "IN: classes.tuple.tests
     USE: accessors
     TUPLE: unsafe-slot-access { x read-only initial: 31337 } ;
     : factor-crashes-anymore ( -- x ) unsafe-slot-access' x>> ;" eval( -- )
 ] unit-test
 
-[ 31337 ] [ factor-crashes-anymore ] unit-test
+{ 31337 } [ factor-crashes-anymore ] unit-test
 
 TUPLE: tuple-predicate-redefine-test ;
 
-[ ] [ "IN: classes.tuple.tests TUPLE: tuple-predicate-redefine-test ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: tuple-predicate-redefine-test ;" eval( -- ) ] unit-test
 
-[ t ] [ \ tuple-predicate-redefine-test? predicate? ] unit-test
+{ t } [ \ tuple-predicate-redefine-test? predicate? ] unit-test
 
 ! Final classes
 TUPLE: final-superclass ;
 TUPLE: final-subclass < final-superclass ;
 
-[ final-superclass ] [ final-subclass superclass ] unit-test
+{ final-superclass } [ final-subclass superclass ] unit-test
 
 ! Making the superclass final should change the superclass of the subclass
-[ ] [ "IN: classes.tuple.tests TUPLE: final-superclass ; final" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: final-superclass ; final" eval( -- ) ] unit-test
 
-[ tuple ] [ final-subclass superclass ] unit-test
+{ tuple } [ final-subclass superclass ] unit-test
 
-[ f ] [ \ final-subclass final-class? ] unit-test
+{ f } [ \ final-subclass final-class? ] unit-test
 
 ! Subclassing a final class should fail
 [ "IN: classes.tuple.tests TUPLE: final-subclass < final-superclass ;" eval( -- ) ]
 [ error>> bad-superclass? ] must-fail-with
 
 ! Making a final class non-final should work
-[ ] [ "IN: classes.tuple.tests TUPLE: final-superclass ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: final-superclass ;" eval( -- ) ] unit-test
 
-[ ] [ "IN: classes.tuple.tests TUPLE: final-subclass < final-superclass ; final" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: final-subclass < final-superclass ; final" eval( -- ) ] unit-test
 
 ! Changing a superclass should not change the final status of a subclass
-[ ] [ "IN: classes.tuple.tests TUPLE: final-superclass x ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: final-superclass x ;" eval( -- ) ] unit-test
 
-[ t ] [ \ final-subclass final-class? ] unit-test
+{ t } [ \ final-subclass final-class? ] unit-test
 
 ! Test reset-class on tuples
 ! Should forget all accessors on rclasstest
 TUPLE: rclasstest a b ;
-[ ] [ [ \ rclasstest reset-class ] with-compilation-unit ] unit-test
-[ f ] [ \ rclasstest \ a>> ?lookup-method ] unit-test
-[ f ] [ \ rclasstest \ a<< ?lookup-method ] unit-test
-[ f ] [ \ rclasstest \ b>> ?lookup-method ] unit-test
-[ f ] [ \ rclasstest \ b<< ?lookup-method ] unit-test
+{ } [ [ \ rclasstest reset-class ] with-compilation-unit ] unit-test
+{ f } [ \ rclasstest \ a>> ?lookup-method ] unit-test
+{ f } [ \ rclasstest \ a<< ?lookup-method ] unit-test
+{ f } [ \ rclasstest \ b>> ?lookup-method ] unit-test
+{ f } [ \ rclasstest \ b<< ?lookup-method ] unit-test
 
 << \ rclasstest forget >>
 
@@ -839,9 +839,9 @@ TUPLE: initial-class ;
 
 DEFER: initial-slot
 
-[ ] [ "IN: classes.tuple.tests TUPLE: initial-slot { x initial-class } ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.tuple.tests TUPLE: initial-slot { x initial-class } ;" eval( -- ) ] unit-test
 
-[ t ] [ initial-slot new x>> initial-class? ] unit-test
+{ t } [ initial-slot new x>> initial-class? ] unit-test
 
 [ "IN: classes.tuple.tests TUPLE: initial-slot { x initial-class initial: f } ;" eval( -- ) ]
 [ error>> T{ bad-initial-value f "x" f initial-class } = ] must-fail-with
index aeadd687c2c619e5254d4a2004e4272310ca4939..9cd014c6d945ac73061824eb895f347b91859c88 100644 (file)
@@ -10,9 +10,9 @@ IN: classes.union.tests
 ! DEFER: bah
 ! FORGET: bah
 UNION: bah fixnum alien ;
-[ bah ] [ \ bah? "predicating" word-prop ] unit-test
+{ bah } [ \ bah? "predicating" word-prop ] unit-test
 
-[ "USING: alien math ;\nIN: classes.union.tests\nUNION: bah fixnum alien ;\n" ]
+{ "USING: alien math ;\nIN: classes.union.tests\nUNION: bah fixnum alien ;\n" }
 [ [ \ bah see ] with-string-writer ] unit-test
 
 ! Test redefinition of classes
@@ -22,21 +22,21 @@ GENERIC: generic-update-test ( x -- y )
 
 M: union-1 generic-update-test drop "union-1" ;
 
-[ f ] [ bignum union-1 class<= ] unit-test
-[ t ] [ union-1 number class<= ] unit-test
-[ "union-1" ] [ 1.0 generic-update-test ] unit-test
+{ f } [ bignum union-1 class<= ] unit-test
+{ t } [ union-1 number class<= ] unit-test
+{ "union-1" } [ 1.0 generic-update-test ] unit-test
 
 "IN: classes.union.tests USE: math USE: arrays UNION: union-1 rational array ;" eval( -- )
 
-[ t ] [ bignum union-1 class<= ] unit-test
-[ f ] [ union-1 number class<= ] unit-test
-[ "union-1" ] [ { 1.0 } generic-update-test ] unit-test
+{ t } [ bignum union-1 class<= ] unit-test
+{ f } [ union-1 number class<= ] unit-test
+{ "union-1" } [ { 1.0 } generic-update-test ] unit-test
 
 "IN: classes.union.tests USE: math PREDICATE: union-1 < integer even? ;" eval( -- )
 
-[ f ] [ union-1 union-class? ] unit-test
-[ t ] [ union-1 predicate-class? ] unit-test
-[ "union-1" ] [ 8 generic-update-test ] unit-test
+{ f } [ union-1 union-class? ] unit-test
+{ t } [ union-1 predicate-class? ] unit-test
+{ "union-1" } [ 8 generic-update-test ] unit-test
 [ -7 generic-update-test ] must-fail
 
 ! Empty unions were causing problems
@@ -50,35 +50,35 @@ UNION: empty-union-2 ;
 
 M: empty-union-2 empty-union-test ;
 
-[ [ drop f ] ] [ \ empty-union-1? def>> ] unit-test
+{ [ drop f ] } [ \ empty-union-1? def>> ] unit-test
 
 ! Redefining a class didn't update containing unions
 UNION: redefine-bug-1 fixnum ;
 
 UNION: redefine-bug-2 redefine-bug-1 quotation ;
 
-[ t ] [ fixnum redefine-bug-2 class<= ] unit-test
-[ t ] [ quotation redefine-bug-2 class<= ] unit-test
+{ t } [ fixnum redefine-bug-2 class<= ] unit-test
+{ t } [ quotation redefine-bug-2 class<= ] unit-test
 
-[ ] [ "IN: classes.union.tests USE: math UNION: redefine-bug-1 bignum ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.union.tests USE: math UNION: redefine-bug-1 bignum ;" eval( -- ) ] unit-test
 
-[ t ] [ bignum redefine-bug-1 class<= ] unit-test
-[ f ] [ fixnum redefine-bug-2 class<= ] unit-test
-[ t ] [ bignum redefine-bug-2 class<= ] unit-test
+{ t } [ bignum redefine-bug-1 class<= ] unit-test
+{ f } [ fixnum redefine-bug-2 class<= ] unit-test
+{ t } [ bignum redefine-bug-2 class<= ] unit-test
 
 ! Too eager with reset-class
 
-[ ] [ "IN: classes.union.tests SINGLETON: foo UNION: blah foo ;" <string-reader> "union-reset-test" parse-stream drop ] unit-test
+{ } [ "IN: classes.union.tests SINGLETON: foo UNION: blah foo ;" <string-reader> "union-reset-test" parse-stream drop ] unit-test
 
-[ t ] [ "blah" "classes.union.tests" lookup-word union-class? ] unit-test
+{ t } [ "blah" "classes.union.tests" lookup-word union-class? ] unit-test
 
-[ t ] [ "foo?" "classes.union.tests" lookup-word predicate? ] unit-test
+{ t } [ "foo?" "classes.union.tests" lookup-word predicate? ] unit-test
 
-[ ] [ "IN: classes.union.tests USE: math UNION: blah integer ;" <string-reader> "union-reset-test" parse-stream drop ] unit-test
+{ } [ "IN: classes.union.tests USE: math UNION: blah integer ;" <string-reader> "union-reset-test" parse-stream drop ] unit-test
 
-[ t ] [ "blah" "classes.union.tests" lookup-word union-class? ] unit-test
+{ t } [ "blah" "classes.union.tests" lookup-word union-class? ] unit-test
 
-[ f ] [ "foo?" "classes.union.tests" lookup-word predicate? ] unit-test
+{ f } [ "foo?" "classes.union.tests" lookup-word predicate? ] unit-test
 
 GENERIC: test-generic ( x -- y )
 
@@ -88,50 +88,50 @@ UNION: a-union a-tuple ;
 
 M: a-union test-generic ;
 
-[ f ] [ \ test-generic "methods" word-prop assoc-empty? ] unit-test
+{ f } [ \ test-generic "methods" word-prop assoc-empty? ] unit-test
 
-[ ] [ [ \ a-tuple forget-class ] with-compilation-unit ] unit-test
+{ } [ [ \ a-tuple forget-class ] with-compilation-unit ] unit-test
 
-[ t ] [ \ test-generic "methods" word-prop assoc-empty? ] unit-test
+{ t } [ \ test-generic "methods" word-prop assoc-empty? ] unit-test
 
 ! Fast union predicates
 
-[ t ] [ integer union-of-builtins? ] unit-test
+{ t } [ integer union-of-builtins? ] unit-test
 
-[ t ] [ \ integer? def>> \ fixnum-bitand swap member? ] unit-test
+{ t } [ \ integer? def>> \ fixnum-bitand swap member? ] unit-test
 
-[ ] [ "IN: classes.union.tests USE: math UNION: fast-union-1 fixnum ; UNION: fast-union-2 fast-union-1 bignum ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.union.tests USE: math UNION: fast-union-1 fixnum ; UNION: fast-union-2 fast-union-1 bignum ;" eval( -- ) ] unit-test
 
-[ t ] [ "fast-union-2?" "classes.union.tests" lookup-word def>> \ fixnum-bitand swap member? ] unit-test
+{ t } [ "fast-union-2?" "classes.union.tests" lookup-word def>> \ fixnum-bitand swap member? ] unit-test
 
-[ ] [ "IN: classes.union.tests USE: vectors UNION: fast-union-1 vector ;" eval( -- ) ] unit-test
+{ } [ "IN: classes.union.tests USE: vectors UNION: fast-union-1 vector ;" eval( -- ) ] unit-test
 
-[ f ] [ "fast-union-2?" "classes.union.tests" lookup-word def>> \ fixnum-bitand swap member? ] unit-test
+{ f } [ "fast-union-2?" "classes.union.tests" lookup-word def>> \ fixnum-bitand swap member? ] unit-test
 
 ! Test union{
 
 TUPLE: stuff { a union{ integer string } } ;
 
-[ 0 ] [ stuff new a>> ] unit-test
-[ 3 ] [ stuff new 3 >>a a>> ] unit-test
-[ "asdf" ] [ stuff new "asdf" >>a a>> ] unit-test
+{ 0 } [ stuff new a>> ] unit-test
+{ 3 } [ stuff new 3 >>a a>> ] unit-test
+{ "asdf" } [ stuff new "asdf" >>a a>> ] unit-test
 [ stuff new 3.4 >>a a>> ] [ bad-slot-value? ] must-fail-with
 
 TUPLE: things { a union{ integer float } } ;
 
-[ 0 ] [ stuff new a>> ] unit-test
-[ 3 ] [ stuff new 3 >>a a>> ] unit-test
-[ "asdf" ] [ stuff new "asdf" >>a a>> ] unit-test
+{ 0 } [ stuff new a>> ] unit-test
+{ 3 } [ stuff new 3 >>a a>> ] unit-test
+{ "asdf" } [ stuff new "asdf" >>a a>> ] unit-test
 [ stuff new 3.4 >>a a>> ] [ bad-slot-value? ] must-fail-with
 
 PREDICATE: numba-ova-10 < union{ float integer }
     10 > ;
 
-[ f ] [ 100/3 numba-ova-10? ] unit-test
-[ t ] [ 100 numba-ova-10? ] unit-test
-[ t ] [ 100.0 numba-ova-10? ] unit-test
-[ f ] [ 5 numba-ova-10? ] unit-test
-[ f ] [ 5.75 numba-ova-10? ] unit-test
+{ f } [ 100/3 numba-ova-10? ] unit-test
+{ t } [ 100 numba-ova-10? ] unit-test
+{ t } [ 100.0 numba-ova-10? ] unit-test
+{ f } [ 5 numba-ova-10? ] unit-test
+{ f } [ 5.75 numba-ova-10? ] unit-test
 
 ! Issue #420 lol
 [ "IN: issue-420 UNION: omg omg ;" eval( -- ) ]
index 63e8c633775ff001d8108c34eef4999cae572eeb..f511d5ba04b506498202f8d57fbae3c31d7a48ba 100644 (file)
@@ -3,37 +3,37 @@ namespaces combinators words classes sequences accessors
 math.functions arrays combinators.private stack-checker ;
 IN: combinators.tests
 
-[ 3 ] [ 1 2 [ + ] call( x y -- z ) ] unit-test
+{ 3 } [ 1 2 [ + ] call( x y -- z ) ] unit-test
 [ 1 2 [ + ] call( -- z ) ] must-fail
 [ 1 2 [ + ] call( x y -- z a ) ] must-fail
-[ 1 2 3 { 1 2 3 4 } ] [ 1 2 3 4 [ datastack nip ] call( x -- y ) ] unit-test
+{ 1 2 3 { 1 2 3 4 } } [ 1 2 3 4 [ datastack nip ] call( x -- y ) ] unit-test
 [ [ + ] call( x y -- z ) ] must-infer
 
-[ 3 ] [ 1 2 \ + execute( x y -- z ) ] unit-test
+{ 3 } [ 1 2 \ + execute( x y -- z ) ] unit-test
 [ 1 2 \ + execute( -- z ) ] must-fail
 [ 1 2 \ + execute( x y -- z a ) ] must-fail
 [ \ + execute( x y -- z ) ] must-infer
 
 : compile-execute(-test-1 ( a b -- c ) \ + execute( a b -- c ) ;
 
-[ t ] [ \ compile-execute(-test-1 optimized? ] unit-test
-[ 4 ] [ 1 3 compile-execute(-test-1 ] unit-test
+{ t } [ \ compile-execute(-test-1 optimized? ] unit-test
+{ 4 } [ 1 3 compile-execute(-test-1 ] unit-test
 
 : compile-execute(-test-2 ( a b w -- c ) execute( a b -- c ) ;
 
-[ t ] [ \ compile-execute(-test-2 optimized? ] unit-test
-[ 4 ] [ 1 3 \ + compile-execute(-test-2 ] unit-test
-[ 5 ] [ 1 4 \ + compile-execute(-test-2 ] unit-test
-[ -3 ] [ 1 4 \ - compile-execute(-test-2 ] unit-test
-[ 5 ] [ 1 4 \ + compile-execute(-test-2 ] unit-test
+{ t } [ \ compile-execute(-test-2 optimized? ] unit-test
+{ 4 } [ 1 3 \ + compile-execute(-test-2 ] unit-test
+{ 5 } [ 1 4 \ + compile-execute(-test-2 ] unit-test
+{ -3 } [ 1 4 \ - compile-execute(-test-2 ] unit-test
+{ 5 } [ 1 4 \ + compile-execute(-test-2 ] unit-test
 
 : compile-call(-test-1 ( a b q -- c ) call( a b -- c ) ;
 
-[ t ] [ \ compile-call(-test-1 optimized? ] unit-test
-[ 4 ] [ 1 3 [ + ] compile-call(-test-1 ] unit-test
-[ 7 ] [ 1 3 2 [ * + ] curry compile-call(-test-1 ] unit-test
-[ 7 ] [ 1 3 [ 2 * ] [ + ] compose compile-call(-test-1 ] unit-test
-[ 4 ] [ 1 3 [ { + } [ ] like call ] compile-call(-test-1 ] unit-test
+{ t } [ \ compile-call(-test-1 optimized? ] unit-test
+{ 4 } [ 1 3 [ + ] compile-call(-test-1 ] unit-test
+{ 7 } [ 1 3 2 [ * + ] curry compile-call(-test-1 ] unit-test
+{ 7 } [ 1 3 [ 2 * ] [ + ] compose compile-call(-test-1 ] unit-test
+{ 4 } [ 1 3 [ { + } [ ] like call ] compile-call(-test-1 ] unit-test
 
 [ [ ] call( -- * ) ] must-fail
 
@@ -62,10 +62,10 @@ IN: combinators.tests
 
 \ cond-test-1 def>> must-infer
 
-[ "even" ] [ 2 cond-test-1 ] unit-test
-[ "even" ] [ 2 \ cond-test-1 def>> call ] unit-test
-[ "odd" ] [ 3 cond-test-1 ] unit-test
-[ "odd" ] [ 3 \ cond-test-1 def>> call ] unit-test
+{ "even" } [ 2 cond-test-1 ] unit-test
+{ "even" } [ 2 \ cond-test-1 def>> call ] unit-test
+{ "odd" } [ 3 cond-test-1 ] unit-test
+{ "odd" } [ 3 \ cond-test-1 def>> call ] unit-test
 
 : cond-test-2 ( obj -- str )
     {
@@ -76,12 +76,12 @@ IN: combinators.tests
 
 \ cond-test-2 def>> must-infer
 
-[ "true" ] [ t cond-test-2 ] unit-test
-[ "true" ] [ t \ cond-test-2 def>> call ] unit-test
-[ "false" ] [ f cond-test-2 ] unit-test
-[ "false" ] [ f \ cond-test-2 def>> call ] unit-test
-[ "something else" ] [ "ohio" cond-test-2 ] unit-test
-[ "something else" ] [ "ohio" \ cond-test-2 def>> call ] unit-test
+{ "true" } [ t cond-test-2 ] unit-test
+{ "true" } [ t \ cond-test-2 def>> call ] unit-test
+{ "false" } [ f cond-test-2 ] unit-test
+{ "false" } [ f \ cond-test-2 def>> call ] unit-test
+{ "something else" } [ "ohio" cond-test-2 ] unit-test
+{ "something else" } [ "ohio" \ cond-test-2 def>> call ] unit-test
 
 : cond-test-3 ( obj -- str )
     {
@@ -92,12 +92,12 @@ IN: combinators.tests
 
 \ cond-test-3 def>> must-infer
 
-[ "something else" ] [ t cond-test-3 ] unit-test
-[ "something else" ] [ t \ cond-test-3 def>> call ] unit-test
-[ "something else" ] [ f cond-test-3 ] unit-test
-[ "something else" ] [ f \ cond-test-3 def>> call ] unit-test
-[ "something else" ] [ "ohio" cond-test-3 ] unit-test
-[ "something else" ] [ "ohio" \ cond-test-3 def>> call ] unit-test
+{ "something else" } [ t cond-test-3 ] unit-test
+{ "something else" } [ t \ cond-test-3 def>> call ] unit-test
+{ "something else" } [ f cond-test-3 ] unit-test
+{ "something else" } [ f \ cond-test-3 def>> call ] unit-test
+{ "something else" } [ "ohio" cond-test-3 ] unit-test
+{ "something else" } [ "ohio" \ cond-test-3 def>> call ] unit-test
 
 : cond-test-4 ( -- )
     {
@@ -115,8 +115,8 @@ IN: combinators.tests
         { [ dup 2 mod 0 = ] [ drop "even" ] }
     } cond ;
 
-[ "early" ] [ 2 cond-test-5 ] unit-test
-[ "early" ] [ 2 \ cond-test-5 def>> call ] unit-test
+{ "early" } [ 2 cond-test-5 ] unit-test
+{ "early" } [ 2 \ cond-test-5 def>> call ] unit-test
 
 : cond-test-6 ( a -- b )
     {
@@ -125,8 +125,8 @@ IN: combinators.tests
        { [ dup 2 mod 0 = ] [ drop "even" ] }
     } cond ;
 
-[ "really early" ] [ 2 cond-test-6 ] unit-test
-[ "really early" ] [ 2 \ cond-test-6 def>> call ] unit-test
+{ "really early" } [ 2 cond-test-6 ] unit-test
+{ "really early" } [ 2 \ cond-test-6 def>> call ] unit-test
 
 ! Case
 : case-test-1 ( obj -- obj' )
@@ -139,8 +139,8 @@ IN: combinators.tests
 
 \ case-test-1 def>> must-infer
 
-[ "two" ] [ 2 case-test-1 ] unit-test
-[ "two" ] [ 2 \ case-test-1 def>> call ] unit-test
+{ "two" } [ 2 case-test-1 ] unit-test
+{ "two" } [ 2 \ case-test-1 def>> call ] unit-test
 
 [ "x" case-test-1 ] must-fail
 [ "x" \ case-test-1 def>> call ] must-fail
@@ -156,8 +156,8 @@ IN: combinators.tests
 
 \ case-test-2 def>> must-infer
 
-[ 25 ] [ 5 case-test-2 ] unit-test
-[ 25 ] [ 5 \ case-test-2 def>> call ] unit-test
+{ 25 } [ 5 case-test-2 ] unit-test
+{ 25 } [ 5 \ case-test-2 def>> call ] unit-test
 
 : case-test-3 ( obj -- obj' )
     {
@@ -172,8 +172,8 @@ IN: combinators.tests
 
 \ case-test-3 def>> must-infer
 
-[ "an array" ] [ { 1 2 3 } case-test-3 ] unit-test
-[ "an array" ] [ { 1 2 3 } \ case-test-3 def>> call ] unit-test
+{ "an array" } [ { 1 2 3 } case-test-3 ] unit-test
+{ "an array" } [ { 1 2 3 } \ case-test-3 def>> call ] unit-test
 
 CONSTANT: case-const-1 1
 CONSTANT: case-const-2 2
@@ -191,15 +191,15 @@ CONSTANT: case-const-2 2
 
 \ case-test-4 def>> must-infer
 
-[ "uno" ] [ 1 case-test-4 ] unit-test
-[ "dos" ] [ 2 case-test-4 ] unit-test
-[ "tres" ] [ 3 case-test-4 ] unit-test
-[ "demasiado" ] [ 100 case-test-4 ] unit-test
+{ "uno" } [ 1 case-test-4 ] unit-test
+{ "dos" } [ 2 case-test-4 ] unit-test
+{ "tres" } [ 3 case-test-4 ] unit-test
+{ "demasiado" } [ 100 case-test-4 ] unit-test
 
-[ "uno" ] [ 1 \ case-test-4 def>> call ] unit-test
-[ "dos" ] [ 2 \ case-test-4 def>> call ] unit-test
-[ "tres" ] [ 3 \ case-test-4 def>> call ] unit-test
-[ "demasiado" ] [ 100 \ case-test-4 def>> call ] unit-test
+{ "uno" } [ 1 \ case-test-4 def>> call ] unit-test
+{ "dos" } [ 2 \ case-test-4 def>> call ] unit-test
+{ "tres" } [ 3 \ case-test-4 def>> call ] unit-test
+{ "demasiado" } [ 100 \ case-test-4 def>> call ] unit-test
 
 : case-test-5 ( obj -- )
     {
@@ -213,8 +213,8 @@ CONSTANT: case-const-2 2
 
 \ case-test-5 def>> must-infer
 
-[ ] [ 1 case-test-5 ] unit-test
-[ ] [ 1 \ case-test-5 def>> call ] unit-test
+{ } [ 1 case-test-5 ] unit-test
+{ } [ 1 \ case-test-5 def>> call ] unit-test
 
 : do-not-call ( -- * ) "do not call" throw ;
 
@@ -226,15 +226,15 @@ CONSTANT: case-const-2 2
 
 \ test-case-6 def>> must-infer
 
-[ "three" ] [ 3 test-case-6 ] unit-test
-[ "do-not-call" ] [ \ do-not-call test-case-6 ] unit-test
+{ "three" } [ 3 test-case-6 ] unit-test
+{ "do-not-call" } [ \ do-not-call test-case-6 ] unit-test
 
-[ t ] [ { 1 3 2 } contiguous-range? ] unit-test
-[ f ] [ { 1 2 2 4 } contiguous-range? ] unit-test
-[ f ] [ { + 3 2 } contiguous-range? ] unit-test
-[ f ] [ { 1 0 7 } contiguous-range? ] unit-test
-[ f ] [ { 1 1 3 7 } contiguous-range? ] unit-test
-[ t ] [ { 7 6 4 8 5 } contiguous-range? ] unit-test
+{ t } [ { 1 3 2 } contiguous-range? ] unit-test
+{ f } [ { 1 2 2 4 } contiguous-range? ] unit-test
+{ f } [ { + 3 2 } contiguous-range? ] unit-test
+{ f } [ { 1 0 7 } contiguous-range? ] unit-test
+{ f } [ { 1 1 3 7 } contiguous-range? ] unit-test
+{ t } [ { 7 6 4 8 5 } contiguous-range? ] unit-test
 
 
 : test-case-7 ( obj -- str )
@@ -249,17 +249,17 @@ CONSTANT: case-const-2 2
 
 \ test-case-7 def>> must-infer
 
-[ "plus" ] [ \ + test-case-7 ] unit-test
-[ "plus" ] [ \ + \ test-case-7 def>> call ] unit-test
+{ "plus" } [ \ + test-case-7 ] unit-test
+{ "plus" } [ \ + \ test-case-7 def>> call ] unit-test
 
 DEFER: corner-case-1
 
 << \ corner-case-1 2 [ + ] curry 1array [ case ] curry ( a -- b ) define-declared >>
 
-[ t ] [ \ corner-case-1 optimized? ] unit-test
+{ t } [ \ corner-case-1 optimized? ] unit-test
 
-[ 4 ] [ 2 corner-case-1 ] unit-test
-[ 4 ] [ 2 \ corner-case-1 def>> call ] unit-test
+{ 4 } [ 2 corner-case-1 ] unit-test
+{ 4 } [ 2 \ corner-case-1 def>> call ] unit-test
 
 : test-case-8 ( n -- string )
     {
@@ -277,11 +277,11 @@ DEFER: corner-case-1
         { \ - [ "minus 2" ] }
     } case ;
 
-[ "plus" ] [ \ + test-case-9 ] unit-test
-[ "plus" ] [ \ + \ test-case-9 def>> call ] unit-test
+{ "plus" } [ \ + test-case-9 ] unit-test
+{ "plus" } [ \ + \ test-case-9 def>> call ] unit-test
 
-[ "minus" ] [ \ - test-case-9 ] unit-test
-[ "minus" ] [ \ - \ test-case-9 def>> call ] unit-test
+{ "minus" } [ \ - test-case-9 ] unit-test
+{ "minus" } [ \ - \ test-case-9 def>> call ] unit-test
 
 : test-case-10 ( a -- b )
     {
@@ -293,8 +293,8 @@ DEFER: corner-case-1
         { 5 [ "cinco" ] }
     } case ;
 
-[ "dos" ] [ 2 test-case-10 ] unit-test
-[ "dos" ] [ 2 \ test-case-10 def>> call ] unit-test
+{ "dos" } [ 2 test-case-10 ] unit-test
+{ "dos" } [ 2 \ test-case-10 def>> call ] unit-test
 
 : test-case-11 ( a -- b )
     {
@@ -306,8 +306,8 @@ DEFER: corner-case-1
         { 55 [ "cinco" ] }
     } case ;
 
-[ "dos" ] [ 22 test-case-11 ] unit-test
-[ "dos" ] [ 22 \ test-case-11 def>> call ] unit-test
+{ "dos" } [ 22 test-case-11 ] unit-test
+{ "dos" } [ 22 \ test-case-11 def>> call ] unit-test
 
 : test-case-12 ( a -- b )
     {
@@ -319,10 +319,10 @@ DEFER: corner-case-1
         { 55 [ "cinco" ] }
     } case ;
 
-[ "nachos" ] [ 33 test-case-12 ] unit-test
-[ "nachos" ] [ 33 \ test-case-12 def>> call ] unit-test
+{ "nachos" } [ 33 test-case-12 ] unit-test
+{ "nachos" } [ 33 \ test-case-12 def>> call ] unit-test
 
-[ ( x x -- x x ) ] [
+{ ( x x -- x x ) } [
     [ { [ ] [ ] } spread ] infer
 ] unit-test
 
index 51b753772e6d26f6f99a806aaf0adbf77bde0e8a..478a8d5f4220d54257966a24e80d8419e2b6727c 100644 (file)
@@ -6,12 +6,12 @@ IN: compiler.units.tests
 [ [ [ ] define-temp ] with-nested-compilation-unit ] must-infer
 
 ! Non-optimizing compiler bugs
-[ 1 1 ] [
+{ 1 1 } [
     "A" <uninterned-word> [ [ [ 1 ] dip ] 2array 1array t t modify-code-heap ] keep
     1 swap execute
 ] unit-test
 
-[ "A" "B" ] [
+{ "A" "B" } [
     disable-optimizer
 
     gensym "a" set
@@ -43,7 +43,7 @@ M: observer definitions-changed
 
 [ gensym [ ] ( -- ) define-declared ] with-compilation-unit
 
-[ 1 ] [ counter get-global ] unit-test
+{ 1 } [ counter get-global ] unit-test
 
 observer remove-definition-observer
 
@@ -54,7 +54,7 @@ observer add-definition-observer
 
 DEFER: nesting-test
 
-[ ] [ "IN: compiler.units.tests << : nesting-test ( -- ) ; >>" eval( -- ) ] unit-test
+{ } [ "IN: compiler.units.tests << : nesting-test ( -- ) ; >>" eval( -- ) ] unit-test
 
 observer remove-definition-observer
 
@@ -67,6 +67,6 @@ M: integer uncompiled-generic-test 1 + ;
 << [ uncompiled-generic-test ] [ jit-compile ] [ suffix! ] bi >>
 "q" set
 
-[ 4 ] [ 3 "q" get call ] unit-test
+{ 4 } [ 3 "q" get call ] unit-test
 
-[ ] [ [ \ uncompiled-generic-test forget ] with-compilation-unit ] unit-test
+{ } [ [ \ uncompiled-generic-test forget ] with-compilation-unit ] unit-test
index 8f3bba550195d5bcc58c8ef3c8774e4ae94756f7..a6cead0bd9e53c3e7b787730f719d566e6909f34 100644 (file)
@@ -22,12 +22,12 @@ IN: continuations.tests
         ] with-scope
     ] callcc0 "x" get 5 = ;
 
-[ t ] [ 10 callcc1-test 10 iota reverse >vector = ] unit-test
-[ t ] [ callcc-namespace-test ] unit-test
+{ t } [ 10 callcc1-test 10 iota reverse >vector = ] unit-test
+{ t } [ callcc-namespace-test ] unit-test
 
 [ 5 throw ] [ 5 = ] must-fail-with
 
-[ t ] [
+{ t } [
     [ "Hello" throw ] ignore-errors
     error get-global
     "Hello" =
@@ -35,16 +35,16 @@ IN: continuations.tests
 
 "!!! The following error is part of the test" print
 
-[ ] [ [ 6 [ 12 [ "2 car" ] ] ] print-error ] unit-test
+{ } [ [ 6 [ 12 [ "2 car" ] ] ] print-error ] unit-test
 
 "!!! The following error is part of the test" print
 
-[ ] [ [ [ "2 car" ] eval ] try ] unit-test
+{ } [ [ [ "2 car" ] eval ] try ] unit-test
 
 [ f throw ] must-fail
 
 ! Weird PowerPC bug.
-[ ] [
+{ } [
     [ "4" throw ] ignore-errors
     gc
     gc
@@ -62,11 +62,11 @@ IN: continuations.tests
 
 << { don't-compile-me foo bar } [ t "no-compile" set-word-prop ] each >>
 
-[ 1 2 ] [ bar ] unit-test
+{ 1 2 } [ bar ] unit-test
 
-[ t ] [ \ bar def>> "c" get innermost-frame-executing = ] unit-test
+{ t } [ \ bar def>> "c" get innermost-frame-executing = ] unit-test
 
-[ 1 ] [ "c" get innermost-frame-scan ] unit-test
+{ 1 } [ "c" get innermost-frame-scan ] unit-test
 
 SYMBOL: always-counter
 SYMBOL: error-counter
@@ -99,10 +99,10 @@ SYMBOL: error-counter
     [ 1 ] [ error-counter get ] unit-test
 ] with-scope
 
-[ ] [ [ return ] with-return ] unit-test
+{ } [ [ return ] with-return ] unit-test
 
 [ { } [ ] attempt-all ] [ attempt-all-error? ] must-fail-with
 
-[ { 4 } ] [ { 2 2 } [ + ] with-datastack ] unit-test
+{ { 4 } } [ { 2 2 } [ + ] with-datastack ] unit-test
 
 [ with-datastack ] must-infer
index 558b25910343dc4025009e6e19203dde138adb3e..94f5075ac39e4372cf5fa0c547c4ad3366c598ce 100644 (file)
@@ -20,7 +20,7 @@ TUPLE: some-class ;
 
 M: some-class some-generic ;
 
-[ ] [
+{ } [
     [
         \ some-generic
         \ some-class
index c55b5ef4231eff46b3295c927979e35338362841..78f06b252d65befec683f1445b99cb24e9c37b74 100644 (file)
@@ -13,11 +13,11 @@ M: dispose-dummy dispose t >>disposed? drop ;
 T{ dispose-error } "a" set
 T{ dispose-dummy } "b" set
 
-[ f ] [ "b" get disposed?>> ] unit-test
+{ f } [ "b" get disposed?>> ] unit-test
 
 [ { "a" "b" } [ get ] map dispose-each ] [ 3 = ] must-fail-with
 
-[ t ] [ "b" get disposed?>> ] unit-test
+{ t } [ "b" get disposed?>> ] unit-test
 
 TUPLE: dummy-obj destroyed? ;
 
@@ -36,19 +36,19 @@ M: dummy-destructor dispose ( obj -- )
 : destroy-later ( obj -- )
     <dummy-destructor> |dispose drop ;
 
-[ t ] [
+{ t } [
     [
         <dummy-obj> dup destroy-always
     ] with-destructors destroyed?>>
 ] unit-test
 
-[ f ] [
+{ f } [
     [
         <dummy-obj> dup destroy-later
     ] with-destructors destroyed?>>
 ] unit-test
 
-[ t ] [
+{ t } [
     <dummy-obj> [
         [
             dup destroy-always
@@ -57,7 +57,7 @@ M: dummy-destructor dispose ( obj -- )
     ] ignore-errors destroyed?>>
 ] unit-test
 
-[ t ] [
+{ t } [
     <dummy-obj> [
         [
             dup destroy-later
index 890bbb7e4e0529691073a6adc97c869dc92828a9..247cb7720d867179d63417454789cc1c926b88af 100644 (file)
@@ -2,47 +2,47 @@ USING: effects effects.parser eval kernel tools.test prettyprint accessors
 quotations sequences ;
 IN: effects.tests
 
-[ t ] [ { "a" } { "a" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
-[ f ] [ { "a" } { } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
-[ t ] [ { "a" "b" } { "a" "b" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
-[ f ] [ { "a" "b" "c" } { "a" "b" "c" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
-[ f ] [ { "a" "b" } { "a" "b" "c" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
-[ 2 ] [ ( a b -- c ) in>> length ] unit-test
-[ 1 ] [ ( a b -- c ) out>> length ] unit-test
-
-[ t ] [ ( a b -- c ) ( ... a b -- ... c ) effect<= ] unit-test
-[ t ] [ ( b -- ) ( ... a b -- ... c ) effect<= ] unit-test
-[ f ] [ ( ... a b -- ... c ) ( a b -- c ) effect<= ] unit-test
-[ f ] [ ( ... b -- ... ) ( a b -- c ) effect<= ] unit-test
-[ f ] [ ( a b -- c ) ( ... a b -- c ) effect<= ] unit-test
-[ f ] [ ( a b -- c ) ( ..x a b -- ..y c ) effect<= ] unit-test
-
-[ "( object -- object )" ] [ { f } { f } <effect> unparse ] unit-test
-[ "( a b -- c d )" ] [ { "a" "b" } { "c" "d" } <effect> unparse ] unit-test
-[ "( -- c d )" ] [ { } { "c" "d" } <effect> unparse ] unit-test
-[ "( a b -- )" ] [ { "a" "b" } { } <effect> unparse ] unit-test
-[ "( -- )" ] [ { } { } <effect> unparse ] unit-test
-[ "( a b -- c )" ] [ ( a b -- c ) unparse ] unit-test
-
-[ { "x" "y" } ] [ { "y" "x" } ( a b -- b a ) shuffle ] unit-test
-[ { "y" "x" "y" } ] [ { "y" "x" } ( a b -- a b a ) shuffle ] unit-test
-[ { } ] [ { "y" "x" } ( a b -- ) shuffle ] unit-test
-
-[ t ] [ ( -- ) ( -- ) compose-effects ( -- ) effect= ] unit-test
-[ t ] [ ( -- * ) ( -- ) compose-effects ( -- * ) effect= ] unit-test
-[ t ] [ ( -- ) ( -- * ) compose-effects ( -- * ) effect= ] unit-test
-
-[ { object object } ] [ ( a b -- ) effect-in-types ] unit-test
-[ { object sequence } ] [ ( a b: sequence -- ) effect-in-types ] unit-test
-
-[ f   ] [ ( a b c -- d ) in-var>> ] unit-test
-[ f   ] [ ( -- d ) in-var>> ] unit-test
-[ "a" ] [ ( ..a b c -- d ) in-var>> ] unit-test
-[ { "b" "c" } ] [ ( ..a b c -- d ) in>> ] unit-test
-
-[ f   ] [ ( ..a b c -- e ) out-var>> ] unit-test
-[ "d" ] [ ( ..a b c -- ..d e ) out-var>> ] unit-test
-[ { "e" } ] [ ( ..a b c -- ..d e ) out>> ] unit-test
+{ t } [ { "a" } { "a" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
+{ f } [ { "a" } { } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
+{ t } [ { "a" "b" } { "a" "b" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
+{ f } [ { "a" "b" "c" } { "a" "b" "c" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
+{ f } [ { "a" "b" } { "a" "b" "c" } <effect> { "a" "b" } { "a" "b" } <effect> effect<= ] unit-test
+{ 2 } [ ( a b -- c ) in>> length ] unit-test
+{ 1 } [ ( a b -- c ) out>> length ] unit-test
+
+{ t } [ ( a b -- c ) ( ... a b -- ... c ) effect<= ] unit-test
+{ t } [ ( b -- ) ( ... a b -- ... c ) effect<= ] unit-test
+{ f } [ ( ... a b -- ... c ) ( a b -- c ) effect<= ] unit-test
+{ f } [ ( ... b -- ... ) ( a b -- c ) effect<= ] unit-test
+{ f } [ ( a b -- c ) ( ... a b -- c ) effect<= ] unit-test
+{ f } [ ( a b -- c ) ( ..x a b -- ..y c ) effect<= ] unit-test
+
+{ "( object -- object )" } [ { f } { f } <effect> unparse ] unit-test
+{ "( a b -- c d )" } [ { "a" "b" } { "c" "d" } <effect> unparse ] unit-test
+{ "( -- c d )" } [ { } { "c" "d" } <effect> unparse ] unit-test
+{ "( a b -- )" } [ { "a" "b" } { } <effect> unparse ] unit-test
+{ "( -- )" } [ { } { } <effect> unparse ] unit-test
+{ "( a b -- c )" } [ ( a b -- c ) unparse ] unit-test
+
+{ { "x" "y" } } [ { "y" "x" } ( a b -- b a ) shuffle ] unit-test
+{ { "y" "x" "y" } } [ { "y" "x" } ( a b -- a b a ) shuffle ] unit-test
+{ { } } [ { "y" "x" } ( a b -- ) shuffle ] unit-test
+
+{ t } [ ( -- ) ( -- ) compose-effects ( -- ) effect= ] unit-test
+{ t } [ ( -- * ) ( -- ) compose-effects ( -- * ) effect= ] unit-test
+{ t } [ ( -- ) ( -- * ) compose-effects ( -- * ) effect= ] unit-test
+
+{ { object object } } [ ( a b -- ) effect-in-types ] unit-test
+{ { object sequence } } [ ( a b: sequence -- ) effect-in-types ] unit-test
+
+{ f   } [ ( a b c -- d ) in-var>> ] unit-test
+{ f   } [ ( -- d ) in-var>> ] unit-test
+{ "a" } [ ( ..a b c -- d ) in-var>> ] unit-test
+{ { "b" "c" } } [ ( ..a b c -- d ) in>> ] unit-test
+
+{ f   } [ ( ..a b c -- e ) out-var>> ] unit-test
+{ "d" } [ ( ..a b c -- ..d e ) out-var>> ] unit-test
+{ { "e" } } [ ( ..a b c -- ..d e ) out>> ] unit-test
 
 [ "( a ..b c -- d )" eval( -- effect ) ]
 [ error>> invalid-row-variable? ] must-fail-with
@@ -51,6 +51,6 @@ IN: effects.tests
 [ error>> row-variable-can't-have-type? ] must-fail-with
 
 ! test curry-effect
-[ ( -- x ) ] [ ( c -- d ) curry-effect ] unit-test
-[ ( -- x x ) ] [ ( -- d ) curry-effect ] unit-test
-[ ( x -- ) ] [ ( a b -- ) curry-effect ] unit-test
+{ ( -- x ) } [ ( c -- d ) curry-effect ] unit-test
+{ ( -- x x ) } [ ( -- d ) curry-effect ] unit-test
+{ ( x -- ) } [ ( a b -- ) curry-effect ] unit-test
index b5a7cdffb1ec868013d872a4c8f93868dba99546..cd28006384855d1f6db1992ac4bba176685aaafc 100644 (file)
@@ -8,8 +8,8 @@ HOOK: my-hook my-var ( -- x )
 M: integer my-hook "an integer" ;
 M: string my-hook "a string" ;
 
-[ "an integer" ] [ 3 my-var set my-hook ] unit-test
-[ "a string" ] [ my-hook my-var set my-hook ] unit-test
+{ "an integer" } [ 3 my-var set my-hook ] unit-test
+{ "a string" } [ my-hook my-var set my-hook ] unit-test
 [ 1.0 my-var set my-hook ] [ T{ no-method f 1.0 my-hook } = ] must-fail-with
 
 HOOK: call-next-hooker my-var ( -- x )
@@ -22,14 +22,14 @@ M: vector call-next-hooker call-next-method "vector " prepend ;
 
 M: growable call-next-hooker call-next-method "growable " prepend ;
 
-[ "vector growable sequence" ] [
+{ "vector growable sequence" } [
     V{ } my-var [ call-next-hooker ] with-variable
 ] unit-test
 
-[ t ] [
+{ t } [
     { } \ nth effective-method nip M\ sequence nth eq?
 ] unit-test
 
-[ t ] [
+{ t } [
     \ + \ nth effective-method nip dup \ nth "default-method" word-prop eq? and
 ] unit-test
index 34f09f87d74a7c2ff1a9ccc569d3367566e7dee9..4dd7e630ee9471242f69792f94bacc1e54dd2259 100644 (file)
@@ -2,20 +2,20 @@ USING: generic.math math tools.test kernel ;
 IN: generic.math.tests
 
 ! Test math-combination
-[ [ [ >float ] dip ] ] [ \ real \ float math-upgrade ] unit-test
-[ [ >float ] ] [ \ float \ real math-upgrade ] unit-test
-[ [ [ >bignum ] dip ] ] [ \ fixnum \ bignum math-upgrade ] unit-test
-[ [ >float ] ] [ \ float \ integer math-upgrade ] unit-test
+{ [ [ >float ] dip ] } [ \ real \ float math-upgrade ] unit-test
+{ [ >float ] } [ \ float \ real math-upgrade ] unit-test
+{ [ [ >bignum ] dip ] } [ \ fixnum \ bignum math-upgrade ] unit-test
+{ [ >float ] } [ \ float \ integer math-upgrade ] unit-test
 
-[ number ] [ number float math-class-max ] unit-test
-[ number ] [ float number math-class-max ] unit-test
-[ float ] [ real float math-class-max ] unit-test
-[ float ] [ float real math-class-max ] unit-test
-[ fixnum ] [ fixnum null math-class-max ] unit-test
-[ fixnum ] [ null fixnum math-class-max ] unit-test
-[ bignum ] [ fixnum bignum math-class-max ] unit-test
-[ bignum ] [ bignum fixnum math-class-max ] unit-test
-[ number ] [ fixnum number math-class-max ] unit-test
-[ number ] [ number fixnum math-class-max ] unit-test
+{ number } [ number float math-class-max ] unit-test
+{ number } [ float number math-class-max ] unit-test
+{ float } [ real float math-class-max ] unit-test
+{ float } [ float real math-class-max ] unit-test
+{ fixnum } [ fixnum null math-class-max ] unit-test
+{ fixnum } [ null fixnum math-class-max ] unit-test
+{ bignum } [ fixnum bignum math-class-max ] unit-test
+{ bignum } [ bignum fixnum math-class-max ] unit-test
+{ number } [ fixnum number math-class-max ] unit-test
+{ number } [ number fixnum math-class-max ] unit-test
 
-[ t ] [ \ + math-generic? ] unit-test
+{ t } [ \ + math-generic? ] unit-test
index 11702b404257745a0e544ff3c35dae325525155c..0d813c37880c233fb8675035ec598a5668cec5fe 100644 (file)
@@ -2,12 +2,12 @@ USING: generic.parser tools.test ;
 
 IN: generic.parser.tests
 
-[ t ] [ ( -- ) ( -- ) method-effect= ] unit-test
-[ t ] [ ( a -- b ) ( x -- y ) method-effect= ] unit-test
-[ f ] [ ( a b -- c ) ( x -- y ) method-effect= ] unit-test
-[ f ] [ ( a -- b ) ( x y -- z ) method-effect= ] unit-test
+{ t } [ ( -- ) ( -- ) method-effect= ] unit-test
+{ t } [ ( a -- b ) ( x -- y ) method-effect= ] unit-test
+{ f } [ ( a b -- c ) ( x -- y ) method-effect= ] unit-test
+{ f } [ ( a -- b ) ( x y -- z ) method-effect= ] unit-test
 
-[ t ] [ ( -- * ) ( -- ) method-effect= ] unit-test
-[ f ] [ ( -- * ) ( x -- y ) method-effect= ] unit-test
-[ t ] [ ( x -- * ) ( x -- y ) method-effect= ] unit-test
-[ t ] [ ( x -- * ) ( x -- y z ) method-effect= ] unit-test
+{ t } [ ( -- * ) ( -- ) method-effect= ] unit-test
+{ f } [ ( -- * ) ( x -- y ) method-effect= ] unit-test
+{ t } [ ( x -- * ) ( x -- y ) method-effect= ] unit-test
+{ t } [ ( x -- * ) ( x -- y z ) method-effect= ] unit-test
index 49de796f3af03d6ffb718b32a49eeff008bcb2eb..88c6034e6a0aad4fe8982da5447259af3f89284a 100644 (file)
@@ -14,16 +14,16 @@ GENERIC: class-of ( x -- y )
 M: fixnum class-of drop "fixnum" ;
 M: word   class-of drop "word"   ;
 
-[ "fixnum" ] [ 5 class-of ] unit-test
-[ "word" ] [ \ class-of class-of ] unit-test
+{ "fixnum" } [ 5 class-of ] unit-test
+{ "word" } [ \ class-of class-of ] unit-test
 [ 3.4 class-of ] must-fail
 
 GENERIC: foobar ( x -- y )
 M: object foobar drop "Hello world" ;
 M: fixnum foobar drop "Goodbye cruel world" ;
 
-[ "Hello world" ] [ 4 foobar foobar ] unit-test
-[ "Goodbye cruel world" ] [ 4 foobar ] unit-test
+{ "Hello world" } [ 4 foobar foobar ] unit-test
+{ "Goodbye cruel world" } [ 4 foobar ] unit-test
 
 GENERIC: lo-tag-test ( obj -- obj' )
 
@@ -32,10 +32,10 @@ M: float lo-tag-test 4 - ;
 M: rational lo-tag-test 2 - ;
 M: complex lo-tag-test sq ;
 
-[ 8 ] [ 5 >bignum lo-tag-test ] unit-test
-[ 0.0 ] [ 4.0 lo-tag-test ] unit-test
-[ -1/2 ] [ 1+1/2 lo-tag-test ] unit-test
-[ -16 ] [ C{ 0 4 } lo-tag-test ] unit-test
+{ 8 } [ 5 >bignum lo-tag-test ] unit-test
+{ 0.0 } [ 4.0 lo-tag-test ] unit-test
+{ -1/2 } [ 1+1/2 lo-tag-test ] unit-test
+{ -16 } [ C{ 0 4 } lo-tag-test ] unit-test
 
 GENERIC: hi-tag-test ( obj -- obj' )
 
@@ -44,11 +44,11 @@ M: integer hi-tag-test 3 + ;
 M: array hi-tag-test [ hi-tag-test ] map ;
 M: sequence hi-tag-test reverse ;
 
-[ B{ 3 2 1 } ] [ B{ 1 2 3 } hi-tag-test ] unit-test
+{ B{ 3 2 1 } } [ B{ 1 2 3 } hi-tag-test ] unit-test
 
-[ { 6 9 12 } ] [ { 3 6 9 } hi-tag-test ] unit-test
+{ { 6 9 12 } } [ { 3 6 9 } hi-tag-test ] unit-test
 
-[ "i like monkeys, in bed" ] [ "i like monkeys" hi-tag-test ] unit-test
+{ "i like monkeys, in bed" } [ "i like monkeys" hi-tag-test ] unit-test
 
 UNION: funnies quotation float complex ;
 
@@ -60,11 +60,11 @@ GENERIC: union-containment ( x -- y )
 M: integer union-containment drop 1 ;
 M: number union-containment drop 2 ;
 
-[ 1 ] [ 1 union-containment ] unit-test
-[ 2 ] [ 1.0 union-containment ] unit-test
+{ 1 } [ 1 union-containment ] unit-test
+{ 2 } [ 1.0 union-containment ] unit-test
 
-[ 2 ] [ [ { } ] funny ] unit-test
-[ 0 ] [ { } funny ] unit-test
+{ 2 } [ [ { } ] funny ] unit-test
+{ 0 } [ { } funny ] unit-test
 
 TUPLE: shape ;
 
@@ -88,9 +88,9 @@ M: abstract-rectangle area [ width>> ] [ height>> ] bi * ;
 
 M: circle area radius>> sq pi * ;
 
-[ 12 ] [ 4 3 <rectangle> area ] unit-test
-[ 12 ] [ 4 3 2 <parallelogram> area ] unit-test
-[ t ] [ 2 <circle> area 4 pi * = ] unit-test
+{ 12 } [ 4 3 <rectangle> area ] unit-test
+{ 12 } [ 4 3 2 <parallelogram> area ] unit-test
+{ t } [ 2 <circle> area 4 pi * = ] unit-test
 
 GENERIC: perimeter ( shape -- n )
 
@@ -109,15 +109,15 @@ M: parallelogram perimeter
 
 M: circle perimeter 2 * pi * ;
 
-[ 14 ] [ 4 3 <rectangle> perimeter ] unit-test
-[ 30.0 ] [ 10 4 3 <parallelogram> perimeter ] unit-test
+{ 14 } [ 4 3 <rectangle> perimeter ] unit-test
+{ 30.0 } [ 10 4 3 <parallelogram> perimeter ] unit-test
 
 PREDICATE: very-funny < funnies number? ;
 
 GENERIC: gooey ( x -- y )
 M: very-funny gooey sq ;
 
-[ 0.25 ] [ 0.5 gooey ] unit-test
+{ 0.25 } [ 0.5 gooey ] unit-test
 
 GENERIC: empty-method-test ( x -- y )
 M: object empty-method-test ;
@@ -129,8 +129,8 @@ M: for-arguments-sake empty-method-test drop "Hi" ;
 TUPLE: another-one ;
 C: <another-one> another-one
 
-[ "Hi" ] [ <for-arguments-sake> empty-method-test empty-method-test ] unit-test
-[ T{ another-one f } ] [ <another-one> empty-method-test ] unit-test
+{ "Hi" } [ <for-arguments-sake> empty-method-test empty-method-test ] unit-test
+{ T{ another-one f } } [ <another-one> empty-method-test ] unit-test
 
 GENERIC: big-mix-test ( obj -- obj' )
 
@@ -156,21 +156,21 @@ M: parallelogram big-mix-test drop "parallelogram" ;
 
 M: circle big-mix-test drop "circle" ;
 
-[ "integer" ] [ 3 big-mix-test ] unit-test
-[ "float" ] [ 5.0 big-mix-test ] unit-test
-[ "complex" ] [ -1 sqrt big-mix-test ] unit-test
-[ "sequence" ] [ B{ 1 2 3 } big-mix-test ] unit-test
-[ "sequence" ] [ ?{ t f t } big-mix-test ] unit-test
-[ "sequence" ] [ SBUF" hello world" big-mix-test ] unit-test
-[ "sequence" ] [ V{ "a" "b" } big-mix-test ] unit-test
-[ "sequence" ] [ BV{ 1 2 } big-mix-test ] unit-test
-[ "sequence" ] [ ?V{ t t f f } big-mix-test ] unit-test
-[ "string" ] [ "hello" big-mix-test ] unit-test
-[ "rectangle" ] [ 1 2 <rectangle> big-mix-test ] unit-test
-[ "parallelogram" ] [ 10 4 3 <parallelogram> big-mix-test ] unit-test
-[ "circle" ] [ 100 <circle> big-mix-test ] unit-test
-[ "tuple" ] [ H{ } big-mix-test ] unit-test
-[ "object" ] [ \ + big-mix-test ] unit-test
+{ "integer" } [ 3 big-mix-test ] unit-test
+{ "float" } [ 5.0 big-mix-test ] unit-test
+{ "complex" } [ -1 sqrt big-mix-test ] unit-test
+{ "sequence" } [ B{ 1 2 3 } big-mix-test ] unit-test
+{ "sequence" } [ ?{ t f t } big-mix-test ] unit-test
+{ "sequence" } [ SBUF" hello world" big-mix-test ] unit-test
+{ "sequence" } [ V{ "a" "b" } big-mix-test ] unit-test
+{ "sequence" } [ BV{ 1 2 } big-mix-test ] unit-test
+{ "sequence" } [ ?V{ t t f f } big-mix-test ] unit-test
+{ "string" } [ "hello" big-mix-test ] unit-test
+{ "rectangle" } [ 1 2 <rectangle> big-mix-test ] unit-test
+{ "parallelogram" } [ 10 4 3 <parallelogram> big-mix-test ] unit-test
+{ "circle" } [ 100 <circle> big-mix-test ] unit-test
+{ "tuple" } [ H{ } big-mix-test ] unit-test
+{ "object" } [ \ + big-mix-test ] unit-test
 
 GENERIC: small-lo-tag ( obj -- obj )
 
@@ -184,23 +184,23 @@ M: double-array small-lo-tag drop "double-array" ;
 
 M: byte-array small-lo-tag drop "byte-array" ;
 
-[ "fixnum" ] [ 3 small-lo-tag ] unit-test
+{ "fixnum" } [ 3 small-lo-tag ] unit-test
 
-[ "double-array" ] [ double-array{ 1.0 } small-lo-tag ] unit-test
+{ "double-array" } [ double-array{ 1.0 } small-lo-tag ] unit-test
 
 ! Testing recovery from bad method definitions
 "IN: generic.standard.tests GENERIC: unhappy ( x -- x )" eval( -- )
 [
     "IN: generic.standard.tests M: dictionary unhappy ;" eval( -- )
 ] must-fail
-[ ] [ "IN: generic.standard.tests GENERIC: unhappy ( x -- x )" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests GENERIC: unhappy ( x -- x )" eval( -- ) ] unit-test
 
 GENERIC# complex-combination 1 ( a b -- c )
 M: string complex-combination drop ;
 M: object complex-combination nip ;
 
-[ "hi" ] [ "hi" 3 complex-combination ] unit-test
-[ "hi" ] [ 3 "hi" complex-combination ] unit-test
+{ "hi" } [ "hi" 3 complex-combination ] unit-test
+{ "hi" } [ 3 "hi" complex-combination ] unit-test
 
 ! Regression
 TUPLE: first-one ;
@@ -213,7 +213,7 @@ M: second-one wii drop 4 ;
 M: tuple-class wii drop 5 ;
 M: integer wii drop 6 ;
 
-[ 3 ] [ T{ first-one } wii ] unit-test
+{ 3 } [ T{ first-one } wii ] unit-test
 
 GENERIC: tag-and-f ( x -- x x )
 
@@ -225,27 +225,27 @@ M: float tag-and-f 3 ;
 
 M: f tag-and-f 4 ;
 
-[ f 4 ] [ f tag-and-f ] unit-test
+{ f 4 } [ f tag-and-f ] unit-test
 
-[ 3.4 3 ] [ 3.4 tag-and-f ] unit-test
+{ 3.4 3 } [ 3.4 tag-and-f ] unit-test
 
 ! Issues with forget
 GENERIC: generic-forget-test ( a -- b )
 
 M: f generic-forget-test ;
 
-[ ] [ \ f \ generic-forget-test lookup-method "m" set ] unit-test
+{ } [ \ f \ generic-forget-test lookup-method "m" set ] unit-test
 
-[ ] [ [ "m" get forget ] with-compilation-unit ] unit-test
+{ } [ [ "m" get forget ] with-compilation-unit ] unit-test
 
-[ ] [ "IN: generic.standard.tests M: f generic-forget-test ;" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests M: f generic-forget-test ;" eval( -- ) ] unit-test
 
-[ ] [ [ "m" get forget ] with-compilation-unit ] unit-test
+{ } [ [ "m" get forget ] with-compilation-unit ] unit-test
 
-[ f ] [ f generic-forget-test ] unit-test
+{ f } [ f generic-forget-test ] unit-test
 
 ! erg's regression
-[ ] [
+{ } [
     """IN: generic.standard.tests
 
     GENERIC: jeah ( a -- b )
@@ -305,17 +305,17 @@ M: ceo salary
 
 [ salary ] must-infer
 
-[ 24000 ] [ employee boa salary ] unit-test
+{ 24000 } [ employee boa salary ] unit-test
 
-[ 24000 ] [ tape-monkey boa salary ] unit-test
+{ 24000 } [ tape-monkey boa salary ] unit-test
 
-[ 36000 ] [ junior-manager boa salary ] unit-test
+{ 36000 } [ junior-manager boa salary ] unit-test
 
-[ 41000 ] [ middle-manager boa salary ] unit-test
+{ 41000 } [ middle-manager boa salary ] unit-test
 
-[ 51000 ] [ senior-manager boa salary ] unit-test
+{ 51000 } [ senior-manager boa salary ] unit-test
 
-[ 102000 ] [ executive boa salary ] unit-test
+{ 102000 } [ executive boa salary ] unit-test
 
 [ ceo boa salary ]
 [ T{ inconsistent-next-method f ceo salary } = ] must-fail-with
@@ -349,21 +349,21 @@ M: c funky* "c" , call-next-method ;
 
 : funky ( obj -- seq ) [ funky* ] { } make ;
 
-[ { "b" "x" "z" } ] [ T{ b } funky ] unit-test
+{ { "b" "x" "z" } } [ T{ b } funky ] unit-test
 
-[ { "c" "y" "z" } ] [ T{ c } funky ] unit-test
+{ { "c" "y" "z" } } [ T{ c } funky ] unit-test
 
-[ t ] [
+{ t } [
     T{ a } funky
     { { "a" "x" "z" } { "a" "y" "z" } } member?
 ] unit-test
 
 ! Changing method combination should not fail
-[ ] [ "IN: generic.standard.tests GENERIC: xyz ( a -- b )" eval( -- ) ] unit-test
-[ ] [ "IN: generic.standard.tests MATH: xyz ( a b -- c )" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests GENERIC: xyz ( a -- b )" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests MATH: xyz ( a b -- c )" eval( -- ) ] unit-test
 
-[ f ] [ "xyz" "generic.standard.tests" lookup-word pic-def>> ] unit-test
-[ f ] [ "xyz" "generic.standard.tests" lookup-word "decision-tree" word-prop ] unit-test
+{ f } [ "xyz" "generic.standard.tests" lookup-word pic-def>> ] unit-test
+{ f } [ "xyz" "generic.standard.tests" lookup-word "decision-tree" word-prop ] unit-test
 
 ! Corner case
 [ "IN: generic.standard.tests GENERIC# broken-generic# -1 ( a -- b )" eval( -- ) ]
@@ -371,28 +371,28 @@ M: c funky* "c" , call-next-method ;
 must-fail-with
 
 ! Generic words cannot be inlined
-[ ] [ "IN: generic.standard.tests GENERIC: foo ( -- x )" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests GENERIC: foo ( -- x )" eval( -- ) ] unit-test
 [ "IN: generic.standard.tests GENERIC: foo ( -- x ) inline" eval( -- ) ] must-fail
 
 ! Moving a method from one vocab to another didn't always work
 GENERIC: move-method-generic ( a -- b )
 
-[ ] [ "IN: generic.standard.tests.a USE: strings USE: generic.standard.tests M: string move-method-generic ;" <string-reader> "move-method-test-1" parse-stream drop ] unit-test
+{ } [ "IN: generic.standard.tests.a USE: strings USE: generic.standard.tests M: string move-method-generic ;" <string-reader> "move-method-test-1" parse-stream drop ] unit-test
 
-[ ] [ "IN: generic.standard.tests.b USE: strings USE: generic.standard.tests M: string move-method-generic ;" <string-reader> "move-method-test-2" parse-stream drop ] unit-test
+{ } [ "IN: generic.standard.tests.b USE: strings USE: generic.standard.tests M: string move-method-generic ;" <string-reader> "move-method-test-2" parse-stream drop ] unit-test
 
-[ ] [ "IN: generic.standard.tests.a" <string-reader> "move-method-test-1" parse-stream drop ] unit-test
+{ } [ "IN: generic.standard.tests.a" <string-reader> "move-method-test-1" parse-stream drop ] unit-test
 
-[ { string } ] [ \ move-method-generic order ] unit-test
+{ { string } } [ \ move-method-generic order ] unit-test
 
 ! FORGET: on method wrappers
 GENERIC: forget-test ( a -- b )
 
 M: integer forget-test 3 + ;
 
-[ ] [ "IN: generic.standard.tests USE: math FORGET: M\\ integer forget-test" eval( -- ) ] unit-test
+{ } [ "IN: generic.standard.tests USE: math FORGET: M\\ integer forget-test" eval( -- ) ] unit-test
 
-[ { } ] [
+{ { } } [
     \ + effect-dependencies-of keys [ method? ] filter
     [ "method-generic" word-prop \ forget-test eq? ] filter
 ] unit-test
@@ -403,14 +403,14 @@ M: integer forget-test 3 + ;
 GENERIC: flushable-generic ( a -- b ) flushable
 M: integer flushable-generic ;
 
-[ t ] [ \ flushable-generic flushable? ] unit-test
-[ t ] [ M\ integer flushable-generic flushable? ] unit-test
+{ t } [ \ flushable-generic flushable? ] unit-test
+{ t } [ M\ integer flushable-generic flushable? ] unit-test
 
 GENERIC: non-flushable-generic ( a -- b )
 M: integer non-flushable-generic ; flushable
 
-[ f ] [ \ non-flushable-generic flushable? ] unit-test
-[ t ] [ M\ integer non-flushable-generic flushable? ] unit-test
+{ f } [ \ non-flushable-generic flushable? ] unit-test
+{ t } [ M\ integer non-flushable-generic flushable? ] unit-test
 
 ! method-for-object, method-for-class, effective-method
 GENERIC: foozul ( a -- b )
@@ -418,13 +418,13 @@ M: reversed foozul ;
 M: integer foozul ;
 M: slice foozul ;
 
-[ ] [ reversed \ foozul method-for-class M\ reversed foozul assert= ] unit-test
-[ ] [ { 1 2 3 } <reversed> \ foozul method-for-object M\ reversed foozul assert= ] unit-test
-[ ] [ { 1 2 3 } <reversed> \ foozul effective-method M\ reversed foozul assert= drop ] unit-test
+{ } [ reversed \ foozul method-for-class M\ reversed foozul assert= ] unit-test
+{ } [ { 1 2 3 } <reversed> \ foozul method-for-object M\ reversed foozul assert= ] unit-test
+{ } [ { 1 2 3 } <reversed> \ foozul effective-method M\ reversed foozul assert= drop ] unit-test
 
-[ ] [ fixnum \ foozul method-for-class M\ integer foozul assert= ] unit-test
-[ ] [ 13 \ foozul method-for-object M\ integer foozul assert= ] unit-test
-[ ] [ 13 \ foozul effective-method M\ integer foozul assert= drop ] unit-test
+{ } [ fixnum \ foozul method-for-class M\ integer foozul assert= ] unit-test
+{ } [ 13 \ foozul method-for-object M\ integer foozul assert= ] unit-test
+{ } [ 13 \ foozul effective-method M\ integer foozul assert= drop ] unit-test
 
 ! Ensure dynamic and static dispatch match in ambiguous cases
 UNION: amb-union-1a integer float ;
@@ -435,12 +435,12 @@ GENERIC: amb-generic-1 ( a -- b )
 M: amb-union-1a amb-generic-1 drop "a" ;
 M: amb-union-1b amb-generic-1 drop "b" ;
 
-[ ] [
+{ } [
     5.0 amb-generic-1
     5.0 \ amb-generic-1 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     5.0 amb-generic-1
     5.0 float \ amb-generic-1 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -453,12 +453,12 @@ GENERIC: amb-generic-2 ( a -- b )
 M: amb-union-2a amb-generic-2 drop "a" ;
 M: amb-union-2b amb-generic-2 drop "b" ;
 
-[ ] [
+{ } [
     5.0 amb-generic-1
     5.0 \ amb-generic-1 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     5.0 amb-generic-1
     5.0 float \ amb-generic-1 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -472,7 +472,7 @@ GENERIC: amb-generic-3 ( a -- b )
 M: amb-tuple-b amb-generic-3 drop "b" ;
 M: amb-tuple-c amb-generic-3 drop "c" ;
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-3
     T{ amb-tuple-b f 3 } \ amb-generic-3 effective-method execute( a -- b ) assert=
 ] unit-test
@@ -485,12 +485,12 @@ GENERIC: amb-generic-4 ( a -- b )
 M: amb-tuple-b amb-generic-4 drop "b" ;
 M: amb-union-4 amb-generic-4 drop "4" ;
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-4
     T{ amb-tuple-b f 3 } \ amb-generic-4 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-4
     T{ amb-tuple-b f 3 } amb-tuple-b \ amb-generic-4 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -504,12 +504,12 @@ GENERIC: amb-generic-5 ( a -- b )
 M: amb-tuple-b amb-generic-5 drop "b" ;
 M: amb-mixin-5 amb-generic-5 drop "5" ;
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-5
     T{ amb-tuple-b f 3 } \ amb-generic-5 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-5
     T{ amb-tuple-b f 3 } amb-tuple-b \ amb-generic-5 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -521,12 +521,12 @@ GENERIC: amb-generic-6 ( a -- b )
 M: amb-tuple-a amb-generic-6 drop "a" ;
 M: amb-union-6 amb-generic-6 drop "6" ;
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-6
     T{ amb-tuple-b f 3 } \ amb-generic-6 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-6
     T{ amb-tuple-b f 3 } amb-tuple-b \ amb-generic-6 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -540,12 +540,12 @@ GENERIC: amb-generic-7 ( a -- b )
 M: amb-tuple-a amb-generic-7 drop "a" ;
 M: amb-mixin-7 amb-generic-7 drop "7" ;
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-7
     T{ amb-tuple-b f 3 } \ amb-generic-7 effective-method execute( a -- b ) assert=
 ] unit-test
 
-[ ] [
+{ } [
     T{ amb-tuple-b f 3 } amb-generic-7
     T{ amb-tuple-b f 3 } amb-tuple-b \ amb-generic-7 method-for-class execute( a -- b ) assert=
 ] unit-test
@@ -561,7 +561,7 @@ GENERIC: amb-generic-8 ( a -- b )
 M: amb-union-8 amb-generic-8 drop "8" ;
 M: amb-predicate-a amb-generic-8 drop "a" ;
 
-[ ] [
+{ } [
     4 amb-generic-8
     4 \ amb-generic-8 effective-method execute( a -- b ) assert=
 ] unit-test
index 7c4942d7fa48baed85ef09b38148d321c819591f..3eb7bc5288b15a0208baa3f9af09ed7ef17ee6af 100644 (file)
@@ -3,7 +3,7 @@ layouts ;
 IN: growable.tests
 
 ! erg found this one
-[ fixnum ] [
+{ fixnum } [
     2 >bignum V{ } [ set-length ] keep length class-of
 ] unit-test
 
index 2432d9c5bf8086dc15ca6703de1046bb10bb081d..a85f1a49e1930cad5f61b2d21f8acd3f1b65dc01 100644 (file)
@@ -3,37 +3,37 @@
 USING: sets tools.test kernel sorting prettyprint hash-sets ;
 IN: hash-sets.tests
 
-[ { 1 2 3 } ] [ HS{ 1 2 3 } members natural-sort ] unit-test
+{ { 1 2 3 } } [ HS{ 1 2 3 } members natural-sort ] unit-test
 
-[ "HS{ 1 2 3 4 }" ] [ HS{ 1 2 3 4 } unparse ] unit-test
+{ "HS{ 1 2 3 4 }" } [ HS{ 1 2 3 4 } unparse ] unit-test
 
-[ t ] [ 1 HS{ 0 1 2 } in? ] unit-test
-[ f ] [ 3 HS{ 0 1 2 } in? ] unit-test
-[ HS{ 1 2 3 } ] [ 3 HS{ 1 2 } clone [ adjoin ] keep ] unit-test
-[ HS{ 1 2 } ] [ 2 HS{ 1 2 } clone [ adjoin ] keep ] unit-test
-[ HS{ 1 2 3 } ] [ 4 HS{ 1 2 3 } clone [ delete ] keep ] unit-test
-[ HS{ 1 2 } ] [ 3 HS{ 1 2 3 } clone [ delete ] keep ] unit-test
-[ HS{ 1 2 } ] [ HS{ 1 2 } fast-set ] unit-test
-[ { 1 2 } ] [ HS{ 1 2 } members natural-sort ] unit-test
+{ t } [ 1 HS{ 0 1 2 } in? ] unit-test
+{ f } [ 3 HS{ 0 1 2 } in? ] unit-test
+{ HS{ 1 2 3 } } [ 3 HS{ 1 2 } clone [ adjoin ] keep ] unit-test
+{ HS{ 1 2 } } [ 2 HS{ 1 2 } clone [ adjoin ] keep ] unit-test
+{ HS{ 1 2 3 } } [ 4 HS{ 1 2 3 } clone [ delete ] keep ] unit-test
+{ HS{ 1 2 } } [ 3 HS{ 1 2 3 } clone [ delete ] keep ] unit-test
+{ HS{ 1 2 } } [ HS{ 1 2 } fast-set ] unit-test
+{ { 1 2 } } [ HS{ 1 2 } members natural-sort ] unit-test
 
-[ HS{ 1 2 3 4 } ] [ HS{ 1 2 3 } HS{ 2 3 4 } union ] unit-test
-[ HS{ 2 3 } ] [ HS{ 1 2 3 } HS{ 2 3 4 } intersect ] unit-test
-[ t ] [ HS{ 1 2 3 } HS{ 2 3 4 } intersects? ] unit-test
-[ f ] [ HS{ 1 } HS{ 2 3 4 } intersects? ] unit-test
-[ f ] [ HS{ 1 } HS{ 2 3 4 } subset? ] unit-test
-[ f ] [ HS{ 1 2 3 } HS{ 2 3 4 } subset? ] unit-test
-[ t ] [ HS{ 2 3 } HS{ 2 3 4 } subset? ] unit-test
-[ t ] [ HS{ } HS{ 2 3 4 } subset? ] unit-test
-[ HS{ 1 } ] [ HS{ 1 2 3 } HS{ 2 3 4 } diff ] unit-test
-[ t ] [ HS{ 1 2 3 } HS{ 2 1 3 } set= ] unit-test
-[ t ] [ HS{ 1 2 3 } HS{ 2 1 3 } = ] unit-test
-[ f ] [ HS{ 2 3 } HS{ 2 1 3 } set= ] unit-test
-[ f ] [ HS{ 1 2 3 } HS{ 2 3 } set= ] unit-test
+{ HS{ 1 2 3 4 } } [ HS{ 1 2 3 } HS{ 2 3 4 } union ] unit-test
+{ HS{ 2 3 } } [ HS{ 1 2 3 } HS{ 2 3 4 } intersect ] unit-test
+{ t } [ HS{ 1 2 3 } HS{ 2 3 4 } intersects? ] unit-test
+{ f } [ HS{ 1 } HS{ 2 3 4 } intersects? ] unit-test
+{ f } [ HS{ 1 } HS{ 2 3 4 } subset? ] unit-test
+{ f } [ HS{ 1 2 3 } HS{ 2 3 4 } subset? ] unit-test
+{ t } [ HS{ 2 3 } HS{ 2 3 4 } subset? ] unit-test
+{ t } [ HS{ } HS{ 2 3 4 } subset? ] unit-test
+{ HS{ 1 } } [ HS{ 1 2 3 } HS{ 2 3 4 } diff ] unit-test
+{ t } [ HS{ 1 2 3 } HS{ 2 1 3 } set= ] unit-test
+{ t } [ HS{ 1 2 3 } HS{ 2 1 3 } = ] unit-test
+{ f } [ HS{ 2 3 } HS{ 2 1 3 } set= ] unit-test
+{ f } [ HS{ 1 2 3 } HS{ 2 3 } set= ] unit-test
 
-[ HS{ 1 2 } HS{ 1 2 3 } ] [ HS{ 1 2 } clone dup clone [ 3 swap adjoin ] keep ] unit-test
+{ HS{ 1 2 } HS{ 1 2 3 } } [ HS{ 1 2 } clone dup clone [ 3 swap adjoin ] keep ] unit-test
 
-[ t ] [ HS{ } null? ] unit-test
-[ f ] [ HS{ 1 } null? ] unit-test
+{ t } [ HS{ } null? ] unit-test
+{ f } [ HS{ 1 } null? ] unit-test
 
 { { } } [ { 1 2 3 } duplicates ] unit-test
 { f } [ { 1 2 3 } >hash-set duplicates ] unit-test
index 5a6ba05e9e52708a8d4a03a062785962bccef30f..f188b8610e652402318b152a0001785d17a371c2 100644 (file)
@@ -3,19 +3,19 @@ math namespaces prettyprint sequences sequences.private
 tools.test vectors ;
 IN: hashtables.tests
 
-[ H{ } ] [ { } [ dup ] H{ } map>assoc ] unit-test
+{ H{ } } [ { } [ dup ] H{ } map>assoc ] unit-test
 
-[ ] [ 1000 iota [ dup sq ] H{ } map>assoc "testhash" set ] unit-test
+{ } [ 1000 iota [ dup sq ] H{ } map>assoc "testhash" set ] unit-test
 
-[ V{ } ]
+{ V{ } }
 [ 1000 iota [ dup sq swap "testhash" get at = ] reject ]
 unit-test
 
-[ t ]
+{ t }
 [ "testhash" get hashtable? ]
 unit-test
 
-[ f ]
+{ f }
 [ { 1 { 2 3 } } hashtable? ]
 unit-test
 
@@ -27,11 +27,11 @@ unit-test
 
 ! Test some hashcodes.
 
-[ t ] [ [ 1 2 3 ] hashcode [ 1 2 3 ] hashcode = ] unit-test
-[ t ] [ [ 1 [ 2 3 ] 4 ] hashcode [ 1 [ 2 3 ] 4 ] hashcode = ] unit-test
+{ t } [ [ 1 2 3 ] hashcode [ 1 2 3 ] hashcode = ] unit-test
+{ t } [ [ 1 [ 2 3 ] 4 ] hashcode [ 1 [ 2 3 ] 4 ] hashcode = ] unit-test
 
-[ t ] [ 12 hashcode 12 hashcode = ] unit-test
-[ t ] [ 12 >bignum hashcode 12 hashcode = ] unit-test
+{ t } [ 12 hashcode 12 hashcode = ] unit-test
+{ t } [ 12 >bignum hashcode 12 hashcode = ] unit-test
 
 ! Test various odd keys to see if they work.
 
@@ -41,9 +41,9 @@ t { 2 3 } "testhash" get set-at
 f 100000000000000000000000000 "testhash" get set-at
 { } { [ { } ] } "testhash" get set-at
 
-[ t ] [ { 2 3 } "testhash" get at ] unit-test
-[ f ] [ 100000000000000000000000000 "testhash" get at* drop ] unit-test
-[ { } ] [ { [ { } ] } clone "testhash" get at* drop ] unit-test
+{ t } [ { 2 3 } "testhash" get at ] unit-test
+{ f } [ 100000000000000000000000000 "testhash" get at* drop ] unit-test
+{ { } } [ { [ { } ] } clone "testhash" get at* drop ] unit-test
 
 ! Regression
 3 <hashtable> "broken-remove" set
@@ -51,7 +51,7 @@ f 100000000000000000000000000 "testhash" get set-at
 2 W{ \ = } dup "y" set "broken-remove" get set-at
 "x" get "broken-remove" get delete-at
 2 "y" get "broken-remove" get set-at
-[ 1 ] [ "broken-remove" get keys length ] unit-test
+{ 1 } [ "broken-remove" get keys length ] unit-test
 
 {
     { "salmon" "fish" }
@@ -60,30 +60,30 @@ f 100000000000000000000000000 "testhash" get set-at
     { "visual basic" "language" }
 } >hashtable "testhash" set
 
-[ f f ] [
+{ f f } [
     "visual basic" "testhash" get delete-at
     "visual basic" "testhash" get at*
 ] unit-test
 
-[ t ] [ H{ } dup = ] unit-test
-[ f ] [ "xyz" H{ } = ] unit-test
-[ t ] [ H{ } H{ } = ] unit-test
-[ f ] [ H{ { 1 3 } } H{ } = ] unit-test
-[ f ] [ H{ } H{ { 1 3 } } = ] unit-test
-[ t ] [ H{ { 1 3 } } H{ { 1 3 } } = ] unit-test
-[ f ] [ H{ { 1 3 } } H{ { 1 "hey" } } = ] unit-test
+{ t } [ H{ } dup = ] unit-test
+{ f } [ "xyz" H{ } = ] unit-test
+{ t } [ H{ } H{ } = ] unit-test
+{ f } [ H{ { 1 3 } } H{ } = ] unit-test
+{ f } [ H{ } H{ { 1 3 } } = ] unit-test
+{ t } [ H{ { 1 3 } } H{ { 1 3 } } = ] unit-test
+{ f } [ H{ { 1 3 } } H{ { 1 "hey" } } = ] unit-test
 
 ! Testing the hash element counting
 
 H{ } clone "counting" set
 "value" "key" "counting" get set-at
-[ 1 ] [ "counting" get assoc-size ] unit-test
+{ 1 } [ "counting" get assoc-size ] unit-test
 "value" "key" "counting" get set-at
-[ 1 ] [ "counting" get assoc-size ] unit-test
+{ 1 } [ "counting" get assoc-size ] unit-test
 "key" "counting" get delete-at
-[ 0 ] [ "counting" get assoc-size ] unit-test
+{ 0 } [ "counting" get assoc-size ] unit-test
 "key" "counting" get delete-at
-[ 0 ] [ "counting" get assoc-size ] unit-test
+{ 0 } [ "counting" get assoc-size ] unit-test
 
 ! Test rehashing
 
@@ -96,17 +96,17 @@ H{ } clone "counting" set
 5 5 "rehash" get set-at
 6 6 "rehash" get set-at
 
-[ 6 ] [ "rehash" get assoc-size ] unit-test
+{ 6 } [ "rehash" get assoc-size ] unit-test
 
-[ 6 ] [ "rehash" get clone assoc-size ] unit-test
+{ 6 } [ "rehash" get clone assoc-size ] unit-test
 
 "rehash" get clear-assoc
 
-[ 0 ] [ "rehash" get assoc-size ] unit-test
+{ 0 } [ "rehash" get assoc-size ] unit-test
 
-[
+{
     3
-] [
+} [
     2 H{
         { 1 2 }
         { 2 3 }
@@ -118,17 +118,17 @@ H{ } clone "counting" set
 
 10 [ f f "f-hash-test" get set-at ] times
 
-[ 1 ] [ "f-hash-test" get assoc-size ] unit-test
+{ 1 } [ "f-hash-test" get assoc-size ] unit-test
 
 ! Resource leak...
 H{ } "x" set
 100 [ drop "x" get clear-assoc ] each-integer
 
 ! Crash discovered by erg
-[ t ] [ 0.75 <hashtable> dup clone = ] unit-test
+{ t } [ 0.75 <hashtable> dup clone = ] unit-test
 
 ! Another crash discovered by erg
-[ ] [
+{ } [
     H{ } clone
     [ 1 swap set-at ] ignore-errors
     [ 2 swap set-at ] ignore-errors
@@ -136,13 +136,13 @@ H{ } "x" set
     drop
 ] unit-test
 
-[ H{ { -1 4 } { -3 16 } { -5 36 } } ] [
+{ H{ { -1 4 } { -3 16 } { -5 36 } } } [
     H{ { 1 2 } { 3 4 } { 5 6 } }
     [ [ neg ] dip sq ] assoc-map
 ] unit-test
 
 ! Bug discovered by littledan
-[ { 5 5 5 5 } ] [
+{ { 5 5 5 5 } } [
     [
         H{
             { 1 2 }
@@ -159,22 +159,22 @@ H{ } "x" set
     ] { } make
 ] unit-test
 
-[ { "one" "two" 3 } ] [
+{ { "one" "two" 3 } } [
     { 1 2 3 } H{ { 1 "one" } { 2 "two" } } substitute
 ] unit-test
 
 ! We want this to work
-[ ] [ hashtable new "h" set ] unit-test
+{ } [ hashtable new "h" set ] unit-test
 
-[ 0 ] [ "h" get assoc-size ] unit-test
+{ 0 } [ "h" get assoc-size ] unit-test
 
-[ f f ] [ "goo" "h" get at* ] unit-test
+{ f f } [ "goo" "h" get at* ] unit-test
 
-[ ] [ 1 2 "h" get set-at ] unit-test
+{ } [ 1 2 "h" get set-at ] unit-test
 
-[ 1 ] [ "h" get assoc-size ] unit-test
+{ 1 } [ "h" get assoc-size ] unit-test
 
-[ 1 ] [ 2 "h" get at ] unit-test
+{ 1 } [ 2 "h" get at ] unit-test
 
 ! Random test case
-[ "A" ] [ 100 iota [ dup ] H{ } map>assoc 32 over delete-at "A" 32 pick set-at 32 of ] unit-test
+{ "A" } [ 100 iota [ dup ] H{ } map>assoc 32 over delete-at "A" 32 pick set-at 32 of ] unit-test
index 7d668eeab117578d28cdd06843fd9bbbd928a009..58fa4b824305d37a6e1d73070177dcda62a7159f 100644 (file)
@@ -1,4 +1,4 @@
 USING: tools.test io.backend kernel ;
 IN: io.backend.tests
 
-[ ] [ "a" normalize-path drop ] unit-test
+{ } [ "a" normalize-path drop ] unit-test
index a386c6d3caad3a43d3121b699e4e08489a33de3c..a06d68411a802e8891bc5d77eb56d0d2def4239c 100644 (file)
@@ -1,10 +1,10 @@
 USING: io.binary tools.test classes math ;
 IN: io.binary.tests
 
-[ 0x03020100 ] [ B{ 0 1 2 3 } le> ] unit-test
-[ 0x00010203 ] [ B{ 0 1 2 3 } be> ] unit-test
+{ 0x03020100 } [ B{ 0 1 2 3 } le> ] unit-test
+{ 0x00010203 } [ B{ 0 1 2 3 } be> ] unit-test
 
-[ 0x332211 ] [
+{ 0x332211 } [
     B{ 0x11 0x22 0x33 } le>
 ] unit-test
 
@@ -14,24 +14,24 @@ IN: io.binary.tests
 { -12 } [ B{ 0xf4 0xff 0xff 0xff } signed-le> ] unit-test
 { -12 } [ B{ 0xff 0xff 0xff 0xf4 } signed-be> ] unit-test
 
-[ 0x7a2c793b2ff08554 ] [
+{ 0x7a2c793b2ff08554 } [
     B{ 0x54 0x85 0xf0 0x2f 0x3b 0x79 0x2c 0x7a } le>
 ] unit-test
 
-[ 0x988a259c3433f237 ] [
+{ 0x988a259c3433f237 } [
     B{ 0x37 0xf2 0x33 0x34 0x9c 0x25 0x8a 0x98 } le>
 ] unit-test
 
-[ B{ 0 0 4 0xd2 } ] [ 1234 4 >be ] unit-test
-[ B{ 0 0 0 0 0 0 4 0xd2 } ] [ 1234 8 >be ] unit-test
-[ B{ 0xd2 4 0 0 } ] [ 1234 4 >le ] unit-test
-[ B{ 0xd2 4 0 0 0 0 0 0 } ] [ 1234 8 >le ] unit-test
+{ B{ 0 0 4 0xd2 } } [ 1234 4 >be ] unit-test
+{ B{ 0 0 0 0 0 0 4 0xd2 } } [ 1234 8 >be ] unit-test
+{ B{ 0xd2 4 0 0 } } [ 1234 4 >le ] unit-test
+{ B{ 0xd2 4 0 0 0 0 0 0 } } [ 1234 8 >le ] unit-test
 
-[ 1234 ] [ 1234 4 >be be> ] unit-test
-[ 1234 ] [ 1234 4 >le le> ] unit-test
+{ 1234 } [ 1234 4 >be be> ] unit-test
+{ 1234 } [ 1234 4 >le le> ] unit-test
 
-[ fixnum ] [ B{ 0 0 0 0 0 0 0 0 0 0 } be> class-of ] unit-test
+{ fixnum } [ B{ 0 0 0 0 0 0 0 0 0 0 } be> class-of ] unit-test
 
-[ 0x56780000 0x12340000 ] [ 0x1234000056780000 d>w/w ] unit-test
-[ 0x5678 0x1234 ] [ 0x12345678 w>h/h ] unit-test
-[ 0x34 0x12 ] [ 0x1234 h>b/b ] unit-test
+{ 0x56780000 0x12340000 } [ 0x1234000056780000 d>w/w ] unit-test
+{ 0x5678 0x1234 } [ 0x12345678 w>h/h ] unit-test
+{ 0x34 0x12 } [ 0x1234 h>b/b ] unit-test
index 13fee51d500d7f10806916c780c82e123c0975e2..f8de3e1fa6622a01f561d708d8075c124854eec4 100644 (file)
@@ -1,9 +1,9 @@
 USING: io.encodings.string io.encodings.ascii tools.test strings arrays ;
 IN: io.encodings.ascii.tests
 
-[ B{ CHAR: f CHAR: o CHAR: o } ] [ "foo" ascii encode ] unit-test
+{ B{ CHAR: f CHAR: o CHAR: o } } [ "foo" ascii encode ] unit-test
 [ { 128 } >string ascii encode ] must-fail
-[ B{ 127 } ] [ { 127 } >string ascii encode ] unit-test
+{ B{ 127 } } [ { 127 } >string ascii encode ] unit-test
 
-[ "bar" ] [ "bar" ascii decode ] unit-test
-[ { CHAR: b 0xfffd CHAR: r } ] [ B{ CHAR: b 233 CHAR: r } ascii decode >array ] unit-test
+{ "bar" } [ "bar" ascii decode ] unit-test
+{ { CHAR: b 0xfffd CHAR: r } } [ B{ CHAR: b 233 CHAR: r } ascii decode >array ] unit-test
index 72035c988c03aff25fe77a894908ed620b4a818e..1db972d635b81f13a0f732465b9b9d6ceef94fc6 100644 (file)
@@ -4,62 +4,62 @@ io.streams.byte-array io.streams.string kernel namespaces
 tools.test ;
 IN: io.encodings.tests
 
-[ { } ]
+{ { } }
 [ "vocab:io/test/empty-file.txt" ascii file-lines ]
 unit-test
 
 : lines-test ( file encoding -- line1 line2 )
     [ readln readln ] with-file-reader ;
 
-[
+{
     "This is a line."
     "This is another line."
-] [
+} [
     "vocab:io/test/windows-eol.txt"
     ascii lines-test
 ] unit-test
 
-[
+{
     "This is a line."
     "This is another line."
-] [
+} [
     "vocab:io/test/mac-os-eol.txt"
     ascii lines-test
 ] unit-test
 
-[
+{
     "This is a line."
     "This is another line."
-] [
+} [
     "vocab:io/test/unix-eol.txt"
     ascii lines-test
 ] unit-test
 
-[
+{
     "1234"
-] [
+} [
      "Hello world\r\n1234" <string-reader>
      dup stream-readln drop
      4 swap stream-read
 ] unit-test
 
-[
+{
     "1234"
-] [
+} [
      "Hello world\r\n1234" <string-reader>
      dup stream-readln drop
      4 swap stream-read-partial
 ] unit-test
 
-[
+{
     CHAR: 1
-] [
+} [
      "Hello world\r\n1234" <string-reader>
      dup stream-readln drop
      stream-read1
 ] unit-test
 
-[ utf8 ascii ] [
+{ utf8 ascii } [
     "foo" utf8 [
         input-stream get code>>
         ascii decode-input
@@ -67,7 +67,7 @@ unit-test
     ] with-byte-reader
 ] unit-test
 
-[ utf8 ascii ] [
+{ utf8 ascii } [
     utf8 [
         output-stream get code>>
         ascii encode-output
index a461787ef327a5926cde0a300ae7c1fe75f0f825..a4938e32c281a12de8ee056455da163089728768 100644 (file)
@@ -5,26 +5,26 @@ io.streams.byte-array sequences io.encodings io strings
 io.encodings.string alien.c-types alien.strings accessors classes ;
 IN: io.encodings.utf16.tests
 
-[ { CHAR: x } ] [ B{ 0 CHAR: x } utf16be decode >array ] unit-test
-[ { 0x1D11E } ] [ B{ 0xD8 0x34 0xDD 0x1E } utf16be decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0b11011111 CHAR: q } utf16be decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ B{ 0b11011011 CHAR: x 0b11011011 CHAR: x } utf16be decode >array ] unit-test
+{ { CHAR: x } } [ B{ 0 CHAR: x } utf16be decode >array ] unit-test
+{ { 0x1D11E } } [ B{ 0xD8 0x34 0xDD 0x1E } utf16be decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0b11011111 CHAR: q } utf16be decode >array ] unit-test
+{ { CHAR: replacement-character } } [ B{ 0b11011011 CHAR: x 0b11011011 CHAR: x } utf16be decode >array ] unit-test
 
-[ { 0 120 216 52 221 30 } ] [ { CHAR: x 0x1d11e } >string utf16be encode >array ] unit-test
+{ { 0 120 216 52 221 30 } } [ { CHAR: x 0x1d11e } >string utf16be encode >array ] unit-test
 
-[ { CHAR: x } ] [ B{ CHAR: x 0 } utf16le decode >array ] unit-test
-[ { 119070 } ] [ B{ 0x34 0xD8 0x1E 0xDD } >string utf16le decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ { 0 0b11011111 } >string utf16le decode >array ] unit-test
-[ { CHAR: replacement-character } ] [ { 0 0b11011011 0 0 } >string utf16le decode >array ] unit-test
+{ { CHAR: x } } [ B{ CHAR: x 0 } utf16le decode >array ] unit-test
+{ { 119070 } } [ B{ 0x34 0xD8 0x1E 0xDD } >string utf16le decode >array ] unit-test
+{ { CHAR: replacement-character } } [ { 0 0b11011111 } >string utf16le decode >array ] unit-test
+{ { CHAR: replacement-character } } [ { 0 0b11011011 0 0 } >string utf16le decode >array ] unit-test
 
-[ { 120 0 52 216 30 221 } ] [ { CHAR: x 0x1d11e } >string utf16le encode >array ] unit-test
+{ { 120 0 52 216 30 221 } } [ { CHAR: x 0x1d11e } >string utf16le encode >array ] unit-test
 
-[ { CHAR: x } ] [ B{ 0xff 0xfe CHAR: x 0 } utf16 decode >array ] unit-test
-[ { CHAR: x } ] [ B{ 0xfe 0xff 0 CHAR: x } utf16 decode >array ] unit-test
+{ { CHAR: x } } [ B{ 0xff 0xfe CHAR: x 0 } utf16 decode >array ] unit-test
+{ { CHAR: x } } [ B{ 0xfe 0xff 0 CHAR: x } utf16 decode >array ] unit-test
 
-[ { 0xff 0xfe 120 0 52 216 30 221 } ] [ { CHAR: x 0x1d11e } >string utf16 encode >array ] unit-test
+{ { 0xff 0xfe 120 0 52 216 30 221 } } [ { CHAR: x 0x1d11e } >string utf16 encode >array ] unit-test
 
 ! test ascii encoding path
 
-[ B{ CHAR: a 0 CHAR: b 0 CHAR: c 0 } ] [ "abc" utf16le encode ] unit-test
-[ B{ 0 CHAR: a 0 CHAR: b 0 CHAR: c } ] [ "abc" utf16be encode ] unit-test
+{ B{ CHAR: a 0 CHAR: b 0 CHAR: c 0 } } [ "abc" utf16le encode ] unit-test
+{ B{ 0 CHAR: a 0 CHAR: b 0 CHAR: c } } [ "abc" utf16be encode ] unit-test
index 96c4c29265b50ac31ea84a4cfcb7a29f6d356ba1..7778f7c67b105fad8c42b2a931a45524e73ffd04 100644 (file)
@@ -5,5 +5,5 @@ IN: io.encodings.utf16n
 : correct-endian ( obj -- ? )
     code>> little-endian? [ utf16le = ] [ utf16be = ] if ;
 
-[ t ] [ B{ } utf16n <byte-reader> correct-endian ] unit-test
-[ t ] [ utf16n <byte-writer> correct-endian ] unit-test
+{ t } [ B{ } utf16n <byte-reader> correct-endian ] unit-test
+{ t } [ utf16n <byte-writer> correct-endian ] unit-test
index 1063396fdd3a61f59b9f4f039e71edd88acf9e89..468c69a3ce94fbdd2032442acd5b7c61296e197d 100644 (file)
@@ -8,36 +8,36 @@ IN: io.encodings.utf8.tests
 : encode-utf8-w/stream ( array -- newarray )
     >string utf8 encode >array ;
 
-[ { CHAR: replacement-character } ] [ { 0b11110,101 0b10,111111 0b10,000000 0b11111111 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b11110,101 0b10,111111 0b10,000000 0b11111111 } decode-utf8-w/stream ] unit-test
 
-[ "x" ] [ "x" decode-utf8-w/stream >string ] unit-test
+{ "x" } [ "x" decode-utf8-w/stream >string ] unit-test
 
-[ { 0b11111000000 } ] [ { 0b110,11111 0b10,000000 } decode-utf8-w/stream >array ] unit-test
+{ { 0b11111000000 } } [ { 0b110,11111 0b10,000000 } decode-utf8-w/stream >array ] unit-test
 
-[ { CHAR: replacement-character } ] [ { 0b10000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b10000000 } decode-utf8-w/stream ] unit-test
 
-[ { 0b1111000000111111 } ] [ { 0b1110,1111 0b10,000000 0b10,111111 } decode-utf8-w/stream >array ] unit-test
+{ { 0b1111000000111111 } } [ { 0b1110,1111 0b10,000000 0b10,111111 } decode-utf8-w/stream >array ] unit-test
 
-[ { 0b11110,101 0b10,111111 0b10,000000 0b10,111111 0b1110,1111 0b10,000000 0b10,111111 0b110,11111 0b10,000000 CHAR: x } ]
+{ { 0b11110,101 0b10,111111 0b10,000000 0b10,111111 0b1110,1111 0b10,000000 0b10,111111 0b110,11111 0b10,000000 CHAR: x } }
 [ { 0b101111111000000111111 0b1111000000111111 0b11111000000 CHAR: x } encode-utf8-w/stream ] unit-test
 
-[ 3 ] [ 1 "日本語" >utf8-index ] unit-test
-[ 3 ] [ 9 "日本語" utf8-index> ] unit-test
+{ 3 } [ 1 "日本語" >utf8-index ] unit-test
+{ 3 } [ 9 "日本語" utf8-index> ] unit-test
 
-[ 3 ] [ 2 "lápis" >utf8-index ] unit-test
+{ 3 } [ 2 "lápis" >utf8-index ] unit-test
 
-[ V{ } ] [ 100000 iota [ [ code-point-length ] [ 1string utf8 encode length ] bi = ] reject ] unit-test
+{ V{ } } [ 100000 iota [ [ code-point-length ] [ 1string utf8 encode length ] bi = ] reject ] unit-test
 
-[ { CHAR: replacement-character } ] [ { 0b110,00000 0b10,000000 } decode-utf8-w/stream ] unit-test
-[ { CHAR: replacement-character } ] [ { 0b110,00001 0b10,111111 } decode-utf8-w/stream ] unit-test
-[ { 0x80 } ] [ { 0b110,00010 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b110,00000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b110,00001 0b10,111111 } decode-utf8-w/stream ] unit-test
+{ { 0x80 } } [ { 0b110,00010 0b10,000000 } decode-utf8-w/stream ] unit-test
 
-[ { CHAR: replacement-character } ] [ { 0b1110,0000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
-[ { CHAR: replacement-character } ] [ { 0b1110,0000 0b10,011111 0b10,111111 } decode-utf8-w/stream ] unit-test
-[ { 0x800 } ] [ { 0b1110,0000 0b10,100000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b1110,0000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b1110,0000 0b10,011111 0b10,111111 } decode-utf8-w/stream ] unit-test
+{ { 0x800 } } [ { 0b1110,0000 0b10,100000 0b10,000000 } decode-utf8-w/stream ] unit-test
 
-[ { CHAR: replacement-character } ] [ { 0b11110,000 0b10,000000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
-[ { CHAR: replacement-character } ] [ { 0b11110,000 0b10,001111 0b10,111111 0b10,111111 } decode-utf8-w/stream ] unit-test
-[ { CHAR: replacement-character } ] [ { 0b11110,100 0b10,010000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
-[ { 0x10000 } ] [ { 0b11110,000 0b10,010000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
-[ { 0x10FFFF } ] [ { 0b11110,100 0b10,001111 0b10,111111 0b10,111111 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b11110,000 0b10,000000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b11110,000 0b10,001111 0b10,111111 0b10,111111 } decode-utf8-w/stream ] unit-test
+{ { CHAR: replacement-character } } [ { 0b11110,100 0b10,010000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { 0x10000 } } [ { 0b11110,000 0b10,010000 0b10,000000 0b10,000000 } decode-utf8-w/stream ] unit-test
+{ { 0x10FFFF } } [ { 0b11110,100 0b10,001111 0b10,111111 0b10,111111 } decode-utf8-w/stream ] unit-test
index b48146e39a2cc6d05dba11902df86c77f02e4ca1..71bfeab9d8a39409bac320f7f61f272a032fe2eb 100644 (file)
@@ -8,50 +8,50 @@ FROM: specialized-arrays.private => specialized-array-vocab ;
 SPECIALIZED-ARRAY: int
 IN: io.files.tests
 
-[ ] [ "append-test" temp-file dup exists? [ delete-file ] [ drop ] if ] unit-test
+{ } [ "append-test" temp-file dup exists? [ delete-file ] [ drop ] if ] unit-test
 
-[ ] [ "append-test" temp-file ascii <file-appender> dispose ] unit-test
+{ } [ "append-test" temp-file ascii <file-appender> dispose ] unit-test
 
-[
+{
     "This is a line.\rThis is another line.\r"
-] [
+} [
     "vocab:io/test/mac-os-eol.txt" latin1
     [ 500 read ] with-file-reader
 ] unit-test
 
-[
+{
     255
-] [
+} [
     "vocab:io/test/binary.txt" latin1
     [ read1 ] with-file-reader >fixnum
 ] unit-test
 
-[
+{
     "This" CHAR: \s
-] [
+} [
     "vocab:io/test/read-until-test.txt" ascii
     [ " " read-until ] with-file-reader
 ] unit-test
 
-[
+{
     "This" CHAR: \s
-] [
+} [
     "vocab:io/test/read-until-test.txt" binary
     [ " " read-until [ ascii decode ] dip ] with-file-reader
 ] unit-test
 
-[ ] [
+{ } [
     "It seems Jobs has lost his grasp on reality again.\n"
     "separator-test.txt" temp-file latin1 set-file-contents
 ] unit-test
 
-[
+{
     {
         { "It seems " CHAR: J }
         { "obs has lost h" CHAR: i }
         { "s grasp on reality again.\n" f }
     }
-] [
+} [
     [
         "separator-test.txt" temp-file
         latin1 [
@@ -62,31 +62,31 @@ IN: io.files.tests
     ] { } make
 ] unit-test
 
-[ ] [
+{ } [
     image binary [
         10 [ 65536 read drop ] times
     ] with-file-reader
 ] unit-test
 
 ! Writing specialized arrays to binary streams should work
-[ ] [
+{ } [
     "test.txt" temp-file binary [
         int-array{ 1 2 3 } write
     ] with-file-writer
 ] unit-test
 
-[ int-array{ 1 2 3 } ] [
+{ int-array{ 1 2 3 } } [
     "test.txt" temp-file binary [
         3 4 * read
     ] with-file-reader
     int cast-array
 ] unit-test
 
-[ ] [
+{ } [
     BV{ 0 1 2 } "test.txt" temp-file binary set-file-contents
 ] unit-test
 
-[ t ] [
+{ t } [
     "test.txt" temp-file binary file-contents
     B{ 0 1 2 } =
 ] unit-test
@@ -97,30 +97,30 @@ SPECIALIZED-ARRAY: pt
 CONSTANT: pt-array-1
     pt-array{ S{ pt f 1 1 } S{ pt f 2 2 } S{ pt f 3 3 } }
 
-[ ] [
+{ } [
     pt-array-1
     "test.txt" temp-file binary set-file-contents
 ] unit-test
 
-[ t ] [
+{ t } [
     "test.txt" temp-file binary file-contents
     pt-array-1 >c-ptr sequence=
 ] unit-test
 
 ! Slices should support >c-ptr and byte-length
 
-[ ] [
+{ } [
     pt-array-1 rest-slice
     "test.txt" temp-file binary set-file-contents
 ] unit-test
 
-[ t ] [
+{ t } [
     "test.txt" temp-file binary file-contents
     pt cast-array
     pt-array-1 rest-slice sequence=
 ] unit-test
 
-[ ] [
+{ } [
     [
         pt specialized-array-vocab forget-vocab
     ] with-compilation-unit
@@ -134,7 +134,7 @@ CONSTANT: pt-array-1
 ] must-fail
 
 ! Test EOF behavior
-[ 10 ] [
+{ 10 } [
     image binary [
         0 read drop
         10 read length
@@ -142,20 +142,20 @@ CONSTANT: pt-array-1
 ] unit-test
 
 ! Make sure that writing to a closed stream from another thread doesn't crash
-[ ] [ "test-quux.txt" temp-file ascii [ [ yield "Hi" write ] "Test" spawn drop ] with-file-writer ] unit-test
+{ } [ "test-quux.txt" temp-file ascii [ [ yield "Hi" write ] "Test" spawn drop ] with-file-writer ] unit-test
 
-[ ] [ "test-quux.txt" temp-file delete-file ] unit-test
+{ } [ "test-quux.txt" temp-file delete-file ] unit-test
 
-[ ] [ "test-quux.txt" temp-file ascii [ [ yield "Hi" write ] "Test" spawn drop ] with-file-writer ] unit-test
+{ } [ "test-quux.txt" temp-file ascii [ [ yield "Hi" write ] "Test" spawn drop ] with-file-writer ] unit-test
 
-[ ] [ "test-quux.txt" "quux-test.txt" [ temp-file ] bi@ move-file ] unit-test
+{ } [ "test-quux.txt" "quux-test.txt" [ temp-file ] bi@ move-file ] unit-test
 
-[ t ] [ "quux-test.txt" temp-file exists? ] unit-test
+{ t } [ "quux-test.txt" temp-file exists? ] unit-test
 
-[ ] [ "quux-test.txt" temp-file delete-file ] unit-test
+{ } [ "quux-test.txt" temp-file delete-file ] unit-test
 
 ! File seeking tests
-[ B{ 3 2 3 4 5 } ]
+{ B{ 3 2 3 4 5 } }
 [
     "seek-test1" unique-file binary
     [
@@ -172,7 +172,7 @@ CONSTANT: pt-array-1
     ] 2bi
 ] unit-test
 
-[ B{ 1 2 3 4 3 } ]
+{ B{ 1 2 3 4 3 } }
 [
     "seek-test2" unique-file binary
     [
@@ -189,7 +189,7 @@ CONSTANT: pt-array-1
     ] 2bi
 ] unit-test
 
-[ B{ 1 2 3 4 5 0 3 } ]
+{ B{ 1 2 3 4 5 0 3 } }
 [
     "seek-test3" unique-file binary
     [
@@ -206,7 +206,7 @@ CONSTANT: pt-array-1
     ] 2bi
 ] unit-test
 
-[ B{ 3 } ]
+{ B{ 3 } }
 [
     B{ 1 2 3 4 5 } "seek-test4" unique-file binary [
         set-file-contents
@@ -221,7 +221,7 @@ CONSTANT: pt-array-1
     ] 2bi
 ] unit-test
 
-[ B{ 2 } ]
+{ B{ 2 } }
 [
     B{ 1 2 3 4 5 } "seek-test5" unique-file binary [
         set-file-contents
@@ -244,7 +244,7 @@ CONSTANT: pt-array-1
     ] with-file-reader
 ] must-fail
 
-[ ] [
+{ } [
     "resource:license.txt" binary [
         44 read drop
         tell-input 44 assert=
@@ -266,7 +266,7 @@ CONSTANT: pt-array-1
 ] [ no-method? ] must-fail-with
 
 ! What happens if we close a file twice?
-[ ] [
+{ } [
     "closing-twice" unique-file ascii <file-writer>
     [ dispose ] [ dispose ] bi
 ] unit-test
index 93f3013af32c976a113838ef22ccc914e7e45398..b4e3c9c7152100508c501a48da0d8cb93d975016 100644 (file)
@@ -79,14 +79,14 @@ M: dumb-writer stream-write1 vector>> push ; inline
 { SBUF" asdf" }
 [ "asdf" <string-reader> 4 <sbuf> [ stream-copy ] keep ] unit-test
 
-[ "asdf" ]
+{ "asdf" }
 [
     [
         [ "asdf" error-stream get stream-write ] with-error>output
     ] with-string-writer
 ] unit-test
 
-[ "asdf" ]
+{ "asdf" }
 [
     <string-writer> [
         [
index 9fb23355cbcef727244cdecfac2086e14c8ce140..617debee6905b9d34cd22afb07c028e6e7a90816 100644 (file)
@@ -4,32 +4,32 @@ namespaces sequences system tools.test
 io.backend io.pathnames.private ;
 IN: io.pathnames.tests
 
-[ "passwd" ] [ "/etc/passwd" file-name ] unit-test
-[ "awk" ] [ "/usr/libexec/awk/" file-name ] unit-test
-[ "awk" ] [ "/usr/libexec/awk///" file-name ] unit-test
-[ "" ] [ "" file-name ] unit-test
-
-[ "freetype6.dll" ] [ "resource:freetype6.dll" file-name ] unit-test
-[ "freetype6.dll" ] [ "resource:/freetype6.dll" file-name ] unit-test
-
-[ "/usr/lib" ] [ "/usr" "lib" append-path ] unit-test
-[ "/usr/lib" ] [ "/usr/" "lib" append-path ] unit-test
-[ "/usr/lib" ] [ "/usr" "./lib" append-path ] unit-test
-[ "/usr/lib/" ] [ "/usr" "./lib/" append-path ] unit-test
-[ "/lib" ] [ "/usr" "../lib" append-path ] unit-test
-[ "/lib/" ] [ "/usr" "../lib/" append-path ] unit-test
-
-[ "" ] [ "" "." append-path ] unit-test
+{ "passwd" } [ "/etc/passwd" file-name ] unit-test
+{ "awk" } [ "/usr/libexec/awk/" file-name ] unit-test
+{ "awk" } [ "/usr/libexec/awk///" file-name ] unit-test
+{ "" } [ "" file-name ] unit-test
+
+{ "freetype6.dll" } [ "resource:freetype6.dll" file-name ] unit-test
+{ "freetype6.dll" } [ "resource:/freetype6.dll" file-name ] unit-test
+
+{ "/usr/lib" } [ "/usr" "lib" append-path ] unit-test
+{ "/usr/lib" } [ "/usr/" "lib" append-path ] unit-test
+{ "/usr/lib" } [ "/usr" "./lib" append-path ] unit-test
+{ "/usr/lib/" } [ "/usr" "./lib/" append-path ] unit-test
+{ "/lib" } [ "/usr" "../lib" append-path ] unit-test
+{ "/lib/" } [ "/usr" "../lib/" append-path ] unit-test
+
+{ "" } [ "" "." append-path ] unit-test
 [ "" ".." append-path ] must-fail
 
-[ "/" ] [ "/" "./." append-path ] unit-test
-[ "/" ] [ "/" "././" append-path ] unit-test
-[ "/a/b/lib" ] [ "/a/b/c/d/e/f/" "../../../../lib" append-path ] unit-test
-[ "/a/b/lib/" ] [ "/a/b/c/d/e/f/" "../../../../lib/" append-path ] unit-test
+{ "/" } [ "/" "./." append-path ] unit-test
+{ "/" } [ "/" "././" append-path ] unit-test
+{ "/a/b/lib" } [ "/a/b/c/d/e/f/" "../../../../lib" append-path ] unit-test
+{ "/a/b/lib/" } [ "/a/b/c/d/e/f/" "../../../../lib/" append-path ] unit-test
 
 [ "" "../lib/" append-path ] must-fail
-[ "lib" ] [ "" "lib" append-path ] unit-test
-[ "lib" ] [ "" "./lib" append-path ] unit-test
+{ "lib" } [ "" "lib" append-path ] unit-test
+{ "lib" } [ "" "./lib" append-path ] unit-test
 
 [ "foo/bar/." parent-directory ] must-fail
 [ "foo/bar/./" parent-directory ] must-fail
@@ -44,18 +44,18 @@ IN: io.pathnames.tests
 [ "foo/.." parent-directory ] must-fail
 [ "foo/../" parent-directory ] must-fail
 [ "" parent-directory ] must-fail
-[ "." ] [ "boot.x86.64.image" parent-directory ] unit-test
+{ "." } [ "boot.x86.64.image" parent-directory ] unit-test
 
-[ "bar/foo" ] [ "bar/baz" "..///foo" append-path ] unit-test
-[ "bar/baz/foo" ] [ "bar/baz" ".///foo" append-path ] unit-test
-[ "bar/foo" ] [ "bar/baz" "./..//foo" append-path ] unit-test
-[ "bar/foo" ] [ "bar/baz" "./../././././././///foo" append-path ] unit-test
+{ "bar/foo" } [ "bar/baz" "..///foo" append-path ] unit-test
+{ "bar/baz/foo" } [ "bar/baz" ".///foo" append-path ] unit-test
+{ "bar/foo" } [ "bar/baz" "./..//foo" append-path ] unit-test
+{ "bar/foo" } [ "bar/baz" "./../././././././///foo" append-path ] unit-test
 
-[ t ] [ "resource:core" absolute-path? ] unit-test
-[ f ] [ "" absolute-path? ] unit-test
+{ t } [ "resource:core" absolute-path? ] unit-test
+{ f } [ "" absolute-path? ] unit-test
 
 [ "touch-twice-test" temp-file delete-file ] ignore-errors
-[ ] [ 2 [ "touch-twice-test" temp-file touch-file ] times ] unit-test
+{ } [ 2 [ "touch-twice-test" temp-file touch-file ] times ] unit-test
 
 ! aum's bug
 [
@@ -66,18 +66,18 @@ IN: io.pathnames.tests
     unit-test
 ] with-scope
 
-[ t ] [ cwd "misc" resource-path [ ] with-directory cwd = ] unit-test
+{ t } [ cwd "misc" resource-path [ ] with-directory cwd = ] unit-test
 
 ! Regression test for bug in file-extension
-[ f ] [ "/funny.directory/file-with-no-extension" file-extension ] unit-test
-[ "" ] [ "/funny.directory/file-with-no-extension." file-extension ] unit-test
+{ f } [ "/funny.directory/file-with-no-extension" file-extension ] unit-test
+{ "" } [ "/funny.directory/file-with-no-extension." file-extension ] unit-test
 
 ! Testing ~ special pathname
-[ t ] [ os windows? "~\\" "~/" ? absolute-path home = ] unit-test
-[ t ] [ "~/" home [ normalize-path ] same? ] unit-test
+{ t } [ os windows? "~\\" "~/" ? absolute-path home = ] unit-test
+{ t } [ "~/" home [ normalize-path ] same? ] unit-test
 
-[ t ] [ "~" absolute-path home = ] unit-test
-[ t ] [ "~" home [ normalize-path ] same? ] unit-test
+{ t } [ "~" absolute-path home = ] unit-test
+{ t } [ "~" home [ normalize-path ] same? ] unit-test
 
-[ t ] [ "~" home [ "foo" append-path ] bi@ [ normalize-path ] same? ] unit-test
-[ t ] [ os windows? "~\\~/" "~/~/" ? "~" "~" append-path [ path-components ] same? ] unit-test
+{ t } [ "~" home [ "foo" append-path ] bi@ [ normalize-path ] same? ] unit-test
+{ t } [ os windows? "~\\~/" "~/~/" ? "~" "~" append-path [ path-components ] same? ] unit-test
index 2c1e82ec1fcb01ae122d5bc793e358f8bcf05131..d8f3e15f65d1f37b52043fdcdddef48fbb8cd309 100644 (file)
@@ -4,26 +4,26 @@ specialized-arrays alien.c-types alien.data io.encodings.ascii ;
 SPECIALIZED-ARRAY: int
 IN: io.streams.byte-array.tests
 
-[ B{ } ] [ B{ } binary [ contents ] with-byte-reader ] unit-test
+{ B{ } } [ B{ } binary [ contents ] with-byte-reader ] unit-test
 
 ! Issue #70 github
-[ f ] [ B{ } binary [ 0 read ] with-byte-reader ] unit-test
-[ f ] [ B{ } binary [ 1 read ] with-byte-reader ] unit-test
-[ f ] [ B{ } ascii [ 0 read ] with-byte-reader ] unit-test
-[ f ] [ B{ } ascii [ readln ] with-byte-reader ] unit-test
-[ f f ] [ B{ } ascii [ "a" read-until ] with-byte-reader ] unit-test
-[ f f ] [ B{ } binary [ { 2 } read-until ] with-byte-reader ] unit-test
+{ f } [ B{ } binary [ 0 read ] with-byte-reader ] unit-test
+{ f } [ B{ } binary [ 1 read ] with-byte-reader ] unit-test
+{ f } [ B{ } ascii [ 0 read ] with-byte-reader ] unit-test
+{ f } [ B{ } ascii [ readln ] with-byte-reader ] unit-test
+{ f f } [ B{ } ascii [ "a" read-until ] with-byte-reader ] unit-test
+{ f f } [ B{ } binary [ { 2 } read-until ] with-byte-reader ] unit-test
 
 
-[ B{ 1 2 3 } ] [ binary [ B{ 1 2 3 } write ] with-byte-writer ] unit-test
-[ B{ 1 2 3 4 5 6 } ] [ binary [ B{ 1 2 3 } write B{ 4 5 6 } write ] with-byte-writer ] unit-test
-[ B{ 1 2 3 } ] [ { 1 2 3 } binary [ 3 read ] with-byte-reader ] unit-test
+{ B{ 1 2 3 } } [ binary [ B{ 1 2 3 } write ] with-byte-writer ] unit-test
+{ B{ 1 2 3 4 5 6 } } [ binary [ B{ 1 2 3 } write B{ 4 5 6 } write ] with-byte-writer ] unit-test
+{ B{ 1 2 3 } } [ { 1 2 3 } binary [ 3 read ] with-byte-reader ] unit-test
 
-[ B{ 0b11110101 0b10111111 0b10000000 0b10111111 0b11101111 0b10000000 0b10111111 0b11011111 0b10000000 CHAR: x } ]
+{ B{ 0b11110101 0b10111111 0b10000000 0b10111111 0b11101111 0b10000000 0b10111111 0b11011111 0b10000000 CHAR: x } }
 [ { 0b101111111000000111111 0b1111000000111111 0b11111000000 CHAR: x } >string utf8 [ write ] with-byte-writer ] unit-test
-[ { 0b1111111000000111111 } t ] [ { 0b11110001 0b10111111 0b10000000 0b10111111 } utf8 <byte-reader> stream-contents dup >array swap string? ] unit-test
+{ { 0b1111111000000111111 } t } [ { 0b11110001 0b10111111 0b10000000 0b10111111 } utf8 <byte-reader> stream-contents dup >array swap string? ] unit-test
 
-[ B{ 121 120 } 0 ] [
+{ B{ 121 120 } 0 } [
     B{ 0 121 120 0 0 0 0 0 0 } binary
     [ 1 read drop "\0" read-until ] with-byte-reader
 ] unit-test
@@ -37,7 +37,7 @@ IN: io.streams.byte-array.tests
     B{ } binary [ B{ 0 } read-until ] with-byte-reader
 ] unit-test
 
-[ 1 1 4 11 f ] [
+{ 1 1 4 11 f } [
     B{ 1 2 3 4 5 6 7 8 9 10 11 12 } binary
     [
         read1
@@ -52,17 +52,17 @@ IN: io.streams.byte-array.tests
     ] with-byte-reader
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     B{ 1 2 3 4 5 6 7 8 9 10 11 12 } binary [ tell-input ] with-byte-reader
 ] unit-test
 
 ! Overly aggressive compiler optimizations
-[ B{ 123 } ] [
+{ B{ 123 } } [
     binary [ 123 >bignum write1 ] with-byte-writer
 ] unit-test
 
 ! Writing specialized arrays to byte writers
-[ int-array{ 1 2 3 } ] [
+{ int-array{ 1 2 3 } } [
     binary [ int-array{ 1 2 3 } write ] with-byte-writer
     int cast-array
 ] unit-test
index ab7840c3870e5b2e3b7b293d2ad8594c68b7e6a1..b91024d726f160d4476446448c6e5e2a0741272e 100644 (file)
@@ -4,7 +4,7 @@ alien.c-types math alien.data ;
 SPECIALIZED-ARRAY: int
 IN: io.streams.c.tests
 
-[ "hello world" ] [
+{ "hello world" } [
     "hello world" "test.txt" temp-file ascii set-file-contents
 
     "test.txt" temp-file "rb" fopen <c-reader> stream-contents
@@ -12,13 +12,13 @@ IN: io.streams.c.tests
 ] unit-test
 
 ! Writing specialized arrays to binary streams
-[ ] [
+{ } [
     "test.txt" temp-file "wb" fopen <c-writer> [
         int-array{ 1 2 3 } write
     ] with-output-stream
 ] unit-test
 
-[ int-array{ 1 2 3 } ] [
+{ int-array{ 1 2 3 } } [
     "test.txt" temp-file "rb" fopen <c-reader> [
         3 4 * read
     ] with-input-stream
index 03853429708eb649d827abaa3601cc1664813950..cb9c6a9ac7a834bdcd2772cfbb1360ea70bc968d 100644 (file)
@@ -5,10 +5,10 @@ sequences.private accessors locals.backend grouping words
 system alien alien.accessors kernel.private ;
 IN: kernel.tests
 
-[ 0 ] [ f size ] unit-test
-[ t ] [ [ \ = \ = ] all-equal? ] unit-test
+{ 0 } [ f size ] unit-test
+{ t } [ [ \ = \ = ] all-equal? ] unit-test
 
-[
+{
     {
         { 1 2 0 }
         { 1 2 1 }
@@ -21,26 +21,26 @@ IN: kernel.tests
         { 1 2 8 }
         { 1 2 9 }
     }
-] [ 1 2 10 iota [ 3array ] 2with map ] unit-test
+} [ 1 2 10 iota [ 3array ] 2with map ] unit-test
 
 ! Don't leak extra roots if error is thrown
-[ ] [ 1000 [ [ 3 throw ] ignore-errors ] times ] unit-test
+{ } [ 1000 [ [ 3 throw ] ignore-errors ] times ] unit-test
 
-[ ] [ 1000 [ [ -1 f <array> ] ignore-errors ] times ] unit-test
+{ } [ 1000 [ [ -1 f <array> ] ignore-errors ] times ] unit-test
 
 ! Make sure we report the correct error on stack underflow
 [ clear drop ] [
     ${ "kernel-error" ERROR-DATASTACK-UNDERFLOW f f } =
 ] must-fail-with
 
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 [
     3 [ { } set-retainstack ] dip ]
     [ ${ "kernel-error" ERROR-RETAINSTACK-UNDERFLOW f f } =
 ] must-fail-with
 
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 : overflow-d ( -- ) 3 overflow-d ;
 
@@ -59,19 +59,19 @@ IN: kernel.tests
     ${ "kernel-error" ERROR-DATASTACK-OVERFLOW f f } =
 ] must-fail-with
 
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 [ overflow-d-alt ] [
     ${ "kernel-error" ERROR-DATASTACK-OVERFLOW f f } =
 ] must-fail-with
 
-[ ] [ [ :c ] with-string-writer drop ] unit-test
+{ } [ [ :c ] with-string-writer drop ] unit-test
 
 [ overflow-r ] [
     ${ "kernel-error" ERROR-RETAINSTACK-OVERFLOW f f } =
 ] must-fail-with
 
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 : overflow-c ( -- ) overflow-c overflow-c ;
 
@@ -86,53 +86,53 @@ os windows? [
 
 [ -7 <byte-array> ] must-fail
 
-[ 3 ] [ t 3 and ] unit-test
-[ f ] [ f 3 and ] unit-test
-[ f ] [ 3 f and ] unit-test
-[ 4 ] [ 4 6 or ] unit-test
-[ 6 ] [ f 6 or ] unit-test
-[ f ] [ 1 2 xor ] unit-test
-[ 1 ] [ 1 f xor ] unit-test
-[ 2 ] [ f 2 xor ] unit-test
-[ f ] [ f f xor ] unit-test
+{ 3 } [ t 3 and ] unit-test
+{ f } [ f 3 and ] unit-test
+{ f } [ 3 f and ] unit-test
+{ 4 } [ 4 6 or ] unit-test
+{ 6 } [ f 6 or ] unit-test
+{ f } [ 1 2 xor ] unit-test
+{ 1 } [ 1 f xor ] unit-test
+{ 2 } [ f 2 xor ] unit-test
+{ f } [ f f xor ] unit-test
 
 [ dip ] must-fail
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 [ 1 [ call ] dip ] must-fail
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 [ 1 2 [ call ] dip ] must-fail
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
-[ 5 ] [ 1 [ 2 2 + ] dip + ] unit-test
+{ 5 } [ 1 [ 2 2 + ] dip + ] unit-test
 
 [ [ ] keep ] must-fail
 
-[ 6 ] [ 2 [ sq ] keep + ] unit-test
+{ 6 } [ 2 [ sq ] keep + ] unit-test
 
 [ [ ] 2keep ] must-fail
 [ 1 [ ] 2keep ] must-fail
-[ 3 1 2 ] [ 1 2 [ 2drop 3 ] 2keep ] unit-test
+{ 3 1 2 } [ 1 2 [ 2drop 3 ] 2keep ] unit-test
 
-[ 0 ] [ f [ sq ] [ 0 ] if* ] unit-test
-[ 4 ] [ 2 [ sq ] [ 0 ] if* ] unit-test
+{ 0 } [ f [ sq ] [ 0 ] if* ] unit-test
+{ 4 } [ 2 [ sq ] [ 0 ] if* ] unit-test
 
-[ 0 ] [ f [ 0 ] unless* ] unit-test
-[ t ] [ t [ "Hello" ] unless* ] unit-test
+{ 0 } [ f [ 0 ] unless* ] unit-test
+{ t } [ t [ "Hello" ] unless* ] unit-test
 
-[ "2\n" ] [ [ 1 2 [ . ] [ sq . ] ?if ] with-string-writer ] unit-test
-[ "9\n" ] [ [ 3 f [ . ] [ sq . ] ?if ] with-string-writer ] unit-test
+{ "2\n" } [ [ 1 2 [ . ] [ sq . ] ?if ] with-string-writer ] unit-test
+{ "9\n" } [ [ 3 f [ . ] [ sq . ] ?if ] with-string-writer ] unit-test
 
-[ f ] [ f (clone) ] unit-test
-[ -123 ] [ -123 (clone) ] unit-test
+{ f } [ f (clone) ] unit-test
+{ -123 } [ -123 (clone) ] unit-test
 
-[ 6 2 ] [ 1 2 [ 5 + ] dip ] unit-test
+{ 6 2 } [ 1 2 [ 5 + ] dip ] unit-test
 
-[ ] [ callstack set-callstack ] unit-test
+{ } [ callstack set-callstack ] unit-test
 
 [ 3drop datastack ] must-fail
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 ! Doesn't compile; important
 : foo ( a -- b ) ;
@@ -140,7 +140,7 @@ os windows? [
 << \ foo t "no-compile" set-word-prop >>
 
 [ drop foo ] must-fail
-[ ] [ :c ] unit-test
+{ } [ :c ] unit-test
 
 ! Regression
 : (loop) ( a b c d -- )
@@ -157,60 +157,60 @@ os windows? [
 
 [ total-failure-1 ] must-fail
 
-[ 1 1 2 2 3 3 ] [ 1 2 3 [ dup ] tri@ ] unit-test
-[ 1 4 9 ] [ 1 2 3 [ sq ] tri@ ] unit-test
+{ 1 1 2 2 3 3 } [ 1 2 3 [ dup ] tri@ ] unit-test
+{ 1 4 9 } [ 1 2 3 [ sq ] tri@ ] unit-test
 [ [ sq ] tri@ ] must-infer
 
-[ 4 ] [ 1 { [ 1 ] [ 2 ] } dispatch sq ] unit-test
+{ 4 } [ 1 { [ 1 ] [ 2 ] } dispatch sq ] unit-test
 
 ! Test traceback accuracy
 : last-frame ( -- pair )
     error-continuation get call>> callstack>array 6 head* 3 tail* ;
 
-[
+{
     { [ 1 2 [ 3 throw ] call 4 ] [ 1 2 [ 3 throw ] call 4 ] 3 }
-] [
+} [
     [ [ 1 2 [ 3 throw ] call 4 ] call ] ignore-errors
     last-frame
 ] unit-test
 
-[
+{
     { [ 1 2 [ 3 throw ] dip 4 ] [ 1 2 [ 3 throw ] dip 4 ] 3 }
-] [
+} [
     [ [ 1 2 [ 3 throw ] dip 4 ] call ] ignore-errors
     last-frame
 ] unit-test
 
-[
+{
     { [ 1 2 3 throw [ ] call 4 ] [ 1 2 3 throw [ ] call 4 ] 3 }
-] [
+} [
     [ [ 1 2 3 throw [ ] call 4 ] call ] ignore-errors
     last-frame
 ] unit-test
 
-[
+{
     { [ 1 2 3 throw [ ] dip 4 ] [ 1 2 3 throw [ ] dip 4 ] 3 }
-] [
+} [
     [ [ 1 2 3 throw [ ] dip 4 ] call ] ignore-errors
     last-frame
 ] unit-test
 
-[
+{
     { [ 1 2 3 throw [ ] [ ] if 4 ] [ 1 2 3 throw [ ] [ ] if 4 ] 3 }
-] [
+} [
     [ [ 1 2 3 throw [ ] [ ] if 4 ] call ] ignore-errors
     last-frame
 ] unit-test
 
-[ 10 2 3 4 5 ] [ 1 2 3 4 5 [ 10 * ] 4dip ] unit-test
+{ 10 2 3 4 5 } [ 1 2 3 4 5 [ 10 * ] 4dip ] unit-test
 
-[ 3 -1 5/6 ] [ 1 2 3 4 5 6 [ + ] [ - ] [ / ] 2tri* ] unit-test
+{ 3 -1 5/6 } [ 1 2 3 4 5 6 [ + ] [ - ] [ / ] 2tri* ] unit-test
 
-[ { 1 2 } { 3 4 } { 5 6 } ] [ 1 2 3 4 5 6 [ 2array ] 2tri@ ] unit-test
+{ { 1 2 } { 3 4 } { 5 6 } } [ 1 2 3 4 5 6 [ 2array ] 2tri@ ] unit-test
 
-[ t ] [ { } identity-hashcode fixnum? ] unit-test
-[ 123 ] [ 123 identity-hashcode ] unit-test
-[ t ] [ f identity-hashcode fixnum? ] unit-test
+{ t } [ { } identity-hashcode fixnum? ] unit-test
+{ 123 } [ 123 identity-hashcode ] unit-test
+{ t } [ f identity-hashcode fixnum? ] unit-test
 
 ! Make sure memory protection faults work
 [ f 0 alien-unsigned-1 ] [ vm-error? ] must-fail-with
index 123d1347a7f4638a9ff64e8f617a02c3abb28f27..5c9b5fd29f625dbe9a06cb321ca83edc57947069 100644 (file)
@@ -1,11 +1,11 @@
 USING: layouts math tools.test ;
 IN: system.tests
 
-[ t ] [ cell integer? ] unit-test
-[ t ] [ bootstrap-cell integer? ] unit-test
+{ t } [ cell integer? ] unit-test
+{ t } [ bootstrap-cell integer? ] unit-test
 
 ! Smoke test
-[ t ] [ max-array-capacity cell-bits 2^ < ] unit-test
+{ t } [ max-array-capacity cell-bits 2^ < ] unit-test
 
-[ t ] [ most-negative-fixnum fixnum? ] unit-test
-[ t ] [ most-positive-fixnum fixnum? ] unit-test
+{ t } [ most-negative-fixnum fixnum? ] unit-test
+{ t } [ most-positive-fixnum fixnum? ] unit-test
index e49d23e85b26961ba11989b3f06540e36632c306..88169ec5b976d1787ad77dcbc6d7242d4897d29a 100644 (file)
@@ -2,97 +2,97 @@ USING: kernel math math.constants math.order tools.test sequences
 grouping ;
 IN: math.floats.tests
 
-[ t ] [ 0.0 float? ] unit-test
-[ t ] [ 3.1415 number? ] unit-test
-[ f ] [ 12 float? ] unit-test
+{ t } [ 0.0 float? ] unit-test
+{ t } [ 3.1415 number? ] unit-test
+{ f } [ 12 float? ] unit-test
 
-[ f ] [ 1 1.0 = ] unit-test
-[ t ] [ 1 1.0 number= ] unit-test
+{ f } [ 1 1.0 = ] unit-test
+{ t } [ 1 1.0 number= ] unit-test
 
-[ f ] [ 1 >bignum 1.0 = ] unit-test
-[ t ] [ 1 >bignum 1.0 number= ] unit-test
+{ f } [ 1 >bignum 1.0 = ] unit-test
+{ t } [ 1 >bignum 1.0 number= ] unit-test
 
-[ f ] [ 1.0 1 = ] unit-test
-[ t ] [ 1.0 1 number= ] unit-test
+{ f } [ 1.0 1 = ] unit-test
+{ t } [ 1.0 1 number= ] unit-test
 
-[ f ] [ 1.0 1 >bignum = ] unit-test
-[ t ] [ 1.0 1 >bignum number= ] unit-test
+{ f } [ 1.0 1 >bignum = ] unit-test
+{ t } [ 1.0 1 >bignum number= ] unit-test
 
-[ f ] [ 1 1.3 = ] unit-test
-[ f ] [ 1 >bignum 1.3 = ] unit-test
-[ f ] [ 1.3 1 = ] unit-test
-[ f ] [ 1.3 1 >bignum = ] unit-test
+{ f } [ 1 1.3 = ] unit-test
+{ f } [ 1 >bignum 1.3 = ] unit-test
+{ f } [ 1.3 1 = ] unit-test
+{ f } [ 1.3 1 >bignum = ] unit-test
 
-[ t ] [ 134.3 >fixnum 134 = ] unit-test
+{ t } [ 134.3 >fixnum 134 = ] unit-test
 
-[ 3 ] [ 3.5 >bignum ] unit-test
-[ -3 ] [ -3.5 >bignum ] unit-test
+{ 3 } [ 3.5 >bignum ] unit-test
+{ -3 } [ -3.5 >bignum ] unit-test
 
-[ 3 ] [ 3.5 >fixnum ] unit-test
-[ -3 ] [ -3.5 >fixnum ] unit-test
+{ 3 } [ 3.5 >fixnum ] unit-test
+{ -3 } [ -3.5 >fixnum ] unit-test
 
-[ 2.1 ] [ -2.1 neg ] unit-test
+{ 2.1 } [ -2.1 neg ] unit-test
 
-[ 3 ] [ 3.1415 >fixnum ] unit-test
-[ 3 ] [ 3.1415 >bignum ] unit-test
+{ 3 } [ 3.1415 >fixnum ] unit-test
+{ 3 } [ 3.1415 >bignum ] unit-test
 
-[ t ] [ pi 3 > ] unit-test
-[ f ] [ e 2 <= ] unit-test
+{ t } [ pi 3 > ] unit-test
+{ f } [ e 2 <= ] unit-test
 
-[ t ] [ 1.0 dup float>bits bits>float = ] unit-test
-[ t ] [ pi double>bits bits>double pi = ] unit-test
-[ t ] [ e double>bits bits>double e = ] unit-test
+{ t } [ 1.0 dup float>bits bits>float = ] unit-test
+{ t } [ pi double>bits bits>double pi = ] unit-test
+{ t } [ e double>bits bits>double e = ] unit-test
 
-[ 0b11111111111000000000000000000000000000000000000000000000000000 ]
+{ 0b11111111111000000000000000000000000000000000000000000000000000 }
 [ 1.5 double>bits ] unit-test
 
-[ 1.5 ]
+{ 1.5 }
 [ 0b11111111111000000000000000000000000000000000000000000000000000 bits>double ]
 unit-test
 
-[ 2.0 ] [ 1.0 1 + ] unit-test
-[ 0.0 ] [ 1.0 1 - ] unit-test
+{ 2.0 } [ 1.0 1 + ] unit-test
+{ 0.0 } [ 1.0 1 - ] unit-test
 
-[ t ] [ 0.0 zero? ] unit-test
-[ t ] [ -0.0 zero? ] unit-test
+{ t } [ 0.0 zero? ] unit-test
+{ t } [ -0.0 zero? ] unit-test
 
-[ 0 ] [ 1/0. >bignum ] unit-test
+{ 0 } [ 1/0. >bignum ] unit-test
 
-[ t ] [ 64 iota [ 2^ 0.5 * ] map [ < ] monotonic? ] unit-test
+{ t } [ 64 iota [ 2^ 0.5 * ] map [ < ] monotonic? ] unit-test
 
-[ 5 ] [ 10.5 1.9 /i ] unit-test
+{ 5 } [ 10.5 1.9 /i ] unit-test
 
-[ t ] [ 0   0   /f                 fp-nan? ] unit-test
-[ t ] [ 0.0 0.0 /f                 fp-nan? ] unit-test
-[ t ] [ 0.0 0.0 /                  fp-nan? ] unit-test
-[ t ] [ 0   0   [ >bignum ] bi@ /f fp-nan? ] unit-test
+{ t } [ 0   0   /f                 fp-nan? ] unit-test
+{ t } [ 0.0 0.0 /f                 fp-nan? ] unit-test
+{ t } [ 0.0 0.0 /                  fp-nan? ] unit-test
+{ t } [ 0   0   [ >bignum ] bi@ /f fp-nan? ] unit-test
 
-[ 1/0. ] [ 1 0 /f ] unit-test
-[ 1/0. ] [ 1.0 0.0 /f ] unit-test
-[ 1/0. ] [ 1.0 0.0 / ] unit-test
-[ 1/0. ] [ 1 0 [ >bignum ] bi@ /f ] unit-test
+{ 1/0. } [ 1 0 /f ] unit-test
+{ 1/0. } [ 1.0 0.0 /f ] unit-test
+{ 1/0. } [ 1.0 0.0 / ] unit-test
+{ 1/0. } [ 1 0 [ >bignum ] bi@ /f ] unit-test
 
-[ -1/0. ] [ -1 0 /f ] unit-test
-[ -1/0. ] [ -1.0 0.0 /f ] unit-test
-[ -1/0. ] [ -1.0 0.0 / ] unit-test
-[ -1/0. ] [ -1 0 [ >bignum ] bi@ /f ] unit-test
+{ -1/0. } [ -1 0 /f ] unit-test
+{ -1/0. } [ -1.0 0.0 /f ] unit-test
+{ -1/0. } [ -1.0 0.0 / ] unit-test
+{ -1/0. } [ -1 0 [ >bignum ] bi@ /f ] unit-test
 
-[ t ] [ 0/0. 0/0. unordered? ] unit-test
-[ t ] [ 1.0 0/0. unordered? ] unit-test
-[ t ] [ 0/0. 1.0 unordered? ] unit-test
-[ f ] [ 1.0 1.0 unordered? ] unit-test
+{ t } [ 0/0. 0/0. unordered? ] unit-test
+{ t } [ 1.0 0/0. unordered? ] unit-test
+{ t } [ 0/0. 1.0 unordered? ] unit-test
+{ f } [ 1.0 1.0 unordered? ] unit-test
 
-[ t ] [ -0.0 fp-sign ] unit-test
-[ t ] [ -1.0 fp-sign ] unit-test
-[ f ] [ 0.0 fp-sign ] unit-test
-[ f ] [ 1.0 fp-sign ] unit-test
+{ t } [ -0.0 fp-sign ] unit-test
+{ t } [ -1.0 fp-sign ] unit-test
+{ f } [ 0.0 fp-sign ] unit-test
+{ f } [ 1.0 fp-sign ] unit-test
 
-[ t ] [ -0.0 abs 0.0 fp-bitwise= ] unit-test
-[ 1.5 ] [ -1.5 abs ] unit-test
-[ 1.5 ] [ 1.5 abs ] unit-test
+{ t } [ -0.0 abs 0.0 fp-bitwise= ] unit-test
+{ 1.5 } [ -1.5 abs ] unit-test
+{ 1.5 } [ 1.5 abs ] unit-test
 
-[ 5.0 ] [ 3 5.0 max ] unit-test
-[ 3 ] [ 3 5.0 min ] unit-test
+{ 5.0 } [ 3 5.0 max ] unit-test
+{ 3 } [ 3 5.0 min ] unit-test
 
 { 39 0x1.999999999998ap-4 } [ 4.0 .1 /mod ] unit-test
 { 38 0x1.9999999999984p-4 } [ 3.9 .1 /mod ] unit-test
index ce85b6d31bfa9ed870465bb2fe0b043a0116e713..c41ac7800166e1c5d3d4883747d1aff81408a19b 100644 (file)
@@ -7,54 +7,54 @@ IN: math.integers.tests
     [ "-8" ] [ -8 unparse ] unit-test
 ] with-variable
 
-[ t ] [ 0 fixnum? ] unit-test
-[ t ] [ 31415 number? ] unit-test
-[ t ] [ 31415 >bignum number? ] unit-test
-[ t ] [ 2345621 fixnum? ] unit-test
+{ t } [ 0 fixnum? ] unit-test
+{ t } [ 31415 number? ] unit-test
+{ t } [ 31415 >bignum number? ] unit-test
+{ t } [ 2345621 fixnum? ] unit-test
 
-[ t ] [ 2345621 dup >bignum >fixnum = ] unit-test
+{ t } [ 2345621 dup >bignum >fixnum = ] unit-test
 
-[ t ] [ 0 >fixnum 0 >bignum = ] unit-test
-[ f ] [ 0 >fixnum 1 >bignum = ] unit-test
-[ f ] [ 1 >bignum 0 >bignum = ] unit-test
-[ t ] [ 0 >bignum 0 >fixnum = ] unit-test
+{ t } [ 0 >fixnum 0 >bignum = ] unit-test
+{ f } [ 0 >fixnum 1 >bignum = ] unit-test
+{ f } [ 1 >bignum 0 >bignum = ] unit-test
+{ t } [ 0 >bignum 0 >fixnum = ] unit-test
 
-[ t ] [ 0 >bignum bignum? ] unit-test
-[ f ] [ 0 >fixnum bignum? ] unit-test
-[ f ] [ 0 >fixnum bignum? ] unit-test
-[ t ] [ 0 >fixnum fixnum? ] unit-test
+{ t } [ 0 >bignum bignum? ] unit-test
+{ f } [ 0 >fixnum bignum? ] unit-test
+{ f } [ 0 >fixnum bignum? ] unit-test
+{ t } [ 0 >fixnum fixnum? ] unit-test
 
-[ -1 ] [ 1 neg ] unit-test
-[ -1 ] [ 1 >bignum neg ] unit-test
-[ 134217728 ] [ -134217728 >fixnum -1 * ] unit-test
-[ 134217728 ] [ -134217728 >fixnum neg ] unit-test
+{ -1 } [ 1 neg ] unit-test
+{ -1 } [ 1 >bignum neg ] unit-test
+{ 134217728 } [ -134217728 >fixnum -1 * ] unit-test
+{ 134217728 } [ -134217728 >fixnum neg ] unit-test
 
-[ 9 3 ] [ 93 10 /mod ] unit-test
-[ 9 3 ] [ 93 >bignum 10 /mod ] unit-test
+{ 9 3 } [ 93 10 /mod ] unit-test
+{ 9 3 } [ 93 >bignum 10 /mod ] unit-test
 
-[ 5 ] [ 2 >bignum 3 >bignum + ] unit-test
+{ 5 } [ 2 >bignum 3 >bignum + ] unit-test
 
-[ -10000000001981284352 ] [
+{ -10000000001981284352 } [
     -10000000000000000000
     -0x100000000 bitand
 ] unit-test
 
-[ 9999999997686317056 ] [
+{ 9999999997686317056 } [
     10000000000000000000
     -0x100000000 bitand
 ] unit-test
 
-[ 4294967296 ] [
+{ 4294967296 } [
     -10000000000000000000
     0x100000000 bitand
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     10000000000000000000
     0x100000000 bitand
 ] unit-test
 
-[ -1 ] [ -1 >bignum >fixnum ] unit-test
+{ -1 } [ -1 >bignum >fixnum ] unit-test
 
 10 number-base [
     [ "8589934592" ]
@@ -62,77 +62,77 @@ IN: math.integers.tests
     unit-test
 ] with-variable
 
-[ 7 ] [ 255 log2 ] unit-test
-[ 8 ] [ 256 log2 ] unit-test
-[ 8 ] [ 257 log2 ] unit-test
-[ 0 ] [ 1   log2 ] unit-test
-
-[ 7 ] [ 255 >bignum log2 ] unit-test
-[ 8 ] [ 256 >bignum log2 ] unit-test
-[ 8 ] [ 257 >bignum log2 ] unit-test
-[ 0 ] [ 1   >bignum log2 ] unit-test
-
-[ f ] [ 0b1101 -1 bit? ] unit-test
-[ t ] [ 0b1101 0 bit? ] unit-test
-[ f ] [ 0b1101 1 bit? ] unit-test
-[ t ] [ 0b1101 2 bit? ] unit-test
-[ t ] [ 0b1101 3 bit? ] unit-test
-[ f ] [ 0b1101 4 bit? ] unit-test
-[ f ] [ 0b1101 1000 bit? ] unit-test
-
-[ f ] [ 0b1101 >bignum -1 bit? ] unit-test
-[ t ] [ 0b1101 >bignum 0 bit? ] unit-test
-[ f ] [ 0b1101 >bignum 1 bit? ] unit-test
-[ t ] [ 0b1101 >bignum 2 bit? ] unit-test
-[ t ] [ 0b1101 >bignum 3 bit? ] unit-test
-[ f ] [ 0b1101 >bignum 4 bit? ] unit-test
-[ f ] [ 0b1101 >bignum 1000 bit? ] unit-test
-
-[ t ] [ -0b1101 -1 bit? ] unit-test
-[ t ] [ -0b1101 0 bit? ] unit-test
-[ t ] [ -0b1101 1 bit? ] unit-test
-[ f ] [ -0b1101 2 bit? ] unit-test
-[ f ] [ -0b1101 3 bit? ] unit-test
-[ t ] [ -0b1101 4 bit? ] unit-test
-[ t ] [ -0b1101 1000 bit? ] unit-test
-
-[ t ] [ -0b1101 >bignum -1 bit? ] unit-test
-[ t ] [ -0b1101 >bignum 0 bit? ] unit-test
-[ t ] [ -0b1101 >bignum 1 bit? ] unit-test
-[ f ] [ -0b1101 >bignum 2 bit? ] unit-test
-[ f ] [ -0b1101 >bignum 3 bit? ] unit-test
-[ t ] [ -0b1101 >bignum 4 bit? ] unit-test
-[ t ] [ -0b1101 >bignum 1000 bit? ] unit-test
-
-[ t ] [ 1067811677921310779 >bignum 59 bit? ] unit-test
-
-[ 2 ] [ 0 next-power-of-2 ] unit-test
-[ 2 ] [ 1 next-power-of-2 ] unit-test
-[ 2 ] [ 2 next-power-of-2 ] unit-test
-[ 4 ] [ 3 next-power-of-2 ] unit-test
-[ 16 ] [ 13 next-power-of-2 ] unit-test
-[ 16 ] [ 16 next-power-of-2 ] unit-test
-
-[ 134217728 ] [ -134217728 >fixnum -1 /i ] unit-test
-[ 134217728 0 ] [ -134217728 >fixnum -1 /mod ] unit-test
-[ 0 ] [ -1 -134217728 >fixnum /i ] unit-test
-[ 4420880996869850977 ] [ 13262642990609552931 3 /i ] unit-test
-[ 0 -1 ] [ -1 -134217728 >fixnum /mod ] unit-test
-[ 0 -1 ] [ -1 -134217728 >bignum /mod ] unit-test
-[ 14355 ] [ 1591517158873146351817850880000000 32769 mod ] unit-test
-[ 8 530505719624382123 ] [ 13262642990609552931 1591517158873146351 /mod ] unit-test
-[ 8 ] [ 13262642990609552931 1591517158873146351 /i ] unit-test
-[ 530505719624382123 ] [ 13262642990609552931 1591517158873146351 mod ] unit-test
-
-[ -351382792 ] [ -43922849 3 shift ] unit-test
-
-[ t ] [ 0 zero? ] unit-test
-[ f ] [ 30 zero? ] unit-test
-[ t ] [ 0 >bignum zero? ] unit-test
-
-[ 2147483632 ] [ 134217727 >fixnum 16 fixnum* ] unit-test
-
-[ 23603949310011464311086123800853779733506160743636399259558684142844552151041 ]
+{ 7 } [ 255 log2 ] unit-test
+{ 8 } [ 256 log2 ] unit-test
+{ 8 } [ 257 log2 ] unit-test
+{ 0 } [ 1   log2 ] unit-test
+
+{ 7 } [ 255 >bignum log2 ] unit-test
+{ 8 } [ 256 >bignum log2 ] unit-test
+{ 8 } [ 257 >bignum log2 ] unit-test
+{ 0 } [ 1   >bignum log2 ] unit-test
+
+{ f } [ 0b1101 -1 bit? ] unit-test
+{ t } [ 0b1101 0 bit? ] unit-test
+{ f } [ 0b1101 1 bit? ] unit-test
+{ t } [ 0b1101 2 bit? ] unit-test
+{ t } [ 0b1101 3 bit? ] unit-test
+{ f } [ 0b1101 4 bit? ] unit-test
+{ f } [ 0b1101 1000 bit? ] unit-test
+
+{ f } [ 0b1101 >bignum -1 bit? ] unit-test
+{ t } [ 0b1101 >bignum 0 bit? ] unit-test
+{ f } [ 0b1101 >bignum 1 bit? ] unit-test
+{ t } [ 0b1101 >bignum 2 bit? ] unit-test
+{ t } [ 0b1101 >bignum 3 bit? ] unit-test
+{ f } [ 0b1101 >bignum 4 bit? ] unit-test
+{ f } [ 0b1101 >bignum 1000 bit? ] unit-test
+
+{ t } [ -0b1101 -1 bit? ] unit-test
+{ t } [ -0b1101 0 bit? ] unit-test
+{ t } [ -0b1101 1 bit? ] unit-test
+{ f } [ -0b1101 2 bit? ] unit-test
+{ f } [ -0b1101 3 bit? ] unit-test
+{ t } [ -0b1101 4 bit? ] unit-test
+{ t } [ -0b1101 1000 bit? ] unit-test
+
+{ t } [ -0b1101 >bignum -1 bit? ] unit-test
+{ t } [ -0b1101 >bignum 0 bit? ] unit-test
+{ t } [ -0b1101 >bignum 1 bit? ] unit-test
+{ f } [ -0b1101 >bignum 2 bit? ] unit-test
+{ f } [ -0b1101 >bignum 3 bit? ] unit-test
+{ t } [ -0b1101 >bignum 4 bit? ] unit-test
+{ t } [ -0b1101 >bignum 1000 bit? ] unit-test
+
+{ t } [ 1067811677921310779 >bignum 59 bit? ] unit-test
+
+{ 2 } [ 0 next-power-of-2 ] unit-test
+{ 2 } [ 1 next-power-of-2 ] unit-test
+{ 2 } [ 2 next-power-of-2 ] unit-test
+{ 4 } [ 3 next-power-of-2 ] unit-test
+{ 16 } [ 13 next-power-of-2 ] unit-test
+{ 16 } [ 16 next-power-of-2 ] unit-test
+
+{ 134217728 } [ -134217728 >fixnum -1 /i ] unit-test
+{ 134217728 0 } [ -134217728 >fixnum -1 /mod ] unit-test
+{ 0 } [ -1 -134217728 >fixnum /i ] unit-test
+{ 4420880996869850977 } [ 13262642990609552931 3 /i ] unit-test
+{ 0 -1 } [ -1 -134217728 >fixnum /mod ] unit-test
+{ 0 -1 } [ -1 -134217728 >bignum /mod ] unit-test
+{ 14355 } [ 1591517158873146351817850880000000 32769 mod ] unit-test
+{ 8 530505719624382123 } [ 13262642990609552931 1591517158873146351 /mod ] unit-test
+{ 8 } [ 13262642990609552931 1591517158873146351 /i ] unit-test
+{ 530505719624382123 } [ 13262642990609552931 1591517158873146351 mod ] unit-test
+
+{ -351382792 } [ -43922849 3 shift ] unit-test
+
+{ t } [ 0 zero? ] unit-test
+{ f } [ 30 zero? ] unit-test
+{ t } [ 0 >bignum zero? ] unit-test
+
+{ 2147483632 } [ 134217727 >fixnum 16 fixnum* ] unit-test
+
+{ 23603949310011464311086123800853779733506160743636399259558684142844552151041 }
 [
     1957739506503920732625800353008742584087090810400921800808997218266517557963281171906190947801528098188887586755474449585677502695226712388326288208691204
     79562815144503850065234921197651376510595262628033069372760833939060637564931
@@ -141,37 +141,37 @@ IN: math.integers.tests
 
 ! We don't care if this fails or returns 0 (its CPU-specific)
 ! as long as it doesn't crash
-[ ] [ [ 0 0 /i drop ] ignore-errors ] unit-test
-[ ] [ [ 100000000000000000 0 /i drop ] ignore-errors ] unit-test
-
-[ -2 ] [ 1 bitnot ] unit-test
-[ -2 ] [ 1 >bignum bitnot ] unit-test
-[ -2 ] [ 1 >bignum bitnot ] unit-test
-[ 0 ] [ 123 dup bitnot bitand ] unit-test
-[ 0 ] [ 123 >bignum dup bitnot bitand ] unit-test
-[ 0 ] [ 123 dup bitnot >bignum bitand ] unit-test
-[ 0 ] [ 123 dup bitnot bitand >bignum ] unit-test
-[ -1 ] [ 123 dup bitnot bitor ] unit-test
-[ -1 ] [ 123 >bignum dup bitnot bitor ] unit-test
-[ -1 ] [ 123 dup bitnot >bignum bitor ] unit-test
-[ -1 ] [ 123 dup bitnot bitor >bignum ] unit-test
-[ -1 ] [ 123 dup bitnot bitxor ] unit-test
-[ -1 ] [ 123 >bignum dup bitnot bitxor ] unit-test
-[ -1 ] [ 123 dup bitnot >bignum bitxor ] unit-test
-[ -1 ] [ 123 dup bitnot bitxor >bignum ] unit-test
-[ 4 ] [ 4 7 bitand ] unit-test
-
-[ 256 ] [ 65536 -8 shift ] unit-test
-[ 256 ] [ 65536 >bignum -8 shift ] unit-test
-[ 256 ] [ 65536 -8 >bignum shift ] unit-test
-[ 256 ] [ 65536 >bignum -8 >bignum shift ] unit-test
-[ 4294967296 ] [ 1 16 shift 16 shift ] unit-test
-[ 4294967296 ] [ 1 32 shift ] unit-test
-[ 1267650600228229401496703205376 ] [ 1 100 shift ] unit-test
-
-[ t ] [ 1 26 shift fixnum? ] unit-test
-
-[ t ] [
+{ } [ [ 0 0 /i drop ] ignore-errors ] unit-test
+{ } [ [ 100000000000000000 0 /i drop ] ignore-errors ] unit-test
+
+{ -2 } [ 1 bitnot ] unit-test
+{ -2 } [ 1 >bignum bitnot ] unit-test
+{ -2 } [ 1 >bignum bitnot ] unit-test
+{ 0 } [ 123 dup bitnot bitand ] unit-test
+{ 0 } [ 123 >bignum dup bitnot bitand ] unit-test
+{ 0 } [ 123 dup bitnot >bignum bitand ] unit-test
+{ 0 } [ 123 dup bitnot bitand >bignum ] unit-test
+{ -1 } [ 123 dup bitnot bitor ] unit-test
+{ -1 } [ 123 >bignum dup bitnot bitor ] unit-test
+{ -1 } [ 123 dup bitnot >bignum bitor ] unit-test
+{ -1 } [ 123 dup bitnot bitor >bignum ] unit-test
+{ -1 } [ 123 dup bitnot bitxor ] unit-test
+{ -1 } [ 123 >bignum dup bitnot bitxor ] unit-test
+{ -1 } [ 123 dup bitnot >bignum bitxor ] unit-test
+{ -1 } [ 123 dup bitnot bitxor >bignum ] unit-test
+{ 4 } [ 4 7 bitand ] unit-test
+
+{ 256 } [ 65536 -8 shift ] unit-test
+{ 256 } [ 65536 >bignum -8 shift ] unit-test
+{ 256 } [ 65536 -8 >bignum shift ] unit-test
+{ 256 } [ 65536 >bignum -8 >bignum shift ] unit-test
+{ 4294967296 } [ 1 16 shift 16 shift ] unit-test
+{ 4294967296 } [ 1 32 shift ] unit-test
+{ 1267650600228229401496703205376 } [ 1 100 shift ] unit-test
+
+{ t } [ 1 26 shift fixnum? ] unit-test
+
+{ t } [
     t
     [ 27 28 29 30 31 32 59 60 61 62 63 64 ]
     [
@@ -179,7 +179,7 @@ IN: math.integers.tests
     ] each
 ] unit-test
 
-[ t ] [
+{ t } [
     t
     [ 27 28 29 30 31 32 59 60 61 62 63 64 ]
     [
@@ -187,31 +187,31 @@ IN: math.integers.tests
     ] each
 ] unit-test
 
-[ 12 ] [ 11 4 align ] unit-test
-[ 12 ] [ 12 4 align ] unit-test
-[ 10 ] [ 10 2 align ] unit-test
-[ 14 ] [ 13 2 align ] unit-test
-[ 11 ] [ 11 1 align ] unit-test
+{ 12 } [ 11 4 align ] unit-test
+{ 12 } [ 12 4 align ] unit-test
+{ 10 } [ 10 2 align ] unit-test
+{ 14 } [ 13 2 align ] unit-test
+{ 11 } [ 11 1 align ] unit-test
 
-[ t ] [ 256 power-of-2? ] unit-test
-[ f ] [ 123 power-of-2? ] unit-test
+{ t } [ 256 power-of-2? ] unit-test
+{ f } [ 123 power-of-2? ] unit-test
 
-[ f ] [ -128 power-of-2? ] unit-test
-[ f ] [ 0 power-of-2? ] unit-test
-[ t ] [ 1 power-of-2? ] unit-test
+{ f } [ -128 power-of-2? ] unit-test
+{ f } [ 0 power-of-2? ] unit-test
+{ t } [ 1 power-of-2? ] unit-test
 
 : ratio>float ( a b -- f ) [ >bignum ] bi@ /f ;
 
-[ 5. ] [ 5 1 ratio>float ] unit-test
-[ 4. ] [ 4 1 ratio>float ] unit-test
-[ 2. ] [ 2 1 ratio>float ] unit-test
-[ .5 ] [ 1 2 ratio>float ] unit-test
-[ .75 ] [ 3 4 ratio>float ] unit-test
-[ 1. ] [ 2000 2^ 2000 2^ 1 + ratio>float ] unit-test
-[ -1. ] [ 2000 2^ neg 2000 2^ 1 + ratio>float ] unit-test
-[ 0.4 ] [ 6 15 ratio>float ] unit-test
+{ 5. } [ 5 1 ratio>float ] unit-test
+{ 4. } [ 4 1 ratio>float ] unit-test
+{ 2. } [ 2 1 ratio>float ] unit-test
+{ .5 } [ 1 2 ratio>float ] unit-test
+{ .75 } [ 3 4 ratio>float ] unit-test
+{ 1. } [ 2000 2^ 2000 2^ 1 + ratio>float ] unit-test
+{ -1. } [ 2000 2^ neg 2000 2^ 1 + ratio>float ] unit-test
+{ 0.4 } [ 6 15 ratio>float ] unit-test
 
-[ 0x3fe553522d230931 ]
+{ 0x3fe553522d230931 }
 [ 61967020039 92984792073 ratio>float double>bits ] unit-test
 
 : random-integer ( -- n )
@@ -219,7 +219,7 @@ IN: math.integers.tests
     { t f } random [ neg ] when
     { t f } random [ >bignum ] when ;
 
-[ t ] [
+{ t } [
     10000 [
         drop
         random-integer
@@ -229,46 +229,46 @@ IN: math.integers.tests
 ] unit-test
 
 ! Ensure that /f is accurate for fixnums > 2^53 on 64-bit platforms
-[ 0x1.758bec11492f9p-54 ] [ 1 12345678901234567 /f ] unit-test
-[ -0x1.758bec11492f9p-54 ] [ 1 -12345678901234567 /f ] unit-test
+{ 0x1.758bec11492f9p-54 } [ 1 12345678901234567 /f ] unit-test
+{ -0x1.758bec11492f9p-54 } [ 1 -12345678901234567 /f ] unit-test
 
 ! Ensure that /f rounds to nearest and not to zero
-[ 0x1.0p55 ] [ 0x7f,ffff,ffff,ffff >bignum 1 /f ] unit-test
-[ 0x1.0p55 ] [ -0x7f,ffff,ffff,ffff >bignum -1 /f ] unit-test
-[ -0x1.0p55 ] [ -0x7f,ffff,ffff,ffff >bignum 1 /f ] unit-test
-[ -0x1.0p55 ] [ 0x7f,ffff,ffff,ffff >bignum -1 /f ] unit-test
-
-[ 0x1.0000,0000,0000,0p56 ] [ 0x100,0000,0000,0007 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,0p56 ] [ -0x100,0000,0000,0007 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,0p120 ] [ 0x100,0000,0000,0007,FFFF,FFFF,FFFF,FFFF >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,0p120 ] [ -0x100,0000,0000,0007,FFFF,FFFF,FFFF,FFFF >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,0p56 ] [ 0x100,0000,0000,0008 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,0p56 ] [ -0x100,0000,0000,0008 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p56 ] [ 0x100,0000,0000,0009 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p56 ] [ -0x100,0000,0000,0009 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p120 ] [ 0x100,0000,0000,0008,0000,0000,0000,0001 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p120 ] [ -0x100,0000,0000,0008,0000,0000,0000,0001 >bignum -1 /f ] unit-test
+{ 0x1.0p55 } [ 0x7f,ffff,ffff,ffff >bignum 1 /f ] unit-test
+{ 0x1.0p55 } [ -0x7f,ffff,ffff,ffff >bignum -1 /f ] unit-test
+{ -0x1.0p55 } [ -0x7f,ffff,ffff,ffff >bignum 1 /f ] unit-test
+{ -0x1.0p55 } [ 0x7f,ffff,ffff,ffff >bignum -1 /f ] unit-test
+
+{ 0x1.0000,0000,0000,0p56 } [ 0x100,0000,0000,0007 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,0p56 } [ -0x100,0000,0000,0007 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,0p120 } [ 0x100,0000,0000,0007,FFFF,FFFF,FFFF,FFFF >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,0p120 } [ -0x100,0000,0000,0007,FFFF,FFFF,FFFF,FFFF >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,0p56 } [ 0x100,0000,0000,0008 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,0p56 } [ -0x100,0000,0000,0008 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p56 } [ 0x100,0000,0000,0009 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p56 } [ -0x100,0000,0000,0009 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p120 } [ 0x100,0000,0000,0008,0000,0000,0000,0001 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p120 } [ -0x100,0000,0000,0008,0000,0000,0000,0001 >bignum -1 /f ] unit-test
 
 ! Ensure that /f rounds to even on tie
-[ 0x1.0000,0000,0000,1p56 ] [ 0x100,0000,0000,0017 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p56 ] [ -0x100,0000,0000,0017 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p120 ] [ 0x100,0000,0000,0017,FFFF,FFFF,FFFF,FFFF >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,1p120 ] [ -0x100,0000,0000,0017,FFFF,FFFF,FFFF,FFFF >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p56 ] [ 0x100,0000,0000,0018 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p56 ] [ -0x100,0000,0000,0018 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p56 ] [ 0x100,0000,0000,0019 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p56 ] [ -0x100,0000,0000,0019 >bignum -1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p120 ] [ 0x100,0000,0000,0018,0000,0000,0000,0001 >bignum 1 /f ] unit-test
-[ 0x1.0000,0000,0000,2p120 ] [ -0x100,0000,0000,0018,0000,0000,0000,0001 >bignum -1 /f ] unit-test
-
-[ 17 ] [ 17 >bignum 5 max ] unit-test
-[ 5 ] [ 17 >bignum 5 min ] unit-test
-
-[ 1 ] [ 1 202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 /f double>bits ] unit-test
-[ 12 ] [ 3 50600563326827654588123836679729326762389162441035529589225339506857584891998836722990095925359281123796769466079202977847452184346448369216753349985184627480379356069141590341116726935523304085309941919618186267140501870856173174654525838912289889085202514128089692388083353653807625633046581877161501565826926935273373696 /f double>bits ] unit-test
-[ 123 ] [ 123 202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 /f double>bits ] unit-test
-[ 1234 ] [ 617 101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 /f double>bits ] unit-test
-[ 1/0. ] [ 2048 2^ 1 /f ] unit-test
-[ -1/0. ] [ 2048 2^ -1 /f ] unit-test
-[ -1/0. ] [ 2048 2^ neg 1 /f ] unit-test
-[ 1/0. ] [ 2048 2^ neg -1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p56 } [ 0x100,0000,0000,0017 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p56 } [ -0x100,0000,0000,0017 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p120 } [ 0x100,0000,0000,0017,FFFF,FFFF,FFFF,FFFF >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,1p120 } [ -0x100,0000,0000,0017,FFFF,FFFF,FFFF,FFFF >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p56 } [ 0x100,0000,0000,0018 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p56 } [ -0x100,0000,0000,0018 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p56 } [ 0x100,0000,0000,0019 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p56 } [ -0x100,0000,0000,0019 >bignum -1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p120 } [ 0x100,0000,0000,0018,0000,0000,0000,0001 >bignum 1 /f ] unit-test
+{ 0x1.0000,0000,0000,2p120 } [ -0x100,0000,0000,0018,0000,0000,0000,0001 >bignum -1 /f ] unit-test
+
+{ 17 } [ 17 >bignum 5 max ] unit-test
+{ 5 } [ 17 >bignum 5 min ] unit-test
+
+{ 1 } [ 1 202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 /f double>bits ] unit-test
+{ 12 } [ 3 50600563326827654588123836679729326762389162441035529589225339506857584891998836722990095925359281123796769466079202977847452184346448369216753349985184627480379356069141590341116726935523304085309941919618186267140501870856173174654525838912289889085202514128089692388083353653807625633046581877161501565826926935273373696 /f double>bits ] unit-test
+{ 123 } [ 123 202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 /f double>bits ] unit-test
+{ 1234 } [ 617 101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 /f double>bits ] unit-test
+{ 1/0. } [ 2048 2^ 1 /f ] unit-test
+{ -1/0. } [ 2048 2^ -1 /f ] unit-test
+{ -1/0. } [ 2048 2^ neg 1 /f ] unit-test
+{ 1/0. } [ 2048 2^ neg -1 /f ] unit-test
index fd3ad94c959a6ac39d117fd0cdfb89a0703fc342..ef7a8438d86f9540fe70f6b585b0e0bee2e3cd17 100644 (file)
@@ -1,84 +1,84 @@
 USING: kernel layouts math math.private namespaces make tools.test ;
 IN: math.tests
 
-[ ] [ 5 [ ] times ] unit-test
-[ ] [ 0 [ ] times ] unit-test
-[ ] [ -1 [ ] times ] unit-test
-
-[ ] [ 5 [ drop ] each-integer ] unit-test
-[ [ 0 1 2 3 4 ] ] [ [ 5 [ , ] each-integer ] [ ] make ] unit-test
-[ [ ] ] [ [ -1 [ , ] each-integer ] [ ] make ] unit-test
-
-[ f ] [ 1/0. fp-nan? ] unit-test
-[ f ] [ -1/0. fp-nan? ] unit-test
-[ t ] [ -0/0. fp-nan? ] unit-test
-[ t ] [ 1 <fp-nan> fp-nan? ] unit-test
+{ } [ 5 [ ] times ] unit-test
+{ } [ 0 [ ] times ] unit-test
+{ } [ -1 [ ] times ] unit-test
+
+{ } [ 5 [ drop ] each-integer ] unit-test
+{ [ 0 1 2 3 4 ] } [ [ 5 [ , ] each-integer ] [ ] make ] unit-test
+{ [ ] } [ [ -1 [ , ] each-integer ] [ ] make ] unit-test
+
+{ f } [ 1/0. fp-nan? ] unit-test
+{ f } [ -1/0. fp-nan? ] unit-test
+{ t } [ -0/0. fp-nan? ] unit-test
+{ t } [ 1 <fp-nan> fp-nan? ] unit-test
 ! [ t ] [ 1 <fp-nan> fp-snan? ] unit-test
 ! [ f ] [ 1 <fp-nan> fp-qnan? ] unit-test
-[ t ] [ 0x8000000000001 <fp-nan> fp-nan? ] unit-test
-[ f ] [ 0x8000000000001 <fp-nan> fp-snan? ] unit-test
-[ t ] [ 0x8000000000001 <fp-nan> fp-qnan? ] unit-test
-
-[ t ] [ 1/0. fp-infinity? ] unit-test
-[ t ] [ -1/0. fp-infinity? ] unit-test
-[ f ] [ -0/0. fp-infinity? ] unit-test
-
-[ f ] [ 0 <fp-nan> fp-nan? ] unit-test
-[ t ] [ 0 <fp-nan> fp-infinity? ] unit-test
-
-[ t ] [  0.0 neg -0.0 fp-bitwise= ] unit-test
-[ t ] [ -0.0 neg  0.0 fp-bitwise= ] unit-test
-
-[ 0.0 ] [ -0.0 next-float ] unit-test
-[ t ] [ 1.0 dup next-float < ] unit-test
-[ t ] [ -1.0 dup next-float < ] unit-test
-
-[ -0.0 ] [ 0.0 prev-float ] unit-test
-[ t ] [ 1.0 dup prev-float > ] unit-test
-[ t ] [ -1.0 dup prev-float > ] unit-test
-
-[ f ] [ 0/0.  0/0. = ] unit-test
-[ f ] [ 0/0.  1.0  = ] unit-test
-[ f ] [ 0/0.  1/0. = ] unit-test
-[ f ] [ 0/0. -1/0. = ] unit-test
-
-[ f ] [  0/0. 0/0. = ] unit-test
-[ f ] [  1.0  0/0. = ] unit-test
-[ f ] [ -1/0. 0/0. = ] unit-test
-[ f ] [  1/0. 0/0. = ] unit-test
-
-[ f ] [ 0/0.  0/0. < ] unit-test
-[ f ] [ 0/0.  1.0  < ] unit-test
-[ f ] [ 0/0.  1/0. < ] unit-test
-[ f ] [ 0/0. -1/0. < ] unit-test
-
-[ f ] [ 0/0.  0/0. <= ] unit-test
-[ f ] [ 0/0.  1.0  <= ] unit-test
-[ f ] [ 0/0.  1/0. <= ] unit-test
-[ f ] [ 0/0. -1/0. <= ] unit-test
-
-[ f ] [  0/0. 0/0. > ] unit-test
-[ f ] [  1.0  0/0. > ] unit-test
-[ f ] [ -1/0. 0/0. > ] unit-test
-[ f ] [  1/0. 0/0. > ] unit-test
-
-[ f ] [  0/0. 0/0. >= ] unit-test
-[ f ] [  1.0  0/0. >= ] unit-test
-[ f ] [ -1/0. 0/0. >= ] unit-test
-[ f ] [  1/0. 0/0. >= ] unit-test
-
-[ f ] [ 0 neg? ] unit-test
-[ f ] [ 1/2 neg? ] unit-test
-[ f ] [ 1 neg? ] unit-test
-[ t ] [ -1/2 neg? ] unit-test
-[ t ] [ -1 neg? ] unit-test
-
-[ f ] [ 0.0 neg? ] unit-test
-[ f ] [ 1.0 neg? ] unit-test
-[ f ] [ 1/0. neg? ] unit-test
-[ t ] [ -0.0 neg? ] unit-test
-[ t ] [ -1.0 neg? ] unit-test
-[ t ] [ -1/0. neg? ] unit-test
+{ t } [ 0x8000000000001 <fp-nan> fp-nan? ] unit-test
+{ f } [ 0x8000000000001 <fp-nan> fp-snan? ] unit-test
+{ t } [ 0x8000000000001 <fp-nan> fp-qnan? ] unit-test
+
+{ t } [ 1/0. fp-infinity? ] unit-test
+{ t } [ -1/0. fp-infinity? ] unit-test
+{ f } [ -0/0. fp-infinity? ] unit-test
+
+{ f } [ 0 <fp-nan> fp-nan? ] unit-test
+{ t } [ 0 <fp-nan> fp-infinity? ] unit-test
+
+{ t } [  0.0 neg -0.0 fp-bitwise= ] unit-test
+{ t } [ -0.0 neg  0.0 fp-bitwise= ] unit-test
+
+{ 0.0 } [ -0.0 next-float ] unit-test
+{ t } [ 1.0 dup next-float < ] unit-test
+{ t } [ -1.0 dup next-float < ] unit-test
+
+{ -0.0 } [ 0.0 prev-float ] unit-test
+{ t } [ 1.0 dup prev-float > ] unit-test
+{ t } [ -1.0 dup prev-float > ] unit-test
+
+{ f } [ 0/0.  0/0. = ] unit-test
+{ f } [ 0/0.  1.0  = ] unit-test
+{ f } [ 0/0.  1/0. = ] unit-test
+{ f } [ 0/0. -1/0. = ] unit-test
+
+{ f } [  0/0. 0/0. = ] unit-test
+{ f } [  1.0  0/0. = ] unit-test
+{ f } [ -1/0. 0/0. = ] unit-test
+{ f } [  1/0. 0/0. = ] unit-test
+
+{ f } [ 0/0.  0/0. < ] unit-test
+{ f } [ 0/0.  1.0  < ] unit-test
+{ f } [ 0/0.  1/0. < ] unit-test
+{ f } [ 0/0. -1/0. < ] unit-test
+
+{ f } [ 0/0.  0/0. <= ] unit-test
+{ f } [ 0/0.  1.0  <= ] unit-test
+{ f } [ 0/0.  1/0. <= ] unit-test
+{ f } [ 0/0. -1/0. <= ] unit-test
+
+{ f } [  0/0. 0/0. > ] unit-test
+{ f } [  1.0  0/0. > ] unit-test
+{ f } [ -1/0. 0/0. > ] unit-test
+{ f } [  1/0. 0/0. > ] unit-test
+
+{ f } [  0/0. 0/0. >= ] unit-test
+{ f } [  1.0  0/0. >= ] unit-test
+{ f } [ -1/0. 0/0. >= ] unit-test
+{ f } [  1/0. 0/0. >= ] unit-test
+
+{ f } [ 0 neg? ] unit-test
+{ f } [ 1/2 neg? ] unit-test
+{ f } [ 1 neg? ] unit-test
+{ t } [ -1/2 neg? ] unit-test
+{ t } [ -1 neg? ] unit-test
+
+{ f } [ 0.0 neg? ] unit-test
+{ f } [ 1.0 neg? ] unit-test
+{ f } [ 1/0. neg? ] unit-test
+{ t } [ -0.0 neg? ] unit-test
+{ t } [ -1.0 neg? ] unit-test
+{ t } [ -1/0. neg? ] unit-test
 
 { -0x3fffffff } [ 0x3ffffffe >bignum bitnot ] unit-test
 { -0x40000000 } [ 0x3fffffff >bignum bitnot ] unit-test
index edd50d3f55a68052debc33956e7e16ddd59d7473..9a896f0fad2fb780be5fbe0b866b857c4626a8b0 100644 (file)
@@ -1,12 +1,12 @@
 USING: kernel math.order tools.test ;
 IN: math.order.tests
 
-[ +lt+ ] [ "ab" "abc" <=> ] unit-test
-[ +gt+ ] [ "abc" "ab" <=> ] unit-test
-[ +lt+ ] [ 3 4 <=> ] unit-test
-[ +eq+ ] [ 4 4 <=> ] unit-test
-[ +gt+ ] [ 4 3 <=> ] unit-test
+{ +lt+ } [ "ab" "abc" <=> ] unit-test
+{ +gt+ } [ "abc" "ab" <=> ] unit-test
+{ +lt+ } [ 3 4 <=> ] unit-test
+{ +eq+ } [ 4 4 <=> ] unit-test
+{ +gt+ } [ 4 3 <=> ] unit-test
 
-[ 20 ] [ 20 0 100 clamp ] unit-test
-[ 0 ] [ -20 0 100 clamp ] unit-test
-[ 100 ] [ 120 0 100 clamp ] unit-test
+{ 20 } [ 20 0 100 clamp ] unit-test
+{ 0 } [ -20 0 100 clamp ] unit-test
+{ 100 } [ 120 0 100 clamp ] unit-test
index 89d58b623eb90b271cfdf7ee7fe5c3f750b1a6e7..dbc24f6f668b24d1badbfed2915c3f1e668def3d 100644 (file)
 USING: kernel literals math math.parser sequences tools.test ;
 IN: math.parser.tests
 
-[ f ]
+{ f }
 [ f string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ ";" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "<>" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "^" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "789:;<=>?@" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "12345abcdef" string>number ]
 unit-test
 
-[ 12 ]
+{ 12 }
 [ "+12" string>number ]
 unit-test
 
-[ -12 ]
+{ -12 }
 [ "-12" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "-+12" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "+-12" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "--12" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "-" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "e" string>number ]
 unit-test
 
-[ 1/2 ] [ "1/2" string>number ] unit-test
-[ -1/2 ] [ "-1/2" string>number ] unit-test
-[ 2 ] [ "4/2" string>number ] unit-test
-[ f ] [ "1/-2" string>number ] unit-test
-[ f ] [ "1/2/3" string>number ] unit-test
-[ 1+1/2 ] [ "1+1/2" string>number ] unit-test
-[ 1+1/2 ] [ "+1+1/2" string>number ] unit-test
-[ f ] [ "1-1/2" string>number ] unit-test
-[ -1-1/2 ] [ "-1-1/2" string>number ] unit-test
-[ f ] [ "-1+1/2" string>number ] unit-test
-[ f ] [ "1+2" string>number ] unit-test
-[ f ] [ "1+" string>number ] unit-test
-[ f ] [ "1-" string>number ] unit-test
-[ f ] [ "1+1/2+2" string>number ] unit-test
-
-[ 100000 ] [ "100,000" string>number ] unit-test
-
-[ 100000.0 ] [ "100,000.0" string>number ] unit-test
-
-[ f ] [ "," string>number ] unit-test
-[ f ] [ "-," string>number ] unit-test
-[ f ] [ "1," string>number ] unit-test
-[ f ] [ "-1," string>number ] unit-test
-[ f ] [ ",2" string>number ] unit-test
-[ f ] [ "-,2" string>number ] unit-test
-
-[ 2.0 ] [ "2." string>number ] unit-test
-[ 2.0 ] [ "+2." string>number ] unit-test
-[ 0.25 ] [ ".25" string>number ] unit-test
-[ -2.0 ] [ "-2." string>number ] unit-test
-[ -0.25 ] [ "-.25" string>number ] unit-test
-[ f ]  [ "-." string>number ] unit-test
-
-[ 255 ] [ "ff" hex> ] unit-test
-
-[ 100.0 ] [ "1.0e2" string>number ] unit-test
-[ 100.0 ] [ "100.0" string>number ] unit-test
-[ 100.0 ] [ "100." string>number ] unit-test
-
-[ 100.0 ] [ "1e2" string>number ] unit-test
-[ 100.0 ] [ "1e+2" string>number ] unit-test
-[ 0x1e2 ] [ "1e2" hex> ] unit-test
-
-[ 0x1.999999999999ap-3 ] [ "0.2" string>number ] unit-test
-[ 0x1.3333333333333p0  ] [ "1.2" string>number ] unit-test
-[ 0x1.5555555555555p0  ] [ "1.333,333,333,333,333,333" string>number ] unit-test
-[ 0x1.aaaaaaaaaaaabp0  ] [ "1.666,666,666,666,666,666" string>number ] unit-test
-
-[ "100.0" ]
+{ 1/2 } [ "1/2" string>number ] unit-test
+{ -1/2 } [ "-1/2" string>number ] unit-test
+{ 2 } [ "4/2" string>number ] unit-test
+{ f } [ "1/-2" string>number ] unit-test
+{ f } [ "1/2/3" string>number ] unit-test
+{ 1+1/2 } [ "1+1/2" string>number ] unit-test
+{ 1+1/2 } [ "+1+1/2" string>number ] unit-test
+{ f } [ "1-1/2" string>number ] unit-test
+{ -1-1/2 } [ "-1-1/2" string>number ] unit-test
+{ f } [ "-1+1/2" string>number ] unit-test
+{ f } [ "1+2" string>number ] unit-test
+{ f } [ "1+" string>number ] unit-test
+{ f } [ "1-" string>number ] unit-test
+{ f } [ "1+1/2+2" string>number ] unit-test
+
+{ 100000 } [ "100,000" string>number ] unit-test
+
+{ 100000.0 } [ "100,000.0" string>number ] unit-test
+
+{ f } [ "," string>number ] unit-test
+{ f } [ "-," string>number ] unit-test
+{ f } [ "1," string>number ] unit-test
+{ f } [ "-1," string>number ] unit-test
+{ f } [ ",2" string>number ] unit-test
+{ f } [ "-,2" string>number ] unit-test
+
+{ 2.0 } [ "2." string>number ] unit-test
+{ 2.0 } [ "+2." string>number ] unit-test
+{ 0.25 } [ ".25" string>number ] unit-test
+{ -2.0 } [ "-2." string>number ] unit-test
+{ -0.25 } [ "-.25" string>number ] unit-test
+{ f }  [ "-." string>number ] unit-test
+
+{ 255 } [ "ff" hex> ] unit-test
+
+{ 100.0 } [ "1.0e2" string>number ] unit-test
+{ 100.0 } [ "100.0" string>number ] unit-test
+{ 100.0 } [ "100." string>number ] unit-test
+
+{ 100.0 } [ "1e2" string>number ] unit-test
+{ 100.0 } [ "1e+2" string>number ] unit-test
+{ 0x1e2 } [ "1e2" hex> ] unit-test
+
+{ 0x1.999999999999ap-3 } [ "0.2" string>number ] unit-test
+{ 0x1.3333333333333p0  } [ "1.2" string>number ] unit-test
+{ 0x1.5555555555555p0  } [ "1.333,333,333,333,333,333" string>number ] unit-test
+{ 0x1.aaaaaaaaaaaabp0  } [ "1.666,666,666,666,666,666" string>number ] unit-test
+
+{ "100.0" }
 [ "1.0e2" string>number number>string ]
 unit-test
 
-[ -100.0 ] [ "-1.0e2" string>number ] unit-test
-[ -100.0 ] [ "-100.0" string>number ] unit-test
-[ -100.0 ] [ "-100." string>number ] unit-test
+{ -100.0 } [ "-1.0e2" string>number ] unit-test
+{ -100.0 } [ "-100.0" string>number ] unit-test
+{ -100.0 } [ "-100." string>number ] unit-test
 
-[ "-100.0" ]
+{ "-100.0" }
 [ "-1.0e2" string>number number>string ]
 unit-test
 
-[ -100.0 ] [ "-1.e2" string>number ] unit-test
+{ -100.0 } [ "-1.e2" string>number ] unit-test
 
-[ "0.01" ]
+{ "0.01" }
 [ "1.0e-2" string>number number>string ]
 unit-test
 
-[ 0.01 ] [ "1.0e-2" string>number ] unit-test
+{ 0.01 } [ "1.0e-2" string>number ] unit-test
 
-[ "-0.01" ]
+{ "-0.01" }
 [ "-1.0e-2" string>number number>string ]
 unit-test
 
-[ -0.01 ] [ "-1.0e-2" string>number ] unit-test
+{ -0.01 } [ "-1.0e-2" string>number ] unit-test
 
-[ "-0.01" ]
+{ "-0.01" }
 [ "-1.e-2" string>number number>string ]
 unit-test
 
-[ -1.0e-12 ] [ "-1.0e-12" string>number ] unit-test
+{ -1.0e-12 } [ "-1.0e-12" string>number ] unit-test
 
-[ t ]
+{ t }
 [ "-1.0e-12" string>number number>string { "-1.0e-12" "-1.0e-012" } member? ]
 unit-test
 
-[ f ]
+{ f }
 [ "-1e-2e4" string>number ]
 unit-test
 
-[ "3.14" ]
+{ "3.14" }
 [ "3.14" string>number number>string ]
 unit-test
 
-[ f ]
+{ f }
 [ "." string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ ".e" string>number ]
 unit-test
 
-[ "101.0" ]
+{ "101.0" }
 [ "1.01e2" string>number number>string ]
 unit-test
 
-[ "-101.0" ]
+{ "-101.0" }
 [ "-1.01e2" string>number number>string ]
 unit-test
 
-[ "1.01" ]
+{ "1.01" }
 [ "101.0e-2" string>number number>string ]
 unit-test
 
-[ "-1.01" ]
+{ "-1.01" }
 [ "-101.0e-2" string>number number>string ]
 unit-test
 
-[ f ]
+{ f }
 [ "1e1/2" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "1e1.2" string>number ]
 unit-test
 
-[ f ]
+{ f }
 [ "e/2" string>number ]
 unit-test
 
-[ f ] [ "12" bin> ] unit-test
-[ f ] [ "fdsf" bin> ] unit-test
-[ 3 ] [ "11" bin> ] unit-test
+{ f } [ "12" bin> ] unit-test
+{ f } [ "fdsf" bin> ] unit-test
+{ 3 } [ "11" bin> ] unit-test
 
-[ f ] [ "\0." string>number ] unit-test
+{ f } [ "\0." string>number ] unit-test
 
 [ 1 1 >base ] must-fail
 [ 1 0 >base ] must-fail
@@ -194,168 +194,168 @@ unit-test
 [ 123.456 8 >base ] [ invalid-radix? ] must-fail-with
 [ 123.456 2 >base ] [ invalid-radix? ] must-fail-with
 
-[ "0/0." ] [ 0.0 0.0 / number>string ] unit-test
-
-[ "1/0." ] [ 1.0 0.0 / number>string ] unit-test
-
-[ "-1/0." ] [ -1.0 0.0 / number>string ] unit-test
-
-[ t ] [ "0/0." string>number fp-nan? ] unit-test
-
-[ 1/0. ] [ "1/0." string>number ] unit-test
-
-[ -1/0. ] [ "-1/0." string>number ] unit-test
-
-[ -0.5 ] [ "-1/2." string>number ] unit-test
-
-[ "-0.0" ] [ -0.0 number>string ] unit-test
-
-[ "-3/4" ] [ -3/4 number>string ] unit-test
-[ "-1-1/4" ] [ -5/4 number>string ] unit-test
-
-[ "1.0p0" ] [ 1.0 >hex ] unit-test
-[ "1.8p2" ] [ 6.0 >hex ] unit-test
-[ "1.08p2" ] [ 4.125 >hex ] unit-test
-[ "1.8p-2" ] [ 0.375 >hex ] unit-test
-[ "-1.8p2" ] [ -6.0 >hex ] unit-test
-[ "1.8p10" ] [ 1536.0 >hex ] unit-test
-[ "0.0" ] [ 0.0 >hex ] unit-test
-[ "1.0p-1074" ] [ 1 bits>double >hex ] unit-test
-[ "-0.0" ] [ -0.0 >hex ] unit-test
-
-[ 1.0 ] [ "1.0p0" hex> ] unit-test
-[ 1.5 ] [ "1.8p0" hex> ] unit-test
-[ 1.875 ] [ "1.ep0" hex> ] unit-test
-[ 1.90625 ] [ "1.e8p0" hex> ] unit-test
-[ 1.03125 ] [ "1.08p0" hex> ] unit-test
-[ 15.5 ] [ "f.8p0" hex> ] unit-test
-[ 15.53125 ] [ "f.88p0" hex> ] unit-test
-[ -15.5 ] [ "-f.8p0" hex> ] unit-test
-[ 15.5 ] [ "f.8p0" hex> ] unit-test
-[ -15.5 ] [ "-f.8p0" hex> ] unit-test
-[ 62.0 ] [ "f.8p2" hex> ] unit-test
-[ 3.875 ] [ "f.8p-2" hex> ] unit-test
-[ $[ 1 bits>double ] ] [ "1.0p-1074" hex> ] unit-test
-[ 0.0 ] [ "1.0p-1075" hex> ] unit-test
-[ 1/0. ] [ "1.0p1024" hex> ] unit-test
-[ -1/0. ] [ "-1.0p1024" hex> ] unit-test
-
-[ 0 ] [ "0" string>number ] unit-test
-[ 0 ] [ "00" string>number ] unit-test
-[ 0 ] [ "0,000" string>number ] unit-test
-[ 0.0 ] [ "0." string>number ] unit-test
-[ 0.0 ] [ "0.0" string>number ] unit-test
-[ 0.0 ] [ "0x0.0p0" string>number ] unit-test
-[ 0 ] [ "0x0" string>number ] unit-test
-[ 0 ] [ "0o0" string>number ] unit-test
-[ 0 ] [ "0b0" string>number ] unit-test
-
-[ 10 ] [ "010" string>number ] unit-test
-[ 16 ] [ "0x10" string>number ] unit-test
-[  8 ] [ "0o10" string>number ] unit-test
-[  2 ] [ "0b10" string>number ] unit-test
-
-[ -10 ] [ "-010" string>number ] unit-test
-[ -16 ] [ "-0x10" string>number ] unit-test
-[  -8 ] [ "-0o10" string>number ] unit-test
-[  -2 ] [ "-0b10" string>number ] unit-test
-
-[ f ] [ "01a" string>number ] unit-test
-[ f ] [ "0x1g" string>number ] unit-test
-[ f ] [ "0o18" string>number ] unit-test
-[ f ] [ "0b12" string>number ] unit-test
-
-[ 11 ] [ "0x0b" string>number ] unit-test
-[ f  ] [ "0x0o0" string>number ] unit-test
-
-[ 0x7FFF,ABCD ] [ "0x7FFF,ABCD" string>number ] unit-test
-
-[ 1.0 ] [ "0x1.0p0" string>number ] unit-test
-[ 6.0 ] [ "0x1.8p2" string>number ] unit-test
-[ 0.375 ] [ "0x1.8p-2" string>number ] unit-test
-[ -6.0 ] [ "-0x1.8p2" string>number ] unit-test
-[ -0.375 ] [ "-0x1.8p-2" string>number ] unit-test
-
-[ f ] [ "0x" string>number ] unit-test
-[ f ] [ "0b" string>number ] unit-test
-[ f ] [ "0o" string>number ] unit-test
-[ f ] [ "0x," string>number ] unit-test
-[ f ] [ "0b," string>number ] unit-test
-[ f ] [ "0o," string>number ] unit-test
-[ f ] [ "0x,1" string>number ] unit-test
-[ f ] [ "0b,1" string>number ] unit-test
-[ f ] [ "0o,1" string>number ] unit-test
-[ f ] [ "0x1," string>number ] unit-test
-[ f ] [ "0b1," string>number ] unit-test
-[ f ] [ "0o1," string>number ] unit-test
+{ "0/0." } [ 0.0 0.0 / number>string ] unit-test
+
+{ "1/0." } [ 1.0 0.0 / number>string ] unit-test
+
+{ "-1/0." } [ -1.0 0.0 / number>string ] unit-test
+
+{ t } [ "0/0." string>number fp-nan? ] unit-test
+
+{ 1/0. } [ "1/0." string>number ] unit-test
+
+{ -1/0. } [ "-1/0." string>number ] unit-test
+
+{ -0.5 } [ "-1/2." string>number ] unit-test
+
+{ "-0.0" } [ -0.0 number>string ] unit-test
+
+{ "-3/4" } [ -3/4 number>string ] unit-test
+{ "-1-1/4" } [ -5/4 number>string ] unit-test
+
+{ "1.0p0" } [ 1.0 >hex ] unit-test
+{ "1.8p2" } [ 6.0 >hex ] unit-test
+{ "1.08p2" } [ 4.125 >hex ] unit-test
+{ "1.8p-2" } [ 0.375 >hex ] unit-test
+{ "-1.8p2" } [ -6.0 >hex ] unit-test
+{ "1.8p10" } [ 1536.0 >hex ] unit-test
+{ "0.0" } [ 0.0 >hex ] unit-test
+{ "1.0p-1074" } [ 1 bits>double >hex ] unit-test
+{ "-0.0" } [ -0.0 >hex ] unit-test
+
+{ 1.0 } [ "1.0p0" hex> ] unit-test
+{ 1.5 } [ "1.8p0" hex> ] unit-test
+{ 1.875 } [ "1.ep0" hex> ] unit-test
+{ 1.90625 } [ "1.e8p0" hex> ] unit-test
+{ 1.03125 } [ "1.08p0" hex> ] unit-test
+{ 15.5 } [ "f.8p0" hex> ] unit-test
+{ 15.53125 } [ "f.88p0" hex> ] unit-test
+{ -15.5 } [ "-f.8p0" hex> ] unit-test
+{ 15.5 } [ "f.8p0" hex> ] unit-test
+{ -15.5 } [ "-f.8p0" hex> ] unit-test
+{ 62.0 } [ "f.8p2" hex> ] unit-test
+{ 3.875 } [ "f.8p-2" hex> ] unit-test
+{ $[ 1 bits>double ] } [ "1.0p-1074" hex> ] unit-test
+{ 0.0 } [ "1.0p-1075" hex> ] unit-test
+{ 1/0. } [ "1.0p1024" hex> ] unit-test
+{ -1/0. } [ "-1.0p1024" hex> ] unit-test
+
+{ 0 } [ "0" string>number ] unit-test
+{ 0 } [ "00" string>number ] unit-test
+{ 0 } [ "0,000" string>number ] unit-test
+{ 0.0 } [ "0." string>number ] unit-test
+{ 0.0 } [ "0.0" string>number ] unit-test
+{ 0.0 } [ "0x0.0p0" string>number ] unit-test
+{ 0 } [ "0x0" string>number ] unit-test
+{ 0 } [ "0o0" string>number ] unit-test
+{ 0 } [ "0b0" string>number ] unit-test
+
+{ 10 } [ "010" string>number ] unit-test
+{ 16 } [ "0x10" string>number ] unit-test
+{  8 } [ "0o10" string>number ] unit-test
+{  2 } [ "0b10" string>number ] unit-test
+
+{ -10 } [ "-010" string>number ] unit-test
+{ -16 } [ "-0x10" string>number ] unit-test
+{  -8 } [ "-0o10" string>number ] unit-test
+{  -2 } [ "-0b10" string>number ] unit-test
+
+{ f } [ "01a" string>number ] unit-test
+{ f } [ "0x1g" string>number ] unit-test
+{ f } [ "0o18" string>number ] unit-test
+{ f } [ "0b12" string>number ] unit-test
+
+{ 11 } [ "0x0b" string>number ] unit-test
+{ f  } [ "0x0o0" string>number ] unit-test
+
+{ 0x7FFF,ABCD } [ "0x7FFF,ABCD" string>number ] unit-test
+
+{ 1.0 } [ "0x1.0p0" string>number ] unit-test
+{ 6.0 } [ "0x1.8p2" string>number ] unit-test
+{ 0.375 } [ "0x1.8p-2" string>number ] unit-test
+{ -6.0 } [ "-0x1.8p2" string>number ] unit-test
+{ -0.375 } [ "-0x1.8p-2" string>number ] unit-test
+
+{ f } [ "0x" string>number ] unit-test
+{ f } [ "0b" string>number ] unit-test
+{ f } [ "0o" string>number ] unit-test
+{ f } [ "0x," string>number ] unit-test
+{ f } [ "0b," string>number ] unit-test
+{ f } [ "0o," string>number ] unit-test
+{ f } [ "0x,1" string>number ] unit-test
+{ f } [ "0b,1" string>number ] unit-test
+{ f } [ "0o,1" string>number ] unit-test
+{ f } [ "0x1," string>number ] unit-test
+{ f } [ "0b1," string>number ] unit-test
+{ f } [ "0o1," string>number ] unit-test
 
 ! #372
 ! hex float requires exponent
-[ f ] [ "0x1.0" string>number ] unit-test
+{ f } [ "0x1.0" string>number ] unit-test
 
 ! hex float rounds to even on half
-[ 0x1.0000,0000,0000,0p0 ] [ "0x1.0000,0000,0000,0,8p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,2p0 ] [ "0x1.0000,0000,0000,1,8p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,0p0 ] [ "0x8.0000,0000,0000,4p-3" string>number ] unit-test
-[ 0x1.0000,0000,0000,2p0 ] [ "0x8.0000,0000,0000,Cp-3" string>number ] unit-test
+{ 0x1.0000,0000,0000,0p0 } [ "0x1.0000,0000,0000,0,8p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,2p0 } [ "0x1.0000,0000,0000,1,8p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,0p0 } [ "0x8.0000,0000,0000,4p-3" string>number ] unit-test
+{ 0x1.0000,0000,0000,2p0 } [ "0x8.0000,0000,0000,Cp-3" string>number ] unit-test
 
-[ -0x1.0000,0000,0000,0p0 ] [ "-0x1.0000,0000,0000,0,8p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,2p0 ] [ "-0x1.0000,0000,0000,1,8p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,0p0 ] [ "-0x8.0000,0000,0000,4p-3" string>number ] unit-test
-[ -0x1.0000,0000,0000,2p0 ] [ "-0x8.0000,0000,0000,Cp-3" string>number ] unit-test
+{ -0x1.0000,0000,0000,0p0 } [ "-0x1.0000,0000,0000,0,8p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,2p0 } [ "-0x1.0000,0000,0000,1,8p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,0p0 } [ "-0x8.0000,0000,0000,4p-3" string>number ] unit-test
+{ -0x1.0000,0000,0000,2p0 } [ "-0x8.0000,0000,0000,Cp-3" string>number ] unit-test
 
 ! hex float rounds to nearest with tiny epsilons
-[ 0x1.0000,0000,0000,0p0 ] [ "0x1.0000,0000,0000,0,4p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,0p0 ] [ "0x1.0000,0000,0000,0,7Fp0" string>number ] unit-test
-[ 0x1.0000,0000,0000,0p0 ] [ "0x1.0000,0000,0000,0,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,0p0 } [ "0x1.0000,0000,0000,0,4p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,0p0 } [ "0x1.0000,0000,0000,0,7Fp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,0p0 } [ "0x1.0000,0000,0000,0,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
 
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,0,Cp0" string>number ] unit-test
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,0,81p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,0,8000,0000,0000,0001p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,0,Cp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,0,81p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,0,8000,0000,0000,0001p0" string>number ] unit-test
 
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,1,4p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,1,7Fp0" string>number ] unit-test
-[ 0x1.0000,0000,0000,1p0 ] [ "0x1.0000,0000,0000,1,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,1,4p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,1,7Fp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,1p0 } [ "0x1.0000,0000,0000,1,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
 
-[ 0x1.0000,0000,0000,2p0 ] [ "0x1.0000,0000,0000,1,Cp0" string>number ] unit-test
-[ 0x1.0000,0000,0000,2p0 ] [ "0x1.0000,0000,0000,1,81p0" string>number ] unit-test
-[ 0x1.0000,0000,0000,2p0 ] [ "0x1.0000,0000,0000,1,8000,0000,0000,0001p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,2p0 } [ "0x1.0000,0000,0000,1,Cp0" string>number ] unit-test
+{ 0x1.0000,0000,0000,2p0 } [ "0x1.0000,0000,0000,1,81p0" string>number ] unit-test
+{ 0x1.0000,0000,0000,2p0 } [ "0x1.0000,0000,0000,1,8000,0000,0000,0001p0" string>number ] unit-test
 
-[ -0x1.0000,0000,0000,0p0 ] [ "-0x1.0000,0000,0000,0,4p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,0p0 ] [ "-0x1.0000,0000,0000,0,7Fp0" string>number ] unit-test
-[ -0x1.0000,0000,0000,0p0 ] [ "-0x1.0000,0000,0000,0,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,0p0 } [ "-0x1.0000,0000,0000,0,4p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,0p0 } [ "-0x1.0000,0000,0000,0,7Fp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,0p0 } [ "-0x1.0000,0000,0000,0,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
 
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,0,Cp0" string>number ] unit-test
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,0,81p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,0,8000,0000,0000,0001p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,0,Cp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,0,81p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,0,8000,0000,0000,0001p0" string>number ] unit-test
 
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,1,4p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,1,7Fp0" string>number ] unit-test
-[ -0x1.0000,0000,0000,1p0 ] [ "-0x1.0000,0000,0000,1,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,1,4p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,1,7Fp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,1p0 } [ "-0x1.0000,0000,0000,1,7FFF,FFFF,FFFF,FFFFp0" string>number ] unit-test
 
-[ -0x1.0000,0000,0000,2p0 ] [ "-0x1.0000,0000,0000,1,Cp0" string>number ] unit-test
-[ -0x1.0000,0000,0000,2p0 ] [ "-0x1.0000,0000,0000,1,81p0" string>number ] unit-test
-[ -0x1.0000,0000,0000,2p0 ] [ "-0x1.0000,0000,0000,1,8000,0000,0000,0001p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,2p0 } [ "-0x1.0000,0000,0000,1,Cp0" string>number ] unit-test
+{ -0x1.0000,0000,0000,2p0 } [ "-0x1.0000,0000,0000,1,81p0" string>number ] unit-test
+{ -0x1.0000,0000,0000,2p0 } [ "-0x1.0000,0000,0000,1,8000,0000,0000,0001p0" string>number ] unit-test
 
 ! #453
 ! hex> dec> oct> bin> shouldn't admit radix prefixes
 
-[ 0x0b ] [ "0b" hex> ] unit-test
-[ 0x0b0 ] [ "0b0" hex> ] unit-test
-[ f ] [ "0o0" hex> ] unit-test
-[ f ] [ "0x0" hex> ] unit-test
-
-[ f ] [ "0b" dec> ] unit-test
-[ f ] [ "0b0" dec> ] unit-test
-[ f ] [ "0o0" dec> ] unit-test
-[ f ] [ "0x0" dec> ] unit-test
-
-[ f ] [ "0b" oct> ] unit-test
-[ f ] [ "0b0" oct> ] unit-test
-[ f ] [ "0o0" oct> ] unit-test
-[ f ] [ "0x0" oct> ] unit-test
-
-[ f ] [ "0b" bin> ] unit-test
-[ f ] [ "0b0" bin> ] unit-test
-[ f ] [ "0o0" bin> ] unit-test
-[ f ] [ "0x0" bin> ] unit-test
+{ 0x0b } [ "0b" hex> ] unit-test
+{ 0x0b0 } [ "0b0" hex> ] unit-test
+{ f } [ "0o0" hex> ] unit-test
+{ f } [ "0x0" hex> ] unit-test
+
+{ f } [ "0b" dec> ] unit-test
+{ f } [ "0b0" dec> ] unit-test
+{ f } [ "0o0" dec> ] unit-test
+{ f } [ "0x0" dec> ] unit-test
+
+{ f } [ "0b" oct> ] unit-test
+{ f } [ "0b0" oct> ] unit-test
+{ f } [ "0o0" oct> ] unit-test
+{ f } [ "0x0" oct> ] unit-test
+
+{ f } [ "0b" bin> ] unit-test
+{ f } [ "0b0" bin> ] unit-test
+{ f } [ "0o0" bin> ] unit-test
+{ f } [ "0x0" bin> ] unit-test
index 0b7744549fccff930a3cf986f1823f43c61f4983..4f2fe9601c4caa1be91cc20b00a53c313719c2ef 100644 (file)
@@ -11,7 +11,7 @@ IN: memory.tests
 2 [ [ [ 3 throw ] instances ] must-fail ] times
 
 ! Tests for 'become'
-[ ] [ { } { } become ] unit-test
+{ } [ { } { } become ] unit-test
 
 ! Become something when it's on the data stack.
 { "replacer" } [
@@ -34,7 +34,7 @@ IN: memory.tests
 
 ! Bug found on Windows build box, having too many words in the
 ! image breaks 'become'
-[ ] [ 100000 [ f <uninterned-word> ] replicate { } { } become drop ] unit-test
+{ } [ 100000 [ f <uninterned-word> ] replicate { } { } become drop ] unit-test
 
 ! Bug: code heap collection had to be done when data heap was
 ! full, not just when code heap was full. If the code heap
@@ -46,7 +46,7 @@ IN: memory.tests
 
 : leak-loop ( -- ) 100 [ leak-step ] times ;
 
-[ ] [ leak-loop ] unit-test
+{ } [ leak-loop ] unit-test
 
 ! Bug: allocation of large objects directly into tenured space
 ! can proceed past the high water mark.
@@ -60,7 +60,7 @@ IN: memory.tests
 ! large objects are unreachable.
 SYMBOL: foo
 
-[ ] [
+{ } [
     gc
 
     data-room tenured>> size>>
index 27cd6a9d090ce30326eb42917a553e92dd5f7823..08aef97fdcc900fb1ef1fe492e9f829e1107f773 100644 (file)
@@ -7,10 +7,10 @@ H{ } clone "test-namespace" set
 : test-namespace ( -- ? )
     H{ } clone dup [ namespace = ] with-variables ;
 
-[ t ] [ test-namespace ] unit-test
+{ t } [ test-namespace ] unit-test
 
 10 "some-global" set
-[ f ]
+{ f }
 [ H{ } clone [ f "some-global" set "some-global" get ] with-variables ]
 unit-test
 
@@ -21,20 +21,20 @@ f test-initialize set-global
 test-initialize [ 1 ] initialize
 test-initialize [ 2 ] initialize
 
-[ 1 ] [ test-initialize get-global ] unit-test
+{ 1 } [ test-initialize get-global ] unit-test
 
 f test-initialize set-global
 test-initialize [ 5 ] initialize
 
-[ 5 ] [ test-initialize get-global ] unit-test
+{ 5 } [ test-initialize get-global ] unit-test
 
 SYMBOL: toggle-test
-[ f ] [ toggle-test get ] unit-test
-[ t ] [ toggle-test [ toggle ] [ get ] bi ] unit-test
-[ f ] [ toggle-test [ toggle ] [ get ] bi ] unit-test
+{ f } [ toggle-test get ] unit-test
+{ t } [ toggle-test [ toggle ] [ get ] bi ] unit-test
+{ f } [ toggle-test [ toggle ] [ get ] bi ] unit-test
 
-[ t ] [ toggle-test [ on ] [ get ] bi ] unit-test
-[ f ] [ toggle-test [ off ] [ get ] bi ] unit-test
+{ t } [ toggle-test [ on ] [ get ] bi ] unit-test
+{ f } [ toggle-test [ off ] [ get ] bi ] unit-test
 
-[ t ] [ [ test-initialize get-global ] { at* set-at } inlined? ] unit-test
-[ t ] [ [ test-initialize set-global ] { at* set-at } inlined? ] unit-test
+{ t } [ [ test-initialize get-global ] { at* set-at } inlined? ] unit-test
+{ t } [ [ test-initialize set-global ] { at* set-at } inlined? ] unit-test
index c5db975ae319e167553f648635489a4e5fddb8eb..d3b92055698f08a6a72fa59cc2f72d3d07ec9767 100644 (file)
@@ -1,4 +1,4 @@
 USING: lexer namespaces parser.notes source-files tools.test ;
 IN: parser.notes.tests
 
-[ ] [ f lexer set f file set "Hello world" note. ] unit-test
+{ } [ f lexer set f file set "Hello world" note. ] unit-test
index a8412da1b35e47d9c311823fab206e56d97765d9..e342d172f08d901a321fcb7a6bd6f5df6b31222e 100644 (file)
@@ -7,29 +7,29 @@ vocabs.parser words.symbol multiline source-files.errors
 tools.crossref grouping sets ;
 IN: parser.tests
 
-[ 1 [ 2 [ 3 ] 4 ] 5 ]
+{ 1 [ 2 [ 3 ] 4 ] 5 }
 [ "1\n[\n2\n[\n3\n]\n4\n]\n5" eval( -- a b c ) ]
 unit-test
 
-[ t t f f ]
+{ t t f f }
 [ "t t f f" eval( -- ? ? ? ? ) ]
 unit-test
 
-[ "hello world" ]
+{ "hello world" }
 [ "\"hello world\"" eval( -- string ) ]
 unit-test
 
-[ "\n\r\t\\" ]
+{ "\n\r\t\\" }
 [ "\"\\n\\r\\t\\\\\"" eval( -- string ) ]
 unit-test
 
-[ "hello world" ]
+{ "hello world" }
 [
 """#!/usr/bin/env factor
 "hello world" """ eval( -- string )
 ] unit-test
 
-[ "hello world" ]
+{ "hello world" }
 [
     "IN: parser.tests : hello ( -- str ) \"hello world\" ;"
     eval( -- ) "USE: parser.tests hello" eval( -- string )
@@ -42,67 +42,67 @@ unit-test
 [ "IN: parser.tests : 123 ( -- n ) 123 ;" eval( -- ) ]
 [ error>> invalid-word-name? ] must-fail-with
 
-[ ]
+{ }
 [ "! This is a comment, people." eval( -- ) ]
 unit-test
 
 ! Test escapes
 
-[ " " ]
+{ " " }
 [ "\"\\u000020\"" eval( -- string ) ]
 unit-test
 
-[ "'" ]
+{ "'" }
 [ "\"\\u000027\"" eval( -- string ) ]
 unit-test
 
 ! Test EOL comments in multiline strings.
-[ "Hello" ] [ "#! This calls until-eol.\n\"Hello\"" eval( -- string ) ] unit-test
+{ "Hello" } [ "#! This calls until-eol.\n\"Hello\"" eval( -- string ) ] unit-test
 
-[ word ] [ \ f class-of ] unit-test
+{ word } [ \ f class-of ] unit-test
 
 ! Test stack effect parsing
 
 : effect-parsing-test ( a b -- c ) + ;
 
-[ t ] [
+{ t } [
     "effect-parsing-test" "parser.tests" lookup-word
     \ effect-parsing-test eq?
 ] unit-test
 
-[ T{ effect f { "a" "b" } { "c" } f } ]
+{ T{ effect f { "a" "b" } { "c" } f } }
 [ \ effect-parsing-test "declared-effect" word-prop ] unit-test
 
 : baz ( a b -- * ) 2array throw ;
 
-[ t ]
+{ t }
 [ \ baz "declared-effect" word-prop terminated?>> ]
 unit-test
 
-[ ] [ "IN: parser.tests USE: math : effect-parsing-test ( a b -- d ) - ;" eval( -- ) ] unit-test
+{ } [ "IN: parser.tests USE: math : effect-parsing-test ( a b -- d ) - ;" eval( -- ) ] unit-test
 
-[ t ] [
+{ t } [
     "effect-parsing-test" "parser.tests" lookup-word
     \ effect-parsing-test eq?
 ] unit-test
 
-[ T{ effect f { "a" "b" } { "d" } f } ]
+{ T{ effect f { "a" "b" } { "d" } f } }
 [ \ effect-parsing-test "declared-effect" word-prop ] unit-test
 
 [ "IN: parser.tests : missing-- ( a b ) ;" eval( -- ) ] must-fail
 
 ! Funny bug
-[ 2 ] [ "IN: parser.tests : \0. ( -- x ) 2 ; \0." eval( -- n ) ] unit-test
+{ 2 } [ "IN: parser.tests : \0. ( -- x ) 2 ; \0." eval( -- n ) ] unit-test
 
 DEFER: foo
 
 "IN: parser.tests USING: math prettyprint ; SYNTAX: foo 2 2 + . ;" eval( -- )
 
-[ ] [ "USE: parser.tests foo" eval( -- ) ] unit-test
+{ } [ "USE: parser.tests foo" eval( -- ) ] unit-test
 
 "IN: parser.tests USING: math prettyprint ; : foo ( -- ) 2 2 + . ;" eval( -- )
 
-[ t ] [
+{ t } [
     "USE: parser.tests \\ foo" eval( -- word )
     "foo" "parser.tests" lookup-word eq?
 ] unit-test
@@ -113,75 +113,75 @@ DEFER: foo
 
 ! Test smudging
 
-[ 1 ] [
+{ 1 } [
     "IN: parser.tests : smudge-me ( -- ) ;" <string-reader> "foo"
     parse-stream drop
 
     "foo" source-file definitions>> first cardinality
 ] unit-test
 
-[ t ] [ "smudge-me" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "smudge-me" "parser.tests" lookup-word >boolean ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests : smudge-me-more ( -- ) ;" <string-reader> "foo"
     parse-stream drop
 ] unit-test
 
-[ t ] [ "smudge-me-more" "parser.tests" lookup-word >boolean ] unit-test
-[ f ] [ "smudge-me" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "smudge-me-more" "parser.tests" lookup-word >boolean ] unit-test
+{ f } [ "smudge-me" "parser.tests" lookup-word >boolean ] unit-test
 
-[ 3 ] [
+{ 3 } [
     "IN: parser.tests USING: math strings ; GENERIC: smudge-me ( a -- b ) M: integer smudge-me ; M: string smudge-me ;" <string-reader> "foo"
     parse-stream drop
 
     "foo" source-file definitions>> first cardinality
 ] unit-test
 
-[ 1 ] [
+{ 1 } [
     "IN: parser.tests USING: arrays ; M: array smudge-me ;" <string-reader> "bar"
     parse-stream drop
 
     "bar" source-file definitions>> first cardinality
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     "IN: parser.tests USING: math strings ; GENERIC: smudge-me ( a -- b ) M: integer smudge-me ;" <string-reader> "foo"
     parse-stream drop
 
     "foo" source-file definitions>> first cardinality
 ] unit-test
 
-[ t ] [
+{ t } [
     array "smudge-me" "parser.tests" lookup-word order member-eq?
 ] unit-test
 
-[ t ] [
+{ t } [
     integer "smudge-me" "parser.tests" lookup-word order member-eq?
 ] unit-test
 
-[ f ] [
+{ f } [
     string "smudge-me" "parser.tests" lookup-word order member-eq?
 ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests USE: math 2 2 +" <string-reader> "a"
     parse-stream drop
 ] unit-test
 
-[ t ] [
+{ t } [
     "a" <pathname> \ + usage member?
 ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests USE: math 2 2 -" <string-reader> "a"
     parse-stream drop
 ] unit-test
 
-[ f ] [
+{ f } [
     "a" <pathname> \ + usage member?
 ] unit-test
 
-[ ] [
+{ } [
     "a" source-files get delete-at
     2 [
         "IN: parser.tests DEFER: x : y ( -- ) x ; : x ( -- ) y ;"
@@ -196,37 +196,37 @@ DEFER: foo
     <string-reader> "a" parse-stream
 ] [ source-file-error? ] must-fail-with
 
-[ t ] [
+{ t } [
     "y" "parser.tests" lookup-word >boolean
 ] unit-test
 
-[ f ] [
+{ f } [
     "IN: parser.tests : x ( -- ) ;"
     <string-reader> "a" parse-stream drop
     "y" "parser.tests" lookup-word
 ] unit-test
 
 ! Test new forward definition logic
-[ ] [
+{ } [
     "IN: axx : axx ( -- ) ;"
     <string-reader> "axx" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "USE: axx IN: bxx : bxx ( -- ) ; : cxx ( -- ) axx bxx ;"
     <string-reader> "bxx" parse-stream drop
 ] unit-test
 
 ! So we move the bxx word to axx...
-[ ] [
+{ } [
     "IN: axx : axx ( -- ) ; : bxx ( -- ) ;"
     <string-reader> "axx" parse-stream drop
 ] unit-test
 
-[ t ] [ "bxx" "axx" lookup-word >boolean ] unit-test
+{ t } [ "bxx" "axx" lookup-word >boolean ] unit-test
 
 ! And reload the file that uses it...
-[ ] [
+{ } [
     "USE: axx IN: bxx ( -- ) : cxx ( -- ) axx bxx ;"
     <string-reader> "bxx" parse-stream drop
 ] unit-test
@@ -235,58 +235,58 @@ DEFER: foo
 
 ! Turning a generic into a non-generic could cause all
 ! kinds of funnyness
-[ ] [
+{ } [
     "IN: ayy USE: kernel GENERIC: ayy ( a -- b ) M: object ayy ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: ayy USE: kernel : ayy ( -- ) ;"
     <string-reader> "ayy" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: azz TUPLE: my-class ; GENERIC: a-generic ( a -- b )"
     <string-reader> "azz" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "USE: azz M: my-class a-generic ;"
     <string-reader> "azz-2" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: azz GENERIC: a-generic ( a -- b )"
     <string-reader> "azz" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "USE: azz USE: math M: integer a-generic ;"
     <string-reader> "azz-2" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests : <bogus-error> ( -- ) ; : bogus ( -- error ) <bogus-error> ;"
     <string-reader> "bogus-error" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests TUPLE: bogus-error ; C: <bogus-error> bogus-error : bogus ( -- error ) <bogus-error> ;"
     <string-reader> "bogus-error" parse-stream drop
 ] unit-test
 
 ! Problems with class predicates -vs- ordinary words
-[ ] [
+{ } [
     "IN: parser.tests TUPLE: killer ;"
     <string-reader> "removing-the-predicate" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: parser.tests GENERIC: killer? ( a -- b )"
     <string-reader> "removing-the-predicate" parse-stream drop
 ] unit-test
 
-[ t ] [
+{ t } [
     "killer?" "parser.tests" lookup-word >boolean
 ] unit-test
 
@@ -300,7 +300,7 @@ DEFER: foo
     <string-reader> "redefining-a-class-1" parse-stream
 ] [ error>> error>> error>> redefine-error? ] must-fail-with
 
-[ ] [
+{ } [
     "IN: parser.tests TUPLE: class-redef-test ; SYMBOL: class-redef-test"
     <string-reader> "redefining-a-class-2" parse-stream drop
 ] unit-test
@@ -310,7 +310,7 @@ DEFER: foo
     <string-reader> "redefining-a-class-3" parse-stream drop
 ] [ error>> error>> error>> redefine-error? ] must-fail-with
 
-[ ] [
+{ } [
     "IN: parser.tests TUPLE: class-fwd-test ;"
     <string-reader> "redefining-a-class-3" parse-stream drop
 ] unit-test
@@ -320,7 +320,7 @@ DEFER: foo
     <string-reader> "redefining-a-class-3" parse-stream drop
 ] [ error>> error>> error>> no-word-error? ] must-fail-with
 
-[ ] [
+{ } [
     "IN: parser.tests TUPLE: class-fwd-test ; SYMBOL: class-fwd-test"
     <string-reader> "redefining-a-class-3" parse-stream drop
 ] unit-test
@@ -335,7 +335,7 @@ DEFER: foo
     <string-reader> "redefining-a-class-4" parse-stream drop
 ] [ error>> error>> error>> redefine-error? ] must-fail-with
 
-[ ] [
+{ } [
     "IN: parser.tests : foo ( x y -- z ) 1 2 ; : bar ( a -- b ) ;" eval( -- )
 ] unit-test
 
@@ -343,15 +343,15 @@ DEFER: foo
     "IN: parser.tests : foo ( x y -- z) 1 2 ; : bar ( a -- b ) ;" eval( -- )
 ] must-fail
 
-[ ] [
+{ } [
     "IN: parser.tests USE: kernel PREDICATE: foo < object ;" eval( -- )
 ] unit-test
 
-[ t ] [
+{ t } [
     "foo" "parser.tests" lookup-word last-word eq?
 ] unit-test
 
-[ ] [
+{ } [
     [
         "redefining-a-class-5" forget-source
         "redefining-a-class-6" forget-source
@@ -413,7 +413,7 @@ DEFER: foo
     ] unit-test
 ] times
 
-[ ] [
+{ } [
     [ "this-better-not-exist" forget-vocab ] with-compilation-unit
 ] unit-test
 
@@ -423,10 +423,10 @@ DEFER: foo
 
 [ ": foo ;" eval( -- ) ] [ error>> error>> no-current-vocab-error? ] must-fail-with
 
-[ 92 ] [ "CHAR: \\" eval( -- n ) ] unit-test
-[ 92 ] [ "CHAR: \\\\" eval( -- n ) ] unit-test
+{ 92 } [ "CHAR: \\" eval( -- n ) ] unit-test
+{ 92 } [ "CHAR: \\\\" eval( -- n ) ] unit-test
 
-[ ] [
+{ } [
     {
         "IN: parser.tests"
         "USING: math arrays kernel ;"
@@ -436,7 +436,7 @@ DEFER: foo
     } "\n" join <string-reader> "change-combination-test" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     {
         "IN: parser.tests"
         "USING: math arrays kernel ;"
@@ -446,35 +446,35 @@ DEFER: foo
     } "\n" join <string-reader> "change-combination-test" parse-stream drop
 ] unit-test
 
-[ 2 ] [
+{ 2 } [
     "change-combination" "parser.tests" lookup-word
     "methods" word-prop assoc-size
 ] unit-test
 
-[ ] [
+{ } [
     2 [
         "IN: parser.tests DEFER: twice-fails FORGET: twice-fails MIXIN: twice-fails"
         <string-reader> "twice-fails-test" parse-stream drop
     ] times
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests : staging-problem-test-1 ( -- a ) 1 ; : staging-problem-test-2 ( -- a ) staging-problem-test-1 ;"
     <string-reader> "staging-problem-test" parse-stream
 ] unit-test
 
-[ t ] [ "staging-problem-test-1" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "staging-problem-test-1" "parser.tests" lookup-word >boolean ] unit-test
 
-[ t ] [ "staging-problem-test-2" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "staging-problem-test-2" "parser.tests" lookup-word >boolean ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests << : staging-problem-test-1 ( -- a ) 1 ; >> : staging-problem-test-2 ( -- a ) staging-problem-test-1 ;"
     <string-reader> "staging-problem-test" parse-stream
 ] unit-test
 
-[ t ] [ "staging-problem-test-1" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "staging-problem-test-1" "parser.tests" lookup-word >boolean ] unit-test
 
-[ t ] [ "staging-problem-test-2" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "staging-problem-test-2" "parser.tests" lookup-word >boolean ] unit-test
 
 [ "DEFER: blahy" eval( -- ) ] [ error>> error>> no-current-vocab-error? ] must-fail-with
 
@@ -494,17 +494,17 @@ DEFER: blahy
 
 SYMBOLS: a b c ;
 
-[ a ] [ a ] unit-test
-[ b ] [ b ] unit-test
-[ c ] [ c ] unit-test
+{ a } [ a ] unit-test
+{ b } [ b ] unit-test
+{ c } [ c ] unit-test
 
 DEFER: blah
 
-[ ] [ "IN: parser.tests GENERIC: blah ( -- )" eval( -- ) ] unit-test
-[ ] [ "IN: parser.tests SYMBOLS: blah ;" eval( -- ) ] unit-test
+{ } [ "IN: parser.tests GENERIC: blah ( -- )" eval( -- ) ] unit-test
+{ } [ "IN: parser.tests SYMBOLS: blah ;" eval( -- ) ] unit-test
 
-[ f ] [ \ blah generic? ] unit-test
-[ t ] [ \ blah symbol? ] unit-test
+{ f } [ \ blah generic? ] unit-test
+{ t } [ \ blah symbol? ] unit-test
 
 DEFER: blah1
 
@@ -523,95 +523,95 @@ IN: qualified.tests.baz
 
 QUALIFIED: qualified.tests.foo
 QUALIFIED: qualified.tests.bar
-[ 1 2 3 ] [ qualified.tests.foo:x qualified.tests.bar:x x ] unit-test
+{ 1 2 3 } [ qualified.tests.foo:x qualified.tests.bar:x x ] unit-test
 
 QUALIFIED-WITH: qualified.tests.bar p
-[ 2 ] [ p:x ] unit-test
+{ 2 } [ p:x ] unit-test
 
 RENAME: x qualified.tests.baz => y
-[ 3 ] [ y ] unit-test
+{ 3 } [ y ] unit-test
 
 FROM: qualified.tests.baz => x ;
-[ 3 ] [ x ] unit-test
-[ 3 ] [ y ] unit-test
+{ 3 } [ x ] unit-test
+{ 3 } [ y ] unit-test
 
 EXCLUDE: qualified.tests.bar => x ;
-[ 3 ] [ x ] unit-test
-[ 4 ] [ y ] unit-test
+{ 3 } [ x ] unit-test
+{ 4 } [ y ] unit-test
 
 ! Two similar bugs
 
 ! Replace : def with something in << >>
-/* [ [ ] ] [
+/* { [ ] } [
     "IN: parser.tests : was-once-a-word-bug ( -- ) ;"
     <string-reader> "was-once-a-word-test" parse-stream
 ] unit-test
 
-[ t ] [ "was-once-a-word-bug" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "was-once-a-word-bug" "parser.tests" lookup-word >boolean ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests USE: words << \"was-once-a-word-bug\" \"parser.tests\" create-word [ ] ( -- ) define-declared >>"
     <string-reader> "was-once-a-word-test" parse-stream
 ] unit-test
 
-[ t ] [ "was-once-a-word-bug" "parser.tests" lookup-word >boolean ] unit-test */
+{ t } [ "was-once-a-word-bug" "parser.tests" lookup-word >boolean ] unit-test */
 
 ! Replace : def with DEFER:
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests : is-not-deferred ( -- ) ;"
     <string-reader> "is-not-deferred" parse-stream
 ] unit-test
 
-[ t ] [ "is-not-deferred" "parser.tests" lookup-word >boolean ] unit-test
-[ f ] [ "is-not-deferred" "parser.tests" lookup-word deferred? ] unit-test
+{ t } [ "is-not-deferred" "parser.tests" lookup-word >boolean ] unit-test
+{ f } [ "is-not-deferred" "parser.tests" lookup-word deferred? ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests DEFER: is-not-deferred"
     <string-reader> "is-not-deferred" parse-stream
 ] unit-test
 
-[ t ] [ "is-not-deferred" "parser.tests" lookup-word >boolean ] unit-test
-[ t ] [ "is-not-deferred" "parser.tests" lookup-word deferred? ] unit-test
+{ t } [ "is-not-deferred" "parser.tests" lookup-word >boolean ] unit-test
+{ t } [ "is-not-deferred" "parser.tests" lookup-word deferred? ] unit-test
 
 ! Forward-reference resolution case iterated using list in the wrong direction
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests.forward-ref-1 DEFER: x DEFER: y"
     <string-reader> "forward-ref-1" parse-stream
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests.forward-ref-2 DEFER: x DEFER: y"
     <string-reader> "forward-ref-2" parse-stream
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests.forward-ref-3 FROM: parser.tests.forward-ref-1 => x y ; FROM: parser.tests.forward-ref-2 => x y ; : z ( -- ) x y ;"
     <string-reader> "forward-ref-3" parse-stream
 ] unit-test
 
-[ t ] [
+{ t } [
     "z" "parser.tests.forward-ref-3" lookup-word def>> [ vocabulary>> ] map all-equal?
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "FROM: parser.tests.forward-ref-1 => x y ; FROM: parser.tests.forward-ref-2 => x y ; IN: parser.tests.forward-ref-3 : x ( -- ) ; : z ( -- ) x y ;"
     <string-reader> "forward-ref-3" parse-stream
 ] unit-test
 
-[ f ] [
+{ f } [
     "z" "parser.tests.forward-ref-3" lookup-word def>> [ vocabulary>> ] map all-equal?
 ] unit-test
 
-[ [ ] ] [
+{ [ ] } [
     "IN: parser.tests.forward-ref-3 FROM: parser.tests.forward-ref-1 => x y ; FROM: parser.tests.forward-ref-2 => x y ; : z ( -- ) x y ;"
     <string-reader> "forward-ref-3" parse-stream
 ] unit-test
 
-[ t ] [
+{ t } [
     "z" "parser.tests.forward-ref-3" lookup-word def>> [ vocabulary>> ] map all-equal?
 ] unit-test
 
-[ [ dup ] ] [
+{ [ dup ] } [
     "USE: kernel dup" <string-reader> "unuse-test" parse-stream
 ] unit-test
 
@@ -623,7 +623,7 @@ EXCLUDE: qualified.tests.bar => x ;
     "USE: kernel UNUSE: kernel dup" <string-reader> "unuse-test" parse-stream
 ] [ error>> error>> error>> no-word-error? ] must-fail-with
 
-[ ] [ [ "vocabs.loader.test.l" forget-vocab ] with-compilation-unit ] unit-test
+{ } [ [ "vocabs.loader.test.l" forget-vocab ] with-compilation-unit ] unit-test
 
 [
     [ "vocabs.loader.test.l" use-vocab ] must-fail
index 29e13043345887646d52e72d0f4ddbf5fb4e2edc..9093e9960e198a77be9eab66b5d7cab9fe85c8ed 100644 (file)
@@ -1,18 +1,18 @@
 USING: math kernel quotations tools.test sequences ;
 IN: quotations.tests
 
-[ [ 3 ] ] [ 3 [ ] curry ] unit-test
-[ [ \ + ] ] [ \ + [ ] curry ] unit-test
-[ [ \ + = ] ] [ \ + [ = ] curry ] unit-test
+{ [ 3 ] } [ 3 [ ] curry ] unit-test
+{ [ \ + ] } [ \ + [ ] curry ] unit-test
+{ [ \ + = ] } [ \ + [ = ] curry ] unit-test
 
-[ [ 1 + 2 + 3 + ] ] [
+{ [ 1 + 2 + 3 + ] } [
     { 1 2 3 } [ [ + ] curry ] map concat
 ] unit-test
 
-[ [ 1 2 3 4 ] ] [ [ 1 2 ] [ 3 4 ] append ] unit-test
-[ [ 1 2 3 ] ] [ [ 1 2 ] 3 suffix ] unit-test
-[ [ 3 1 2 ] ] [ [ 1 2 ] 3 prefix ] unit-test
+{ [ 1 2 3 4 ] } [ [ 1 2 ] [ 3 4 ] append ] unit-test
+{ [ 1 2 3 ] } [ [ 1 2 ] 3 suffix ] unit-test
+{ [ 3 1 2 ] } [ [ 1 2 ] 3 prefix ] unit-test
 
-[ [ "hi" ] ] [ "hi" 1quotation ] unit-test
+{ [ "hi" ] } [ "hi" 1quotation ] unit-test
 
 [ 1 \ + curry ] must-fail
index 0dc97de537ea99533f2edc494bb03135d786aec6..9d4c76b88a1c2bc4fb89bba967ea2ebe070afb53 100644 (file)
@@ -2,9 +2,9 @@ USING: classes kernel math namespaces sbufs sequences
 sequences.private strings tools.test ;
 IN: sbufs.tests
 
-[ 5 ] [ "Hello" >sbuf length ] unit-test
+{ 5 } [ "Hello" >sbuf length ] unit-test
 
-[ "Hello" ] [
+{ "Hello" } [
     100 <sbuf> "buf" set
     "Hello" "buf" get push-all
     "buf" get clone "buf-clone" set
@@ -12,16 +12,16 @@ IN: sbufs.tests
     "buf" get >string
 ] unit-test
 
-[ CHAR: h ] [ 0 SBUF" hello world" nth ] unit-test
-[ CHAR: H ] [
+{ CHAR: h } [ 0 SBUF" hello world" nth ] unit-test
+{ CHAR: H } [
     CHAR: H 0 SBUF" hello world" [ set-nth ] keep first
 ] unit-test
 
-[ SBUF" x" ] [ 1 <sbuf> CHAR: x >bignum over push ] unit-test
+{ SBUF" x" } [ 1 <sbuf> CHAR: x >bignum over push ] unit-test
 
-[ fixnum ] [ 1 >bignum SBUF" " new-sequence length class-of ] unit-test
+{ fixnum } [ 1 >bignum SBUF" " new-sequence length class-of ] unit-test
 
-[ fixnum ] [ 1 >bignum iota [ ] SBUF" " map-as length class-of ] unit-test
+{ fixnum } [ 1 >bignum iota [ ] SBUF" " map-as length class-of ] unit-test
 
 [ 1.5 SBUF" " new-sequence ] must-fail
 
index 60de486560c728958fc98defd2e01a4588bcd605..de61cebdaedf329045193a83f7efce1e6cd50b06 100644 (file)
@@ -4,112 +4,112 @@ sbufs tools.test vectors assocs generic vocabs.loader
 generic.single math.vectors math.functions ;
 IN: sequences.tests
 
-[ "empty" ] [ { } [ "empty" ] [ "not empty" ] if-empty ] unit-test
-[ { 1 } "not empty" ] [ { 1 } [ "empty" ] [ "not empty" ] if-empty ] unit-test
-
-[ V{ 1 2 3 4 } ] [ 1 5 dup iota <slice> >vector ] unit-test
-[ 3 ] [ 1 4 dup iota <slice> length ] unit-test
-[ 2 ] [ 1 3 { 1 2 3 4 } <slice> length ] unit-test
-[ V{ 2 3 } ] [ 1 3 { 1 2 3 4 } <slice> >vector ] unit-test
-[ V{ 4 5 } ] [ { 1 2 3 4 5 } 2 tail-slice* >vector ] unit-test
-[ V{ 3 4 } ] [ 2 4 1 10 dup iota <slice> subseq >vector ] unit-test
-[ V{ 3 4 } ] [ 0 2 2 4 1 10 dup iota <slice> <slice> subseq >vector ] unit-test
+{ "empty" } [ { } [ "empty" ] [ "not empty" ] if-empty ] unit-test
+{ { 1 } "not empty" } [ { 1 } [ "empty" ] [ "not empty" ] if-empty ] unit-test
+
+{ V{ 1 2 3 4 } } [ 1 5 dup iota <slice> >vector ] unit-test
+{ 3 } [ 1 4 dup iota <slice> length ] unit-test
+{ 2 } [ 1 3 { 1 2 3 4 } <slice> length ] unit-test
+{ V{ 2 3 } } [ 1 3 { 1 2 3 4 } <slice> >vector ] unit-test
+{ V{ 4 5 } } [ { 1 2 3 4 5 } 2 tail-slice* >vector ] unit-test
+{ V{ 3 4 } } [ 2 4 1 10 dup iota <slice> subseq >vector ] unit-test
+{ V{ 3 4 } } [ 0 2 2 4 1 10 dup iota <slice> <slice> subseq >vector ] unit-test
 [ 0 10 "hello" <slice> ] must-fail
 [ -10 3 "hello" <slice> ] must-fail
 [ 2 1 "hello" <slice> ] must-fail
 
-[ "cba" ] [ "abcdef" 3 head-slice reverse ] unit-test
+{ "cba" } [ "abcdef" 3 head-slice reverse ] unit-test
 
-[ 5040 ] [ [ 1 2 3 4 5 6 7 ] 1 [ * ] reduce ] unit-test
+{ 5040 } [ [ 1 2 3 4 5 6 7 ] 1 [ * ] reduce ] unit-test
 
-[ 5040 { 1 1 2 6 24 120 720 } ]
+{ 5040 { 1 1 2 6 24 120 720 } }
 [ { 1 2 3 4 5 6 7 } 1 [ * ] accumulate ] unit-test
 
-[ 64 B{ 1 2 4 16 } ]
+{ 64 B{ 1 2 4 16 } }
 [ B{ 2 2 4 4 } 1 [ * ] accumulate ] unit-test
 
-[ 5040 { 1 1 2 6 24 120 720 } ]
+{ 5040 { 1 1 2 6 24 120 720 } }
 [ { 1 2 3 4 5 6 7 } 1 [ * ] accumulate! ] unit-test
 
-[ t ]
+{ t }
 [ { 1 2 3 4 5 6 7 } dup 1 [ * ] accumulate! nip eq? ] unit-test
 
-[ f f ] [ [ ] [ ] find ] unit-test
-[ 0 1 ] [ [ 1 ] [ ] find ] unit-test
-[ 1 "world" ] [ [ "hello" "world" ] [ "world" = ] find ] unit-test
-[ 2 3 ] [ [ 1 2 3 ] [ 2 > ] find ] unit-test
-[ f f ] [ [ 1 2 3 ] [ 10 > ] find ] unit-test
+{ f f } [ [ ] [ ] find ] unit-test
+{ 0 1 } [ [ 1 ] [ ] find ] unit-test
+{ 1 "world" } [ [ "hello" "world" ] [ "world" = ] find ] unit-test
+{ 2 3 } [ [ 1 2 3 ] [ 2 > ] find ] unit-test
+{ f f } [ [ 1 2 3 ] [ 10 > ] find ] unit-test
 
-[ 1 CHAR: e ]
+{ 1 CHAR: e }
 [ "hello world" "aeiou" [ member? ] curry find ] unit-test
 
-[ 4 CHAR: o ]
+{ 4 CHAR: o }
 [ 3 "hello world" "aeiou" [ member? ] curry find-from ] unit-test
 
-[ f f ] [ "abcd" [ 10 > nip ] find-index ] unit-test
-[ f f ] [ "abcd" [ drop CHAR: e = ] find-index ] unit-test
-[ 3 CHAR: d ] [ "abcdefg" [ 3 = nip ] find-index ] unit-test
-[ 3 CHAR: d ] [ "abcdefg" [ drop CHAR: d = ] find-index ] unit-test
+{ f f } [ "abcd" [ 10 > nip ] find-index ] unit-test
+{ f f } [ "abcd" [ drop CHAR: e = ] find-index ] unit-test
+{ 3 CHAR: d } [ "abcdefg" [ 3 = nip ] find-index ] unit-test
+{ 3 CHAR: d } [ "abcdefg" [ drop CHAR: d = ] find-index ] unit-test
 
-[ 0 CHAR: a ] [ 0 "abcdef" [ drop CHAR: a >= ] find-index-from ] unit-test
-[ 1 CHAR: b ] [ 0 "abcdef" [ drop CHAR: a > ] find-index-from ] unit-test
-[ 2 CHAR: c ] [ 1 "abcdef" [ drop CHAR: b > ] find-index-from ] unit-test
+{ 0 CHAR: a } [ 0 "abcdef" [ drop CHAR: a >= ] find-index-from ] unit-test
+{ 1 CHAR: b } [ 0 "abcdef" [ drop CHAR: a > ] find-index-from ] unit-test
+{ 2 CHAR: c } [ 1 "abcdef" [ drop CHAR: b > ] find-index-from ] unit-test
 
-[ f ] [ 3 [ ]     member? ] unit-test
-[ f ] [ 3 [ 1 2 ] member? ] unit-test
-[ t ] [ 1 [ 1 2 ] member? ] unit-test
-[ t ] [ 2 [ 1 2 ] member? ] unit-test
+{ f } [ 3 [ ]     member? ] unit-test
+{ f } [ 3 [ 1 2 ] member? ] unit-test
+{ t } [ 1 [ 1 2 ] member? ] unit-test
+{ t } [ 2 [ 1 2 ] member? ] unit-test
 
-[ t ]
+{ t }
 [ [ "hello" "world" ] [ second ] keep member-eq? ] unit-test
 
-[ 4 ] [ CHAR: x "tuvwxyz" >vector index ] unit-test
+{ 4 } [ CHAR: x "tuvwxyz" >vector index ] unit-test
 
-[ f ] [ CHAR: x 5 "tuvwxyz" >vector index-from ] unit-test
+{ f } [ CHAR: x 5 "tuvwxyz" >vector index-from ] unit-test
 
-[ f ] [ CHAR: a 0 "tuvwxyz" >vector index-from ] unit-test
+{ f } [ CHAR: a 0 "tuvwxyz" >vector index-from ] unit-test
 
-[ f ] [ [ "Hello" { } 0.75 ] [ string? ] all? ] unit-test
-[ t ] [ [ ] [ ] all? ] unit-test
-[ t ] [ [ "hi" t 0.5 ] [ ] all? ] unit-test
+{ f } [ [ "Hello" { } 0.75 ] [ string? ] all? ] unit-test
+{ t } [ [ ] [ ] all? ] unit-test
+{ t } [ [ "hi" t 0.5 ] [ ] all? ] unit-test
 
-[ [ 1 2 3 ] ] [ [ 1 4 2 5 3 6 ] [ 4 < ] filter ] unit-test
-[ { 4 2 6 } ] [ { 1 4 2 5 3 6 } [ 2 mod 0 = ] filter ] unit-test
+{ [ 1 2 3 ] } [ [ 1 4 2 5 3 6 ] [ 4 < ] filter ] unit-test
+{ { 4 2 6 } } [ { 1 4 2 5 3 6 } [ 2 mod 0 = ] filter ] unit-test
 
-[ [ 3 ] ] [ [ 1 2 3 ] 2 [ swap < ] curry filter ] unit-test
+{ [ 3 ] } [ [ 1 2 3 ] 2 [ swap < ] curry filter ] unit-test
 
-[ V{ 1 2 3 } ] [ V{ 1 4 2 5 3 6 } clone [ 4 < ] filter! ] unit-test
-[ V{ 4 2 6 } ] [ V{ 1 4 2 5 3 6 } clone [ 2 mod 0 = ] filter! ] unit-test
+{ V{ 1 2 3 } } [ V{ 1 4 2 5 3 6 } clone [ 4 < ] filter! ] unit-test
+{ V{ 4 2 6 } } [ V{ 1 4 2 5 3 6 } clone [ 2 mod 0 = ] filter! ] unit-test
 
-[ V{ 3 } ] [ V{ 1 2 3 } clone 2 [ swap < ] curry filter! ] unit-test
+{ V{ 3 } } [ V{ 1 2 3 } clone 2 [ swap < ] curry filter! ] unit-test
 
-[ "hello world how are you" ]
+{ "hello world how are you" }
 [ { "hello" "world" "how" "are" "you" } " " join ] unit-test
 
-[ "hello world how are you" ]
+{ "hello world how are you" }
 [ { "hello" "world" "how" "are" "you" } " " "" join-as ] unit-test
 
-[ "" ] [ { } "" join ] unit-test
+{ "" } [ { } "" join ] unit-test
 
-[ "" ] [ { } "" "" join-as ] unit-test
+{ "" } [ { } "" "" join-as ] unit-test
 
-[ { } ] [ { } flip ] unit-test
+{ { } } [ { } flip ] unit-test
 
-[ { "b" "e" } ] [ 1 { { "a" "b" "c" } { "d" "e" "f" } } flip nth ] unit-test
+{ { "b" "e" } } [ 1 { { "a" "b" "c" } { "d" "e" "f" } } flip nth ] unit-test
 
-[ { { 1 4 } { 2 5 } { 3 6 } } ]
+{ { { 1 4 } { 2 5 } { 3 6 } } }
 [ { { 1 2 3 } { 4 5 6 } } flip ] unit-test
 
-[ [ 2 3 4 ] ] [ [ 1 2 3 ] 1 [ + ] curry map ] unit-test
+{ [ 2 3 4 ] } [ [ 1 2 3 ] 1 [ + ] curry map ] unit-test
 
-[ 1 ] [ 0 [ 1 2 ] nth ] unit-test
-[ 2 ] [ 1 [ 1 2 ] nth ] unit-test
+{ 1 } [ 0 [ 1 2 ] nth ] unit-test
+{ 2 } [ 1 [ 1 2 ] nth ] unit-test
 
-[ [ ]           ] [ [ ]   [ ]       append ] unit-test
-[ [ 1 ]         ] [ [ 1 ] [ ]       append ] unit-test
-[ [ 2 ]         ] [ [ ] [ 2 ]       append ] unit-test
-[ [ 1 2 3 4 ]   ] [ [ 1 2 3 ] [ 4 ] append ] unit-test
-[ [ 1 2 3 4 ]   ] [ [ 1 2 3 ] { 4 } append ] unit-test
+{ [ ]           } [ [ ]   [ ]       append ] unit-test
+{ [ 1 ]         } [ [ 1 ] [ ]       append ] unit-test
+{ [ 2 ]         } [ [ ] [ 2 ]       append ] unit-test
+{ [ 1 2 3 4 ]   } [ [ 1 2 3 ] [ 4 ] append ] unit-test
+{ [ 1 2 3 4 ]   } [ [ 1 2 3 ] { 4 } append ] unit-test
 
 [ "a" -1 append ] must-fail
 [ -1 "a" append ] must-fail
@@ -119,193 +119,193 @@ IN: sequences.tests
 
 { "0123456789" } [ 58 iota [ 48 < ] "" reject-as ] unit-test
 
-[ [ ]       ] [ 1 [ ]           remove ] unit-test
-[ [ ]       ] [ 1 [ 1 ]         remove ] unit-test
-[ [ 3 1 1 ] ] [ 2 [ 3 2 1 2 1 ] remove ] unit-test
+{ [ ]       } [ 1 [ ]           remove ] unit-test
+{ [ ]       } [ 1 [ 1 ]         remove ] unit-test
+{ [ 3 1 1 ] } [ 2 [ 3 2 1 2 1 ] remove ] unit-test
 
-[ [ ]       ] [ [ ]       reverse ] unit-test
-[ [ 1 ]     ] [ [ 1 ]     reverse ] unit-test
-[ [ 3 2 1 ] ] [ [ 1 2 3 ] reverse ] unit-test
+{ [ ]       } [ [ ]       reverse ] unit-test
+{ [ 1 ]     } [ [ 1 ]     reverse ] unit-test
+{ [ 3 2 1 ] } [ [ 1 2 3 ] reverse ] unit-test
 
-[ f ] [ f 0 head ] unit-test
-[ [ ] ] [ [ 1 ] 0 head ] unit-test
-[ [ 1 2 3 ] ] [ [ 1 2 3 4 ] 3 head ] unit-test
-[ [ ] ] [ [ 1 2 3 ] 3 tail ] unit-test
-[ [ 3 ] ] [ [ 1 2 3 ] 2 tail ] unit-test
+{ f } [ f 0 head ] unit-test
+{ [ ] } [ [ 1 ] 0 head ] unit-test
+{ [ 1 2 3 ] } [ [ 1 2 3 4 ] 3 head ] unit-test
+{ [ ] } [ [ 1 2 3 ] 3 tail ] unit-test
+{ [ 3 ] } [ [ 1 2 3 ] 2 tail ] unit-test
 
-[ "blah" ] [ "blahxx" 2 head* ] unit-test
+{ "blah" } [ "blahxx" 2 head* ] unit-test
 
-[ "xx" ] [ "blahxx" 2 tail* ] unit-test
+{ "xx" } [ "blahxx" 2 tail* ] unit-test
 
-[ t ] [ "xxfoo" 2 head-slice "xxbar" 2 head-slice = ] unit-test
-[ t ] [ "xxfoo" 2 head-slice "xxbar" 2 head-slice [ hashcode ] same? ] unit-test
+{ t } [ "xxfoo" 2 head-slice "xxbar" 2 head-slice = ] unit-test
+{ t } [ "xxfoo" 2 head-slice "xxbar" 2 head-slice [ hashcode ] same? ] unit-test
 
-[ t ] [ "xxfoo" 2 head-slice SBUF" barxx" 2 tail-slice* = ] unit-test
-[ t ] [ "xxfoo" 2 head-slice SBUF" barxx" 2 tail-slice* [ hashcode ] same? ] unit-test
+{ t } [ "xxfoo" 2 head-slice SBUF" barxx" 2 tail-slice* = ] unit-test
+{ t } [ "xxfoo" 2 head-slice SBUF" barxx" 2 tail-slice* [ hashcode ] same? ] unit-test
 
-[ t ] [ [ 1 2 3 ] [ 1 2 3 ] sequence= ] unit-test
-[ t ] [ [ 1 2 3 ] { 1 2 3 } sequence= ] unit-test
-[ t ] [ { 1 2 3 } [ 1 2 3 ] sequence= ] unit-test
-[ f ] [ [ ] [ 1 2 3 ] sequence= ] unit-test
+{ t } [ [ 1 2 3 ] [ 1 2 3 ] sequence= ] unit-test
+{ t } [ [ 1 2 3 ] { 1 2 3 } sequence= ] unit-test
+{ t } [ { 1 2 3 } [ 1 2 3 ] sequence= ] unit-test
+{ f } [ [ ] [ 1 2 3 ] sequence= ] unit-test
 
-[ { 1 3 2 4 } ] [ { 1 2 3 4 } clone 1 2 pick exchange ] unit-test
+{ { 1 3 2 4 } } [ { 1 2 3 4 } clone 1 2 pick exchange ] unit-test
 
-[ { "" "a" "aa" "aaa" } ]
+{ { "" "a" "aa" "aaa" } }
 [ 4 [ CHAR: a <string> ] { } map-integers ]
 unit-test
 
 { V{ 1 3 5 7 9 } } [ 10 iota >vector [ even? ] reject! ] unit-test
 
-[ V{ } ] [ "f" V{ } clone remove! ] unit-test
-[ V{ } ] [ "f" V{ "f" } clone remove! ] unit-test
-[ V{ } ] [ "f" V{ "f" "f" } clone remove! ] unit-test
-[ V{ "x" } ] [ "f" V{ "f" "x" "f" } clone remove! ] unit-test
-[ V{ "y" "x" } ] [ "f" V{ "y" "f" "x" "f" } clone remove! ] unit-test
+{ V{ } } [ "f" V{ } clone remove! ] unit-test
+{ V{ } } [ "f" V{ "f" } clone remove! ] unit-test
+{ V{ } } [ "f" V{ "f" "f" } clone remove! ] unit-test
+{ V{ "x" } } [ "f" V{ "f" "x" "f" } clone remove! ] unit-test
+{ V{ "y" "x" } } [ "f" V{ "y" "f" "x" "f" } clone remove! ] unit-test
 
-[ V{ 0 1 4 5 } ] [ 6 iota >vector 2 4 pick delete-slice ] unit-test
+{ V{ 0 1 4 5 } } [ 6 iota >vector 2 4 pick delete-slice ] unit-test
 
 [ 6 >vector 2 8 pick delete-slice ] must-fail
 
-[ V{ } ] [ 6 iota >vector 0 6 pick delete-slice ] unit-test
+{ V{ } } [ 6 iota >vector 0 6 pick delete-slice ] unit-test
 
-[ { 1 2 "a" "b" 5 6 7 } ] [
+{ { 1 2 "a" "b" 5 6 7 } } [
     { "a" "b" } 2 4 { 1 2 3 4 5 6 7 }
     replace-slice
 ] unit-test
 
-[ { 1 2 "a" "b" 6 7 } ] [
+{ { 1 2 "a" "b" 6 7 } } [
     { "a" "b" } 2 5 { 1 2 3 4 5 6 7 }
     replace-slice
 ] unit-test
 
-[ { 1 2 "a" "b" 4 5 6 7 } ] [
+{ { 1 2 "a" "b" 4 5 6 7 } } [
     { "a" "b" } 2 3 { 1 2 3 4 5 6 7 }
     replace-slice
 ] unit-test
 
-[ { 1 2 3 4 5 6 7 "a" "b" } ] [
+{ { 1 2 3 4 5 6 7 "a" "b" } } [
     { "a" "b" } 7 7 { 1 2 3 4 5 6 7 }
     replace-slice
 ] unit-test
 
-[ { "a" 3 } ] [
+{ { "a" 3 } } [
     { "a" } 0 2 { 1 2 3 } replace-slice
 ] unit-test
 
-[ { 1 4 9 } ] [ { 1 2 3 } clone [ sq ] map! ] unit-test
+{ { 1 4 9 } } [ { 1 2 3 } clone [ sq ] map! ] unit-test
 
-[ 5 ] [ 1 >bignum { 1 5 7 } nth-unsafe ] unit-test
-[ 5 ] [ 1 >bignum { 1 5 7 } nth-unsafe ] unit-test
-[ 5 ] [ 1 >bignum "\u000001\u000005\u000007" nth-unsafe ] unit-test
+{ 5 } [ 1 >bignum { 1 5 7 } nth-unsafe ] unit-test
+{ 5 } [ 1 >bignum { 1 5 7 } nth-unsafe ] unit-test
+{ 5 } [ 1 >bignum "\u000001\u000005\u000007" nth-unsafe ] unit-test
 
-[ SBUF" before&after" ] [
+{ SBUF" before&after" } [
     "&" 6 11 SBUF" before and after" replace-slice
 ] unit-test
 
-[ 3 "a" ] [ { "a" "b" "c" "a" "d" } [ "a" = ] find-last ] unit-test
+{ 3 "a" } [ { "a" "b" "c" "a" "d" } [ "a" = ] find-last ] unit-test
 
-[ f f ] [ 100 { 1 2 3 } [ 1 = ] find-from ] unit-test
-[ f f ] [ 100 { 1 2 3 } [ 1 = ] find-last-from ] unit-test
-[ f f ] [ -1 { 1 2 3 } [ 1 = ] find-from ] unit-test
+{ f f } [ 100 { 1 2 3 } [ 1 = ] find-from ] unit-test
+{ f f } [ 100 { 1 2 3 } [ 1 = ] find-last-from ] unit-test
+{ f f } [ -1 { 1 2 3 } [ 1 = ] find-from ] unit-test
 
-[ 0 ] [ { "a" "b" "c" } { "A" "B" "C" } mismatch ] unit-test
+{ 0 } [ { "a" "b" "c" } { "A" "B" "C" } mismatch ] unit-test
 
-[ 1 ] [ { "a" "b" "c" } { "a" "B" "C" } mismatch ] unit-test
+{ 1 } [ { "a" "b" "c" } { "a" "B" "C" } mismatch ] unit-test
 
-[ f ] [ { "a" "b" "c" } { "a" "b" "c" } mismatch ] unit-test
+{ f } [ { "a" "b" "c" } { "a" "b" "c" } mismatch ] unit-test
 
-[ V{ } V{ } ] [ { "a" "b" } { "a" "b" } drop-prefix [ >vector ] bi@ ] unit-test
+{ V{ } V{ } } [ { "a" "b" } { "a" "b" } drop-prefix [ >vector ] bi@ ] unit-test
 
-[ V{ "C" } V{ "c" } ] [ { "a" "b" "C" } { "a" "b" "c" } drop-prefix [ >vector ] bi@ ] unit-test
+{ V{ "C" } V{ "c" } } [ { "a" "b" "C" } { "a" "b" "c" } drop-prefix [ >vector ] bi@ ] unit-test
 
 [ -1 1 "abc" <slice> ] must-fail
 
-[ V{ "a" "b" } V{ } ] [ { "X" "a" "b" } { "X" } drop-prefix [ >vector ] bi@ ] unit-test
+{ V{ "a" "b" } V{ } } [ { "X" "a" "b" } { "X" } drop-prefix [ >vector ] bi@ ] unit-test
 
 [ 0.5 { 1 2 3 } nth ] [ no-method? ] must-fail-with
 [ 0.5 "asdfasdf" nth ] [ no-method? ] must-fail-with
 
 ! Pathological case
-[ "ihbye" ] [ "hi" <reversed> "bye" append ] unit-test
+{ "ihbye" } [ "hi" <reversed> "bye" append ] unit-test
 
-[ t ] [ "hi" <reversed> SBUF" hi" <reversed> = ] unit-test
+{ t } [ "hi" <reversed> SBUF" hi" <reversed> = ] unit-test
 
-[ t ] [ "hi" <reversed> SBUF" hi" <reversed> = ] unit-test
+{ t } [ "hi" <reversed> SBUF" hi" <reversed> = ] unit-test
 
-[ t ] [ "hi" <reversed> SBUF" hi" <reversed> [ hashcode ] same? ] unit-test
+{ t } [ "hi" <reversed> SBUF" hi" <reversed> [ hashcode ] same? ] unit-test
 
 [ -10 "hi" "bye" copy ] must-fail
 [ 10 "hi" "bye" copy ] must-fail
 
-[ V{ 1 2 3 5 6 } ] [
+{ V{ 1 2 3 5 6 } } [
     3 V{ 1 2 3 4 5 6 } clone remove-nth!
 ] unit-test
 
 ! erg's random tester found this one
-[ SBUF" 12341234" ] [
+{ SBUF" 12341234" } [
     9 <sbuf> dup "1234" swap push-all dup dup swap push-all
 ] unit-test
 
-[ f ] [ f V{ } like f V{ } like eq? ] unit-test
+{ f } [ f V{ } like f V{ } like eq? ] unit-test
 
-[ V{ f f f } ] [ 3 V{ } new-sequence ] unit-test
-[ SBUF" \0\0\0" ] [ 3 SBUF" " new-sequence ] unit-test
+{ V{ f f f } } [ 3 V{ } new-sequence ] unit-test
+{ SBUF" \0\0\0" } [ 3 SBUF" " new-sequence ] unit-test
 
-[ 0 ] [ f length ] unit-test
+{ 0 } [ f length ] unit-test
 [ f first ] must-fail
-[ 3 ] [ 3 10 iota nth ] unit-test
-[ 3 ] [ 3 10 iota nth-unsafe ] unit-test
+{ 3 } [ 3 10 iota nth ] unit-test
+{ 3 } [ 3 10 iota nth-unsafe ] unit-test
 [ -3 10 iota nth ] must-fail
 [ 11 10 iota nth ] must-fail
 
-[ f ] [ f ?first ] unit-test
-[ f ] [ { } ?first ] unit-test
-[ 0 ] [ 10 iota ?first ] unit-test
+{ f } [ f ?first ] unit-test
+{ f } [ { } ?first ] unit-test
+{ 0 } [ 10 iota ?first ] unit-test
 
-[ f ] [ f ?last ] unit-test
-[ f ] [ { } ?last ] unit-test
-[ 9 ] [ 10 iota ?last ] unit-test
+{ f } [ f ?last ] unit-test
+{ f } [ { } ?last ] unit-test
+{ 9 } [ 10 iota ?last ] unit-test
 
 [ -1/0. 0 remove-nth! ] must-fail
-[ "" ] [ "" [ CHAR: \s = ] trim ] unit-test
-[ "" ] [ "" [ CHAR: \s = ] trim-head ] unit-test
-[ "" ] [ "" [ CHAR: \s = ] trim-tail ] unit-test
-[ "" ] [ "  " [ CHAR: \s = ] trim-head ] unit-test
-[ "" ] [ "  " [ CHAR: \s = ] trim-tail ] unit-test
-[ "asdf" ] [ " asdf " [ CHAR: \s = ] trim ] unit-test
-[ "asdf " ] [ " asdf " [ CHAR: \s = ] trim-head ] unit-test
-[ " asdf" ] [ " asdf " [ CHAR: \s = ] trim-tail ] unit-test
+{ "" } [ "" [ CHAR: \s = ] trim ] unit-test
+{ "" } [ "" [ CHAR: \s = ] trim-head ] unit-test
+{ "" } [ "" [ CHAR: \s = ] trim-tail ] unit-test
+{ "" } [ "  " [ CHAR: \s = ] trim-head ] unit-test
+{ "" } [ "  " [ CHAR: \s = ] trim-tail ] unit-test
+{ "asdf" } [ " asdf " [ CHAR: \s = ] trim ] unit-test
+{ "asdf " } [ " asdf " [ CHAR: \s = ] trim-head ] unit-test
+{ " asdf" } [ " asdf " [ CHAR: \s = ] trim-tail ] unit-test
 
-[ 328350 ] [ 100 iota [ sq ] map-sum ] unit-test
+{ 328350 } [ 100 iota [ sq ] map-sum ] unit-test
 
-[ 50 ] [ 100 iota [ even? ] count ] unit-test
-[ 50 ] [ 100 iota [ odd?  ] count ] unit-test
+{ 50 } [ 100 iota [ even? ] count ] unit-test
+{ 50 } [ 100 iota [ odd?  ] count ] unit-test
 
-[ { "b" "d" } ] [ { 1 3 } { "a" "b" "c" "d" } nths ] unit-test
-[ { "a" "b" "c" "d" } ] [ { 0 1 2 3 } { "a" "b" "c" "d" } nths ] unit-test
-[ { "d" "c" "b" "a" } ] [ { 3 2 1 0 } { "a" "b" "c" "d" } nths ] unit-test
-[ { "d" "a" "b" "c" } ] [ { 3 0 1 2 } { "a" "b" "c" "d" } nths ] unit-test
+{ { "b" "d" } } [ { 1 3 } { "a" "b" "c" "d" } nths ] unit-test
+{ { "a" "b" "c" "d" } } [ { 0 1 2 3 } { "a" "b" "c" "d" } nths ] unit-test
+{ { "d" "c" "b" "a" } } [ { 3 2 1 0 } { "a" "b" "c" "d" } nths ] unit-test
+{ { "d" "a" "b" "c" } } [ { 3 0 1 2 } { "a" "b" "c" "d" } nths ] unit-test
 
-[ "dac" ] [ { 3 0 2 } "abcd" nths ] unit-test
+{ "dac" } [ { 3 0 2 } "abcd" nths ] unit-test
 
 TUPLE: bogus-hashcode ;
 
 M: bogus-hashcode hashcode* 2drop 0 >bignum ;
 
-[ 0 ] [ { T{ bogus-hashcode } } hashcode ] unit-test
+{ 0 } [ { T{ bogus-hashcode } } hashcode ] unit-test
 
-[ { 2 4 6 } { 1 3 5 7 } ] [ { 1 2 3 4 5 6 7 } [ even? ] partition ] unit-test
+{ { 2 4 6 } { 1 3 5 7 } } [ { 1 2 3 4 5 6 7 } [ even? ] partition ] unit-test
 
-[ { 1 3 7 } ] [ 2 { 1 3 5 7 } remove-nth ] unit-test
+{ { 1 3 7 } } [ 2 { 1 3 5 7 } remove-nth ] unit-test
 
-[ { 1 3 "X" 5 7 } ] [ "X" 2 { 1 3 5 7 } insert-nth ] unit-test
+{ { 1 3 "X" 5 7 } } [ "X" 2 { 1 3 5 7 } insert-nth ] unit-test
 
-[ V{ 0 2 } ] [ "a" { "a" "b" "a" } indices ] unit-test
+{ V{ 0 2 } } [ "a" { "a" "b" "a" } indices ] unit-test
 
-[ "a,b" ] [ "a" "b" "," glue ] unit-test
-[ "(abc)" ] [ "abc" "(" ")" surround ] unit-test
+{ "a,b" } [ "a" "b" "," glue ] unit-test
+{ "(abc)" } [ "abc" "(" ")" surround ] unit-test
 
-[ "HELLO" ] [
+{ "HELLO" } [
     "HELLO" { -1 -1 -1 -1 -1 } { 2 2 2 2 2 2 }
     [ * 2 + + ] 3map
 ] unit-test
@@ -314,63 +314,63 @@ M: bogus-hashcode hashcode* 2drop 0 >bignum ;
 
 { 3 0 } [ [ 3drop ] 3each ] must-infer-as
 
-[ V{ 0 3 } ] [ "A" { "A" "B" "C" "A" "D" } indices ] unit-test
+{ V{ 0 3 } } [ "A" { "A" "B" "C" "A" "D" } indices ] unit-test
 
 [ "asdf" iota ] must-fail
 [ -1 iota ] must-fail
-[ T{ iota-tuple { n 10 } } ] [ 10 iota ] unit-test
-[ 0 ] [ 10 iota first ] unit-test
+{ T{ iota-tuple { n 10 } } } [ 10 iota ] unit-test
+{ 0 } [ 10 iota first ] unit-test
 { 0 } [ 0 iota sum ] unit-test
 { 0 } [ 1 iota sum ] unit-test
 { 10 } [ 5 iota sum ] unit-test
 { 15 } [ 6 iota sum ] unit-test
 
-[ "hi" 3 ] [
+{ "hi" 3 } [
     { 1 2 3 4 5 6 7 8 } [ H{ { 3 "hi" } } at ] map-find
 ] unit-test
 
-[ f f ] [
+{ f f } [
     { 1 2 3 4 5 6 7 8 } [ H{ { 11 "hi" } } at ] map-find
 ] unit-test
 
 USE: make
 
-[ { "a" 1 "b" 1 "c" } ]
+{ { "a" 1 "b" 1 "c" } }
 [ 1 { "a" "b" "c" } [ [ dup , ] [ , ] interleave drop ] { } make ] unit-test
 
-[ t ] [ 0 array-capacity? ] unit-test
-[ f ] [ -1 array-capacity? ] unit-test
+{ t } [ 0 array-capacity? ] unit-test
+{ f } [ -1 array-capacity? ] unit-test
 
-[ +lt+ ] [ { 0 0 0 } { 1 1 1 } <=> ] unit-test
-[ +lt+ ] [ { 0 0 0 } { 0 1 1 } <=> ] unit-test
-[ +lt+ ] [ { 0 0 0 } { 0 0 0 0 } <=> ] unit-test
-[ +gt+ ] [ { 1 1 1 } { 0 0 0 } <=> ] unit-test
-[ +gt+ ] [ { 0 1 1 } { 0 0 0 } <=> ] unit-test
-[ +gt+ ] [ { 0 0 0 0 } { 0 0 0 } <=> ] unit-test
-[ +eq+ ] [ { } { } <=> ] unit-test
-[ +eq+ ] [ { 1 2 3 } { 1 2 3 } <=> ] unit-test
+{ +lt+ } [ { 0 0 0 } { 1 1 1 } <=> ] unit-test
+{ +lt+ } [ { 0 0 0 } { 0 1 1 } <=> ] unit-test
+{ +lt+ } [ { 0 0 0 } { 0 0 0 0 } <=> ] unit-test
+{ +gt+ } [ { 1 1 1 } { 0 0 0 } <=> ] unit-test
+{ +gt+ } [ { 0 1 1 } { 0 0 0 } <=> ] unit-test
+{ +gt+ } [ { 0 0 0 0 } { 0 0 0 } <=> ] unit-test
+{ +eq+ } [ { } { } <=> ] unit-test
+{ +eq+ } [ { 1 2 3 } { 1 2 3 } <=> ] unit-test
 
-[ { { { 1 "a" } { 1 "b" } } { { 2 "a" } { 2 "b" } } } ]
+{ { { { 1 "a" } { 1 "b" } } { { 2 "a" } { 2 "b" } } } }
 [ { 1 2 } { "a" "b" } cartesian-product ] unit-test
 
 [ { } [ string>digits sum ] [ + ] map-reduce ] must-infer
 [ { } [ ] [ + ] map-reduce ] must-fail
-[ 4 ] [ { 1 1 } [ 1 + ] [ + ] map-reduce ] unit-test
+{ 4 } [ { 1 1 } [ 1 + ] [ + ] map-reduce ] unit-test
 
 [ { } { } [ [ string>digits product ] bi@ + ] [ + ] 2map-reduce ] must-infer
 [ { } { } [ + ] [ + ] 2map-reduce ] must-fail
-[ 24 ] [ { 1 2 } { 3 4 } [ + ] [ * ] 2map-reduce ] unit-test
+{ 24 } [ { 1 2 } { 3 4 } [ + ] [ * ] 2map-reduce ] unit-test
 
-[ 4 ] [ 5 iota [ ] supremum-by ] unit-test
-[ 0 ] [ 5 iota [ ] infimum-by ] unit-test
+{ 4 } [ 5 iota [ ] supremum-by ] unit-test
+{ 0 } [ 5 iota [ ] infimum-by ] unit-test
 { "bar" } [ { "bar" "baz" "qux" } [ length ] supremum-by ] unit-test
 { "bar" } [ { "bar" "baz" "qux" } [ length ] infimum-by ] unit-test
-[ { "foo" } ] [ { { "foo" } { "bar" } } [ first ] supremum-by ] unit-test
-[ { "bar" } ] [ { { "foo" } { "bar" } } [ first ] infimum-by ] unit-test
+{ { "foo" } } [ { { "foo" } { "bar" } } [ first ] supremum-by ] unit-test
+{ { "bar" } } [ { { "foo" } { "bar" } } [ first ] infimum-by ] unit-test
 { -2 1 } [ -2 { 1 2 3 } [ over ^ ] supremum-by ] unit-test
 { -2 3 } [ -2 { 1 2 3 } [ over ^ ] infimum-by ] unit-test
 
-[ { 0 0 255 } ] [
+{ { 0 0 255 } } [
     {
         { 0 0 0 }
         { 95 255 95 }
index 33cc173cb2ba048cbb218a3a6a5415bfb80a9fa2..40ad691842b6e9d971ffb6d729d05a844b80ebcb 100644 (file)
@@ -4,144 +4,144 @@ USING: sets tools.test kernel prettyprint hash-sets sorting
 math sequences bit-sets bit-arrays ;
 IN: sets.tests
 
-[ V{ 1 2 3 } ] [ 3 V{ 1 2 } clone [ adjoin ] keep ] unit-test
-[ V{ 1 2 } ] [ 2 V{ 1 2 } clone [ adjoin ] keep ] unit-test
-
-[ t ] [ 4 { 2 4 5 } in? ] unit-test
-[ f ] [ 1 { 2 4 5 } in? ] unit-test
-[ f ] [ f 5 <bit-set> in? ] unit-test
-
-[ V{ 1 2 } ] [ 3 V{ 1 2 } clone [ delete ] keep ] unit-test
-[ V{ 2 } ] [ 1 V{ 1 2 } clone [ delete ] keep ] unit-test
-[ 0 ] [ 5 <bit-set> 0 over delete cardinality ] unit-test
-[ 0 ] [ 5 <bit-set> f over delete cardinality ] unit-test
-[ 0 ] [ 5 <bit-set> 3 over adjoin 3 over delete cardinality ] unit-test
-[ 0 ] [ 5 <bit-set> 10 over delete cardinality ] unit-test
-[ HS{ 1 } ] [ HS{ 1 2 } 2 over delete ] unit-test
-
-[ { 1 2 3 } ] [ { 1 1 1 2 2 3 3 3 3 3 } dup set-like natural-sort ] unit-test
-[ { 1 2 3 } ] [ HS{ 1 2 3 } { } set-like natural-sort ] unit-test
-[ { 1 2 3 } ] [ { 1 2 2 3 3 } { } set-like ] unit-test
-[ { 3 2 1 } ] [ { 3 3 2 2 1 } { } set-like ] unit-test
-[ t ] [ 4 <bit-set> 1 <bit-set> set-like 4 <bit-set> = ] unit-test
-[ t ] [ { 1 2 3 } HS{ } set-like HS{ 1 2 3 } = ] unit-test
-
-[ HS{ 1 2 3 } ] [ { 1 2 3 } fast-set ] unit-test
-[ T{ bit-set { table ?{ f } } } ]
+{ V{ 1 2 3 } } [ 3 V{ 1 2 } clone [ adjoin ] keep ] unit-test
+{ V{ 1 2 } } [ 2 V{ 1 2 } clone [ adjoin ] keep ] unit-test
+
+{ t } [ 4 { 2 4 5 } in? ] unit-test
+{ f } [ 1 { 2 4 5 } in? ] unit-test
+{ f } [ f 5 <bit-set> in? ] unit-test
+
+{ V{ 1 2 } } [ 3 V{ 1 2 } clone [ delete ] keep ] unit-test
+{ V{ 2 } } [ 1 V{ 1 2 } clone [ delete ] keep ] unit-test
+{ 0 } [ 5 <bit-set> 0 over delete cardinality ] unit-test
+{ 0 } [ 5 <bit-set> f over delete cardinality ] unit-test
+{ 0 } [ 5 <bit-set> 3 over adjoin 3 over delete cardinality ] unit-test
+{ 0 } [ 5 <bit-set> 10 over delete cardinality ] unit-test
+{ HS{ 1 } } [ HS{ 1 2 } 2 over delete ] unit-test
+
+{ { 1 2 3 } } [ { 1 1 1 2 2 3 3 3 3 3 } dup set-like natural-sort ] unit-test
+{ { 1 2 3 } } [ HS{ 1 2 3 } { } set-like natural-sort ] unit-test
+{ { 1 2 3 } } [ { 1 2 2 3 3 } { } set-like ] unit-test
+{ { 3 2 1 } } [ { 3 3 2 2 1 } { } set-like ] unit-test
+{ t } [ 4 <bit-set> 1 <bit-set> set-like 4 <bit-set> = ] unit-test
+{ t } [ { 1 2 3 } HS{ } set-like HS{ 1 2 3 } = ] unit-test
+
+{ HS{ 1 2 3 } } [ { 1 2 3 } fast-set ] unit-test
+{ T{ bit-set { table ?{ f } } } }
 [ 1 <bit-set> fast-set ] unit-test
 
-[ { 1 } ] [ { 1 } members ] unit-test
+{ { 1 } } [ { 1 } members ] unit-test
 
-[ { } ] [ { } { } union ] unit-test
-[ { 1 2 3 4 } ] [ { 1 2 3 } { 2 3 4 } union ] unit-test
+{ { } } [ { } { } union ] unit-test
+{ { 1 2 3 4 } } [ { 1 2 3 } { 2 3 4 } union ] unit-test
 
-[ { } ] [ { } { } intersect ] unit-test
-[ { 2 3 } ] [ { 1 2 3 } { 2 3 4 } intersect ] unit-test
-[ { 2 3 } ] [ { 1 2 3 } { 2 3 4 5 } intersect ] unit-test
-[ { 2 3 4 } ] [ { 1 2 3 4 } { 2 3 4 } intersect ] unit-test
-[ { 2 3 } ] [ { 1 2 2 3 } { 2 3 3 4 } intersect ] unit-test
+{ { } } [ { } { } intersect ] unit-test
+{ { 2 3 } } [ { 1 2 3 } { 2 3 4 } intersect ] unit-test
+{ { 2 3 } } [ { 1 2 3 } { 2 3 4 5 } intersect ] unit-test
+{ { 2 3 4 } } [ { 1 2 3 4 } { 2 3 4 } intersect ] unit-test
+{ { 2 3 } } [ { 1 2 2 3 } { 2 3 3 4 } intersect ] unit-test
 
-[ t ] [ { 1 2 } { 1 3 } intersects? ] unit-test
-[ f ] [ { 4 2 } { 1 3 } intersects? ] unit-test
-[ f ] [ { } { 1 } intersects? ] unit-test
-[ f ] [ { 1 } { } intersects? ] unit-test
-[ f ] [ { } { } intersects? ] unit-test
+{ t } [ { 1 2 } { 1 3 } intersects? ] unit-test
+{ f } [ { 4 2 } { 1 3 } intersects? ] unit-test
+{ f } [ { } { 1 } intersects? ] unit-test
+{ f } [ { 1 } { } intersects? ] unit-test
+{ f } [ { } { } intersects? ] unit-test
 
-[ { } ] [ { } { } diff ] unit-test
-[ { 1 } ] [ { 1 2 3 } { 2 3 4 } diff ] unit-test
-[ { 1 } ] [ { 1 2 3 } { 2 3 4 5 } diff ] unit-test
-[ { 1 } ] [ { 1 2 3 4 } { 2 3 4 } diff ] unit-test
-[ { 1 } ] [ { 1 1 2 3 } { 2 3 4 4 } diff ] unit-test
+{ { } } [ { } { } diff ] unit-test
+{ { 1 } } [ { 1 2 3 } { 2 3 4 } diff ] unit-test
+{ { 1 } } [ { 1 2 3 } { 2 3 4 5 } diff ] unit-test
+{ { 1 } } [ { 1 2 3 4 } { 2 3 4 } diff ] unit-test
+{ { 1 } } [ { 1 1 2 3 } { 2 3 4 4 } diff ] unit-test
 
-[ T{ bit-set { table ?{ f f f } } } ]
+{ T{ bit-set { table ?{ f f f } } } }
 [ 3 <bit-set> 0 over adjoin dup diff ] unit-test
 
-[ f ] [ { 1 2 3 4 } { 1 2 } subset? ] unit-test
-[ t ] [ { 1 2 3 4 } { 1 2 } swap subset? ] unit-test
-[ t ] [ { 1 2 } { 1 2 } subset? ] unit-test
-[ t ] [ { } { 1 2 } subset? ] unit-test
-[ t ] [ { } { } subset? ] unit-test
-[ f ] [ { 1 } { } subset? ] unit-test
-
-[ t ] [ { 1 2 3 } { 2 1 3 } set= ] unit-test
-[ f ] [ { 2 3 } { 1 2 3 } set= ] unit-test
-[ f ] [ { 1 2 3 } { 2 3 } set= ] unit-test
-
-[ { 2 1 2 1 } ] [ { 1 2 3 2 1 2 1 } duplicates ] unit-test
-[ f ] [ HS{ 1 2 3 1 2 1 } duplicates ] unit-test
-
-[ f ] [ { 0 1 1 2 3 5 } all-unique? ] unit-test
-[ t ] [ { 0 1 2 3 4 5 } all-unique? ] unit-test
-[ t ] [ HS{ 0 1 2 3 4 5 } all-unique? ] unit-test
-
-[ t ] [ f null? ] unit-test
-[ f ] [ { 4 } null? ] unit-test
-[ t ] [ HS{ } null? ] unit-test
-[ f ] [ HS{ 3 } null? ] unit-test
-[ t ] [ 2 <bit-set> null? ] unit-test
-[ f ] [ 3 <bit-set> 0 over adjoin null? ] unit-test
-
-[ 0 ] [ f cardinality ] unit-test
-[ 0 ] [ { } cardinality ] unit-test
-[ 1 ] [ { 1 } cardinality ] unit-test
-[ 1 ] [ { 1 1 } cardinality ] unit-test
-[ 1 ] [ HS{ 1 } cardinality ] unit-test
-[ 3 ] [ HS{ 1 2 3 } cardinality ] unit-test
-[ 0 ] [ 0 <bit-set> cardinality ] unit-test
-[ 0 ] [ 5 <bit-set> cardinality ] unit-test
-[ 2 ] [ 5 <bit-set> 0 over adjoin 1 over adjoin cardinality ] unit-test
-[ 1 ] [ 5 <bit-set> 1 over adjoin cardinality ] unit-test
-
-[ { } ] [ { } { } within ] unit-test
-[ { 2 3 } ] [ { 1 2 3 } { 2 3 4 } within ] unit-test
-[ { 2 2 3 } ] [ { 1 2 2 3 } { 2 3 3 4 } within ] unit-test
-
-[ { } ] [ { } { } without ] unit-test
-[ { 1 } ] [ { 1 2 3 } { 2 3 4 } without ] unit-test
-[ { 1 1 } ] [ { 1 1 2 3 3 } { 2 3 4 4 } without ] unit-test
-
-[ { 1 2 3 } ] [ { { 1 } { 2 } { 1 3 } } combine ] unit-test
-[ f ] [ { } combine ] unit-test
-
-[ { 1 4 9 16 25 36 } ]
+{ f } [ { 1 2 3 4 } { 1 2 } subset? ] unit-test
+{ t } [ { 1 2 3 4 } { 1 2 } swap subset? ] unit-test
+{ t } [ { 1 2 } { 1 2 } subset? ] unit-test
+{ t } [ { } { 1 2 } subset? ] unit-test
+{ t } [ { } { } subset? ] unit-test
+{ f } [ { 1 } { } subset? ] unit-test
+
+{ t } [ { 1 2 3 } { 2 1 3 } set= ] unit-test
+{ f } [ { 2 3 } { 1 2 3 } set= ] unit-test
+{ f } [ { 1 2 3 } { 2 3 } set= ] unit-test
+
+{ { 2 1 2 1 } } [ { 1 2 3 2 1 2 1 } duplicates ] unit-test
+{ f } [ HS{ 1 2 3 1 2 1 } duplicates ] unit-test
+
+{ f } [ { 0 1 1 2 3 5 } all-unique? ] unit-test
+{ t } [ { 0 1 2 3 4 5 } all-unique? ] unit-test
+{ t } [ HS{ 0 1 2 3 4 5 } all-unique? ] unit-test
+
+{ t } [ f null? ] unit-test
+{ f } [ { 4 } null? ] unit-test
+{ t } [ HS{ } null? ] unit-test
+{ f } [ HS{ 3 } null? ] unit-test
+{ t } [ 2 <bit-set> null? ] unit-test
+{ f } [ 3 <bit-set> 0 over adjoin null? ] unit-test
+
+{ 0 } [ f cardinality ] unit-test
+{ 0 } [ { } cardinality ] unit-test
+{ 1 } [ { 1 } cardinality ] unit-test
+{ 1 } [ { 1 1 } cardinality ] unit-test
+{ 1 } [ HS{ 1 } cardinality ] unit-test
+{ 3 } [ HS{ 1 2 3 } cardinality ] unit-test
+{ 0 } [ 0 <bit-set> cardinality ] unit-test
+{ 0 } [ 5 <bit-set> cardinality ] unit-test
+{ 2 } [ 5 <bit-set> 0 over adjoin 1 over adjoin cardinality ] unit-test
+{ 1 } [ 5 <bit-set> 1 over adjoin cardinality ] unit-test
+
+{ { } } [ { } { } within ] unit-test
+{ { 2 3 } } [ { 1 2 3 } { 2 3 4 } within ] unit-test
+{ { 2 2 3 } } [ { 1 2 2 3 } { 2 3 3 4 } within ] unit-test
+
+{ { } } [ { } { } without ] unit-test
+{ { 1 } } [ { 1 2 3 } { 2 3 4 } without ] unit-test
+{ { 1 1 } } [ { 1 1 2 3 3 } { 2 3 4 4 } without ] unit-test
+
+{ { 1 2 3 } } [ { { 1 } { 2 } { 1 3 } } combine ] unit-test
+{ f } [ { } combine ] unit-test
+
+{ { 1 4 9 16 25 36 } }
 [ { { 1 2 3 } { 4 5 6 } } [ [ sq ] map ] gather ] unit-test
 
-[ H{ { 3 HS{ 1 2 } } } ] [ H{ } clone 1 3 pick adjoin-at 2 3 pick adjoin-at ] unit-test
+{ H{ { 3 HS{ 1 2 } } } } [ H{ } clone 1 3 pick adjoin-at 2 3 pick adjoin-at ] unit-test
 
-[ H{ { 3 H{ { 1 1 } { 2 2 } } } } ] [ H{ } clone 1 3 pick conjoin-at 2 3 pick conjoin-at ] unit-test
+{ H{ { 3 H{ { 1 1 } { 2 2 } } } } } [ H{ } clone 1 3 pick conjoin-at 2 3 pick conjoin-at ] unit-test
 
 TUPLE: null-set ;
 INSTANCE: null-set set
 M: null-set members drop f ;
 
-[ 0 ] [ T{ null-set } cardinality ] unit-test
-[ f ] [ T{ null-set } members ] unit-test
-[ t ] [ T{ null-set } T{ null-set } set-like T{ null-set } = ] unit-test
-
-[ t ] [ T{ null-set } set? ] unit-test
-[ t ] [ HS{ } set? ] unit-test
-[ t ] [ { } set? ] unit-test
-[ t ] [ 5 <bit-set> set? ] unit-test
-[ f ] [ H{ } set? ] unit-test
-
-[ HS{ } ] [ HS{ } [ clear-set ] keep ] unit-test
-[ HS{ } ] [ HS{ 1 2 3 } [ clear-set ] keep ] unit-test
-
-[ HS{ } ] [ HS{ } HS{ } union! ] unit-test
-[ HS{ 1 } ] [ HS{ 1 } HS{ } union! ] unit-test
-[ HS{ 1 } ] [ HS{ } HS{ 1 } union! ] unit-test
-[ HS{ 1 2 3 } ] [ HS{ 1 } HS{ 1 2 3 } union! ] unit-test
-
-[ f ] [ { } intersection ] unit-test
-[ HS{ } ] [ { HS{ } } intersection ] unit-test
-[ HS{ 1 } ] [ { HS{ 1 2 3 } HS{ 1 } } intersection ] unit-test
-
-[ HS{ } ] [ HS{ } HS{ } diff! ] unit-test
-[ HS{ 1 } ] [ HS{ 1 2 3 } HS{ 2 3 } diff! ] unit-test
-[ HS{ 1 } ] [ HS{ 1 } HS{ 2 3 4 } diff! ] unit-test
-[ HS{ 1 2 3 } ] [ HS{ 1 2 3 } HS{ 4 } diff! ] unit-test
-
-[ HS{ } ] [ HS{ } HS{ } intersect! ] unit-test
-[ HS{ 2 3 } ] [ HS{ 1 2 3 } HS{ 2 3 } intersect! ] unit-test
-[ HS{ } ] [ HS{ 1 } HS{ 2 3 4 } intersect! ] unit-test
-[ HS{ } ] [ HS{ 1 2 3 } HS{ 4 } intersect! ] unit-test
+{ 0 } [ T{ null-set } cardinality ] unit-test
+{ f } [ T{ null-set } members ] unit-test
+{ t } [ T{ null-set } T{ null-set } set-like T{ null-set } = ] unit-test
+
+{ t } [ T{ null-set } set? ] unit-test
+{ t } [ HS{ } set? ] unit-test
+{ t } [ { } set? ] unit-test
+{ t } [ 5 <bit-set> set? ] unit-test
+{ f } [ H{ } set? ] unit-test
+
+{ HS{ } } [ HS{ } [ clear-set ] keep ] unit-test
+{ HS{ } } [ HS{ 1 2 3 } [ clear-set ] keep ] unit-test
+
+{ HS{ } } [ HS{ } HS{ } union! ] unit-test
+{ HS{ 1 } } [ HS{ 1 } HS{ } union! ] unit-test
+{ HS{ 1 } } [ HS{ } HS{ 1 } union! ] unit-test
+{ HS{ 1 2 3 } } [ HS{ 1 } HS{ 1 2 3 } union! ] unit-test
+
+{ f } [ { } intersection ] unit-test
+{ HS{ } } [ { HS{ } } intersection ] unit-test
+{ HS{ 1 } } [ { HS{ 1 2 3 } HS{ 1 } } intersection ] unit-test
+
+{ HS{ } } [ HS{ } HS{ } diff! ] unit-test
+{ HS{ 1 } } [ HS{ 1 2 3 } HS{ 2 3 } diff! ] unit-test
+{ HS{ 1 } } [ HS{ 1 } HS{ 2 3 4 } diff! ] unit-test
+{ HS{ 1 2 3 } } [ HS{ 1 2 3 } HS{ 4 } diff! ] unit-test
+
+{ HS{ } } [ HS{ } HS{ } intersect! ] unit-test
+{ HS{ 2 3 } } [ HS{ 1 2 3 } HS{ 2 3 } intersect! ] unit-test
+{ HS{ } } [ HS{ 1 } HS{ 2 3 4 } intersect! ] unit-test
+{ HS{ } } [ HS{ 1 2 3 } HS{ 4 } intersect! ] unit-test
index 5129827ad7f89cf51ad06969f3e60382ec950719..53c9c2fa1b85fe23cd9feb3d73da200b85cc3d2a 100644 (file)
@@ -14,7 +14,7 @@ TUPLE: decl-test { foo array } ;
 
 TUPLE: hello length ;
 
-[ 3 ] [ "xyz" length>> ] unit-test
+{ 3 } [ "xyz" length>> ] unit-test
 
 [ "xyz" 4 >>length ] [ no-method? ] must-fail-with
 
@@ -26,9 +26,9 @@ TUPLE: protocol-slot-test-tuple x ;
 M: protocol-slot-test-tuple my-protocol-slot-test>> x>> sq ;
 M: protocol-slot-test-tuple my-protocol-slot-test<< [ sqrt ] dip x<< ;
 
-[ 9 ] [ T{ protocol-slot-test-tuple { x 3 } } my-protocol-slot-test>> ] unit-test
+{ 9 } [ T{ protocol-slot-test-tuple { x 3 } } my-protocol-slot-test>> ] unit-test
 
-[ 4.0 ] [
+{ 4.0 } [
     T{ protocol-slot-test-tuple { x 3 } } clone
     [ 7 + ] change-my-protocol-slot-test x>>
 ] unit-test
@@ -37,5 +37,5 @@ UNION: comme-ci integer float ;
 UNION: comme-ca integer float ;
 comme-ca 25.5 "initial-value" set-word-prop
 
-[ 0 t ]    [ comme-ci initial-value ] unit-test
-[ 25.5 t ] [ comme-ca initial-value ] unit-test
+{ 0 t }    [ comme-ci initial-value ] unit-test
+{ 25.5 t } [ comme-ca initial-value ] unit-test
index 2627e61a644e7a80fc4cd22b53650adad6d96f96..8c9a13a700ab7e911393c355513c97364ac9f5ff 100644 (file)
@@ -2,13 +2,13 @@ USING: sorting sequences kernel math math.order random
 tools.test vectors sets vocabs grouping ;
 IN: sorting.tests
 
-[ { } ] [ { } natural-sort ] unit-test
+{ { } } [ { } natural-sort ] unit-test
 
-[ { 270000000 270000001 } ]
+{ { 270000000 270000001 } }
 [ T{ slice f 270000000 270000002 T{ iota-tuple f 270000002 } } natural-sort ]
 unit-test
 
-[ t ] [
+{ t } [
     100 [
         drop
         100 [ 20 random [ 1000 random ] replicate ] replicate
@@ -17,12 +17,12 @@ unit-test
     ] all-integers?
 ] unit-test
 
-[ ] [ { 1 2 } [ 2drop 1 ] sort drop ] unit-test
+{ } [ { 1 2 } [ 2drop 1 ] sort drop ] unit-test
 
 ! Is it a stable sort?
-[ t ] [ { { 1 "a" } { 1 "b" } { 1 "c" } } dup sort-keys = ] unit-test
+{ t } [ { { 1 "a" } { 1 "b" } { 1 "c" } } dup sort-keys = ] unit-test
 
-[ { { 1 "a" } { 1 "b" } { 1 "c" } { 1 "e" } { 2 "d" } } ]
+{ { { 1 "a" } { 1 "b" } { 1 "c" } { 1 "e" } { 2 "d" } } }
 [ { { 1 "a" } { 1 "b" } { 1 "c" } { 2 "d" } { 1 "e" } } sort-keys ] unit-test
 
-[ ] [ all-words natural-sort drop ] unit-test
+{ } [ all-words natural-sort drop ] unit-test
index 30a6ddeb54e75829799680ef9b8f6ee64bc9c944..114d1d01babe5b77ddcb1de1a5a43040e89b11fc 100644 (file)
@@ -4,7 +4,7 @@ IN: source-files.errors.tests
 
 DEFER: forget-test
 
-[ ] [ [ \ forget-test [ 1 ] ( -- ) define-declared ] with-compilation-unit ] unit-test
-[ t ] [ \ forget-test compiler-errors get key? ] unit-test
-[ ] [ [ \ forget-test forget ] with-compilation-unit ] unit-test
-[ f ] [ \ forget-test compiler-errors get key? ] unit-test
+{ } [ [ \ forget-test [ 1 ] ( -- ) define-declared ] with-compilation-unit ] unit-test
+{ t } [ \ forget-test compiler-errors get key? ] unit-test
+{ } [ [ \ forget-test forget ] with-compilation-unit ] unit-test
+{ f } [ \ forget-test compiler-errors get key? ] unit-test
index cffecb3ee332ee982703dbe61987b93fafa25559..68107807249ede77d2381e8a3e5cd692fcc9dc54 100644 (file)
@@ -2,4 +2,4 @@ IN: source-files.tests
 USING: source-files tools.test assocs sequences strings
 namespaces kernel ;
 
-[ { } ] [ source-files get keys [ string? ] reject ] unit-test
+{ { } } [ source-files get keys [ string? ] reject ] unit-test
index c44df593e1c588b1607c40c611b01bb88c6f77d6..ba7d25a6734e8a2913474f6c4f9ca8e37657b044 100644 (file)
@@ -1,95 +1,95 @@
 USING: splitting tools.test kernel sequences arrays strings ascii math ;
 IN: splitting.tests
 
-[ "hello" "world ." ] [ "hello world ." " " split1 ] unit-test
-[ "hello" "world-+." ] [ "hello-+world-+." "-+" split1 ] unit-test
-[ "goodbye" f ] [ "goodbye" " " split1 ] unit-test
-[ "" "" ] [ "great" "great" split1 ] unit-test
-
-[ "hello world" "." ] [ "hello world ." " " split1-last ] unit-test
-[ "hello-+world" "." ] [ "hello-+world-+." "-+" split1-last ] unit-test
-[ "goodbye" f ] [ "goodbye" " " split1-last ] unit-test
-[ "" "" ] [ "great" "great" split1-last ] unit-test
-
-[ "hello world" "." ] [ "hello world ." " " split1-last-slice [ >string ] bi@ ] unit-test
-[ "hello-+world" "." ] [ "hello-+world-+." "-+" split1-last-slice [ >string ] bi@ ] unit-test
-[ "goodbye" f ] [ "goodbye" " " split1-last-slice [ >string ] dip ] unit-test
-[ "" f ] [ "great" "great" split1-last-slice [ >string ] dip ] unit-test
-
-[ "and end" t ] [ "Beginning and end" "Beginning " ?head ] unit-test
-[ "Beginning and end" f ] [ "Beginning and end" "Beginning x" ?head ] unit-test
-[ "Beginning and end" f ] [ "Beginning and end" "eginning " ?head ] unit-test
-
-[ "Beginning" t ] [ "Beginning and end" " and end" ?tail ] unit-test
-[ "Beginning and end" f ] [ "Beginning and end" "Beginning x" ?tail ] unit-test
-[ "Beginning and end" f ] [ "Beginning and end" "eginning " ?tail ] unit-test
-
-[ { "This" "is" "a" "split" "sentence" } ]
+{ "hello" "world ." } [ "hello world ." " " split1 ] unit-test
+{ "hello" "world-+." } [ "hello-+world-+." "-+" split1 ] unit-test
+{ "goodbye" f } [ "goodbye" " " split1 ] unit-test
+{ "" "" } [ "great" "great" split1 ] unit-test
+
+{ "hello world" "." } [ "hello world ." " " split1-last ] unit-test
+{ "hello-+world" "." } [ "hello-+world-+." "-+" split1-last ] unit-test
+{ "goodbye" f } [ "goodbye" " " split1-last ] unit-test
+{ "" "" } [ "great" "great" split1-last ] unit-test
+
+{ "hello world" "." } [ "hello world ." " " split1-last-slice [ >string ] bi@ ] unit-test
+{ "hello-+world" "." } [ "hello-+world-+." "-+" split1-last-slice [ >string ] bi@ ] unit-test
+{ "goodbye" f } [ "goodbye" " " split1-last-slice [ >string ] dip ] unit-test
+{ "" f } [ "great" "great" split1-last-slice [ >string ] dip ] unit-test
+
+{ "and end" t } [ "Beginning and end" "Beginning " ?head ] unit-test
+{ "Beginning and end" f } [ "Beginning and end" "Beginning x" ?head ] unit-test
+{ "Beginning and end" f } [ "Beginning and end" "eginning " ?head ] unit-test
+
+{ "Beginning" t } [ "Beginning and end" " and end" ?tail ] unit-test
+{ "Beginning and end" f } [ "Beginning and end" "Beginning x" ?tail ] unit-test
+{ "Beginning and end" f } [ "Beginning and end" "eginning " ?tail ] unit-test
+
+{ { "This" "is" "a" "split" "sentence" } }
 [ "This is a split sentence" " " split ]
 unit-test
 
-[ { "OneWord" } ]
+{ { "OneWord" } }
 [ "OneWord" " " split ]
 unit-test
 
-[ { "a" "b" "c" "d" "e" "f" } ]
+{ { "a" "b" "c" "d" "e" "f" } }
 [ "aXbYcXdYeXf" "XY" split ] unit-test
 
-[ { "" "" } ]
+{ { "" "" } }
 [ " " " " split ] unit-test
 
-[ { "hey" } ]
+{ { "hey" } }
 [ "hey" " " split ] unit-test
 
-[ "Hello world" t ] [ "Hello world\n" "\n" ?tail ] unit-test
-[ "Hello world" f ] [ "Hello world" "\n" ?tail ] unit-test
-[ "" t ] [ "\n" "\n" ?tail ] unit-test
-[ "" f ] [ "" "\n" ?tail ] unit-test
-
-[ { "" } ] [ "" string-lines ] unit-test
-[ { "" "" } ] [ "\n" string-lines ] unit-test
-[ { "" "" } ] [ "\r" string-lines ] unit-test
-[ { "" "" } ] [ "\r\n" string-lines ] unit-test
-[ { "hello" } ] [ "hello" string-lines ] unit-test
-[ { "hello" "" } ] [ "hello\n" string-lines ] unit-test
-[ { "hello" "" } ] [ "hello\r" string-lines ] unit-test
-[ { "hello" "" } ] [ "hello\r\n" string-lines ] unit-test
-[ { "hello" "hi" } ] [ "hello\nhi" string-lines ] unit-test
-[ { "hello" "hi" } ] [ "hello\rhi" string-lines ] unit-test
-[ { "hello" "hi" } ] [ "hello\r\nhi" string-lines ] unit-test
-
-[ { "" } ] [ SBUF" " string-lines ] unit-test
-[ { "" "" } ] [ SBUF" \n" string-lines ] unit-test
-[ { "" "" } ] [ SBUF" \r" string-lines ] unit-test
-[ { "" "" } ] [ SBUF" \r\n" string-lines ] unit-test
-[ { "hello" } ] [ SBUF" hello" string-lines ] unit-test
-[ { "hello" "" } ] [ SBUF" hello\n" string-lines ] unit-test
-[ { "hello" "" } ] [ SBUF" hello\r" string-lines ] unit-test
-[ { "hello" "" } ] [ SBUF" hello\r\n" string-lines ] unit-test
-[ { "hello" "hi" } ] [ SBUF" hello\nhi" string-lines ] unit-test
-[ { "hello" "hi" } ] [ SBUF" hello\rhi" string-lines ] unit-test
-[ { "hello" "hi" } ] [ SBUF" hello\r\nhi" string-lines ] unit-test
-
-[ { "hey" "world" "what's" "happening" } ]
+{ "Hello world" t } [ "Hello world\n" "\n" ?tail ] unit-test
+{ "Hello world" f } [ "Hello world" "\n" ?tail ] unit-test
+{ "" t } [ "\n" "\n" ?tail ] unit-test
+{ "" f } [ "" "\n" ?tail ] unit-test
+
+{ { "" } } [ "" string-lines ] unit-test
+{ { "" "" } } [ "\n" string-lines ] unit-test
+{ { "" "" } } [ "\r" string-lines ] unit-test
+{ { "" "" } } [ "\r\n" string-lines ] unit-test
+{ { "hello" } } [ "hello" string-lines ] unit-test
+{ { "hello" "" } } [ "hello\n" string-lines ] unit-test
+{ { "hello" "" } } [ "hello\r" string-lines ] unit-test
+{ { "hello" "" } } [ "hello\r\n" string-lines ] unit-test
+{ { "hello" "hi" } } [ "hello\nhi" string-lines ] unit-test
+{ { "hello" "hi" } } [ "hello\rhi" string-lines ] unit-test
+{ { "hello" "hi" } } [ "hello\r\nhi" string-lines ] unit-test
+
+{ { "" } } [ SBUF" " string-lines ] unit-test
+{ { "" "" } } [ SBUF" \n" string-lines ] unit-test
+{ { "" "" } } [ SBUF" \r" string-lines ] unit-test
+{ { "" "" } } [ SBUF" \r\n" string-lines ] unit-test
+{ { "hello" } } [ SBUF" hello" string-lines ] unit-test
+{ { "hello" "" } } [ SBUF" hello\n" string-lines ] unit-test
+{ { "hello" "" } } [ SBUF" hello\r" string-lines ] unit-test
+{ { "hello" "" } } [ SBUF" hello\r\n" string-lines ] unit-test
+{ { "hello" "hi" } } [ SBUF" hello\nhi" string-lines ] unit-test
+{ { "hello" "hi" } } [ SBUF" hello\rhi" string-lines ] unit-test
+{ { "hello" "hi" } } [ SBUF" hello\r\nhi" string-lines ] unit-test
+
+{ { "hey" "world" "what's" "happening" } }
 [ "heyAworldBwhat'sChappening" [ LETTER? ] split-when ] unit-test
 { { { 2 } { 3 } { 5 1 } { 7 } } } [
     1 { 2 1 3 2 5 1 3 7 }
     [ dupd = dup [ [ 1 + ] dip ] when ] split-when nip
 ] unit-test
 
-[ { "hey" "world" "what's" "happening" } ]
+{ { "hey" "world" "what's" "happening" } }
 [
     "heyAworldBwhat'sChappening" [ LETTER? ] split-when-slice
     [ >string ] map
 ] unit-test
 
-[ "" f ] [ "" [ blank? ] split1-when ] unit-test
-[ "" "ABC" ] [ " ABC" [ blank? ] split1-when ] unit-test
-[ "a" " bc" ] [ "a  bc" [ blank? ] split1-when ] unit-test
+{ "" f } [ "" [ blank? ] split1-when ] unit-test
+{ "" "ABC" } [ " ABC" [ blank? ] split1-when ] unit-test
+{ "a" " bc" } [ "a  bc" [ blank? ] split1-when ] unit-test
 
-[ "" f ] [ "" [ blank? ] split1-when-slice ] unit-test
-[ "" "ABC" ] [ " ABC" [ blank? ] split1-when-slice [ >string ] bi@ ] unit-test
-[ "a" " bc" ] [ "a  bc" [ blank? ] split1-when-slice [ >string ] bi@ ] unit-test
+{ "" f } [ "" [ blank? ] split1-when-slice ] unit-test
+{ "" "ABC" } [ " ABC" [ blank? ] split1-when-slice [ >string ] bi@ ] unit-test
+{ "a" " bc" } [ "a  bc" [ blank? ] split1-when-slice [ >string ] bi@ ] unit-test
 
 { "abarbbarc" }
 [ "afoobfooc" "foo" "bar" replace ] unit-test
index 82fd5aa504922d2cf4216b5e133bc55c530b5f05..3c5be30040119df55688480dc6cd7d14518c779d 100644 (file)
@@ -2,17 +2,17 @@ USING: accessors eval strings.parser strings.parser.private
 tools.test ;
 IN: strings.parser.tests
 
-[ "Hello\n\rworld" ] [ "Hello\\n\\rworld" unescape-string ] unit-test
+{ "Hello\n\rworld" } [ "Hello\\n\\rworld" unescape-string ] unit-test
 
-[ "Hello\n\rworld" ] [ "Hello\n\rworld" ] unit-test
-[ "Hello\n\rworld" ] [ """Hello\n\rworld""" ] unit-test
-[ "Hello\n\rworld\n" ] [ "Hello\n\rworld
+{ "Hello\n\rworld" } [ "Hello\n\rworld" ] unit-test
+{ "Hello\n\rworld" } [ """Hello\n\rworld""" ] unit-test
+{ "Hello\n\rworld\n" } [ "Hello\n\rworld
 " ] unit-test
-[ "Hello\n\rworld" "hi" ] [ "Hello\n\rworld" "hi" ] unit-test
-[ "Hello\n\rworld" "hi" ] [ """Hello\n\rworld""" """hi""" ] unit-test
-[ "Hello\n\rworld\n" "hi" ] [ """Hello\n\rworld
+{ "Hello\n\rworld" "hi" } [ "Hello\n\rworld" "hi" ] unit-test
+{ "Hello\n\rworld" "hi" } [ """Hello\n\rworld""" """hi""" ] unit-test
+{ "Hello\n\rworld\n" "hi" } [ """Hello\n\rworld
 """ """hi""" ] unit-test
-[ "Hello\n\rworld\"" "hi" ] [ """Hello\n\rworld\"""" """hi""" ] unit-test
+{ "Hello\n\rworld\"" "hi" } [ """Hello\n\rworld\"""" """hi""" ] unit-test
 
 [
     "\"\"\"Hello\n\rworld\\\n\"\"\"" eval( -- obj )
@@ -20,20 +20,20 @@ IN: strings.parser.tests
     error>> escaped-char-expected?
 ] must-fail-with
 
-[
+{
     " \" abc \" "
-] [
+} [
     "\"\"\" \" abc \" \"\"\"" eval( -- string )
 ] unit-test
 
-[
+{
     "\"abc\""
-] [
+} [
     "\"\"\"\"abc\"\"\"\"" eval( -- string )
 ] unit-test
 
 
-[ "\"\\" ] [ "\"\\" ] unit-test
+{ "\"\\" } [ "\"\\" ] unit-test
 
-[ "\e" ] [ "\u00001b" ] unit-test
-[ "\e" ] [ "\x1b" ] unit-test
+{ "\e" } [ "\u00001b" ] unit-test
+{ "\e" } [ "\x1b" ] unit-test
index 80fc085bb29c8b9d0e2858b3b0ba44430ffef2d5..7429a8367600334b2c2fefd7bf91fadcc1296809 100644 (file)
@@ -3,59 +3,59 @@ strings strings.private sbufs tools.test sequences vectors
 arrays memory prettyprint io.streams.null kernel.private ;
 IN: strings.tests
 
-[ CHAR: b ] [ 1 >bignum "abc" nth ] unit-test
+{ CHAR: b } [ 1 >bignum "abc" nth ] unit-test
 
-[ ] [ 10 [ [ -1000000 <sbuf> ] ignore-errors ] times ] unit-test
+{ } [ 10 [ [ -1000000 <sbuf> ] ignore-errors ] times ] unit-test
 
-[ "abc" ] [ [ "a" "b" "c" ] [ [ % ] each ] "" make ] unit-test
+{ "abc" } [ [ "a" "b" "c" ] [ [ % ] each ] "" make ] unit-test
 
-[ "abc" ] [ "ab" "c" append ] unit-test
-[ "abc" ] [ "a" "b" "c" 3append ] unit-test
+{ "abc" } [ "ab" "c" append ] unit-test
+{ "abc" } [ "a" "b" "c" 3append ] unit-test
 
-[ 3 ] [ "a" "hola" start ] unit-test
-[ f ] [ "x" "hola" start ] unit-test
-[ 0 ] [ "" "a" start ] unit-test
-[ 0 ] [ "" "" start ] unit-test
-[ 0 ] [ "hola" "hola" start ] unit-test
-[ 1 ] [ "ol" "hola" start ] unit-test
-[ f ] [ "amigo" "hola" start ] unit-test
-[ f ] [ "holaa" "hola" start ] unit-test
+{ 3 } [ "a" "hola" start ] unit-test
+{ f } [ "x" "hola" start ] unit-test
+{ 0 } [ "" "a" start ] unit-test
+{ 0 } [ "" "" start ] unit-test
+{ 0 } [ "hola" "hola" start ] unit-test
+{ 1 } [ "ol" "hola" start ] unit-test
+{ f } [ "amigo" "hola" start ] unit-test
+{ f } [ "holaa" "hola" start ] unit-test
 
-[ "Beginning" ] [ "Beginning and end" 9 head ] unit-test
+{ "Beginning" } [ "Beginning and end" 9 head ] unit-test
 
-[ f ] [ CHAR: I "team" member? ] unit-test
-[ t ] [ "ea" "team" subseq? ] unit-test
-[ f ] [ "actore" "Factor" subseq? ] unit-test
+{ f } [ CHAR: I "team" member? ] unit-test
+{ t } [ "ea" "team" subseq? ] unit-test
+{ f } [ "actore" "Factor" subseq? ] unit-test
 
-[ "end" ] [ "Beginning and end" 14 tail ] unit-test
+{ "end" } [ "Beginning and end" 14 tail ] unit-test
 
-[ t ] [ "abc" "abd" before? ] unit-test
-[ t ] [ "z" "abd" after? ] unit-test
-[ "abc" ] [ "abc" "abd" min ] unit-test
-[ "z" ] [ "z" "abd" max ] unit-test
+{ t } [ "abc" "abd" before? ] unit-test
+{ t } [ "z" "abd" after? ] unit-test
+{ "abc" } [ "abc" "abd" min ] unit-test
+{ "z" } [ "z" "abd" max ] unit-test
 
 [ 0 10 "hello" subseq ] must-fail
 
-[ "Replacing+spaces+with+plus" ]
+{ "Replacing+spaces+with+plus" }
 [
     "Replacing spaces with plus"
     [ dup CHAR: \s = [ drop CHAR: + ] when ] map
 ]
 unit-test
 
-[ "05" ] [ "5" 2 CHAR: 0 pad-head ] unit-test
-[ "666" ] [ "666" 2 CHAR: 0 pad-head ] unit-test
+{ "05" } [ "5" 2 CHAR: 0 pad-head ] unit-test
+{ "666" } [ "666" 2 CHAR: 0 pad-head ] unit-test
 
 [ 1 "" nth ] must-fail
 [ -6 "hello" nth ] must-fail
 
-[ t ] [ "hello world" dup >vector >string = ] unit-test
+{ t } [ "hello world" dup >vector >string = ] unit-test
 
-[ "ab" ] [ 2 "abc" resize-string ] unit-test
-[ "abc\0\0\0" ] [ 6 "abc" resize-string ] unit-test
+{ "ab" } [ 2 "abc" resize-string ] unit-test
+{ "abc\0\0\0" } [ 6 "abc" resize-string ] unit-test
 
-[ "\u001234b" ] [ 2 "\u001234bc" resize-string ] unit-test
-[ "\u001234bc\0\0\0" ] [ 6 "\u001234bc" resize-string ] unit-test
+{ "\u001234b" } [ 2 "\u001234bc" resize-string ] unit-test
+{ "\u001234bc\0\0\0" } [ 6 "\u001234bc" resize-string ] unit-test
 
 ! Random tester found this
 [ 2 -7 resize-string ]
@@ -64,16 +64,16 @@ unit-test
 ! Make sure 24-bit strings work
 "hello world" "s" set
 
-[ ] [ 0x1234 1 "s" get set-nth ] unit-test
-[ 0x1234 ] [ 1 "s" get nth ] unit-test
+{ } [ 0x1234 1 "s" get set-nth ] unit-test
+{ 0x1234 } [ 1 "s" get nth ] unit-test
 
-[ ] [ 0x4321 3 "s" get set-nth ] unit-test
-[ 0x4321 ] [ 3 "s" get nth ] unit-test
+{ } [ 0x4321 3 "s" get set-nth ] unit-test
+{ 0x4321 } [ 3 "s" get nth ] unit-test
 
-[ ] [ 0x654321 5 "s" get set-nth ] unit-test
-[ 0x654321 ] [ 5 "s" get nth ] unit-test
+{ } [ 0x654321 5 "s" get set-nth ] unit-test
+{ 0x654321 } [ 5 "s" get nth ] unit-test
 
-[
+{
     {
         CHAR: h
         0x1234
@@ -87,24 +87,24 @@ unit-test
         CHAR: l
         CHAR: d
     }
-] [
+} [
     "s" get >array
 ] unit-test
 
 ! Make sure string initialization works
-[ 0x123456 ] [ 100 0x123456 <string> first ] unit-test
+{ 0x123456 } [ 100 0x123456 <string> first ] unit-test
 
 ! Make sure we clear aux vector when storing octets
-[ "\u123456hi" ] [ "ih\u123456" clone reverse! ] unit-test
+{ "\u123456hi" } [ "ih\u123456" clone reverse! ] unit-test
 
 ! Make sure aux vector is not shared
-[ "\udeadbe" ] [
+{ "\udeadbe" } [
     "\udeadbe" clone
     CHAR: \u123456 over clone set-first
 ] unit-test
 
 ! Regressions
-[ ] [
+{ } [
     [
         4 [
             100 [ "obdurak" clone ] replicate
@@ -120,7 +120,7 @@ unit-test
     ] with-null-writer
 ] unit-test
 
-[ t ] [
+{ t } [
     10000 [
         drop
         300 100 CHAR: \u123456
@@ -129,8 +129,8 @@ unit-test
 ] unit-test
 
 "X" "s" set
-[ ] [ 0x100,0000 0 "s" get set-nth ] unit-test
-[ 0 ] [ 0 "s" get nth ] unit-test
+{ } [ 0x100,0000 0 "s" get set-nth ] unit-test
+{ 0 } [ 0 "s" get nth ] unit-test
 
-[ ] [ -1 0 "s" get set-nth ] unit-test
-[ 0x7fffff ] [ 0 "s" get nth ] unit-test
+{ } [ -1 0 "s" get set-nth ] unit-test
+{ 0x7fffff } [ 0 "s" get nth ] unit-test
index 8e6b13d9ab9e8733ff53adfdcf8dd28addc63d4e..7a7442fe10a11afc45a59eb7ac4ef329a39e3fb0 100644 (file)
@@ -3,10 +3,10 @@ sequences sequences.private strings tools.test vectors
 continuations random growable classes ;
 IN: vectors.tests
 
-[ ] [ 10 [ [ -1000000 <vector> ] ignore-errors ] times ] unit-test
+{ } [ 10 [ [ -1000000 <vector> ] ignore-errors ] times ] unit-test
 
-[ 3 ] [ [ t f t ] length ] unit-test
-[ 3 ] [ V{ t f t } length ] unit-test
+{ 3 } [ [ t f t ] length ] unit-test
+{ 3 } [ V{ t f t } length ] unit-test
 
 [ -3 V{ } nth ] must-fail
 [ 3 V{ } nth ] must-fail
@@ -15,87 +15,87 @@ IN: vectors.tests
 [ "hey" [ 1 2 ] set-length ] must-fail
 [ "hey" V{ 1 2 } set-length ] must-fail
 
-[ 3 ] [ 3 0 <vector> [ set-length ] keep length ] unit-test
-[ "yo" ] [
+{ 3 } [ 3 0 <vector> [ set-length ] keep length ] unit-test
+{ "yo" } [
     "yo" 4 1 <vector> [ set-nth ] keep 4 swap nth
 ] unit-test
 
 [ 1 V{ } nth ] must-fail
 [ -1 V{ } set-length ] must-fail
-[ V{ } ] [ [ ] >vector ] unit-test
-[ V{ 1 2 } ] [ [ 1 2 ] >vector ] unit-test
+{ V{ } } [ [ ] >vector ] unit-test
+{ V{ 1 2 } } [ [ 1 2 ] >vector ] unit-test
 
-[ t ] [
+{ t } [
     100 [ 100 random ] V{ } replicate-as
     dup >array >vector =
 ] unit-test
 
-[ f ] [ V{ } V{ 1 2 3 } = ] unit-test
-[ f ] [ V{ 1 2 } V{ 1 2 3 } = ] unit-test
-[ f ] [ [ 1 2 ] V{ 1 2 3 } = ] unit-test
-[ f ] [ V{ 1 2 } [ 1 2 3 ] = ] unit-test
+{ f } [ V{ } V{ 1 2 3 } = ] unit-test
+{ f } [ V{ 1 2 } V{ 1 2 3 } = ] unit-test
+{ f } [ [ 1 2 ] V{ 1 2 3 } = ] unit-test
+{ f } [ V{ 1 2 } [ 1 2 3 ] = ] unit-test
 
-[ { 1 4 9 16 } ]
+{ { 1 4 9 16 } }
 [
     [ 1 2 3 4 ]
     >vector [ dup * ] map >array
 ] unit-test
 
-[ t ] [ V{ } hashcode V{ } hashcode = ] unit-test
-[ t ] [ V{ 1 2 3 } hashcode V{ 1 2 3 } hashcode = ] unit-test
-[ t ] [ V{ 1 V{ 2 } 3 } hashcode V{ 1 V{ 2 } 3 } hashcode = ] unit-test
-[ t ] [ V{ } hashcode V{ } hashcode = ] unit-test
+{ t } [ V{ } hashcode V{ } hashcode = ] unit-test
+{ t } [ V{ 1 2 3 } hashcode V{ 1 2 3 } hashcode = ] unit-test
+{ t } [ V{ 1 V{ 2 } 3 } hashcode V{ 1 V{ 2 } 3 } hashcode = ] unit-test
+{ t } [ V{ } hashcode V{ } hashcode = ] unit-test
 
-[ V{ 1 2 3 } V{ 1 2 3 4 5 6 } ]
+{ V{ 1 2 3 } V{ 1 2 3 4 5 6 } }
 [ V{ 1 2 3 } dup V{ 4 5 6 } append ] unit-test
 
-[ V{ 1 2 3 4 } ] [ [ V{ 1 } [ 2 ] V{ 3 4 } ] concat ] unit-test
+{ V{ 1 2 3 4 } } [ [ V{ 1 } [ 2 ] V{ 3 4 } ] concat ] unit-test
 
-[ V{ } ] [ V{ } 0 tail ] unit-test
-[ V{ } ] [ V{ 1 2 } 2 tail ] unit-test
-[ V{ 3 4 } ] [ V{ 1 2 3 4 } 2 tail ] unit-test
+{ V{ } } [ V{ } 0 tail ] unit-test
+{ V{ } } [ V{ 1 2 } 2 tail ] unit-test
+{ V{ 3 4 } } [ V{ 1 2 3 4 } 2 tail ] unit-test
 
-[ V{ 3 } ] [ V{ 1 2 3 } 1 tail* ] unit-test
+{ V{ 3 } } [ V{ 1 2 3 } 1 tail* ] unit-test
 
 0 <vector> "funny-stack" set
 
-[ ] [ V{ 1 5 } "funny-stack" get push ] unit-test
-[ ] [ V{ 2 3 } "funny-stack" get push ] unit-test
-[ V{ 2 3 } ] [ "funny-stack" get pop ] unit-test
-[ V{ 1 5 } ] [ "funny-stack" get last ] unit-test
-[ V{ 1 5 } ] [ "funny-stack" get pop ] unit-test
+{ } [ V{ 1 5 } "funny-stack" get push ] unit-test
+{ } [ V{ 2 3 } "funny-stack" get push ] unit-test
+{ V{ 2 3 } } [ "funny-stack" get pop ] unit-test
+{ V{ 1 5 } } [ "funny-stack" get last ] unit-test
+{ V{ 1 5 } } [ "funny-stack" get pop ] unit-test
 [ "funny-stack" get pop ] must-fail
 [ "funny-stack" get pop ] must-fail
-[ ] [ "funky" "funny-stack" get push ] unit-test
-[ "funky" ] [ "funny-stack" get pop ] unit-test
+{ } [ "funky" "funny-stack" get push ] unit-test
+{ "funky" } [ "funny-stack" get pop ] unit-test
 
-[ t ] [
+{ t } [
     V{ 1 2 3 4 } dup underlying>> length
     [ clone underlying>> length ] dip
     =
 ] unit-test
 
-[ f ] [
+{ f } [
     V{ 1 2 3 4 } dup clone
     [ underlying>> ] bi@ eq?
 ] unit-test
 
-[ 0 ] [
+{ 0 } [
     [
         10 <vector> "x" set
         "x" get clone length
     ] with-scope
 ] unit-test
 
-[ f ] [ 5 V{ } index ] unit-test
-[ 4 ] [ 5 V{ 1 2 3 4 5 } index ] unit-test
+{ f } [ 5 V{ } index ] unit-test
+{ 4 } [ 5 V{ 1 2 3 4 5 } index ] unit-test
 
-[ t ] [
+{ t } [
     100 iota >array dup >vector <reversed> >array [ reverse ] dip =
 ] unit-test
 
-[ fixnum ] [ 1 >bignum V{ } new-sequence length class-of ] unit-test
+{ fixnum } [ 1 >bignum V{ } new-sequence length class-of ] unit-test
 
-[ fixnum ] [ 1 >bignum iota [ ] V{ } map-as length class-of ] unit-test
+{ fixnum } [ 1 >bignum iota [ ] V{ } map-as length class-of ] unit-test
 
-[ V{ "lulz" } ] [ "lulz" 1vector ] unit-test
+{ V{ "lulz" } } [ "lulz" 1vector ] unit-test
index 073f9804d261ba87c98e6e6cfa7b28f7c7a0b4cb..c153ff229f62e45fb5c59d85001afb088dbaeff4 100644 (file)
@@ -6,16 +6,16 @@ combinators vocabs.parser grouping vocabs.files vocabs.refresh ;
 IN: vocabs.loader.tests
 
 ! This vocab should not exist, but just in case...
-[ ] [
+{ } [
     [
         "vocabs.loader.test" forget-vocab
     ] with-compilation-unit
 ] unit-test
 
-[ T{ vocab-link f "vocabs.loader.test" } ]
+{ T{ vocab-link f "vocabs.loader.test" } }
 [ "vocabs.loader.test" >vocab-link ] unit-test
 
-[ t ]
+{ t }
 [ "kernel" >vocab-link "kernel" lookup-vocab = ] unit-test
 
 IN: vocabs.loader.test.2
@@ -26,7 +26,7 @@ MAIN: hello
 
 IN: vocabs.loader.tests
 
-[ ] [
+{ } [
     "vocabs.loader.test.2" run
     "vocabs.loader.test.2" lookup-vocab run
     "vocabs.loader.test.2" <vocab-link> run
@@ -52,7 +52,7 @@ IN: vocabs.loader.tests
     ] unit-test
 ] times
 
-[ 2 ] [ "count-me" get-global ] unit-test
+{ 2 } [ "count-me" get-global ] unit-test
 
 [
     "IN: vocabs.loader.test.a v-l-t-a-hello"
@@ -63,15 +63,15 @@ IN: vocabs.loader.tests
 
 0 "count-me" set-global
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.b" forget-vocab
     ] with-compilation-unit
 ] unit-test
 
-[ f ] [ "vocabs.loader.test.b" vocab-files empty? ] unit-test
+{ f } [ "vocabs.loader.test.b" vocab-files empty? ] unit-test
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.b" vocab-files
         [ forget-source ] each
@@ -80,47 +80,47 @@ IN: vocabs.loader.tests
 
 [ "vocabs.loader.test.b" require ] must-fail
 
-[ 1 ] [ "count-me" get-global ] unit-test
+{ 1 } [ "count-me" get-global ] unit-test
 
-[ ] [
+{ } [
     [
         "bob" "vocabs.loader.test.b" create-word [ ] define
     ] with-compilation-unit
 ] unit-test
 
-[ ] [ "vocabs.loader.test.b" refresh ] unit-test
+{ } [ "vocabs.loader.test.b" refresh ] unit-test
 
-[ 2 ] [ "count-me" get-global ] unit-test
+{ 2 } [ "count-me" get-global ] unit-test
 
-[ f ] [ "fred" "vocabs.loader.test.b" lookup-word undefined-word? ] unit-test
+{ f } [ "fred" "vocabs.loader.test.b" lookup-word undefined-word? ] unit-test
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.b" vocab-files
         [ forget-source ] each
     ] with-compilation-unit
 ] unit-test
 
-[ ] [ "vocabs.loader.test.b" changed-vocab ] unit-test
+{ } [ "vocabs.loader.test.b" changed-vocab ] unit-test
 
-[ ] [ "vocabs.loader.test.b" refresh ] unit-test
+{ } [ "vocabs.loader.test.b" refresh ] unit-test
 
-[ 3 ] [ "count-me" get-global ] unit-test
+{ 3 } [ "count-me" get-global ] unit-test
 
-[ { "resource:core/kernel/kernel.factor" 1 } ]
+{ { "resource:core/kernel/kernel.factor" 1 } }
 [ "kernel" <vocab-link> where ] unit-test
 
-[ { "resource:core/kernel/kernel.factor" 1 } ]
+{ { "resource:core/kernel/kernel.factor" 1 } }
 [ "kernel" lookup-vocab where ] unit-test
 
-[ ] [
+{ } [
     [
         "vocabs.loader.test.c" forget-vocab
         "vocabs.loader.test.d" forget-vocab
     ] with-compilation-unit
 ] unit-test
 
-[ +done+ ] [
+{ +done+ } [
     [ "vocabs.loader.test.d" require ] [ :1 ] recover
     "vocabs.loader.test.d" lookup-vocab source-loaded?>>
 ] unit-test
@@ -135,7 +135,7 @@ IN: vocabs.loader.tests
 
 forget-junk
 
-[ { } ] [
+{ { } } [
     "IN: xabbabbja" eval( -- ) "xabbabbja" vocab-files
 ] unit-test
 
@@ -143,7 +143,7 @@ forget-junk
 
 forget-junk
 
-[ ] [ [ "vocabs.loader.test.e" forget-vocab ] with-compilation-unit ] unit-test
+{ } [ [ "vocabs.loader.test.e" forget-vocab ] with-compilation-unit ] unit-test
 
 0 "vocabs.loader.test.g" set-global
 
@@ -152,16 +152,16 @@ forget-junk
     "vocabs.loader.test.g" forget-vocab
 ] with-compilation-unit
 
-[ ] [ "vocabs.loader.test.g" require ] unit-test
+{ } [ "vocabs.loader.test.g" require ] unit-test
 
-[ 1 ] [ "vocabs.loader.test.g" get-global ] unit-test
+{ 1 } [ "vocabs.loader.test.g" get-global ] unit-test
 
 [
     "vocabs.loader.test.h" forget-vocab
     "vocabs.loader.test.i" forget-vocab
 ] with-compilation-unit
 
-[ ] [ "vocabs.loader.test.h" require ] unit-test
+{ } [ "vocabs.loader.test.h" require ] unit-test
 
 
 [
@@ -169,25 +169,25 @@ forget-junk
     "vocabs.loader.test.k" forget-vocab
 ] with-compilation-unit
 
-[ ] [ [ "vocabs.loader.test.j" require ] [ drop :1 ] recover ] unit-test
+{ } [ [ "vocabs.loader.test.j" require ] [ drop :1 ] recover ] unit-test
 
-[ ] [ "vocabs.loader.test.m" require ] unit-test
-[ f ] [ "vocabs.loader.test.n" lookup-vocab ] unit-test
-[ ] [ "vocabs.loader.test.o" require ] unit-test
-[ t ] [ "vocabs.loader.test.n" lookup-vocab >boolean ] unit-test
+{ } [ "vocabs.loader.test.m" require ] unit-test
+{ f } [ "vocabs.loader.test.n" lookup-vocab ] unit-test
+{ } [ "vocabs.loader.test.o" require ] unit-test
+{ t } [ "vocabs.loader.test.n" lookup-vocab >boolean ] unit-test
 
 [
     "mno" [ "vocabs.loader.test." swap suffix forget-vocab ] each
 ] with-compilation-unit
 
-[ ] [ "vocabs.loader.test.o" require ] unit-test
-[ f ] [ "vocabs.loader.test.n" lookup-vocab ] unit-test
-[ ] [ "vocabs.loader.test.m" require ] unit-test
-[ t ] [ "vocabs.loader.test.n" lookup-vocab >boolean ] unit-test
+{ } [ "vocabs.loader.test.o" require ] unit-test
+{ f } [ "vocabs.loader.test.n" lookup-vocab ] unit-test
+{ } [ "vocabs.loader.test.m" require ] unit-test
+{ t } [ "vocabs.loader.test.n" lookup-vocab >boolean ] unit-test
 
-[ f ] [ "vocabs.loader.test.p" lookup-vocab ] unit-test
-[ ] [ "vocabs.loader.test.p.private" require ] unit-test
-[ { "foo" } ] [ "vocabs.loader.test.p" vocab-words [ name>> ] map ] unit-test
+{ f } [ "vocabs.loader.test.p" lookup-vocab ] unit-test
+{ } [ "vocabs.loader.test.p.private" require ] unit-test
+{ { "foo" } } [ "vocabs.loader.test.p" vocab-words [ name>> ] map ] unit-test
 
 [
     "mnop" [ "vocabs.loader.test." swap suffix forget-vocab ] each
index 6ed0594be66227ed8863a299543c661ac5726924..86d6d8cfe9aabd6115ba02663dcdac68e7bc0af8 100644 (file)
@@ -2,12 +2,12 @@
 USING: vocabs tools.test ;
 IN: vocabs.tests
 
-[ f ] [ "kernel" vocab-main ] unit-test
+{ f } [ "kernel" vocab-main ] unit-test
 
-[ t ] [ "" "" child-vocab? ] unit-test
-[ t ] [ "" "io.files" child-vocab? ] unit-test
-[ t ] [ "io" "io.files" child-vocab? ] unit-test
-[ f ] [ "io.files" "io" child-vocab? ] unit-test
+{ t } [ "" "" child-vocab? ] unit-test
+{ t } [ "" "io.files" child-vocab? ] unit-test
+{ t } [ "io" "io.files" child-vocab? ] unit-test
+{ f } [ "io.files" "io" child-vocab? ] unit-test
 
 [ "foo/bar" create-vocab ] [ bad-vocab-name? ] must-fail-with
 [ "foo\\bar" create-vocab ] [ bad-vocab-name? ] must-fail-with
index badf63486b89862b6825d2cc82bd1f19360e0c30..45be7e1a05252c8b5da6551fdc4266222c3b815f 100644 (file)
@@ -2,8 +2,8 @@ USING: math eval lexer tools.test effects sequences ;
 IN: words.alias.tests
 
 ALIAS: foo +
-[ ] [ "IN: words.alias.tests CONSTANT: foo 5" eval( -- ) ] unit-test
-[ ( -- value ) ] [ \ foo stack-effect ] unit-test
+{ } [ "IN: words.alias.tests CONSTANT: foo 5" eval( -- ) ] unit-test
+{ ( -- value ) } [ \ foo stack-effect ] unit-test
 
 ALIAS: MY-H{ H{
 { H{ { 1 2 } } } [
index 88a6399283e93507f8e521bb5952f31bb11b7deb..a1966ed89fe5749a9ea501676a2b368598c55fab 100644 (file)
@@ -3,18 +3,18 @@ USING: tools.test math words.constant ;
 
 CONSTANT: a +
 
-[ + ] [ a ] unit-test
+{ + } [ a ] unit-test
 
-[ t ] [ \ a constant? ] unit-test
+{ t } [ \ a constant? ] unit-test
 
 CONSTANT: b \ +
 
-[ \ + ] [ b ] unit-test
+{ \ + } [ b ] unit-test
 
 CONSTANT: c { 1 2 3 }
 
-[ { 1 2 3 } ] [ c ] unit-test
+{ { 1 2 3 } } [ c ] unit-test
 
 SYMBOL: foo
 
-[ f ] [ \ foo constant? ] unit-test
+{ f } [ \ foo constant? ] unit-test
index ca5c6ad3fd6035001f71bcf9cc67f6ba1b8f5cc2..113d562653d7aa9dacf8438961e776801c7869b0 100644 (file)
@@ -4,30 +4,30 @@ vocabs continuations classes.tuple compiler.units
 io.streams.string accessors eval words.symbol grouping ;
 IN: words.tests
 
-[ 4 ] [
+{ 4 } [
     [
         "poo" "words.tests" create-word [ 2 2 + ] ( -- n ) define-declared
     ] with-compilation-unit
     "poo" "words.tests" lookup-word execute
 ] unit-test
 
-[ t ] [ t loaded-vocab-names [ vocab-words [ word? and ] each ] each ] unit-test
+{ t } [ t loaded-vocab-names [ vocab-words [ word? and ] each ] each ] unit-test
 
 DEFER: plist-test
 
-[ t ] [
+{ t } [
     \ plist-test t "sample-property" set-word-prop
     \ plist-test "sample-property" word-prop
 ] unit-test
 
-[ f ] [
+{ f } [
     \ plist-test f "sample-property" set-word-prop
     \ plist-test "sample-property" word-prop
 ] unit-test
 
-[ ] [ [ "create-test" "scratchpad" create-word { 1 2 } "testing" set-word-prop ] with-compilation-unit ] unit-test
+{ } [ [ "create-test" "scratchpad" create-word { 1 2 } "testing" set-word-prop ] with-compilation-unit ] unit-test
 
-[ { 1 2 } ] [
+{ { 1 2 } } [
     "create-test" "scratchpad" lookup-word "testing" word-prop
 ] unit-test
 
@@ -37,24 +37,24 @@ DEFER: plist-test
     [ ] [ [ "test-scope" "scratchpad" create-word drop ] with-compilation-unit ] unit-test
 ] with-scope
 
-[ "test-scope" ] [
+{ "test-scope" } [
     "test-scope" "scratchpad" lookup-word name>>
 ] unit-test
 
-[ t ] [ loaded-vocab-names array? ] unit-test
-[ t ] [ loaded-vocab-names [ vocab-words [ word? ] all? ] all? ] unit-test
+{ t } [ loaded-vocab-names array? ] unit-test
+{ t } [ loaded-vocab-names [ vocab-words [ word? ] all? ] all? ] unit-test
 
-[ f ] [ gensym gensym = ] unit-test
+{ f } [ gensym gensym = ] unit-test
 
 SYMBOL: a-symbol
-[ t ] [ \ a-symbol symbol? ] unit-test
+{ t } [ \ a-symbol symbol? ] unit-test
 
 ! See if redefining a generic as a colon def clears some
 ! word props.
 GENERIC: testing ( a -- b )
 "IN: words.tests : testing ( -- ) ;" eval( -- )
 
-[ f ] [ \ testing generic? ] unit-test
+{ f } [ \ testing generic? ] unit-test
 
 : forgotten ( -- ) ;
 : another-forgotten ( -- ) ;
@@ -71,16 +71,16 @@ DEFER: deferred
 [ "IN: words.tests DEFER: not-compiled << not-compiled >>" eval( -- ) ]
 [ error>> [ undefined-word? ] [ word>> name>> "not-compiled" = ] bi and ] must-fail-with
 
-[ ] [ "IN: words.tests FORGET: not-compiled" eval( -- ) ] unit-test
+{ } [ "IN: words.tests FORGET: not-compiled" eval( -- ) ] unit-test
 
-[ ] [ [ "no-loc" "words.tests" create-word drop ] with-compilation-unit ] unit-test
-[ f ] [ "no-loc" "words.tests" lookup-word where ] unit-test
+{ } [ [ "no-loc" "words.tests" create-word drop ] with-compilation-unit ] unit-test
+{ f } [ "no-loc" "words.tests" lookup-word where ] unit-test
 
-[ ] [ "IN: words.tests : no-loc-2 ( -- ) ;" eval( -- ) ] unit-test
-[ f ] [ "no-loc-2" "words.tests" lookup-word where ] unit-test
+{ } [ "IN: words.tests : no-loc-2 ( -- ) ;" eval( -- ) ] unit-test
+{ f } [ "no-loc-2" "words.tests" lookup-word where ] unit-test
 
-[ ] [ "IN: words.tests : test-last ( -- ) ;" eval( -- ) ] unit-test
-[ "test-last" ] [ last-word name>> ] unit-test
+{ } [ "IN: words.tests : test-last ( -- ) ;" eval( -- ) ] unit-test
+{ "test-last" } [ last-word name>> ] unit-test
 
 "undef-test" "words.tests" lookup-word [
     [ forget ] with-compilation-unit
@@ -89,42 +89,42 @@ DEFER: deferred
 [ "IN: words.tests : undef-test ( -- ) ; << undef-test >>" eval( -- ) ]
 [ error>> undefined-word? ] must-fail-with
 
-[ ] [
+{ } [
     "IN: words.tests GENERIC: symbol-generic ( -- )" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "IN: words.tests SYMBOL: symbol-generic" eval( -- )
 ] unit-test
 
-[ t ] [ "symbol-generic" "words.tests" lookup-word symbol? ] unit-test
-[ f ] [ "symbol-generic" "words.tests" lookup-word generic? ] unit-test
+{ t } [ "symbol-generic" "words.tests" lookup-word symbol? ] unit-test
+{ f } [ "symbol-generic" "words.tests" lookup-word generic? ] unit-test
 
-[ ] [
+{ } [
     "IN: words.tests GENERIC: symbol-generic ( a -- b )" <string-reader>
     "symbol-generic-test" parse-stream drop
 ] unit-test
 
-[ ] [
+{ } [
     "IN: words.tests TUPLE: symbol-generic ;" <string-reader>
     "symbol-generic-test" parse-stream drop
 ] unit-test
 
-[ t ] [ "symbol-generic" "words.tests" lookup-word symbol? ] unit-test
-[ f ] [ "symbol-generic" "words.tests" lookup-word generic? ] unit-test
+{ t } [ "symbol-generic" "words.tests" lookup-word symbol? ] unit-test
+{ f } [ "symbol-generic" "words.tests" lookup-word generic? ] unit-test
 
 ! Regressions
-[ ] [ "IN: words.tests : decl-forget-test ( -- ) ; foldable" eval( -- ) ] unit-test
-[ t ] [ "decl-forget-test" "words.tests" lookup-word "foldable" word-prop ] unit-test
-[ ] [ "IN: words.tests : decl-forget-test ( -- ) ;" eval( -- ) ] unit-test
-[ f ] [ "decl-forget-test" "words.tests" lookup-word "foldable" word-prop ] unit-test
+{ } [ "IN: words.tests : decl-forget-test ( -- ) ; foldable" eval( -- ) ] unit-test
+{ t } [ "decl-forget-test" "words.tests" lookup-word "foldable" word-prop ] unit-test
+{ } [ "IN: words.tests : decl-forget-test ( -- ) ;" eval( -- ) ] unit-test
+{ f } [ "decl-forget-test" "words.tests" lookup-word "foldable" word-prop ] unit-test
 
-[ ] [ "IN: words.tests : decl-forget-test ( -- ) ; flushable" eval( -- ) ] unit-test
-[ t ] [ "decl-forget-test" "words.tests" lookup-word "flushable" word-prop ] unit-test
-[ ] [ "IN: words.tests : decl-forget-test ( -- ) ;" eval( -- ) ] unit-test
-[ f ] [ "decl-forget-test" "words.tests" lookup-word "flushable" word-prop ] unit-test
+{ } [ "IN: words.tests : decl-forget-test ( -- ) ; flushable" eval( -- ) ] unit-test
+{ t } [ "decl-forget-test" "words.tests" lookup-word "flushable" word-prop ] unit-test
+{ } [ "IN: words.tests : decl-forget-test ( -- ) ;" eval( -- ) ] unit-test
+{ f } [ "decl-forget-test" "words.tests" lookup-word "flushable" word-prop ] unit-test
 
-[ { } ]
+{ { } }
 [
     all-words [
         [ "effect-dependencies" word-prop ]
index 855b42ec7fc7cbe03aed608078dd50f9eecc1177..669f1cde3363ca419c27f74bc717e858c13deae8 100644 (file)
@@ -3,7 +3,7 @@
 USING: 99-bottles io.streams.string tools.test ;
 IN: 99-bottles.tests
 
-[
+{
 """99 bottles of beer on the wall, 99 bottles of beer.
 Take one down, pass it around, 98 bottles of beer on the wall.
 
@@ -304,5 +304,5 @@ Take one down, pass it around, no more bottles of beer on the wall.
 No more bottles of beer on the wall, no more bottles of beer.
 Go to the store and buy some more, 99 bottles of beer on the wall.
 """
-]
+}
 [ [ 99-bottles ] with-string-writer ] unit-test
index 8af473c62d824bc4ead7492e59da59db95206f20..7bbe473371f9aebb4fccc85c6e831f29bbb3e9c1 100644 (file)
@@ -6,35 +6,35 @@ FROM: alien.c-types => uchar short int float ;
 SPECIALIZED-ARRAYS: int float float-4 uchar-16 ;
 IN: alien.data.map.tests
 
-[ float-array{ 1.0 1.0 3.0 3.0 5.0 5.0 } ]
+{ float-array{ 1.0 1.0 3.0 3.0 5.0 5.0 } }
 [
     int-array{ 1 3 5 } [ dup ] data-map( int -- float[2] )
     float cast-array
 ] unit-test
 
-[
+{
     float-4-array{
         float-4{ 0.0 0.0 0.0 0.0 }
         float-4{ 1.0 1.0 1.0 1.0 }
         float-4{ 2.0 2.0 2.0 2.0 }
     }
-] [
+} [
     3 iota [ float-4-with ] data-map( object -- float-4 )
     float-4 cast-array
 ] unit-test
 
-[
+{
     float-4-array{
         float-4{ 0.0 1.0  2.0  3.0 }
         float-4{ 4.0 5.0  6.0  7.0 }
         float-4{ 8.0 9.0 10.0 11.0 }
     }
-] [
+} [
     12 iota [ float-4-boa ] data-map( object[4] -- float-4 )
     float-4 cast-array
 ] unit-test
 
-[ float-array{ 1.0 1.0 3.0 3.0 5.0 5.0 0.0 0.0 } ]
+{ float-array{ 1.0 1.0 3.0 3.0 5.0 5.0 0.0 0.0 } }
 [
     int-array{ 1 3 5 } float-array{ 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 }
     [ dup ] data-map!( int -- float[2] )
@@ -57,14 +57,14 @@ IN: alien.data.map.tests
 : float-pixels>byte-pixels ( floats -- bytes )
     1.0 0.0 float-pixels>byte-pixels* ;
 
-[
+{
     B{
         127 191 255 63
         255 25 51 76
         76 51 229 127
         25 255 255 255
     }
-] [
+} [
     float-array{
         0.5 0.75 1.0 0.25
         1.0 0.1 0.2 0.3
@@ -73,14 +73,14 @@ IN: alien.data.map.tests
     } 1.0 0.0 float-pixels>byte-pixels-locals
 ] unit-test
 
-[
+{
     B{
         127 191 255 63
         255 25 51 76
         76 51 229 127
         25 255 255 255
     }
-] [
+} [
     float-array{
         0.5 0.75 1.0 0.25
         1.0 0.1 0.2 0.3
@@ -89,14 +89,14 @@ IN: alien.data.map.tests
     } float-pixels>byte-pixels
 ] unit-test
 
-[
+{
     B{
         127 191 255 63
         255 25 51 76
         76 51 229 127
         25 255 255 255
     }
-] [
+} [
     float-array{
         0.5 0.75 1.0 0.25
         1.0 0.1 0.2 0.3
@@ -119,7 +119,7 @@ CONSTANT: plane-count 4
     [ vmerge-transpose vmerge-transpose ]
     data-map( uchar-16 uchar-16 uchar-16 uchar-16 -- uchar-16[plane-count] ) ;
 
-[
+{
     B{
          1  10  11  15
          2  20  22  25
@@ -138,7 +138,7 @@ CONSTANT: plane-count 4
         15 150 165 155
         16 160 176 165
     }
-] [
+} [
     B{   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16 }
     B{  10  20  30  40  50  60  70  80  90 100 110 120 130 140 150 160 }
     B{  11  22  33  44  55  66  77  88  99 110 121 132 143 154 165 176 }
@@ -150,6 +150,6 @@ CONSTANT: plane-count 4
     [ 0.0 1.0 1.0 ] dip /f <range>
     [ ] data-map( object -- float ) ;
 
-[ float-array{ 0.0 0.5 1.0 } ]
+{ float-array{ 0.0 0.5 1.0 } }
 [ 2 data-map-compiler-bug-test float cast-array ]
 unit-test
index 38ce7c26c7fb4667d92d95cd365724f4fbd290bd..42274991b477635dd92a369f47ed8965b3f629f2 100644 (file)
@@ -20,24 +20,24 @@ CALLBACK: int thingy-ptr-callback ( void* thingy-handle ) ;
 : invoke-test-thingy-ptr-callback ( thingy -- n )
     test-thingy-ptr-callback int { void* } cdecl alien-indirect ;
 
-[ t f ] [
+{ t f } [
     [ 5 <thingy> <alien-handle> &release-alien-handle [ alien-handle? ] keep ] with-destructors
     alien-handle?
 ] unit-test
 
-[ t f ] [
+{ t f } [
     [ 5 <thingy> <alien-handle-ptr> &release-alien-handle-ptr [ alien-handle-ptr? ] keep ] with-destructors
     alien-handle-ptr?
 ] unit-test
 
-[ 6 ] [
+{ 6 } [
     [
         5 <thingy> <alien-handle> &release-alien-handle
         invoke-test-thingy-callback
     ] with-destructors
 ] unit-test
 
-[ 6 ] [
+{ 6 } [
     [
         5 <thingy> <alien-handle-ptr> &release-alien-handle-ptr
         invoke-test-thingy-ptr-callback
index bf799f1c4774ee92378ba8726e11f924bffa68a1..596693b19680e3770f35f91383fd783d203b3231 100644 (file)
@@ -16,15 +16,15 @@ IN: annotations.tests
     !TODO return 5
     f ;
 
-[ t ] [
+{ t } [
     NOTEs {
         [ length 1 = ]
         [ first string>> file-name "annotations-tests.factor" = ]
     } 1&&
 ] unit-test
 
-[ t ] [
+{ t } [
     BROKENs { [ \ four swap member? ] [ \ three swap member? ] } 1&&
 ] unit-test
 
-[ t ] [ TODOs \ five swap member? ] unit-test
+{ t } [ TODOs \ five swap member? ] unit-test
index f3369b6be0e92ca1a5c3531d573efb6e8c9e7052..9dfb228616a3d17cfe72b25a826650b361fc8255 100644 (file)
@@ -3,7 +3,7 @@
 USING: accessors arrays.shaped kernel tools.test math ;
 IN: arrays.shaped.tests
 
-[ t ] [
+{ t } [
     { 5 5 } increasing
     {
         { 0 1 2 3 4 }
@@ -14,7 +14,7 @@ IN: arrays.shaped.tests
     } >shaped-array =
 ] unit-test
 
-[ { 5 5 } ] [
+{ { 5 5 } } [
     {
         { 0 1 2 3 4 }
         { 5 6 7 8 9 }
@@ -24,7 +24,7 @@ IN: arrays.shaped.tests
     } >shaped-array shape>>
 ] unit-test
 
-[ { 5 5 } ] [
+{ { 5 5 } } [
     {
         { 0 1 2 3 4 }
         { 5 6 7 8 9 }
@@ -42,9 +42,9 @@ IN: arrays.shaped.tests
 
 ! Error on 0, negative shapes
 
-[
+{
     sa{ { 1 3 3 } { 4 1 3 } { 4 4 1 } }
-] [
+} [
     { 3 3 } 2 strict-lower
     [ drop 3 ] map-strict-upper
     [ drop 1 ] map-diagonal
index 7a1070a128623cd720a28f06fe0b68353026cc3d..ee2575e09e07ab899c867228bc6448bdc8f98b5a 100644 (file)
@@ -1,14 +1,14 @@
 USING: asn1 asn1.ldap io io.streams.string tools.test ;
 
-[ 6 ] [
+{ 6 } [
     "\u000002\u000001\u000006" [ asn-syntax read-ber ] with-string-reader
 ] unit-test
 
-[ "testing" ] [
+{ "testing" } [
     "\u000004\u000007testing" [ asn-syntax read-ber ] with-string-reader
 ] unit-test
 
-[ { 1 { 3 "Administrator" "ad_is_bogus" } } ] [
+{ { 1 { 3 "Administrator" "ad_is_bogus" } } } [
     "0$\u000002\u000001\u000001`\u00001f\u000002\u000001\u000003\u000004\rAdministrator\u000080\u00000bad_is_bogus"
     [ asn-syntax read-ber ] with-string-reader
 ] unit-test
index 307013918ff436d45d026a101f15e2072fe2558a..ea7e7f8dbbc142650f57a2183e66c2cc565f07da 100644 (file)
@@ -12,7 +12,7 @@ IN: assocs.extras
 
 { H{ { 2 1 } { 4 3 } } } [ H{ { 1 2 } { 3 4 } } assoc-invert ] unit-test
 
-[ H{ { "a" V{ 2 5 } } { "b" V{ 3 } } { "c" V{ 10 } } } ]
+{ H{ { "a" V{ 2 5 } } { "b" V{ 3 } } { "c" V{ 10 } } } }
 [
     { H{ { "a" 2 } { "b" 3 } } H{ { "a" 5 } { "c" 10 } } }
     [ ] [ assoc-merge ] map-reduce
index d8e9830532162e95fec107c288ed578d47177aeb..034c0cb0e07ee84c3cc96c328eb9b86d82b9e3a4 100644 (file)
@@ -3,13 +3,13 @@
 USING: backtrack math tools.test ;
 
 cut-amb
-[ 1 ] [ { 1 2 } amb ] unit-test
-[ V{ { 1 2 } } ] [ [ { 1 2 } ] bag-of ] unit-test
-[ V{ 1 2 } ] [ [ { 1 2 } amb ] bag-of ] unit-test
+{ 1 } [ { 1 2 } amb ] unit-test
+{ V{ { 1 2 } } } [ [ { 1 2 } ] bag-of ] unit-test
+{ V{ 1 2 } } [ [ { 1 2 } amb ] bag-of ] unit-test
 [ cut-amb { } amb ] must-fail
 [ fail ] must-fail
-[ V{ 1 10 2 20 } ] [ [ { 1 2 } amb { 1 10 } amb * ] bag-of ] unit-test
-[ V{ 7 -1 } ] [ [ 3 4 { + - } amb-execute ] bag-of ] unit-test
-[ "foo" t ] [ [ "foo" t ] [ "bar" ] if-amb ] unit-test
-[ "bar" f ] [ [ "foo" f ] [ "bar" ] if-amb ] unit-test
-[ "bar" f ] [ [ "foo" fail ] [ "bar" ] if-amb ] unit-test
+{ V{ 1 10 2 20 } } [ [ { 1 2 } amb { 1 10 } amb * ] bag-of ] unit-test
+{ V{ 7 -1 } } [ [ 3 4 { + - } amb-execute ] bag-of ] unit-test
+{ "foo" t } [ [ "foo" t ] [ "bar" ] if-amb ] unit-test
+{ "bar" f } [ [ "foo" f ] [ "bar" ] if-amb ] unit-test
+{ "bar" f } [ [ "foo" fail ] [ "bar" ] if-amb ] unit-test
index c74e28f2ebefbe5a2a6008bcb023a3ecd75148b8..efc083135d33652c2f0f5c62142af07b8f43f5d1 100644 (file)
@@ -27,7 +27,7 @@ my-account [
     ] unit-test
 ] with-variable
 
-[ 6781 ] [
+{ 6781 } [
     "..." 0.07 1 2007 4 10 <date> 4398.50 open-account
     2007 10 26 <date> 2000 "..." <transaction> 1array inserting-transactions
     2008 4 10 <date> process-to-date dup balance>> swap unpaid-interest>> + round >integer
index cdd83cb9afe8574624384b2cff0baaa95402b409..e0ae048c88df4f1bb2f2f822aa2afb02ccec5837 100644 (file)
@@ -2,7 +2,7 @@ USING: benchmark.regex-dna io io.files io.encodings.ascii
 io.streams.string kernel tools.test splitting ;
 IN: benchmark.regex-dna.tests
 
-[ t ] [
+{ t } [
     "resource:extra/benchmark/regex-dna/regex-dna-test-in.txt"
     [ regex-dna ] with-string-writer
     "resource:extra/benchmark/regex-dna/regex-dna-test-out.txt"
index 3eade1370eba61abe10e9dc1407ffa88105784d1..cc31f6e0a7628e7f048a7211959a161f019aa33c 100644 (file)
@@ -2,7 +2,7 @@ IN: benchmark.reverse-complement.tests
 USING: benchmark.reverse-complement checksums checksums.md5 io.files
 io.files.temp kernel tools.test ;
 
-[ "c071aa7e007a9770b2fb4304f55a17e5" ] [
+{ "c071aa7e007a9770b2fb4304f55a17e5" } [
     "resource:extra/benchmark/reverse-complement/reverse-complement-test-in.txt"
     "reverse-complement-test-out.txt" temp-file
     [ reverse-complement ] keep md5 checksum-file hex-string
index 9c933230e82fbbd3caf745e695265287703550ce..b6a469bbd10ba12985e6d580021cb684009a02cb 100644 (file)
@@ -2,25 +2,25 @@ USING: accessors bit-arrays bloom-filters bloom-filters.private kernel layouts
 math random sequences tools.test ;
 IN: bloom-filters.tests
 
-[ { 200 5 } ] [ { 100 7 } { 200 5 } smaller-second ] unit-test
-[ { 200 5 } ] [ { 200 5 } { 100 7 } smaller-second ] unit-test
+{ { 200 5 } } [ { 100 7 } { 200 5 } smaller-second ] unit-test
+{ { 200 5 } } [ { 200 5 } { 100 7 } smaller-second ] unit-test
 
 ! The sizing information was generated using the subroutine
 ! calculate_shortest_filter_length from
 ! http://www.perl.com/pub/a/2004/04/08/bloom_filters.html.
 
 ! Test bloom-filter creation
-[ 47965 ] [ 7 0.01 5000 bits-to-satisfy-error-rate ] unit-test
-[ 7 47965 ] [ 0.01 5000 size-bloom-filter ] unit-test
-[ 7 ] [ 0.01 5000 <bloom-filter> #hashes>> ] unit-test
-[ 47965 ] [ 0.01 5000 <bloom-filter> bits>> length ] unit-test
-[ 5000 ] [ 0.01 5000 <bloom-filter> capacity>> ] unit-test
-[ 0 ] [ 0.01 5000 <bloom-filter> count>> ] unit-test
+{ 47965 } [ 7 0.01 5000 bits-to-satisfy-error-rate ] unit-test
+{ 7 47965 } [ 0.01 5000 size-bloom-filter ] unit-test
+{ 7 } [ 0.01 5000 <bloom-filter> #hashes>> ] unit-test
+{ 47965 } [ 0.01 5000 <bloom-filter> bits>> length ] unit-test
+{ 5000 } [ 0.01 5000 <bloom-filter> capacity>> ] unit-test
+{ 0 } [ 0.01 5000 <bloom-filter> count>> ] unit-test
 
 ! Should return the fewest hashes to satisfy the bits requested, not the most.
-[ 32 ] [ 4 0.05 5 bits-to-satisfy-error-rate ] unit-test
-[ 32 ] [ 5 0.05 5 bits-to-satisfy-error-rate ] unit-test
-[ 4 32 ] [ 0.05 5 size-bloom-filter ] unit-test
+{ 32 } [ 4 0.05 5 bits-to-satisfy-error-rate ] unit-test
+{ 32 } [ 5 0.05 5 bits-to-satisfy-error-rate ] unit-test
+{ 4 32 } [ 0.05 5 size-bloom-filter ] unit-test
 
 ! This is a lot of bits.
 [ 0.00000001 max-array-capacity size-bloom-filter ] [ invalid-size? ]  must-fail-with
@@ -35,19 +35,19 @@ IN: bloom-filters.tests
 
 ! Should not generate bignum hash codes.  Enhanced double hashing may generate a
 ! lot of hash codes, and it's better to do this earlier than later.
-[ t ] [ 10000 iota [ double-hashcodes [ fixnum? ] both? ] map [ ] all? ] unit-test
+{ t } [ 10000 iota [ double-hashcodes [ fixnum? ] both? ] map [ ] all? ] unit-test
 
 : empty-bloom-filter ( -- bloom-filter )
     0.01 2000 <bloom-filter> ;
 
-[ 1 ] [ empty-bloom-filter dup increment-count count>> ] unit-test
+{ 1 } [ empty-bloom-filter dup increment-count count>> ] unit-test
 
 : basic-insert-test-setup ( -- bloom-filter )
     1 empty-bloom-filter [ bloom-filter-insert ] keep ;
 
 ! Basic tests that insert does something
-[ t ] [ basic-insert-test-setup bits>> [ ] any? ] unit-test
-[ 1 ] [ basic-insert-test-setup count>> ] unit-test
+{ t } [ basic-insert-test-setup bits>> [ ] any? ] unit-test
+{ 1 } [ basic-insert-test-setup count>> ] unit-test
 
 : non-empty-bloom-filter ( -- bloom-filter )
     1000 iota
@@ -60,14 +60,14 @@ IN: bloom-filters.tests
     [ [ bloom-filter-insert ] curry each ] keep ;
 
 ! Should find what we put in there.
-[ t ] [ 2000 iota
+{ t } [ 2000 iota
         full-bloom-filter
         [ bloom-filter-member? ] curry map
         [ ] all?
 ] unit-test
 
 ! We shouldn't have more than 0.01 false-positive rate.
-[ t ] [ 1000 iota [ drop most-positive-fixnum random 1000 + ] map
+{ t } [ 1000 iota [ drop most-positive-fixnum random 1000 + ] map
         full-bloom-filter
         [ bloom-filter-member? ] curry map
         [ ] count
index e444c351898a4c3b077ca80b0a20dae0d99b8d99..23e8bef9d82dab32ea9e6c6913dd9fe16d8c5a57 100644 (file)
@@ -3,8 +3,8 @@
 USING: tools.test boyer-moore ;
 IN: boyer-moore.tests
 
-[ 0 ] [ "qwerty" "" search ] unit-test
-[ 0 ] [ "" "" search ] unit-test
-[ f ] [ "qw" "qwerty" search ] unit-test
-[ 3 ] [ "qwerty" "r" search ] unit-test
-[ 8 ] [ "qwerasdfqwer" 2 "qwe" search-from ] unit-test
+{ 0 } [ "qwerty" "" search ] unit-test
+{ 0 } [ "" "" search ] unit-test
+{ f } [ "qw" "qwerty" search ] unit-test
+{ 3 } [ "qwerty" "r" search ] unit-test
+{ 8 } [ "qwerasdfqwer" 2 "qwe" search-from ] unit-test
index 9159ba2681f42ba5b0c63bcfcbab7cdb9e1de94d..b0052e3d71db329bcf0433789cd3bf047e996201 100644 (file)
@@ -6,27 +6,27 @@ IN: bson.tests
 : turnaround ( value -- value )
     assoc>bv binary [ H{ } clone stream>assoc ] with-byte-reader ;
 
-[ H{ { "a" "a string" } } ] [ H{ { "a" "a string" } } turnaround ] unit-test
+{ H{ { "a" "a string" } } } [ H{ { "a" "a string" } } turnaround ] unit-test
 
-[ H{ { "a" "a string" } { "b" H{ { "a" "アップルからの最新のニュースや情報を読む" } } } } ]
+{ H{ { "a" "a string" } { "b" H{ { "a" "アップルからの最新のニュースや情報を読む" } } } } }
 [ H{ { "a" "a string" } { "b" H{ { "a" "アップルからの最新のニュースや情報を読む" } } } } turnaround ] unit-test
 
-[ H{ { "a list" { 1 2.234 "hello world" } } } ]
+{ H{ { "a list" { 1 2.234 "hello world" } } } }
 [ H{ { "a list" { 1 2.234 "hello world" } } } turnaround ] unit-test
 
-[ H{ { "a quotation" [ 1 2 + ] } } ]
+{ H{ { "a quotation" [ 1 2 + ] } } }
 [ H{ { "a quotation" [ 1 2 + ] } } turnaround ] unit-test
 
-[ H{ { "ref" T{ dbref f "a" "b" "c" } } } ]
+{ H{ { "ref" T{ dbref f "a" "b" "c" } } } }
 [ H{ { "ref" T{ dbref f "a" "b" "c" } } } turnaround ] unit-test
 
-[ H{ { "a date" T{ timestamp { year 2009 }
+{ H{ { "a date" T{ timestamp { year 2009 }
                    { month 7 }
                    { day 11 }
                    { hour 9 }
                    { minute 8 }
                    { second 40+77/1000 } } } }
-]
+}
 [ H{ { "a date" T{ timestamp { year 2009 }
                    { month 7 }
                    { day 11 }
@@ -36,11 +36,11 @@ IN: bson.tests
                    { gmt-offset T{ duration { hour 2 } } } } } } turnaround
 ] unit-test
 
-[ H{ { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
+{ H{ { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
      { "ref" T{ dbref f "a" "b" "c" } }
      { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
      { "quot" [ 1 2 + ] } }
-]
+}
 [ H{ { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
      { "ref" T{ dbref f "a" "b" "c" } }
      { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
index 1f855d57013ea1be77d0e7e3bb62e600fa2be122..c635418ab2593d046fddaf42623bd6194b7c0d0b 100644 (file)
@@ -3,4 +3,4 @@
 USING: build-support sequences tools.test ;
 IN: build-support.tests
 
-[ f ] [ factor.sh-make-target empty? ] unit-test
+{ f } [ factor.sh-make-target empty? ] unit-test
index 6d883b469a471eb06c85078c282712cfca4bf972..e27e2257771a6714757415f8f7322dc4d35b84f0 100644 (file)
 USING: accessors c.lexer kernel sequences.parser tools.test ;
 IN: c.lexer.tests
 
-[ 36 ]
+{ 36 }
 [
     "    //jofiejoe\n    //eoieow\n/*asdf*/\n      "
     <sequence-parser> skip-whitespace/comments n>>
 ] unit-test
 
-[ f "33asdf" ]
+{ f "33asdf" }
 [ "33asdf" <sequence-parser> [ take-c-identifier ] [ take-rest ] bi ] unit-test
 
-[ "asdf" ]
+{ "asdf" }
 [ "asdf" <sequence-parser> take-c-identifier ] unit-test
 
-[ "_asdf" ]
+{ "_asdf" }
 [ "_asdf" <sequence-parser> take-c-identifier ] unit-test
 
-[ "_asdf400" ]
+{ "_asdf400" }
 [ "_asdf400" <sequence-parser> take-c-identifier ] unit-test
 
-[ "asdfasdf" ] [
+{ "asdfasdf" } [
     "/*asdfasdf*/" <sequence-parser> take-c-comment
 ] unit-test
 
-[ "k" ] [
+{ "k" } [
     "/*asdfasdf*/k" <sequence-parser> [ take-c-comment drop ] [ take-rest ] bi
 ] unit-test
 
-[ "omg" ] [
+{ "omg" } [
     "//asdfasdf\nomg" <sequence-parser>
     [ take-c++-comment drop ] [ take-rest ] bi
 ] unit-test
 
-[ "omg" ] [
+{ "omg" } [
     "omg" <sequence-parser>
     [ take-c++-comment drop ] [ take-rest ] bi
 ] unit-test
 
-[ "/*asdfasdf" ] [
+{ "/*asdfasdf" } [
     "/*asdfasdf" <sequence-parser> [ take-c-comment drop ] [ take-rest ] bi
 ] unit-test
 
-[ "asdf" "eoieoei" ] [
+{ "asdf" "eoieoei" } [
     "//asdf\neoieoei" <sequence-parser>
     [ take-c++-comment ] [ take-rest ] bi
 ] unit-test
 
-[ f ]
+{ f }
 [
     "\"abc\" asdf" <sequence-parser>
     [ CHAR: \ CHAR: " take-quoted-string drop ] [ "asdf" take-sequence ] bi
 ] unit-test
 
-[ "abc\\\"def" ]
+{ "abc\\\"def" }
 [
     "\"abc\\\"def\" asdf" <sequence-parser>
     CHAR: \ CHAR: " take-quoted-string
 ] unit-test
 
-[ "asdf" ]
+{ "asdf" }
 [
     "\"abc\" asdf" <sequence-parser>
     [ CHAR: \ CHAR: " take-quoted-string drop ]
     [ skip-whitespace "asdf" take-sequence ] bi
 ] unit-test
 
-[ f ]
+{ f }
 [
     "\"abc asdf" <sequence-parser>
     CHAR: \ CHAR: " take-quoted-string
 ] unit-test
 
-[ "\"abc" ]
+{ "\"abc" }
 [
     "\"abc asdf" <sequence-parser>
     [ CHAR: \ CHAR: " take-quoted-string drop ]
     [ "\"abc" take-sequence ] bi
 ] unit-test
 
-[ "c" ]
+{ "c" }
 [ "c" <sequence-parser> take-token ] unit-test
 
-[ f ]
+{ f }
 [ "" <sequence-parser> take-token ] unit-test
 
-[ "abcd e \\\"f g" ]
+{ "abcd e \\\"f g" }
 [ "\"abcd e \\\"f g\"" <sequence-parser> CHAR: \ CHAR: " take-token* ] unit-test
 
-[ "123" ]
+{ "123" }
 [ "123jjj" <sequence-parser> take-c-integer ] unit-test
 
-[ "123uLL" ]
+{ "123uLL" }
 [ "123uLL" <sequence-parser> take-c-integer ] unit-test
 
-[ "123ull" ]
+{ "123ull" }
 [ "123ull" <sequence-parser> take-c-integer ] unit-test
 
-[ "123u" ]
+{ "123u" }
 [ "123u" <sequence-parser> take-c-integer ] unit-test
index da5c574b5c1a26cde538995054b189d1e7e12372..f33146107e5133b8d0174097495a3120b2a3f5f4 100644 (file)
@@ -7,7 +7,7 @@ IN: c.preprocessor.tests
 [ "vocab:c/tests/test1/test1.c" start-preprocess-file ]
 [ include-nested-too-deeply? ] must-fail-with
 
-[ "yo\n\n\n\nyo4\n" ]
+{ "yo\n\n\n\nyo4\n" }
 [ "vocab:c/tests/test2/test2.c" start-preprocess-file nip ] unit-test
 
 (*
@@ -15,7 +15,7 @@ IN: c.preprocessor.tests
 [ "\"BOO\"" = ] must-fail-with
 *)
 
-[ V{ "\"omg\"" "\"lol\"" } ]
+{ V{ "\"omg\"" "\"lol\"" } }
 [ "vocab:c/tests/test4/test4.c" start-preprocess-file drop warnings>> ] unit-test
 
 
index 916f5ee9aba472d3cfc01818d219d12ae36b55d1..1ebafdae7f0d35690ae3771ea49d2b7e96c539b6 100644 (file)
@@ -4,4 +4,4 @@ USING: calendar.holidays calendar.holidays.canada kernel
 tools.test ;
 IN: calendar.holidays.canada.tests
 
-[ ] [ 2009 canada holidays drop ] unit-test
+{ } [ 2009 canada holidays drop ] unit-test
index 23ab535e9802a613d0595e778dfabb233daf2c92..61396ea0606527352a83b94ecbe3e23c166601d7 100644 (file)
@@ -4,4 +4,4 @@ USING: calendar.holidays calendar.holidays.us kernel sequences
 tools.test ;
 IN: calendar.holidays.us.tests
 
-[ 10 ] [ 2009 us-federal holidays length ] unit-test
+{ 10 } [ 2009 us-federal holidays length ] unit-test
index e4f5ac77d28e408bdc1620abb877a3b8da1dd904..6940a3c1897952145acb1dba8259a55680ffc0cf 100644 (file)
@@ -3,17 +3,17 @@
 
 USING: cgi cgi.private kernel tools.test ;
 
-[ t ] [ H{ } "" (query-string) = ] unit-test
+{ t } [ H{ } "" (query-string) = ] unit-test
 
-[ t ] [ H{ { "a" { "1" } } { "b" { "2" } } }
+{ t } [ H{ { "a" { "1" } } { "b" { "2" } } }
         "a=1&b=2" (query-string) = ] unit-test
 
-[ t ] [ H{ { "a" { "1" } } { "b" { "2" "3" } } }
+{ t } [ H{ { "a" { "1" } } { "b" { "2" "3" } } }
         "a=1&b=2&b=3" (query-string) = ] unit-test
 
-[ t ] [ "text/html" (content-type)
+{ t } [ "text/html" (content-type)
         [ H{ } = ] [ "text/html" = ] bi* and ] unit-test
 
-[ t ] [ "text/html; charset=utf-8" (content-type)
+{ t } [ "text/html; charset=utf-8" (content-type)
         [ H{ { "charset" { "utf-8" } } } = ]
         [ "text/html" = ] bi* and ] unit-test
index 4b3985b98bf9ba4df0017465857ebae462789ba5..163de7d25fdad080c67f51b43d7263000384903e 100644 (file)
@@ -14,23 +14,23 @@ STRUCT: foo
 SPECIALIZED-ARRAY: foo
 VECTORED-STRUCT: foo
 
-[
+{
     T{ vectored-foo
         { x int-array{    0   1   0   0   } }
         { y float-array{  0.0 2.0 0.0 0.0 } }
         { z ushort-array{ 0   3   0   0   } }
         { w ushort-array{ 0   4   0   0   } }
     }
-] [ S{ foo f 1 2.0 3 4 } 4 <vectored-foo> [ set-second ] keep ] unit-test
+} [ S{ foo f 1 2.0 3 4 } 4 <vectored-foo> [ set-second ] keep ] unit-test
 
-[
+{
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
         { z ushort-array{ 10   20   30   40   } }
         { w ushort-array{ 15   25   35   45   } }
     }
-] [
+} [
     foo-array{
         S{ foo { x 0 } { y 0.0 } { z 10 } { w 15 } }
         S{ foo { x 1 } { y 0.5 } { z 20 } { w 25 } }
@@ -39,14 +39,14 @@ VECTORED-STRUCT: foo
     } struct-transpose
 ] unit-test
 
-[
+{
     foo-array{
         S{ foo { x 0 } { y 0.0 } { z 10 } { w 15 } }
         S{ foo { x 1 } { y 0.5 } { z 20 } { w 25 } }
         S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } }
         S{ foo { x 3 } { y 1.5 } { z 40 } { w 45 } }
     }
-] [
+} [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -55,7 +55,7 @@ VECTORED-STRUCT: foo
     } struct-transpose
 ] unit-test
 
-[ 30 ] [
+{ 30 } [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -64,7 +64,7 @@ VECTORED-STRUCT: foo
     } third z>>
 ] unit-test
 
-[ S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } } ] [
+{ S{ foo { x 2 } { y 1.0 } { z 30 } { w 35 } } } [
     T{ vectored-foo
         { x int-array{     0    1    2    3   } }
         { y float-array{   0.0  0.5  1.0  1.5 } }
@@ -73,7 +73,7 @@ VECTORED-STRUCT: foo
     } third vectored-element>
 ] unit-test
 
-[ ] [
+{ } [
     [
         foo specialized-array-vocab forget-vocab
     ] with-compilation-unit
index 633707b23e3f946b0f8c6712cb5b586347056bc1..5aade593f3a87c58805af9eda944220b4b53e611 100644 (file)
@@ -6,5 +6,5 @@ TUPLE: resource < change-tracking-tuple
 
 : <resource> ( pathname -- resource ) f swap resource boa ;
 
-[ t ] [ "foo" <resource> "bar" >>pathname changed?>> ] unit-test
-[ f ] [ "foo" <resource> [ 123 >>pathname ] [ drop ] recover changed?>> ] unit-test
+{ t } [ "foo" <resource> "bar" >>pathname changed?>> ] unit-test
+{ f } [ "foo" <resource> [ 123 >>pathname ] [ drop ] recover changed?>> ] unit-test
index 98adefe1896e2ac1d96c6ecf59e79e13ca1b4ea8..c19db136b133b2168fb3e72b2c4f95f276882e68 100644 (file)
@@ -3,11 +3,11 @@
 USING: code-arrays locals math tools.test ;
 IN: code-arrays.tests
 
-[ { 1 2 9 } ] [ {{ 1 2 3 sq }} ] unit-test
-[ { 1 2 { 9 } } ] [ {{ 1 2 {{ 3 sq }} }} ] unit-test
+{ { 1 2 9 } } [ {{ 1 2 3 sq }} ] unit-test
+{ { 1 2 { 9 } } } [ {{ 1 2 {{ 3 sq }} }} ] unit-test
 
-[ H{ { 9 3 } { 4 1 } } ] [ H{{ {{ 3 sq 3 }} {{ 2 sq 1 }} }} ] unit-test
+{ H{ { 9 3 } { 4 1 } } } [ H{{ {{ 3 sq 3 }} {{ 2 sq 1 }} }} ] unit-test
 
 :: local-code-arrays ( -- seq ) {{ 1 2 3 + }} ;
 
-[ { 1 5 } ] [ local-code-arrays ] unit-test
+{ { 1 5 } } [ local-code-arrays ] unit-test
index 053812a6bd4f95f3155db9894f461c2993fd7c99..2d24a901cd4eb360d56748fc2efb16e694bd4b7a 100644 (file)
@@ -12,7 +12,7 @@ IN: combinators.extras.tests
 { "a b c d" }
 [ "a" "b" "c" "d" [ " " glue ] thrice ] unit-test
 
-[ { "negative" 0 "positive" } ] [
+{ { "negative" 0 "positive" } } [
     { -1 0 1 } [
         {
            { [ 0 > ] [ "positive" ] }
@@ -30,5 +30,5 @@ IN: combinators.extras.tests
 
 { 3 1 } [ 1 2 [ + ] keepd ] unit-test
 
-[ "1" "123" ] [ "1" "123" [ length ] [ > ] swap-when ] unit-test
-[ "123" "1" ] [ "1" "123" [ length ] [ < ] swap-when ] unit-test
+{ "1" "123" } [ "1" "123" [ length ] [ > ] swap-when ] unit-test
+{ "123" "1" } [ "1" "123" [ length ] [ < ] swap-when ] unit-test
index 01b11d07ed64d9dac16e7312d3dc67f41dd9ee50..45c8b1c32392e8ed0dbf3c25d90fb06c6fb5d566 100644 (file)
@@ -32,36 +32,36 @@ IN: compiler.cfg.gvn.tests
     0 get instructions>> ;
 
 ! Folding constants together
-[
+{
     V{
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 -0.0 }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 -0.0 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 0.0 }
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 0.0 }
         T{ ##load-reference f 1 0.0 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 t }
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 t }
         T{ ##load-reference f 1 t }
@@ -137,7 +137,7 @@ cpu x86.64? [
 ] when
 
 ! Double compare elimination
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -145,7 +145,7 @@ cpu x86.64? [
         T{ ##copy f 6 4 any-rep }
         T{ ##replace f 4 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -155,14 +155,14 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##compare-imm f 2 1 16 cc= }
         T{ ##copy f 3 2 any-rep }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##compare-imm f 2 1 16 cc= }
@@ -171,7 +171,7 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -179,7 +179,7 @@ cpu x86.64? [
         T{ ##copy f 6 4 any-rep }
         T{ ##replace f 4 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -189,7 +189,7 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -197,7 +197,7 @@ cpu x86.64? [
         T{ ##compare-integer f 6 2 1 cc/<= }
         T{ ##replace f 6 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##peek f 2 D 2 }
@@ -207,14 +207,14 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-imm f 2 1 100 cc<= }
         T{ ##compare-integer-imm f 3 1 100 cc/<= }
         T{ ##replace f 3 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 1 }
         T{ ##compare-integer-imm f 2 1 100 cc<= }
@@ -223,7 +223,7 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 8 D 0 }
         T{ ##peek f 9 D -1 }
@@ -231,7 +231,7 @@ cpu x86.64? [
         T{ ##compare-float-unordered f 14 8 9 cc/< }
         T{ ##replace f 14 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 8 D 0 }
         T{ ##peek f 9 D -1 }
@@ -241,14 +241,14 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##compare f 33 29 30 cc= }
         T{ ##compare-branch f 29 30 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -257,14 +257,14 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##compare-integer f 33 29 30 cc<= }
         T{ ##compare-integer-branch f 29 30 cc<= }
     }
-] [
+} [
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -273,14 +273,14 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
         T{ ##test f 33 29 30 cc= }
         T{ ##test-branch f 29 30 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 29 D -1 }
         T{ ##peek f 30 D -2 }
@@ -289,13 +289,13 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 29 D -1 }
         T{ ##test-imm f 33 29 30 cc= }
         T{ ##test-imm-branch f 29 30 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 29 D -1 }
         T{ ##test-imm f 33 29 30 cc= }
@@ -303,13 +303,13 @@ cpu x86.64? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D -1 }
         T{ ##test-vector f 2 1 f float-4-rep vcc-any }
         T{ ##test-vector-branch f 1 f float-4-rep vcc-any }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D -1 }
         T{ ##test-vector f 2 1 f float-4-rep vcc-any }
@@ -334,13 +334,13 @@ cpu x86.32? [
 ] when
 
 ! Immediate operand fusion
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -348,13 +348,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -362,13 +362,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##add-imm f 2 0 -100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -376,25 +376,25 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sub f 1 0 0 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##mul-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -402,13 +402,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##mul-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -416,25 +416,25 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##shl-imm f 2 1 3 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##mul-imm f 2 1 8 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
@@ -442,13 +442,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
@@ -456,13 +456,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
         T{ ##neg f 2 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
@@ -470,14 +470,14 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
         T{ ##neg f 2 0 }
         T{ ##copy f 3 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
@@ -486,13 +486,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##neg f 1 0 }
@@ -500,13 +500,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
@@ -514,13 +514,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##and-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -528,13 +528,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##and-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -542,13 +542,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##or-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -556,13 +556,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##or-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -570,13 +570,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##xor-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -584,13 +584,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##xor-imm f 2 0 100 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -598,13 +598,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-imm f 2 0 100 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -612,13 +612,13 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 0 100 cc<= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -686,13 +686,13 @@ cpu x86.32? [
     ] unit-test
 ] unless
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 0 100 cc>= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -700,13 +700,13 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm-branch f 0 100 cc<= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -714,13 +714,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm-branch f 0 100 cc>= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -729,13 +729,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Compare folding
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
@@ -743,13 +743,13 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 200 }
@@ -757,25 +757,25 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##compare-integer-imm f 2 1 123 cc= }
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
@@ -783,13 +783,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -797,13 +797,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -811,13 +811,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-integer f 2 20 }
@@ -825,25 +825,25 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc< }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
@@ -851,108 +851,108 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc<= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc> }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc>= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc/= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer f 1 0 0 cc= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 10 cc= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 20 cc= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 100 cc/= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 10 }
         T{ ##load-reference f 2 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 10 }
         T{ ##compare-imm f 2 1 10 cc/= }
@@ -1009,72 +1009,72 @@ cpu x86.32? [
     ] unit-test
 ] when
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 f }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc/= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 12 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 12 }
         T{ ##test-imm f 3 1 13 cc/= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 15 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 15 }
         T{ ##test-imm f 3 1 16 cc/= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 12 }
         T{ ##load-reference f 3 f }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 12 }
         T{ ##test-imm f 3 1 13 cc= }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 15 }
         T{ ##load-reference f 3 t }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 15 }
         T{ ##test-imm f 3 1 16 cc= }
@@ -1082,14 +1082,14 @@ cpu x86.32? [
 ] unit-test
 
 ! Rewriting a ##test of an ##and into a ##test
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##and f 2 0 1 }
         T{ ##test f 3 0 1 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1098,13 +1098,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 2 0 12 }
         T{ ##test-imm f 3 0 12 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 2 0 12 }
@@ -1113,13 +1113,13 @@ cpu x86.32? [
 ] unit-test
 
 ! Rewriting ##test into ##test-imm
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm f 2 0 10 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1127,13 +1127,13 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm f 2 0 10 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1141,13 +1141,13 @@ cpu x86.32? [
     } value-number-bb trim-temps
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1155,13 +1155,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1169,13 +1169,13 @@ cpu x86.32? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
         T{ ##test-imm-branch f 0 10 cc= }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 10 }
@@ -1290,7 +1290,7 @@ cpu x86? [
 ] when
 
 ! Reassociation
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1298,7 +1298,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 150 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1308,7 +1308,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1316,7 +1316,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 150 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1326,7 +1326,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1334,7 +1334,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 50 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1344,7 +1344,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1352,7 +1352,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##add-imm f 4 0 -150 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1362,7 +1362,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1370,7 +1370,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##mul-imm f 4 0 5000 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1380,7 +1380,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1388,7 +1388,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##mul-imm f 4 0 5000 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1398,7 +1398,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1406,7 +1406,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##and-imm f 4 0 32 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1416,7 +1416,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1424,7 +1424,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##and-imm f 4 0 32 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1434,7 +1434,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1442,7 +1442,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##or-imm f 4 0 118 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1452,7 +1452,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1460,7 +1460,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##or-imm f 4 0 118 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1470,7 +1470,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1478,7 +1478,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##xor-imm f 4 0 86 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1488,7 +1488,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1496,7 +1496,7 @@ cpu x86? [
         T{ ##load-integer f 3 50 }
         T{ ##xor-imm f 4 0 86 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 100 }
@@ -1506,14 +1506,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
         T{ ##shl-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
@@ -1522,14 +1522,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
         T{ ##shl-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 1 0 10 }
@@ -1538,14 +1538,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
         T{ ##sar-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
@@ -1554,14 +1554,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
         T{ ##sar-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 1 0 10 }
@@ -1570,14 +1570,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##shr-imm f 2 0 21 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1586,14 +1586,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##shr-imm f 2 1 $[ cell-bits 1 - ] }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1602,14 +1602,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
         T{ ##sar-imm f 2 1 11 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 1 0 10 }
@@ -1621,7 +1621,7 @@ cpu x86? [
 ! Distributive law
 2 \ vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1629,7 +1629,7 @@ cpu x86? [
         T{ ##add-imm f 2 3 40 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1638,7 +1638,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1646,7 +1646,7 @@ cpu x86? [
         T{ ##add-imm f 2 4 30 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 10 }
@@ -1655,7 +1655,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 -10 }
@@ -1663,7 +1663,7 @@ cpu x86? [
         T{ ##add-imm f 2 5 -40 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sub-imm f 1 0 10 }
@@ -1672,7 +1672,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##add-imm f 1 0 -10 }
@@ -1680,7 +1680,7 @@ cpu x86? [
         T{ ##add-imm f 2 6 -30 }
         T{ ##replace f 2 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sub-imm f 1 0 10 }
@@ -1690,14 +1690,14 @@ cpu x86? [
 ] unit-test
 
 ! Simplification
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1706,14 +1706,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1722,14 +1722,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -1738,25 +1738,25 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 1 0 0 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##and-imm f 1 0 -1 }
@@ -1764,13 +1764,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##and f 1 0 0 }
@@ -1778,13 +1778,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##or-imm f 1 0 0 }
@@ -1792,25 +1792,25 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -1 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##or-imm f 1 0 -1 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##or f 1 0 0 }
@@ -1818,13 +1818,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##xor-imm f 1 0 0 }
@@ -1832,13 +1832,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##not f 1 0 }
         T{ ##replace f 1 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##xor-imm f 1 0 -1 }
@@ -1846,25 +1846,25 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##xor f 1 0 0 }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##mul-imm f 2 0 1 }
@@ -1872,13 +1872,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shl-imm f 2 0 0 }
@@ -1886,13 +1886,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shr-imm f 2 0 0 }
@@ -1900,13 +1900,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##sar-imm f 2 0 0 }
@@ -1915,14 +1915,14 @@ cpu x86? [
 ] unit-test
 
 ! Constant folding
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 4 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -1931,14 +1931,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 -2 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -1947,14 +1947,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 6 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1963,14 +1963,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 1 }
         T{ ##load-integer f 3 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1979,14 +1979,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 1 }
         T{ ##load-integer f 3 3 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -1995,14 +1995,14 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
         T{ ##load-integer f 2 3 }
         T{ ##load-integer f 3 1 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 2 }
@@ -2011,13 +2011,13 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 3 8 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2041,13 +2041,13 @@ cell 8 = [
     ] unit-test
 ] when
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -8 }
         T{ ##load-integer f 3 -4 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 -8 }
@@ -2106,13 +2106,13 @@ cell 8 = [
     ] unless
 ] when
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 -1 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2120,13 +2120,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 -2 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 1 1 }
@@ -2135,13 +2135,13 @@ cell 8 = [
 ] unit-test
 
 ! ##tagged>integer constant folding
-[
+{
     V{
         T{ ##load-reference f 1 f }
         T{ ##load-integer f 2 $[ \ f type-number ] }
         T{ ##copy f 3 2 any-rep }
     }
-] [
+} [
     V{
         T{ ##load-reference f 1 f }
         T{ ##tagged>integer f 2 1 }
@@ -2149,13 +2149,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 100 }
         T{ ##load-integer f 2 $[ 100 tag-fixnum ] }
         T{ ##load-integer f 3 $[ 100 tag-fixnum 1 + ] }
     }
-] [
+} [
     V{
         T{ ##load-integer f 1 100 }
         T{ ##tagged>integer f 2 1 }
@@ -2164,14 +2164,14 @@ cell 8 = [
 ] unit-test
 
 ! Alien boxing and unboxing
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
@@ -2180,14 +2180,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
         T{ ##copy f 2 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##box-alien f 1 0 }
@@ -2196,14 +2196,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
         T{ ##copy f 1 0 any-rep }
         T{ ##replace f 0 D 0 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
@@ -2214,7 +2214,7 @@ cell 8 = [
 
 3 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 16 }
@@ -2222,7 +2222,7 @@ cell 8 = [
         T{ ##unbox-any-c-ptr f 4 0 }
         T{ ##add-imm f 3 4 16 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 16 }
@@ -2233,7 +2233,7 @@ cell 8 = [
 
 4 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##box-alien f 0 1 }
@@ -2242,7 +2242,7 @@ cell 8 = [
         T{ ##copy f 5 1 any-rep }
         T{ ##add-imm f 4 5 16 }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##box-alien f 0 1 }
@@ -2254,14 +2254,14 @@ cell 8 = [
 
 3 vreg-counter set-global
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
         T{ ##copy f 3 0 any-rep }
         T{ ##replace f 0 D 1 }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-integer f 2 0 }
@@ -2271,13 +2271,13 @@ cell 8 = [
 ] unit-test
 
 ! Various SIMD simplifications
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##vector>scalar f 1 0 float-4-rep }
         T{ ##copy f 2 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##vector>scalar f 1 0 float-4-rep }
@@ -2285,23 +2285,23 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##copy f 1 0 any-rep }
     }
-] [
+} [
     V{
         T{ ##shuffle-vector-imm f 1 0 { 0 1 2 3 } float-4-rep }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 0 { 0 2 3 1 } float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
@@ -2309,25 +2309,25 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 1 { 1 0 } double-2-rep }
     }
-] [
+} [
     V{
         T{ ##shuffle-vector-imm f 1 0 { 1 2 3 0 } float-4-rep }
         T{ ##shuffle-vector-imm f 2 1 { 1 0 } double-2-rep }
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 0 55 }
         T{ ##load-reference f 1 B{ 55 0 0 0  55 0 0 0  55 0 0 0  55 0 0 0 } }
         T{ ##load-reference f 2 B{ 55 0 0 0  55 0 0 0  55 0 0 0  55 0 0 0 } }
     }
-] [
+} [
     V{
         T{ ##load-integer f 0 55 }
         T{ ##scalar>vector f 1 0 int-4-rep }
@@ -2335,13 +2335,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
         T{ ##load-reference f 2 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##scalar>vector f 1 0 float-4-rep }
@@ -2349,13 +2349,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
         T{ ##load-reference f 2 B{ 0 0 160 63 0 0 160 63 0 0 160 63 0 0 160 63 } }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##scalar>vector f 1 0 float-4-rep }
@@ -2363,14 +2363,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 0 55 }
         T{ ##load-reference f 1 B{ 55 0 55 0 55 0 55 0 55 0 55 0 55 0 55 0 } }
         T{ ##load-reference f 2 B{ 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 } }
         T{ ##load-reference f 3 B{ 0 55 0 55 0 55 0 55 0 55 0 55 0 55 0 55 } }
     }
-] [
+} [
     V{
         T{ ##load-integer f 0 55 }
         T{ ##scalar>vector f 1 0 short-8-rep }
@@ -2379,13 +2379,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 2 3.75 }
         T{ ##load-reference f 4 B{ 0 0 0 0 0 0 244 63 0 0 0 0 0 0 14 64 } }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 2 3.75 }
@@ -2393,13 +2393,13 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 2 375 }
         T{ ##load-reference f 4 B{ 125 0 0 0 0 0 0 0 119 1 0 0 0 0 0 0 } }
     }
-] [
+} [
     V{
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 2 375 }
@@ -2407,7 +2407,7 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 2.50 }
@@ -2415,7 +2415,7 @@ cell 8 = [
         T{ ##load-reference f 3 5.00 }
         T{ ##load-reference f 4 B{ 0 0 160 63 0 0 32 64 0 0 112 64 0 0 160 64 } }
     }
-] [
+} [
     V{
         T{ ##load-reference f 0 1.25 }
         T{ ##load-reference f 1 2.50 }
@@ -2425,7 +2425,7 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 1 250 }
@@ -2433,7 +2433,7 @@ cell 8 = [
         T{ ##load-integer f 3 500 }
         T{ ##load-reference f 4 B{ 125 0 0 0 250 0 0 0 119 1 0 0 244 1 0 0 } }
     }
-] [
+} [
     V{
         T{ ##load-integer f 0 125 }
         T{ ##load-integer f 1 250 }
@@ -2443,11 +2443,11 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##zero-vector f 2 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##xor-vector f 2 1 1 float-4-rep }
     } value-number-bb
@@ -2455,7 +2455,7 @@ cell 8 = [
 
 ! NOT x AND y => x ANDN y
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2463,7 +2463,7 @@ cell 8 = [
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2473,14 +2473,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2491,7 +2491,7 @@ cell 8 = [
 
 ! x AND NOT y => y ANDN x
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2499,7 +2499,7 @@ cell 8 = [
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2509,14 +2509,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##andn-vector f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2527,7 +2527,7 @@ cell 8 = [
 
 ! NOT x ANDN y => x AND y
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2535,7 +2535,7 @@ cell 8 = [
         T{ ##xor-vector  f 4 0 3 float-4-rep }
         T{ ##and-vector  f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2545,14 +2545,14 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
         T{ ##not-vector  f 4 0 float-4-rep }
         T{ ##and-vector  f 5 0 1 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2563,7 +2563,7 @@ cell 8 = [
 
 ! AND <=> ANDN
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2574,7 +2574,7 @@ cell 8 = [
         T{ ##and-vector  f 6 0 2 float-4-rep }
         T{ ##or-vector   f 7 5 6 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2587,7 +2587,7 @@ cell 8 = [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2597,7 +2597,7 @@ cell 8 = [
         T{ ##and-vector  f 6 0 2 float-4-rep }
         T{ ##or-vector   f 7 5 6 float-4-rep }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2619,14 +2619,14 @@ cell 8 = [
     value-numbering
     0 get [ instructions>> ] [ successors>> first number>> 1 - ] bi ;
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     1
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2634,14 +2634,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2649,14 +2649,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2664,14 +2664,14 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
         T{ ##branch }
     }
     1
-] [
+} [
     V{
         T{ ##load-integer f 1 1 }
         T{ ##load-integer f 2 2 }
@@ -2679,92 +2679,92 @@ cell 8 = [
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc< }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc<= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc> }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc>= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##branch }
     }
     1
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare-integer-branch f 0 0 cc/= }
     } test-branch-folding
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##load-reference f 1 t }
         T{ ##branch }
     }
     0
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##compare f 1 0 0 cc<= }
@@ -2798,7 +2798,7 @@ V{
 
 test-diamond
 
-[ ] [
+{ } [
     0 get block>cfg {
         [ cfg set ]
         [ value-numbering ]
@@ -2807,11 +2807,11 @@ test-diamond
     } cleave
 ] unit-test
 
-[ 1 ] [ 1 get successors>> length ] unit-test
+{ 1 } [ 1 get successors>> length ] unit-test
 
-[ t ] [ 1 get successors>> first 3 get eq? ] unit-test
+{ t } [ 1 get successors>> first 3 get eq? ] unit-test
 
-[ 2 ] [ 4 get instructions>> length ] unit-test
+{ 2 } [ 4 get instructions>> length ] unit-test
 
 V{
     T{ ##peek f 0 D 0 }
@@ -2840,11 +2840,11 @@ V{
 
 test-diamond
 
-[ ] [ 0 get block>cfg value-numbering ] unit-test
+{ } [ 0 get block>cfg value-numbering ] unit-test
 
-[ t ] [ 1 get successors>> first 3 get eq? ] unit-test
+{ t } [ 1 get successors>> first 3 get eq? ] unit-test
 
-[ t ] [ 3 get instructions>> first ##copy? ] unit-test
+{ t } [ 3 get instructions>> first ##copy? ] unit-test
 
 V{ T{ ##prologue } T{ ##branch } } 0 test-bb
 
@@ -2904,12 +2904,12 @@ V{
 2 3 edge
 4 5 edge
 
-[ ] [
+{ } [
     0 get block>cfg
     dup value-numbering eliminate-dead-code
 ] unit-test
 
-[ f ] [ 1 get instructions>> [ ##peek? ] any? ] unit-test
+{ f } [ 1 get instructions>> [ ##peek? ] any? ] unit-test
 
 ! Slot addressing optimization
 cpu x86? [
@@ -2933,14 +2933,14 @@ cpu x86? [
 ! Alien addressing optimization
 
 ! Base offset fusion on ##load/store-memory-imm
-[
+{
     V{
         T{ ##peek f 1 D 0 }
         T{ ##tagged>integer f 2 1 }
         T{ ##add-imm f 3 2 10 }
         T{ ##load-memory-imm f 4 2 10 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 1 D 0 }
         T{ ##tagged>integer f 2 1 }
@@ -2949,7 +2949,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2958,7 +2958,7 @@ cpu x86? [
         T{ ##add-imm f 4 3 10 }
         T{ ##store-memory-imm f 2 3 10 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2970,7 +2970,7 @@ cpu x86? [
 ] unit-test
 
 ! Displacement fusion on ##load/store-memory-imm
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2979,7 +2979,7 @@ cpu x86? [
         T{ ##add f 4 2 3 }
         T{ ##load-memory f 5 2 3 0 0 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2990,7 +2990,7 @@ cpu x86? [
     } value-number-bb
 ] unit-test
 
-[
+{
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -2999,7 +2999,7 @@ cpu x86? [
         T{ ##add f 4 2 3 }
         T{ ##store-memory f 5 2 3 0 0 int-rep c:uchar }
     }
-] [
+} [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -3031,7 +3031,7 @@ cpu x86?
         T{ ##add-imm f 4 2 31337 }
         T{ ##load-memory f 5 4 3 0 0 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
@@ -3064,7 +3064,7 @@ cpu x86?
         T{ ##add-imm f 4 3 31337 }
         T{ ##load-memory f 5 2 4 0 1 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
@@ -3078,7 +3078,7 @@ cpu x86?
 
 ! Displacement offset fusion should not occur on
 ! ##load/store-memory with non-zero scale
-[ ] [
+{ } [
     V{
         T{ ##peek f 0 D 0 }
         T{ ##peek f 1 D 1 }
@@ -3110,7 +3110,7 @@ cpu x86?
         T{ ##shl-imm f 4 3 2 }
         T{ ##load-memory f 5 2 4 0 0 int-rep c:uchar }
     }
-] ?
+] }
 [
     V{
         T{ ##peek f 0 D 0 }
@@ -3180,13 +3180,13 @@ V{
 
 test-diamond
 
-[ ] [ 0 get block>cfg value-numbering ] unit-test
+{ } [ 0 get block>cfg value-numbering ] unit-test
 
 ! First ##load-integer cannot be turned into a ##copy because
 ! the canonical leader for the value 100 is unavailable, but
 ! the rest should still be redundant.
-[ t ] [ 4 get instructions>> first ##load-integer? ] unit-test
-[ 1 ] [ 4 get instructions>> [ ##load-integer? ] count ] unit-test
+{ t } [ 4 get instructions>> first ##load-integer? ] unit-test
+{ 1 } [ 4 get instructions>> [ ##load-integer? ] count ] unit-test
 
 ! Global optimization
 V{ T{ ##prologue } T{ ##branch } } 0 test-bb
@@ -3240,10 +3240,10 @@ V{ T{ ##epilogue } T{ ##return } } 5 test-bb
 3 2 edge
 4 5 edge
 
-[ ] [ 0 get block>cfg dup value-numbering eliminate-dead-code ] unit-test
+{ } [ 0 get block>cfg dup value-numbering eliminate-dead-code ] unit-test
 
-[ 1 ] [ 1 get instructions>> [ ##load-integer? ] count ] unit-test
-[ 1 ] [ 2 get instructions>> [ ##phi? ] count ] unit-test
-[ t ] [ 2 get instructions>> last ##compare-integer-imm-branch? ] unit-test
-[ f ] [ 3 get instructions>> [ ##load-integer? ] any? ] unit-test
-[ 1 ] [ 3 get instructions>> [ ##add-imm? ] count ] unit-test
+{ 1 } [ 1 get instructions>> [ ##load-integer? ] count ] unit-test
+{ 1 } [ 2 get instructions>> [ ##phi? ] count ] unit-test
+{ t } [ 2 get instructions>> last ##compare-integer-imm-branch? ] unit-test
+{ f } [ 3 get instructions>> [ ##load-integer? ] any? ] unit-test
+{ 1 } [ 3 get instructions>> [ ##add-imm? ] count ] unit-test
index 8f6c0171e7ac2c5c3f0dff00b6b183c5bee846c4..768a7f42b1f56dd570c78e47a7aca13a2898b1cf 100644 (file)
@@ -1,6 +1,6 @@
 IN: compiler.graphviz.tests
 USING: compiler.graphviz io.files kernel tools.test ;
 
-[ t ] [ [ [ 1 ] [ 2 ] if ] render-cfg exists? ] unit-test
-[ t ] [ [ [ 1 ] [ 2 ] if ] render-dom exists? ] unit-test
-[ t ] [ [ [ 1 ] [ 2 ] if ] render-call-graph exists? ] unit-test
+{ t } [ [ [ 1 ] [ 2 ] if ] render-cfg exists? ] unit-test
+{ t } [ [ [ 1 ] [ 2 ] if ] render-dom exists? ] unit-test
+{ t } [ [ [ 1 ] [ 2 ] if ] render-call-graph exists? ] unit-test
index 85a4de50fbb23cd84dd55f2f38eec65749665784..f262f1bebf48f68d439c278a4cb4600a6b229d3b 100644 (file)
@@ -11,7 +11,7 @@ CONSTRUCTOR: <stock-spread> stock-spread ( stock spread -- stock-spread )
 
 SYMBOL: AAPL
 
-[ t ] [
+{ t } [
     AAPL 1234 <stock-spread>
     {
         [ stock>> AAPL eq? ]
@@ -33,10 +33,10 @@ CONSTRUCTOR: <ct3> ct3 ( a b c -- obj ) ;
 
 CONSTRUCTOR: <ct4> ct4 ( a b c d -- obj ) ;
 
-[ 1000 ] [ 1000 <ct1> a>> ] unit-test
-[ 0 ] [ 0 0 <ct2> a>> ] unit-test
-[ 0 ] [ 0 0 0 <ct3> a>> ] unit-test
-[ 0 ] [ 0 0 0 0 <ct4> a>> ] unit-test
+{ 1000 } [ 1000 <ct1> a>> ] unit-test
+{ 0 } [ 0 0 <ct2> a>> ] unit-test
+{ 0 } [ 0 0 0 <ct3> a>> ] unit-test
+{ 0 } [ 0 0 0 0 <ct4> a>> ] unit-test
 
 
 TUPLE: monster
@@ -61,11 +61,11 @@ SLOT-CONSTRUCTOR: a-monster
     2dup +
     { "name" "hp" "max-hp" "computed" } \ b-monster slots>boa ;
 
-[ 20 ] [ "Norm" 10 10 <a-monster> computed>> ] unit-test
-[ 18 ] [ "Norm" 10 10 <a-monster> stop>> ] unit-test
+{ 20 } [ "Norm" 10 10 <a-monster> computed>> ] unit-test
+{ 18 } [ "Norm" 10 10 <a-monster> stop>> ] unit-test
 
-[ 22 ] [ "Phil" 11 11 <b-monster> computed>> ] unit-test
-[ 18 ] [ "Phil" 11 11 <b-monster> stop>> ] unit-test
+{ 22 } [ "Phil" 11 11 <b-monster> computed>> ] unit-test
+{ 18 } [ "Phil" 11 11 <b-monster> stop>> ] unit-test
 
 [
     """USE: constructors
index 3d9ce0403dd0a5b98dbdfd47ecdc14549a288915..5423064970037a060d64ff4514fbf006128783a2 100644 (file)
@@ -1,4 +1,4 @@
 IN: contributors.tests
 USING: contributors tools.test ;
 
-[ ] [ contributors ] unit-test
+{ } [ contributors ] unit-test
index 079197c1be6788459a433aaaad610c6496b1e592..d3caebb91099b3b5f354c28263640849f26a8462 100644 (file)
@@ -8,13 +8,13 @@ IN: crypto.aes.tests
 CONSTANT: plaintext HEX{ 32 43 f6 a8 88 5a 30 8d 31 31 98 a2 e0 37 07 34 }
 CONSTANT: key HEX{ 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c }
 
-[ {
+{ {
         0x00 0x01 0x02 0x04 0x08 0x10
         0x20 0x40 0x80 0x1b 0x36
-} ] [ rcon ] unit-test
+} } [ rcon ] unit-test
 
 
-[ {
+{ {
     0xc66363a5 0xf87c7c84 0xee777799 0xf67b7b8d 0xfff2f20d 0xd66b6bbd 0xde6f6fb1 0x91c5c554
     0x60303050 0x02010103 0xce6767a9 0x562b2b7d 0xe7fefe19 0xb5d7d762 0x4dababe6 0xec76769a
     0x8fcaca45 0x1f82829d 0x89c9c940 0xfa7d7d87 0xeffafa15 0xb25959eb 0x8e4747c9 0xfbf0f00b
@@ -143,24 +143,24 @@ CONSTANT: key HEX{ 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c }
     0x9b9bb62d 0x1e1e223c 0x87879215 0xe9e920c9 0xcece4987 0x5555ffaa 0x28287850 0xdfdf7aa5
     0x8c8c8f03 0xa1a1f859 0x89898009 0x0d0d171a 0xbfbfda65 0xe6e631d7 0x4242c684 0x6868b8d0
     0x4141c382 0x9999b029 0x2d2d775a 0x0f0f111e 0xb0b0cb7b 0x5454fca8 0xbbbbd66d 0x16163a2c
-} ] [ t-table ] unit-test
+} } [ t-table ] unit-test
 
 #! NOT TESTED:
 #! ui32
 #! set-t
 #! set-d
 
-[ { 0x01020304 0x02030401 0x03040102 0x04010203 } ] [
+{ { 0x01020304 0x02030401 0x03040102 0x04010203 } } [
   { 0x01010101 0x02020202 0x03030303 0x04040404 } shift-rows
 ] unit-test
 
-[ { 0x01010101 0x02020202 0x03030303 0x04040404 } ] [
+{ { 0x01010101 0x02020202 0x03030303 0x04040404 } } [
  { 0x01020304 0x02030401 0x03040102 0x04010203 }  unshift-rows
 ] unit-test
 
-[ 0x02030401 ] [ 0x01020304 rotword ] unit-test
+{ 0x02030401 } [ 0x01020304 rotword ] unit-test
 
-[
+{
 V{ 729683222 682545830 2885096840 164581180 2700803607 2287217841
    597899577 711751173 4072838642 2056698179 1496678522 1935275647
    1031817085 1192689214 505642564 1836746811 4014253377 2823969663
@@ -169,23 +169,23 @@ V{ 729683222 682545830 2885096840 164581180 2700803607 2287217841
    2225491890 1319558223 3939660577 3045964498 824964448 2139957551
    2893506291 435870753 684796225 1465647214 3491035560 3387827593
    3779005640 3059944614 }
-] [
+} [
   HEX{ 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c } #! AES-128 key expansion test vector from FIPS-197 (appendix)
         10 (expand-enc-key)
     ] unit-test
 
-[ 0x046681e5 ] [ 0x088df419 ui32> t-transform ] unit-test
+{ 0x046681e5 } [ 0x088df419 ui32> t-transform ] unit-test
 
-[ V{
+{ V{
     0x3925841d
     0x02dc09fb
     0xdc118597
     0x196a0b32
  }
-] [
+} [
     key plaintext aes-encrypt-block bytes>words
 ] unit-test
 
-[ t ] [
+{ t } [
     sbox [ dup inv-sbox nth sbox nth = ] all?
 ] unit-test
index bb2a4be9446d1c14eb19a35448605e751fa7b42e..5b2bf41c8e14042554871d9d83f1849b3c3c3f09 100644 (file)
@@ -3,4 +3,4 @@
 USING: crypto.barrett kernel math namespaces tools.test ;
 IN: crypto.barrett.tests
 
-[ 0x1f63edfb7e838622c7412eafaf0439cf0cdf3aae8bdd09e2de69b509a53883a83560d5ce50ea039e4 ] [  0x827c67f31b2b46afa49ed95d7f7a3011e5875f7052d4c55437ce726d3c6ce0dc9c445fda63b6dc4e 16 barrett-mu ] unit-test
+{ 0x1f63edfb7e838622c7412eafaf0439cf0cdf3aae8bdd09e2de69b509a53883a83560d5ce50ea039e4 } [  0x827c67f31b2b46afa49ed95d7f7a3011e5875f7052d4c55437ce726d3c6ce0dc9c445fda63b6dc4e 16 barrett-mu ] unit-test
index a858d8dab5ceed197040c2d1de73e6fbcdbca3ee..6c54a792820b978f2e5f5ab0f4a2a0ecfad7d732 100644 (file)
@@ -4,10 +4,10 @@ USING: tools.test crypto.passwd-md5 ;
 IN: crypto.passwd-md5.tests
 
 
-[ "$1$npUpD5oQ$1.X7uXR2QG0FzPifVeZ2o1" ]
+{ "$1$npUpD5oQ$1.X7uXR2QG0FzPifVeZ2o1" }
 [ "$1$" "npUpD5oQ" "factor" passwd-md5 ] unit-test
 
-[ "$1$Kilak4kR$wlEr5Dv5DcdqPjKjQtt430" ]
+{ "$1$Kilak4kR$wlEr5Dv5DcdqPjKjQtt430" }
 [
     "$1$"
     "Kilak4kR"
index b18373662d61c4b5597d9774bdd247225f90eadf..141316fb5d2858ebf052a1ca1130d6e44de7a4c8 100644 (file)
@@ -1,7 +1,7 @@
 USING: kernel math namespaces crypto.rsa tools.test ;
 IN: crypto.rsa.tests
 
-[ 123456789 ] [ 128 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
-[ 123456789 ] [ 129 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
-[ 123456789 ] [ 130 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
-[ 123 ] [ 3233 2753 17 <rsa> 123 over rsa-encrypt swap rsa-decrypt ] unit-test
+{ 123456789 } [ 128 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
+{ 123456789 } [ 129 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
+{ 123456789 } [ 130 generate-rsa-keypair 123456789 over rsa-encrypt swap rsa-decrypt ] unit-test
+{ 123 } [ 3233 2753 17 <rsa> 123 over rsa-encrypt swap rsa-decrypt ] unit-test
index aaa7c431a7fc6d21c414478af4af29a33de2fa99..c4c7ad8b276bfc3f353d006da1f8f23d62d05ca6 100644 (file)
@@ -8,17 +8,17 @@ IN: crypto.xor.tests
 [ "" "asdf" dupd xor-crypt xor-crypt ] [ T{ empty-xor-key } = ] must-fail-with
 
 ! a xor a = 0
-[ "\0\0\0\0\0\0\0" ] [ "abcdefg" dup xor-crypt ] unit-test
+{ "\0\0\0\0\0\0\0" } [ "abcdefg" dup xor-crypt ] unit-test
 
-[ { 15 15 15 15 } ] [ { 10 10 10 10 } { 5 5 5 5 } xor-crypt ] unit-test
+{ { 15 15 15 15 } } [ { 10 10 10 10 } { 5 5 5 5 } xor-crypt ] unit-test
 
-[ "asdf" ] [ "asdf" "key" [ xor-crypt ] [ xor-crypt ] bi >string ] unit-test
-[ "" ] [ "" "key" xor-crypt >string ] unit-test
-[ "a longer message...!" ] [
+{ "asdf" } [ "asdf" "key" [ xor-crypt ] [ xor-crypt ] bi >string ] unit-test
+{ "" } [ "" "key" xor-crypt >string ] unit-test
+{ "a longer message...!" } [
     "a longer message...!"
     "." [ xor-crypt ] [ xor-crypt ] bi >string
 ] unit-test
-[ "a longer message...!" ] [
+{ "a longer message...!" } [
     "a longer message...!"
     "a very long key, longer than the message even."
     [ xor-crypt ] [ xor-crypt ] bi >string
index b276c6d786b41762bd8f99ce5f755f36191e706c..a5738dca6bac013090c7ff494ceaab7cd876daa2 100644 (file)
@@ -1,27 +1,27 @@
 USING: kernel ctags tools.test io.backend sequences arrays prettyprint ;
 IN: ctags.tests
 
-[ t ] [
+{ t } [
   91
   { if  { "resource:extra/unix/unix.factor" 91 } } ctag-lineno =
 ] unit-test
 
-[ t ] [
+{ t } [
   "resource:extra/unix/unix.factor"
   { if  { "resource:extra/unix/unix.factor" 91 } } ctag-path =
 ] unit-test
 
-[ t ] [
+{ t } [
   \ if
   { if  { "resource:extra/unix/unix.factor" 91 } } ctag-word =
 ] unit-test
 
-[ t ] [
+{ t } [
   "if\t" "resource:extra/unix/unix.factor" normalize-path "\t91" 3append
   { if  { "resource:extra/unix/unix.factor" 91 } } ctag =
 ] unit-test
 
-[ t ] [
+{ t } [
   "if\t" "resource:extra/unix/unix.factor" normalize-path "\t91" 3append 1array
   { { if  { "resource:extra/unix/unix.factor" 91 } } } ctag-strings =
 ] unit-test
index e7ca71cc0a1b3d2624d9a2c239ace2e9a5ac60df..581729b9ce45e4537abfa7ce41e6e92828ca060a 100644 (file)
@@ -2,26 +2,26 @@ USING: kernel ctags ctags.etags tools.test io.backend sequences arrays prettypri
 IN: ctags.etags.tests
 
 ! etag-at
-[ t ]
+{ t }
 [
   V{ }
   "path" H{ } clone etag-at =
 ] unit-test
 
-[ t ]
+{ t }
 [
   V{ if { "path" 1 } }
   "path" H{ { "path" V{ if { "path" 1 } } } } etag-at =
 ] unit-test
 
 ! etag-vector
-[ t ]
+{ t }
 [
   V{ }
   { if { "path" 1 } } H{ } clone etag-vector =
 ] unit-test
 
-[ t ]
+{ t }
 [
   V{ if { "path" 1 } }
   { if { "path" 1 } }
@@ -30,35 +30,35 @@ IN: ctags.etags.tests
 ] unit-test
 
 ! etag-pair 
-[ t ]
+{ t }
 [
   { if 28 }
   { if { "resource:core/kernel/kernel.factor" 28 } } etag-pair =
 ] unit-test
 
 ! etag-add
-[ t ]
+{ t }
 [
   H{ { "path" V{ { if  1 } } } }
   { if { "path" 1 } } H{ } clone [ etag-add ] keep =
 ] unit-test
 
 ! etag-hash
-[ t ]
+{ t }
 [
   H{ { "path" V{ { if 1 } } } }
   { { if { "path" 1 } } } etag-hash =
 ] unit-test
 
 ! line-bytes (note that for each line implicit \n is counted)
-[ t ]
+{ t }
 [
   17
   { "1234567890" "12345" } 2 lines>bytes =
 ] unit-test
 
 ! etag
-[ t ]
+{ t }
 [
   "if\7f2,11"
   { "1234567890" "12345" } { if 2 } etag =
index 633052e9046e5729770adcb7f060e2da7a1ff9e7..d14ba203452907343fd726022b0c8e0abb85cd6e 100644 (file)
@@ -2,11 +2,11 @@
 USING: cuda.devices tools.test ;
 IN: cuda.devices.tests
 
-[ 1  5 100 ] [  5 20 100 10 (distribute-jobs) ] unit-test
-[ 2  5 100 ] [ 10 20 100 10 (distribute-jobs) ] unit-test
-[ 2  5 100 ] [ 10 20 200  5 (distribute-jobs) ] unit-test
-[ 2  5 100 ] [ 10 20 300  6 (distribute-jobs) ] unit-test
-[ 2  6 120 ] [ 11 20 300  6 (distribute-jobs) ] unit-test
-[ 1 10 200 ] [ 10 20 200 10 (distribute-jobs) ] unit-test
-[ 1 10   0 ] [ 10  0 200 10 (distribute-jobs) ] unit-test
-[ 2  5   0 ] [ 10  0 200  9 (distribute-jobs) ] unit-test
+{ 1  5 100 } [  5 20 100 10 (distribute-jobs) ] unit-test
+{ 2  5 100 } [ 10 20 100 10 (distribute-jobs) ] unit-test
+{ 2  5 100 } [ 10 20 200  5 (distribute-jobs) ] unit-test
+{ 2  5 100 } [ 10 20 300  6 (distribute-jobs) ] unit-test
+{ 2  6 120 } [ 11 20 300  6 (distribute-jobs) ] unit-test
+{ 1 10 200 } [ 10 20 200 10 (distribute-jobs) ] unit-test
+{ 1 10   0 } [ 10  0 200 10 (distribute-jobs) ] unit-test
+{ 2  5   0 } [ 10  0 200  9 (distribute-jobs) ] unit-test
index 394fbb716cdc16da490420223798ca4630fd78af..f7952e4a5099885e8edce8b9cf64cd7764e4a609 100644 (file)
@@ -1,27 +1,27 @@
 USING: cuda.ptx io.streams.string tools.test ;
 IN: cuda.ptx.tests
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20, .texmode_independent
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } { texmode .texmode_independent } } }
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_11, map_f64_to_f32
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target
@@ -31,9 +31,9 @@ IN: cuda.ptx.tests
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_11, map_f64_to_f32, .texmode_independent
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target
@@ -44,7 +44,7 @@ IN: cuda.ptx.tests
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        .global .f32 foo[9000];
        .extern .align 16 .shared .v4.f32 bar[];
@@ -61,7 +61,7 @@ IN: cuda.ptx.tests
        {
        ret;
        }
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -113,25 +113,25 @@ IN: cuda.ptx.tests
     } ptx>string
 ] unit-test
 
-[ "a" ] [ [ "a" write-ptx-operand ] with-string-writer ] unit-test
-[ "2" ] [ [ 2 write-ptx-operand ] with-string-writer ] unit-test
-[ "0d4000000000000000" ] [ [ 2.0 write-ptx-operand ] with-string-writer ] unit-test
-[ "!a" ] [ [ T{ ptx-negation f "a" } write-ptx-operand ] with-string-writer ] unit-test
-[ "{a, b, c, d}" ] [ [ T{ ptx-vector f { "a" "b" "c" "d" } } write-ptx-operand ] with-string-writer ] unit-test
-[ "[a]" ] [ [ T{ ptx-indirect f "a" 0 } write-ptx-operand ] with-string-writer ] unit-test
-[ "[a+1]" ] [ [ T{ ptx-indirect f "a" 1 } write-ptx-operand ] with-string-writer ] unit-test
-[ "[a-1]" ] [ [ T{ ptx-indirect f "a" -1 } write-ptx-operand ] with-string-writer ] unit-test
-[ "a[1]" ] [ [ T{ ptx-element f "a" 1 } write-ptx-operand ] with-string-writer ] unit-test
-[ "{a, b[2], 3, 0d4000000000000000}" ] [ [ T{ ptx-vector f { "a" T{ ptx-element f "b" 2 } 3 2.0 } } write-ptx-operand ] with-string-writer ] unit-test
+{ "a" } [ [ "a" write-ptx-operand ] with-string-writer ] unit-test
+{ "2" } [ [ 2 write-ptx-operand ] with-string-writer ] unit-test
+{ "0d4000000000000000" } [ [ 2.0 write-ptx-operand ] with-string-writer ] unit-test
+{ "!a" } [ [ T{ ptx-negation f "a" } write-ptx-operand ] with-string-writer ] unit-test
+{ "{a, b, c, d}" } [ [ T{ ptx-vector f { "a" "b" "c" "d" } } write-ptx-operand ] with-string-writer ] unit-test
+{ "[a]" } [ [ T{ ptx-indirect f "a" 0 } write-ptx-operand ] with-string-writer ] unit-test
+{ "[a+1]" } [ [ T{ ptx-indirect f "a" 1 } write-ptx-operand ] with-string-writer ] unit-test
+{ "[a-1]" } [ [ T{ ptx-indirect f "a" -1 } write-ptx-operand ] with-string-writer ] unit-test
+{ "a[1]" } [ [ T{ ptx-element f "a" 1 } write-ptx-operand ] with-string-writer ] unit-test
+{ "{a, b[2], 3, 0d4000000000000000}" } [ [ T{ ptx-vector f { "a" T{ ptx-element f "b" 2 } 3 2.0 } } write-ptx-operand ] with-string-writer ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        abs.s32 a, b;
        @p abs.s32 a, b;
        @!p abs.s32 a, b;
 foo:   abs.s32 a, b;
        abs.ftz.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -154,7 +154,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        add.s32 a, b, c;
        add.cc.s32 a, b, c;
@@ -163,7 +163,7 @@ foo:        abs.s32 a, b;
        add.ftz.sat.f32 a, b, c;
        add.rz.sat.f32 a, b, c;
        add.rz.ftz.sat.f32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -179,11 +179,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        addc.s32 a, b, c;
        addc.cc.s32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -194,10 +194,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        and.b32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -207,12 +207,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        atom.and.u32 a, [b], c;
        atom.global.or.u32 a, [b], c;
        atom.shared.cas.u32 a, [b], c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -225,7 +225,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        bar.arrive a, b;
        bar.red.popc.u32 a, b, d;
@@ -233,7 +233,7 @@ foo:        abs.s32 a, b;
        bar.red.popc.u32 a, b, c, !d;
        bar.sync a;
        bar.sync a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -248,10 +248,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        bfe.u32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -261,10 +261,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        bfi.u32 a, b, c, d, e;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -274,11 +274,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        bfind.u32 a, b;
        bfind.shiftamt.u32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -289,11 +289,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        bra foo;
        bra.uni bar;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -304,10 +304,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        brev.b32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -317,10 +317,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        brkpt;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -330,7 +330,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        call foo;
        call.uni foo;
@@ -340,7 +340,7 @@ foo:        abs.s32 a, b;
        call (a), foo, (b, c, d);
        call (a[2]), foo, (b, c, d[3]);
        call foo, (b, c, d);
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -357,10 +357,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        clz.b32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -370,10 +370,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        cnot.b32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -383,10 +383,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        copysign.f64 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -396,10 +396,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        cos.approx.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -409,7 +409,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        cvt.f32.s32 a, b;
        cvt.s32.f32 a, b;
@@ -419,7 +419,7 @@ foo:        abs.s32 a, b;
        cvt.sat.f32.f64 a, b;
        cvt.ftz.sat.f32.f64 a, b;
        cvt.rp.ftz.sat.f32.f64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -436,12 +436,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        cvta.global.u64 a, b;
        cvta.shared.u64 a, b;
        cvta.to.shared.u64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -453,7 +453,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        div.u32 a, b, c;
        div.approx.f32 a, b, c;
@@ -466,7 +466,7 @@ foo:        abs.s32 a, b;
        div.rz.ftz.f32 a, b, c;
        div.f64 a, b, c;
        div.rz.f64 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -486,10 +486,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        ex2.approx.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -499,10 +499,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        exit;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -512,7 +512,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        fma.f32 a, b, c, d;
        fma.sat.f32 a, b, c, d;
@@ -520,7 +520,7 @@ foo:        abs.s32 a, b;
        fma.ftz.sat.f32 a, b, c, d;
        fma.rz.sat.f32 a, b, c, d;
        fma.rz.ftz.sat.f32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -535,10 +535,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        isspacep.shared a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -548,7 +548,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        ld.u32 a, [b];
        ld.v2.u32 a, [b];
@@ -557,7 +557,7 @@ foo:        abs.s32 a, b;
        ld.lu.u32 a, [b];
        ld.const.lu.u32 a, [b];
        ld.volatile.const[5].u32 a, [b];
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -573,7 +573,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        ldu.u32 a, [b];
        ldu.v2.u32 a, [b];
@@ -582,7 +582,7 @@ foo:        abs.s32 a, b;
        ldu.lu.u32 a, [b];
        ldu.const.lu.u32 a, [b];
        ldu.volatile.const[5].u32 a, [b];
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -598,10 +598,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        lg2.approx.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -611,7 +611,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        mad.s32 a, b, c, d;
        mad.lo.s32 a, b, c, d;
@@ -621,7 +621,7 @@ foo:        abs.s32 a, b;
        mad.ftz.sat.f32 a, b, c, d;
        mad.rz.sat.f32 a, b, c, d;
        mad.rz.ftz.sat.f32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -638,13 +638,13 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        mad24.s32 a, b, c, d;
        mad24.lo.s32 a, b, c, d;
        mad24.sat.s32 a, b, c, d;
        mad24.hi.sat.s32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -657,12 +657,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        neg.s32 a, b;
        neg.f32 a, b;
        neg.ftz.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -674,10 +674,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        not.b32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -687,10 +687,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        or.b32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -700,10 +700,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        pmevent a;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -713,10 +713,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        popc.b64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -726,12 +726,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        prefetch.L1 [a];
        prefetch.local.L2 [a];
        prefetchu.L1 [a];
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -743,11 +743,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        prmt.b32 a, b, c, d;
        prmt.b32.f4e a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -758,7 +758,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        rcp.approx.f32 a, b;
        rcp.approx.ftz.f32 a, b;
@@ -768,7 +768,7 @@ foo:        abs.s32 a, b;
        rcp.rz.ftz.f32 a, b;
        rcp.f64 a, b;
        rcp.rz.f64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -785,11 +785,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        red.and.u32 [a], b;
        red.global.and.u32 [a], b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -800,12 +800,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        rsqrt.approx.f32 a, b;
        rsqrt.approx.ftz.f32 a, b;
        rsqrt.approx.f64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -817,12 +817,12 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        rsqrt.approx.f32 a, b;
        rsqrt.approx.ftz.f32 a, b;
        rsqrt.approx.f64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -834,10 +834,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        sad.u32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -847,10 +847,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        selp.u32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -860,13 +860,13 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        set.gt.u32.s32 a, b, c;
        set.gt.ftz.u32.f32 a, b, c;
        set.gt.and.ftz.u32.f32 a, b, c, d;
        set.gt.and.ftz.u32.f32 a, b, c, !d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -879,14 +879,14 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        setp.gt.s32 a, b, c;
        setp.gt.s32 a|z, b, c;
        setp.gt.ftz.f32 a, b, c;
        setp.gt.and.ftz.f32 a, b, c, d;
        setp.gt.and.ftz.f32 a, b, c, !d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -900,10 +900,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        shl.b32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -913,10 +913,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        shr.b32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -926,10 +926,10 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        sin.approx.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -939,11 +939,11 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        slct.f32.s32 a, b, c, d;
        slct.ftz.f32.s32 a, b, c, d;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -954,7 +954,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        sqrt.approx.f32 a, b;
        sqrt.approx.ftz.f32 a, b;
@@ -964,7 +964,7 @@ foo:        abs.s32 a, b;
        sqrt.rz.ftz.f32 a, b;
        sqrt.f64 a, b;
        sqrt.rz.f64 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -981,7 +981,7 @@ foo:        abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        st.u32 [a], b;
        st.v2.u32 [a], b;
@@ -990,7 +990,7 @@ foo:        abs.s32 a, b;
        st.lu.u32 [a], b;
        st.local.lu.u32 [a], b;
        st.volatile.local.u32 [a], b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1006,7 +1006,7 @@ foo:      abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        sub.s32 a, b, c;
        sub.cc.s32 a, b, c;
@@ -1015,7 +1015,7 @@ foo:      abs.s32 a, b;
        sub.ftz.sat.f32 a, b, c;
        sub.rz.sat.f32 a, b, c;
        sub.rz.ftz.sat.f32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1031,11 +1031,11 @@ foo:    abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        subc.s32 a, b, c;
        subc.cc.s32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1046,10 +1046,10 @@ foo:    abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        testp.finite.f32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1059,10 +1059,10 @@ foo:    abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        trap;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1072,12 +1072,12 @@ foo:    abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        vote.all.pred a, b;
        vote.all.pred a, !b;
        vote.ballot.b32 a, b;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
@@ -1089,10 +1089,10 @@ foo:    abs.s32 a, b;
     } ptx>string
 ] unit-test
 
-[ """  .version 2.0
+{ """  .version 2.0
        .target sm_20
        xor.b32 a, b, c;
-""" ] [
+""" } [
     T{ ptx
         { version "2.0" }
         { target T{ ptx-target { arch sm_20 } } }
index 54f27903353c1c6ef2e2842ba11e20f809d4f3d8..0e52630f95a385cfb12f528f466a1e86b08c8c73 100644 (file)
@@ -3,29 +3,29 @@ USING: accessors cursors kernel make math sequences sorting tools.test ;
 FROM: cursors => each map assoc-each assoc>map ;
 IN: cursors.tests
 
-[ { 1 2 3 4 } ] [
+{ { 1 2 3 4 } } [
     [ T{ linear-cursor f 1 1 } T{ linear-cursor f 5 1 } [ value>> , ] -each ]
     { } make
 ] unit-test
 
-[ T{ linear-cursor f 3 1 } ] [
+{ T{ linear-cursor f 3 1 } } [
     T{ linear-cursor f 1 1 } T{ linear-cursor f 5 1 } [ value>> 3 mod zero? ] -find
 ] unit-test
 
-[ T{ linear-cursor f 5 1 } ] [
+{ T{ linear-cursor f 5 1 } } [
     T{ linear-cursor f 1 1 } T{ linear-cursor f 5 1 } [ value>> 6 = ] -find
 ] unit-test
 
-[ { 1 3 } ] [
+{ { 1 3 } } [
     [ T{ linear-cursor f 1 2 } T{ linear-cursor f 5 2 } [ value>> , ] -each ]
     { } make
 ] unit-test
 
-[ B{ 1 2 3 4 5 } ] [ [ { 1 2 3 4 5 } [ , ] each ] B{ } make ] unit-test
-[ B{ } ] [ [ { } [ , ] each ] B{ } make ] unit-test
-[ { 2 4 6 8 10 } ] [ { 1 2 3 4 5 } [ 2 * ] map ] unit-test
+{ B{ 1 2 3 4 5 } } [ [ { 1 2 3 4 5 } [ , ] each ] B{ } make ] unit-test
+{ B{ } } [ [ { } [ , ] each ] B{ } make ] unit-test
+{ { 2 4 6 8 10 } } [ { 1 2 3 4 5 } [ 2 * ] map ] unit-test
 
-[ { "roses: lutefisk" "tulips: lox" } ]
+{ { "roses: lutefisk" "tulips: lox" } }
 [
     [
         H{ { "roses" "lutefisk" } { "tulips" "lox" } }
@@ -33,7 +33,7 @@ IN: cursors.tests
     ] { } make natural-sort
 ] unit-test
 
-[ { "roses: lutefisk" "tulips: lox" } ]
+{ { "roses: lutefisk" "tulips: lox" } }
 [
     H{ { "roses" "lutefisk" } { "tulips" "lox" } }
     [ ": " glue ] { } assoc>map natural-sort
@@ -51,16 +51,16 @@ IN: cursors.tests
 : compile-test-assoc>map ( xs -- ys )
     [ ": " glue ] { } assoc>map ;
 
-[ B{ 1 2 3 4 5 } ] [ [ { 1 2 3 4 5 } compile-test-each ] B{ } make ] unit-test
-[ { 2 4 6 8 10 } ] [ { 1 2 3 4 5 } compile-test-map ] unit-test
+{ B{ 1 2 3 4 5 } } [ [ { 1 2 3 4 5 } compile-test-each ] B{ } make ] unit-test
+{ { 2 4 6 8 10 } } [ { 1 2 3 4 5 } compile-test-map ] unit-test
 
-[ { "roses: lutefisk" "tulips: lox" } ]
+{ { "roses: lutefisk" "tulips: lox" } }
 [
     [ H{ { "roses" "lutefisk" } { "tulips" "lox" } } compile-test-assoc-each ]
     { } make natural-sort
 ] unit-test
 
-[ { "roses: lutefisk" "tulips: lox" } ]
+{ { "roses: lutefisk" "tulips: lox" } }
 [
     H{ { "roses" "lutefisk" } { "tulips" "lox" } } compile-test-assoc>map
     natural-sort
index 3b6ff627dba992ff4b6dc0380ac177624ccf8651..726212b0ea76afa5b43508dc00b803d8746dafc1 100644 (file)
@@ -5,7 +5,7 @@ math math.functions math.order math.ratios prettyprint random
 sequences tools.test kernel.private ;
 IN: decimals.tests
 
-[ t ] [
+{ t } [
     D: 12.34 D: 00012.34000 =
 ] unit-test
 
@@ -26,10 +26,10 @@ ERROR: decimal-test-failure D1 D2 quot ;
 : test-decimal-op ( quot1 quot2 -- ? )
     [ random-test-decimal random-test-decimal ] 2dip (test-decimal-op) ; inline
 
-[ t ] [ 1000 [ drop [ D+ ] [ + ] test-decimal-op ] all-integers? ] unit-test
-[ t ] [ 1000 [ drop [ D- ] [ - ] test-decimal-op ] all-integers? ] unit-test
-[ t ] [ 1000 [ drop [ D* ] [ * ] test-decimal-op ] all-integers? ] unit-test
-[ t ] [
+{ t } [ 1000 [ drop [ D+ ] [ + ] test-decimal-op ] all-integers? ] unit-test
+{ t } [ 1000 [ drop [ D- ] [ - ] test-decimal-op ] all-integers? ] unit-test
+{ t } [ 1000 [ drop [ D* ] [ * ] test-decimal-op ] all-integers? ] unit-test
+{ t } [
     1000 [
         drop
         [ [ 100 D/ ] [ /f ] test-decimal-op ]
@@ -37,16 +37,16 @@ ERROR: decimal-test-failure D1 D2 quot ;
     ] all-integers?
 ] unit-test
 
-[ t ] [
+{ t } [
     { D: 0. D: .0 D: 0.0 D: 00.00 D: . } all-equal?
 ] unit-test
 
-[ t ] [ T{ decimal f 90 0 } T{ decimal f 9 1 } = ] unit-test
+{ t } [ T{ decimal f 90 0 } T{ decimal f 9 1 } = ] unit-test
 
-[ t ] [ D: 1 D: 2 before? ] unit-test
-[ f ] [ D: 2 D: 2 before? ] unit-test
-[ f ] [ D: 3 D: 2 before? ] unit-test
-[ f ] [ D: -1 D: -2 before? ] unit-test
-[ f ] [ D: -2 D: -2 before? ] unit-test
-[ t ] [ D: -3 D: -2 before? ] unit-test
-[ t ] [ D: .5 D: 0 D: 1.0 between? ] unit-test
+{ t } [ D: 1 D: 2 before? ] unit-test
+{ f } [ D: 2 D: 2 before? ] unit-test
+{ f } [ D: 3 D: 2 before? ] unit-test
+{ f } [ D: -1 D: -2 before? ] unit-test
+{ f } [ D: -2 D: -2 before? ] unit-test
+{ t } [ D: -3 D: -2 before? ] unit-test
+{ t } [ D: .5 D: 0 D: 1.0 between? ] unit-test
index cc1c1be942e1042267daf223566c93dfe57b5110..8ec70159cf3556989f98b007ef9347e9cac3264e 100644 (file)
@@ -4,31 +4,31 @@ IN: descriptive.tests
 
 DESCRIPTIVE: divide ( num denom -- fraction ) / ;
 
-[ 3 ] [ 9 3 divide ] unit-test
+{ 3 } [ 9 3 divide ] unit-test
 
-[
+{
     T{ descriptive-error f
         { { "num" 3 } { "denom" 0 } }
         T{ division-by-zero f 3 }
         divide
     }
-] [
+} [
     [ 3 0 divide ] [ ] recover
 ] unit-test
 
-[ "USING: descriptive math ;\nIN: descriptive.tests\nDESCRIPTIVE: divide ( num denom -- fraction ) / ;\n" ]
+{ "USING: descriptive math ;\nIN: descriptive.tests\nDESCRIPTIVE: divide ( num denom -- fraction ) / ;\n" }
 [ \ divide [ see ] with-string-writer ] unit-test
 
 DESCRIPTIVE:: divide* ( num denom -- fraction ) num denom / ;
 
-[ 3 ] [ 9 3 divide* ] unit-test
+{ 3 } [ 9 3 divide* ] unit-test
 
-[
+{
     T{ descriptive-error f
         { { "num" 3 } { "denom" 0 } }
         T{ division-by-zero f 3 }
         divide*
     }
-] [ [ 3 0 divide* ] [ ] recover ] unit-test
+} [ [ 3 0 divide* ] [ ] recover ] unit-test
 
-[ "USING: descriptive math ;\nIN: descriptive.tests\nDESCRIPTIVE:: divide* ( num denom -- fraction ) num denom / ;\n" ] [ \ divide* [ see ] with-string-writer ] unit-test
+{ "USING: descriptive math ;\nIN: descriptive.tests\nDESCRIPTIVE:: divide* ( num denom -- fraction ) num denom / ;\n" } [ \ divide* [ see ] with-string-writer ] unit-test
index 64589c1a9981221170c734d4dccc4475b3d2ab39..fca057e44d482a9ce65aa79e222b99a1cf719897 100644 (file)
@@ -8,4 +8,4 @@ IN: digraphs.tests
     { { "one" "three" } { "one" "four" } { "two" "three" } { "two" "one" } { "three" "four" } }
     [ first2 pick add-edge ] each ;
 
-[ 5 ] [ test-digraph topological-sort length ] unit-test
+{ 5 } [ test-digraph topological-sort length ] unit-test
index 2d9cda146039e4a730b761546bc9cf803b626cd0..1b0002737d69af5cfed512dacf616bb5bb2ad85a 100644 (file)
@@ -8,13 +8,13 @@ SYMBOLS: priv-key pub-key signature ;
 
 : message ( -- msg ) "Hello world!" ;
 
-[ ] ! Generating keys
+[ ] { }
 [
     "prime256v1" [ generate-key get-private-key get-public-key ] with-ec
     pub-key set priv-key set
 ] unit-test
 
-[ ] ! Signing message
+[ ] { }
 [
     message sha-256 checksum-bytes
     priv-key get
@@ -22,7 +22,7 @@ SYMBOLS: priv-key pub-key signature ;
     signature set
 ] unit-test
 
-[ t ] ! Verifying signature
+[ t ] { }
 [
     message sha-256 checksum-bytes
     signature get pub-key get
index 3113b4c45ef69da3859f702aff6d41ca340b69d7..a5bf7e963210dd9fb6439978cc27804b24e0213b 100644 (file)
@@ -3,10 +3,10 @@ USING: enigma kernel math sequences sorting tools.test ;
 
 IN: enigma.tests
 
-[ t ] [ <reflector> natural-sort 26 iota sequence= ] unit-test
+{ t } [ <reflector> natural-sort 26 iota sequence= ] unit-test
 
-[ "" ] [ "" 4 <enigma> encode ] unit-test
+{ "" } [ "" 4 <enigma> encode ] unit-test
 
-[ "hello, world" ] [
+{ "hello, world" } [
     "hello, world" 4 <enigma> [ encode ] keep reset-cogs encode
 ] unit-test
index 9d9aa97ac7780aba727c666101654afbe1ed25d2..7fe912e2fe5a6a4602f1ec98bbc1fe50b742d023 100644 (file)
@@ -3,15 +3,15 @@ euler.b-rep.examples kernel locals math.vectors.simd.cords
 namespaces sequences tools.test ;
 IN: euler.b-rep.tests
 
-[ double-4{ 0.0 0.0 -1.0 0.0 } ]
+{ double-4{ 0.0 0.0 -1.0 0.0 } }
 [ valid-cube-b-rep edges>> first face-normal ] unit-test
 
-[ double-4{ 0.0 0.0 -1.0 0.0 } -1.0 ]
+{ double-4{ 0.0 0.0 -1.0 0.0 } -1.0 }
 [ valid-cube-b-rep edges>> first face-plane ] unit-test
 
-[ t ] [ 0 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
-[ t ] [ 5 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
-[ f ] [ 6 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
+{ t } [ 0 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
+{ t } [ 5 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
+{ f } [ 6 multi-ringed-face-cube-b-rep faces>> nth base-face? ] unit-test
 
 :: mock-face ( p0 p1 p2 -- edge )
     b-edge new vertex new p0 >>position >>vertex :> e0
@@ -24,7 +24,7 @@ IN: euler.b-rep.tests
 
     e0 ;
 
-[
+{
     double-4{
         0x1.279a74590331dp-1
         0x1.279a74590331dp-1
@@ -32,7 +32,7 @@ IN: euler.b-rep.tests
         0.0
     }
     -0x1.bb67ae8584cabp1
-] [
+} [
     double-4{ 1 0 5 0 }
     double-4{ 0 1 5 0 }
     double-4{ 0 0 6 0 } mock-face face-plane
@@ -45,33 +45,33 @@ V{ t } clone sharpness-stack [
     [ t V{ f } f ] [ pop-sharpness sharpness-stack get get-sharpness ] unit-test
 ] with-variable
 
-[ t ] [ valid-cube-b-rep [ edges>> first ] keep is-valid-edge? ] unit-test
-[ f ] [ b-edge new valid-cube-b-rep is-valid-edge? ] unit-test
+{ t } [ valid-cube-b-rep [ edges>> first ] keep is-valid-edge? ] unit-test
+{ f } [ b-edge new valid-cube-b-rep is-valid-edge? ] unit-test
 
-[ t ] [
+{ t } [
     valid-cube-b-rep edges>>
     [ [  0 swap nth ] [  1 swap nth ] bi connecting-edge ]
     [    0 swap nth ] bi eq?
 ] unit-test
 
-[ t ] [
+{ t } [
     valid-cube-b-rep edges>>
     [ [  1 swap nth ] [  0 swap nth ] bi connecting-edge ]
     [    6 swap nth ] bi eq?
 ] unit-test
 
-[ t ] [
+{ t } [
     valid-cube-b-rep edges>>
     [ [  0 swap nth ] [  3 swap nth ] bi connecting-edge ]
     [   21 swap nth ] bi eq?
 ] unit-test
 
-[ f ] [
+{ f } [
     valid-cube-b-rep edges>>
     [  0 swap nth ] [  2 swap nth ] bi connecting-edge
 ] unit-test
 
-[ double-4{ 0 0 -1 0 } ] [
+{ double-4{ 0 0 -1 0 } } [
     [
         { double-4{ 0 0 0 0 } double-4{ 0 1 0 0 } double-4{ 0 2 0 0 } double-4{ 1 1 0 0 } }
         smooth-smooth polygon>double-face face-normal
index 14c2e6cbcd9c24b465575f4e0c894d0214b61b14..bcc38b2185d61e9a4ecd7e32070796dbdb6dc344 100644 (file)
@@ -6,7 +6,7 @@ IN: euler.b-rep.triangulation.tests
 : triangle-vx-positions ( triangles -- positions )
     [ [ position>> ] { } map-as ] { } map-as ;
 
-[
+{
     {
         {
             double-4{ 1.0 1.0 -1.0 0.0 }
@@ -19,10 +19,10 @@ IN: euler.b-rep.triangulation.tests
             double-4{ 1.0 -1.0 -1.0 0.0 }
         }
     }
-] [ valid-cube-b-rep faces>> first triangulate-face triangle-vx-positions ] unit-test
+} [ valid-cube-b-rep faces>> first triangulate-face triangle-vx-positions ] unit-test
 
-[ { } ] [ degenerate-incomplete-face faces>> first triangulate-face triangle-vx-positions ] unit-test
-[ {
+{ { } } [ degenerate-incomplete-face faces>> first triangulate-face triangle-vx-positions ] unit-test
+{ {
     {
         double-4{ 1.0 1.0 0.0 0.0 }
         double-4{ -1.0 -1.0 0.0 0.0 }
@@ -33,9 +33,9 @@ IN: euler.b-rep.triangulation.tests
         double-4{ 1.0 1.0 0.0 0.0 }
         double-4{ 1.0 -1.0 0.0 0.0 }
     }
-} ] [ partially-degenerate-second-face faces>> second triangulate-face triangle-vx-positions ] unit-test
+} } [ partially-degenerate-second-face faces>> second triangulate-face triangle-vx-positions ] unit-test
 
-[
+{
     {
         {
             double-4{ -1.0 1.0 0.0 0.0 }
@@ -78,7 +78,7 @@ IN: euler.b-rep.triangulation.tests
             double-4{ 1.0 1.0 0.0 0.0 }
         }
     }
-] [
+} [
     [ "vocab:gml/examples/torus.gml" run-gml-file ] make-gml nip
     faces>> first triangulate-face triangle-vx-positions
 ] unit-test
index 53088ee0078945f6d8fbeff97ca76fe6396a2710..0eb8f10e956faafa446b8d98a2745ac4620039dd 100644 (file)
@@ -3,7 +3,7 @@ euler.modeling game.models.half-edge ;
 IN: euler.modeling.tests
 
 ! polygon>double-face
-[ ] [
+{ } [
     [
         { { -1 -1 0 } { 1 -1 0 } { 1 1 0 } { -1 1 0 } }
         smooth-smooth polygon>double-face
@@ -15,7 +15,7 @@ IN: euler.modeling.tests
 ] unit-test
 
 ! extrude-simple
-[ ] [
+{ } [
     [
         { { -1 -1 0 } { 1 -1 0 } { 1 1 0 } }
         smooth-smooth polygon>double-face
@@ -27,20 +27,20 @@ IN: euler.modeling.tests
 ] unit-test
 
 ! project-pt-line
-[ {  0 1 0 } ] [ {  0 0 0 } { 0 1 0 } { 1 1 0 } project-pt-line ] unit-test
-[ {  0 1 0 } ] [ {  0 0 0 } { 1 1 0 } { 0 1 0 } project-pt-line ] unit-test
-[ {  0 1 0 } ] [ {  0 0 0 } { 2 1 0 } { 1 1 0 } project-pt-line ] unit-test
-[ { -1 1 0 } ] [ { -1 0 0 } { 2 1 0 } { 1 1 0 } project-pt-line ] unit-test
-[ { 1/2 1/2 0 } ] [ {  0 0 0 } { 0 1 0 } { 1 0 0 } project-pt-line ] unit-test
+{ {  0 1 0 } } [ {  0 0 0 } { 0 1 0 } { 1 1 0 } project-pt-line ] unit-test
+{ {  0 1 0 } } [ {  0 0 0 } { 1 1 0 } { 0 1 0 } project-pt-line ] unit-test
+{ {  0 1 0 } } [ {  0 0 0 } { 2 1 0 } { 1 1 0 } project-pt-line ] unit-test
+{ { -1 1 0 } } [ { -1 0 0 } { 2 1 0 } { 1 1 0 } project-pt-line ] unit-test
+{ { 1/2 1/2 0 } } [ {  0 0 0 } { 0 1 0 } { 1 0 0 } project-pt-line ] unit-test
 
 ! project-pt-plane
-[ {  0  0  1 } ] [ { 0 0 0 } { 0 0 1 } { 0 0  1 } -1 project-pt-plane ] unit-test
-[ {  0  0 -1 } ] [ { 0 0 0 } { 0 0 1 } { 0 0  1 }  1 project-pt-plane ] unit-test
-[ {  0  0  3 } ] [ { 0 0 0 } { 0 0 1 } { 0 0  1 } -3 project-pt-plane ] unit-test
-[ {  0  0  3 } ] [ { 0 0 0 } { 0 0 1 } { 0 0 -1 }  3 project-pt-plane ] unit-test
-[ {  0  0  1 } ] [ { 0 0 0 } { 0 0 1 } { 0 1  1 } -1 project-pt-plane ] unit-test
+{ {  0  0  1 } } [ { 0 0 0 } { 0 0 1 } { 0 0  1 } -1 project-pt-plane ] unit-test
+{ {  0  0 -1 } } [ { 0 0 0 } { 0 0 1 } { 0 0  1 }  1 project-pt-plane ] unit-test
+{ {  0  0  3 } } [ { 0 0 0 } { 0 0 1 } { 0 0  1 } -3 project-pt-plane ] unit-test
+{ {  0  0  3 } } [ { 0 0 0 } { 0 0 1 } { 0 0 -1 }  3 project-pt-plane ] unit-test
+{ {  0  0  1 } } [ { 0 0 0 } { 0 0 1 } { 0 1  1 } -1 project-pt-plane ] unit-test
 
-[ { 0 2/3 1/3 } ] [ { 0 0 0 } { 0 2 1 } { 0 1  1 } -1 project-pt-plane ] unit-test
+{ { 0 2/3 1/3 } } [ { 0 0 0 } { 0 2 1 } { 0 1  1 } -1 project-pt-plane ] unit-test
 
-[ {  0  0  1 } ] [ { 0 0 0 } { 0 0   1/2 } { 0 0 1 } -1 project-pt-plane ] unit-test
-[ {  0  1  1 } ] [ { 0 0 0 } { 0 1/2 1/2 } { 0 0 1 } -1 project-pt-plane ] unit-test
+{ {  0  0  1 } } [ { 0 0 0 } { 0 0   1/2 } { 0 0 1 } -1 project-pt-plane ] unit-test
+{ {  0  1  1 } } [ { 0 0 0 } { 0 1/2 1/2 } { 0 0 1 } -1 project-pt-plane ] unit-test
index cb36eaed89a53ac19344e6798ccc2c25835c7372..da1617d9f3debbbadc07264da154fb43024ac8e6 100644 (file)
@@ -4,9 +4,9 @@ fry sequences make ;
 FROM: euler.b-rep => has-rings? ;
 IN: euler.operators.tests
 
-[ t ] [ [ ] make-b-rep b-rep? ] unit-test
+{ t } [ [ ] make-b-rep b-rep? ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -21,7 +21,7 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -40,7 +40,7 @@ IN: euler.operators.tests
     ] make-b-rep
 ] [ edges-not-incident? ] must-fail-with
 
-[ ] [
+{ } [
     [
         0
         1
@@ -52,7 +52,7 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -62,7 +62,7 @@ IN: euler.operators.tests
     ] make-b-rep assert-empty-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 } smooth-smooth polygon>double-face
         dup face-cw opposite-edge>>
@@ -77,7 +77,7 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         [ face-ccw opposite-edge>> ]
@@ -90,7 +90,7 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -113,7 +113,7 @@ IN: euler.operators.tests
     ] make-b-rep
 ] [ edges-in-different-faces? ] must-fail-with
 
-[ ] [
+{ } [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -133,7 +133,7 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         { 5 6 7 8 } smooth-smooth polygon>double-face
@@ -153,12 +153,12 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[
+{
     { 0 1 0 }
     { 1 0 0 }
     { 1 2 1 }
     { 2 1 1 }
-] [
+} [
     [
         { 1 0 0 }
         { 0 1 0 }
@@ -172,13 +172,13 @@ IN: euler.operators.tests
     ] make-b-rep check-b-rep
 ] unit-test
 
-[
+{
     {
         { 2 1 1 }
         { 1 2 1 }
         { 1 1 2 }
     }
-] [
+} [
     [
         { { 1 0 0 } { 0 1 0 } { 0 0 1 } } smooth-smooth polygon>double-face
         [ { 1 1 1 } move-f ]
@@ -188,28 +188,28 @@ IN: euler.operators.tests
 ] unit-test
 
 ! Make sure we update the face's edge when killing an edge
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         kill-ev
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         face-ccw kill-ev
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         face-ccw face-ccw kill-ev
     ] make-b-rep check-b-rep
 ] unit-test
 
-[ ] [
+{ } [
     [
         { 1 2 3 4 } smooth-smooth polygon>double-face
         face-ccw face-ccw face-ccw kill-ev
index 60e3006bcebf428ddd8005810f9197799c768f81..772e53cba9bf84eac7ed989d6c7768599b98a67e 100644 (file)
@@ -5,16 +5,16 @@ USING: flip-text tools.test ;
 
 IN: flip-text.tests
 
-[
+{
     "068Ɫ95ᔭƐᄅ⇂zʎxʍʌnʇsɹbdouɯʃʞɾᴉɥᵷɟǝpɔqɐZ⅄XMΛՈ⊥SᴚΌԀONW⅂KᒋIH⅁ℲƎᗡϽ𐐒∀"
-] [
+} [
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
     flip-text
 ] unit-test
 
-[
+{
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
-] [
+} [
     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
     flip-text flip-text
 ] unit-test
index cbfe514d7ebf253f9321e420dd615e7aab907097..941f89208f69ed7bdbfccc42305794c3dc8d0969 100644 (file)
@@ -44,26 +44,26 @@ CONSTANT: cube-edges
 
 connect-cube-edges
 
-[ 0 1 ]
+{ 0 1 }
 [ cube-edges first edge-vertices ] unit-test
 
-[ { 0 0 0 } ]
+{ { 0 0 0 } }
 [ cube-edges first vertex-edges [ vertex>> ] map ] unit-test
 
-[ 3 ]
+{ 3 }
 [ cube-edges first vertex-valence ] unit-test
 
-[ { 0 1 3 2 } ]
+{ { 0 1 3 2 } }
 [ cube-edges first face-edges [ vertex>> ] map ] unit-test
 
-[ 4 ]
+{ 4 }
 [ cube-edges first face-sides ] unit-test
 
-[ { 1 4 2 } ]
+{ { 1 4 2 } }
 [ cube-edges first vertex-neighbors ] unit-test
 
-[ { 3 5 6 } ]
+{ { 3 5 6 } }
 [ cube-edges first vertex-diagonals ] unit-test
 
-[ { 1 4 3 5 } ]
+{ { 1 4 3 5 } }
 [ cube-edges first face-neighbors ] unit-test
index 1b5b005e447b4bb6916666ae3aa672d252e25df8..1dc635d189738cbe21441fea1c269a7aca2d0974 100644 (file)
@@ -1,13 +1,13 @@
 USING: game.models.util tools.test make accessors kernel ;
 IN: game.models.util.tests
 
-[ V{ 1 2 3 4 } ] [
+{ V{ 1 2 3 4 } } [
     [ 1 , 1 , 2 , 3 , 3 , 4 , ]
     V{ } V{ } H{ } <indexed-seq> make
     dseq>>
 ] unit-test
 
-[ V{ 0 0 1 2 2 3 } ] [
+{ V{ 0 0 1 2 2 3 } } [
     [ 1 , 1 , 2 , 3 , 3 , 4 , ]
     V{ } V{ } H{ } <indexed-seq> make
     iseq>>
index dc4f2b2bf29bee4763826f3b7aceafee828a30ec..c9e32f3f883e9596693d790adb8bb2acac21151b 100644 (file)
@@ -18,15 +18,15 @@ CLEANUP
     test.db reader >>role [ ] with-gdbm
 ] [ gdbm-file-open-error = ] must-fail-with
 
-[ f ] [ [ "foo" exists? ] with-test.db ] unit-test
+{ f } [ [ "foo" exists? ] with-test.db ] unit-test
 
-[ ] [ [ "foo" 41 insert ] with-test.db ] unit-test
+{ } [ [ "foo" 41 insert ] with-test.db ] unit-test
 
 [
     db-path [ "foo" 42 insert ] with-gdbm-writer
 ] [ gdbm-cannot-replace = ] must-fail-with
 
-[ ]
+{ }
 [
     [
         "foo" 42 replace
@@ -35,9 +35,9 @@ CLEANUP
     ] with-test.db
 ] unit-test
 
-[ 42 t ] [ db-path [ "foo" fetch* ] with-gdbm-reader ] unit-test
+{ 42 t } [ db-path [ "foo" fetch* ] with-gdbm-reader ] unit-test
 
-[ f f ] [ [ "unknown" fetch* ] with-test.db ] unit-test
+{ f f } [ [ "unknown" fetch* ] with-test.db ] unit-test
 
 [
     [
@@ -45,14 +45,14 @@ CLEANUP
     ] with-test.db
 ] [ gdbm-option-already-set = ] must-fail-with
 
-[ t ]
+{ t }
 [
     V{ } [ [ 2array append ] each-record ] with-test.db
     V{ "foo" "bar" "baz" 42 43 44 } set=
 
 ] unit-test
 
-[ f ]
+{ f }
 [
     test.db newdb >>role [ "foo" exists? ] with-gdbm
 ] unit-test
index bbfa6bc27db115726b84cc5a911a376a20763461..99c099abacb1846322f5b9041af1bcc9352394e0 100644 (file)
@@ -1,13 +1,13 @@
 IN: gml.tests
 USING: accessors combinators gml tools.test kernel sequences euler.b-rep ;
 
-[ ] [ [ "vocab:gml/test-core.gml" run-gml-file ] make-gml 2drop ] unit-test
+{ } [ [ "vocab:gml/test-core.gml" run-gml-file ] make-gml 2drop ] unit-test
 
-[ ] [ [ "vocab:gml/test-coremath.gml" run-gml-file ] make-gml 2drop ] unit-test
+{ } [ [ "vocab:gml/test-coremath.gml" run-gml-file ] make-gml 2drop ] unit-test
 
-[ ] [ [ "vocab:gml/test-geometry.gml" run-gml-file ] make-gml 2drop ] unit-test
+{ } [ [ "vocab:gml/test-geometry.gml" run-gml-file ] make-gml 2drop ] unit-test
 
-[ ] [
+{ } [
     [ "vocab:gml/examples/cube.gml" run-gml-file ] make-gml nip
     {
         [ check-b-rep ]
@@ -18,7 +18,7 @@ USING: accessors combinators gml tools.test kernel sequences euler.b-rep ;
     } cleave
 ] unit-test
 
-[ ] [
+{ } [
     [ "vocab:gml/examples/torus.gml" run-gml-file ] make-gml nip
     {
         [ check-b-rep ]
@@ -30,7 +30,7 @@ USING: accessors combinators gml tools.test kernel sequences euler.b-rep ;
     } cleave
 ] unit-test
 
-[ ] [
+{ } [
     [ "vocab:gml/examples/mobius.gml" run-gml-file ] make-gml nip
     {
         [ check-b-rep ]
index 80d41cb95df8b38871e2ebe7437f2124597fca69..de7c3761d073e2b40c8f454d3460c13ae049b951 100644 (file)
@@ -1,7 +1,7 @@
 USING: gml.viewer math.vectors.simd.cords tools.test ;
 IN: gml.viewer.tests
 
-[ {
+{ {
     double-4{ 0 0 0 0 }
     double-4{ 1 1 1 1 }
-} ] [ { double-4{ 0 0 0 0 } { double-4{ 1 1 1 1 } 2 } 3 } selected-vectors ] unit-test
+} } [ { double-4{ 0 0 0 0 } { double-4{ 1 1 1 1 } 2 } 3 } selected-vectors ] unit-test
index 2dafac8907481b79ff860950209fbeae1d889862..da79b138cc0eac692bce021b4c501e405e2a3b83 100644 (file)
@@ -21,25 +21,25 @@ UNIFORM-TUPLE: array-of-struct-containing-texture
 UNIFORM-TUPLE: array-of-struct-containing-array-of-texture
     { "threads" array-of-textures 2 } ;
 
-[  1 ] [ texture-uniform uniform-type-texture-units ] unit-test
-[  0 ] [ float-uniform uniform-type-texture-units ] unit-test
-[  2 ] [ two-textures uniform-type-texture-units ] unit-test
-[  3 ] [ inherited-textures uniform-type-texture-units ] unit-test
-[  6 ] [ array-of-textures uniform-type-texture-units ] unit-test
-[  2 ] [ struct-containing-texture uniform-type-texture-units ] unit-test
-[  9 ] [ array-of-struct-containing-texture uniform-type-texture-units ] unit-test
-[ 12 ] [ array-of-struct-containing-array-of-texture uniform-type-texture-units ] unit-test
+{  1 } [ texture-uniform uniform-type-texture-units ] unit-test
+{  0 } [ float-uniform uniform-type-texture-units ] unit-test
+{  2 } [ two-textures uniform-type-texture-units ] unit-test
+{  3 } [ inherited-textures uniform-type-texture-units ] unit-test
+{  6 } [ array-of-textures uniform-type-texture-units ] unit-test
+{  2 } [ struct-containing-texture uniform-type-texture-units ] unit-test
+{  9 } [ array-of-struct-containing-texture uniform-type-texture-units ] unit-test
+{ 12 } [ array-of-struct-containing-array-of-texture uniform-type-texture-units ] unit-test
 
-[ { [ ] } ] [ texture-uniform f uniform-texture-accessors ] unit-test
+{ { [ ] } } [ texture-uniform f uniform-texture-accessors ] unit-test
 
-[ { } ] [ float-uniform f uniform-texture-accessors ] unit-test
+{ { } } [ float-uniform f uniform-texture-accessors ] unit-test
 
-[ { [ argyle>> ] [ tweed>> ] } ] [ two-textures f uniform-texture-accessors ] unit-test
+{ { [ argyle>> ] [ tweed>> ] } } [ two-textures f uniform-texture-accessors ] unit-test
 
-[ { [ argyle>> ] [ tweed>> ] [ paisley>> ] } ]
+{ { [ argyle>> ] [ tweed>> ] [ paisley>> ] } }
 [ inherited-textures f uniform-texture-accessors ] unit-test
 
-[ {
+{ {
     [ argyle>> ]
     [ tweed>> ]
     [ plaids>> {
@@ -48,16 +48,16 @@ UNIFORM-TUPLE: array-of-struct-containing-array-of-texture
         [ 2 swap nth ]
         [ 3 swap nth ]
     } ]
-} ] [ array-of-textures f uniform-texture-accessors ] unit-test
+} } [ array-of-textures f uniform-texture-accessors ] unit-test
 
-[ {
+{ {
     [ threads>> {
         [ argyle>> ]
         [ tweed>> ]
     } ]
-} ] [ struct-containing-texture f uniform-texture-accessors ] unit-test
+} } [ struct-containing-texture f uniform-texture-accessors ] unit-test
 
-[ {
+{ {
     [ threads>> {
         [ 0 swap nth {
             [ argyle>> ]
@@ -75,9 +75,9 @@ UNIFORM-TUPLE: array-of-struct-containing-array-of-texture
             [ paisley>> ]
         } ]
     } ]
-} ] [ array-of-struct-containing-texture f uniform-texture-accessors ] unit-test
+} } [ array-of-struct-containing-texture f uniform-texture-accessors ] unit-test
 
-[ {
+{ {
     [ threads>> {
         [ 0 swap nth {
             [ argyle>> ]
@@ -100,9 +100,9 @@ UNIFORM-TUPLE: array-of-struct-containing-array-of-texture
             } ]
         } ]
     } ]
-} ] [ array-of-struct-containing-array-of-texture f uniform-texture-accessors ] unit-test
+} } [ array-of-struct-containing-array-of-texture f uniform-texture-accessors ] unit-test
 
-[ [
+{ [
     nip {
         [ argyle>> 0 (bind-texture-unit) ]
         [ tweed>> 1 (bind-texture-unit) ]
@@ -113,4 +113,4 @@ UNIFORM-TUPLE: array-of-struct-containing-array-of-texture
             [ 3 swap nth 5 (bind-texture-unit) ]
         } cleave ]
     } cleave
-] ] [ array-of-textures [bind-uniform-textures] ] unit-test
+] } [ array-of-textures [bind-uniform-textures] ] unit-test
index 7393ff264ddd4927d73e95f470352c1f2655efd5..be5087bf443a2efb166d018f84e66002dab9b29a 100644 (file)
@@ -2,9 +2,9 @@
 USING: multiline gpu.shaders gpu.shaders.private tools.test ;
 IN: gpu.shaders.tests
 
-[ """ERROR: foo.factor:20: Bad command or filename
+{ """ERROR: foo.factor:20: Bad command or filename
 INFO: foo.factor:30: The operation completed successfully
-NOT:A:LOG:LINE"""  ]
+NOT:A:LOG:LINE"""  }
 [ T{ shader { filename "foo.factor" } { line 19 } }
 """ERROR: 0:1: Bad command or filename
 INFO: 0:11: The operation completed successfully
index e39d9d7f5ae2f99b905a9253a39225f83116f0da..71743af3fd917ef2839bde4e445a855512d67a83 100644 (file)
@@ -3,7 +3,7 @@ USING: alien.c-types alien.data grid-meshes grid-meshes.private
 specialized-arrays tools.test ;
 SPECIALIZED-ARRAY: float
 
-[
+{
     float-array{
         0.0 0.0 0.0 1.0
         0.0 0.0 0.5 1.0
@@ -18,4 +18,4 @@ SPECIALIZED-ARRAY: float
         1.0 0.0 0.5 1.0
         1.0 0.0 1.0 1.0
     }
-] [ { 2 2 } vertex-array float cast-array ] unit-test
+} [ { 2 2 } vertex-array float cast-array ] unit-test
index 457b21b5b1871db7d7e12dfd00e79c477f27c009..2f51ed7b623f97774966931d08e1e4ce58b26df9 100644 (file)
@@ -5,15 +5,15 @@ USING: hash-sets.numbers kernel sets tools.test ;
 
 IN: hash-sets.numbers.tests
 
-[ t ] [ 1.5 NHS{ 3/2 } in? ] unit-test
+{ t } [ 1.5 NHS{ 3/2 } in? ] unit-test
 
-[ NHS{ 3/2 } ] [
+{ NHS{ 3/2 } } [
     1.5 NHS{ 3/2 } [ adjoin ] keep
 ] unit-test
 
-[ t ] [
+{ t } [
     NHS{ } clone 1.5 over adjoin
     3/2 swap in?
 ] unit-test
 
-[ { 1.5 } ] [ NHS{ 1.5 } members ] unit-test
+{ { 1.5 } } [ NHS{ 1.5 } members ] unit-test
index aee14fdf0fd79a77f9744da37f9a3c12590e3021..1f2ccd5dd948b3b8b4a3898e69a6aec065b7113d 100644 (file)
@@ -1,15 +1,15 @@
 USING: accessors sequences tools.test hashcash ;
 
-[ t ] [ "foo@bar.com" mint check-stamp ] unit-test
+{ t } [ "foo@bar.com" mint check-stamp ] unit-test
 
-[ t ] [
+{ t } [
     <hashcash>
         "foo@bar.com" >>resource
         16 >>bits
     mint* check-stamp ] unit-test
 
-[ t ] [
+{ t } [
     "1:20:040927:mertz@gnosis.cx::odVZhQMP:7ca28" check-stamp
 ] unit-test
 
-[ 8 ] [ 8 salt length ] unit-test
+{ 8 } [ 8 salt length ] unit-test
index ec80801a951f1c9e8e2f47159e278d63227383b7..a8f1d5a3edbfa501ea61c5bceac358f53569f560 100644 (file)
@@ -6,16 +6,16 @@ tools.test ;
 
 IN: hashtables.numbers.tests
 
-[ 1000 ] [ 3/2 NH{ { 1.5 1000 } } at ] unit-test
+{ 1000 } [ 3/2 NH{ { 1.5 1000 } } at ] unit-test
 
-[ 1001 ] [
+{ 1001 } [
     1001 1.5 NH{ { 3/2 1000 } }
     [ set-at ] [ at ] 2bi
 ] unit-test
 
-[ 1001 ] [
+{ 1001 } [
     NH{ } clone 1001 1.5 pick set-at
     3/2 of
 ] unit-test
 
-[ { { 1.0 1000 } } ] [ NH{ { 1.0 1000 } } >alist ] unit-test
+{ { { 1.0 1000 } } } [ NH{ { 1.0 1000 } } >alist ] unit-test
index 1178deab3838cb5a8ee7142e0e89c929f2ec0c16..c216961af7cf0cda3d3405f9d58a86222c00c2b7 100644 (file)
@@ -1,5 +1,5 @@
 IN: html.elements.tests
 USING: tools.test html.elements io.streams.string ;
 
-[ "<a href='h&amp;o'>" ]
+{ "<a href='h&amp;o'>" }
 [ [ <a "h&o" =href a> ] with-string-writer ] unit-test
index fc40ee9825166e6e528af3584a86c7096b5729fa..25016cd996039daa197de080a40c31c124d5b9c3 100644 (file)
@@ -3,22 +3,22 @@
 USING: html.parser html.parser.analyzer kernel math sequences tools.test ;
 IN: html.parser.analyzer.tests
 
-[ 0 3 ]
+{ 0 3 }
 [ 1 { 3 5 7 9 11 } [ odd? ] find-nth ] unit-test
 
-[ 2 7 ]
+{ 2 7 }
 [ 3 { 3 5 7 9 11 } [ odd? ] find-nth ] unit-test
 
-[ 3 9 ]
+{ 3 9 }
 [ 3 1 { 3 5 7 9 11 } [ odd? ] find-nth-from ] unit-test
 
-[ 4 11 ]
+{ 4 11 }
 [ 1 { 3 5 7 9 11 } [ odd? ] find-last-nth ] unit-test
 
-[ 2 7 ]
+{ 2 7 }
 [ 3 { 3 5 7 9 11 } [ odd? ] find-last-nth ] unit-test
 
-[ 0 3 ]
+{ 0 3 }
 [ 1 2 { 3 5 7 9 11 } [ odd? ] find-last-nth-from ] unit-test
 
 
@@ -28,36 +28,36 @@ IN: html.parser.analyzer.tests
 [ 0 { 3 5 7 9 11 } [ odd? ] find-last-nth ]
 [ undefined-find-nth? ] must-fail-with
 
-[ V{
+{ V{
     T{ tag f text f "foo" f }
 }
-] [
+} [
     "<html><head><title>foo</title></head></html>" parse-html
     "title" find-between-first
 ] unit-test
 
-[ V{
+{ V{
     T{ tag f "p" H{ } f f }
     T{ tag f text f "para" f }
     T{ tag f "p" H{ } f t }
 }
-] [
+} [
     "<body><div><p>para</p></div></body>" parse-html "div" find-between-first
 ] unit-test
 
-[ V{
+{ V{
     T{ tag f "div" H{ { "class" "foo" } } f f }
     T{ tag f "p" H{ } f f }
     T{ tag f text f "para" f }
     T{ tag f "p" H{ } f t }
     T{ tag f "div" H{ } f t }
 }
-] [
+} [
     "<body><div class=\"foo\"><p>para</p></div></body>" parse-html
     "foo" find-by-class-between
 ] unit-test
 
-[ V{
+{ V{
     T{ tag f "div" H{ { "class" "foo" } } f f }
     T{ tag f "div" H{ } f f }
     T{ tag f "p" H{ } f f }
@@ -66,17 +66,17 @@ IN: html.parser.analyzer.tests
     T{ tag f "div" H{ } f t }
     T{ tag f "div" H{ } f t }
 }
-] [
+} [
     "<body><div class=\"foo\"><div><p>para</p></div></div></body>" parse-html
     "foo" find-by-class-between
 ] unit-test
 
-[ t ] [
+{ t } [
     T{ tag { name "f" } { attributes H{ { "class" "a b c" } } } }
     { "a" "b" "c" } [ html-class? ] with all?
 ] unit-test
 
-[
+{
     V{
         T{ tag
            { name "div" }
@@ -84,13 +84,13 @@ IN: html.parser.analyzer.tests
         }
         T{ tag { name "div" } { attributes H{ } } { closing? t } }
     }
-] [ "<div class=\"foo and more\"></div>" parse-html
+} [ "<div class=\"foo and more\"></div>" parse-html
     "foo" find-by-class-between
 ] unit-test
 
-[
+{
     0
     T{ tag { name "div" } { attributes H{ { "class" "foo bar" } } } }
-] [
+} [
     "<div class=\"foo bar\"></div>" parse-html "bar" find-by-class
 ] unit-test
index 9607712bab3e9efa66e18af8b977ae9248d08df5..b235448c70eacbb8205742c21bab351ecc581b9f 100644 (file)
@@ -1,23 +1,23 @@
 USING: html.parser kernel tools.test ;
 IN: html.parser.tests
 
-[
+{
     V{ T{ tag f "html" H{ } f f } }
-] [ "<html>" parse-html ] unit-test
+} [ "<html>" parse-html ] unit-test
 
-[
+{
     V{ T{ tag f "html" H{ } f t } }
-] [ "</html>" parse-html ] unit-test
+} [ "</html>" parse-html ] unit-test
 
-[
+{
     V{ T{ tag f "a" H{ { "href" "http://factorcode.org/" } } f f } }
-] [ "<a href=\"http://factorcode.org/\">" parse-html ] unit-test
+} [ "<a href=\"http://factorcode.org/\">" parse-html ] unit-test
 
-[
+{
     V{ T{ tag f "a" H{ { "href" "http://factorcode.org/" } } f f } }
-] [ "<a   href  =  \"http://factorcode.org/\"   >" parse-html ] unit-test
+} [ "<a   href  =  \"http://factorcode.org/\"   >" parse-html ] unit-test
 
-[
+{
 V{
     T{
         tag
@@ -28,9 +28,9 @@ V{
         f
     }
 }
-] [ "<a   foo=\"bar's\" baz='\"quux\"'  >" parse-html ] unit-test
+} [ "<a   foo=\"bar's\" baz='\"quux\"'  >" parse-html ] unit-test
 
-[
+{
 V{
     T{ tag f "a"
         H{
@@ -40,9 +40,9 @@ V{
             { "baz" "quux" }
         } f f }
 }
-] [ "<a   href  =    \"http://factorcode.org/\"    foo   =  bar baz='quux'a=pirsqd  >" parse-html ] unit-test
+} [ "<a   href  =    \"http://factorcode.org/\"    foo   =  bar baz='quux'a=pirsqd  >" parse-html ] unit-test
 
-[
+{
 V{
     T{ tag f "a"
         H{
@@ -53,18 +53,18 @@ V{
             { "nofollow" "nofollow" }
         } f f }
 }
-] [ "<a   href  =    \"http://factorcode.org/\"    nofollow  foo   =  bar baz='quux'a=pirsqd  >" parse-html ] unit-test
+} [ "<a   href  =    \"http://factorcode.org/\"    nofollow  foo   =  bar baz='quux'a=pirsqd  >" parse-html ] unit-test
 
-[
+{
 V{
     T{ tag f "html" H{ } f f }
     T{ tag f "head" H{ } f f }
     T{ tag f "head" H{ } f t }
     T{ tag f "html" H{ } f t }
 }
-] [ "<html<head</head</html" parse-html ] unit-test
+} [ "<html<head</head</html" parse-html ] unit-test
 
-[
+{
 V{
     T{ tag f "head" H{ } f f }
     T{ tag f "title" H{ } f f }
@@ -72,9 +72,9 @@ V{
     T{ tag f "title" H{ } f t }
     T{ tag f "head" H{ } f t }
 }
-] [ "<head<title>Spagna</title></head" parse-html ] unit-test
+} [ "<head<title>Spagna</title></head" parse-html ] unit-test
 
-[
+{
 V{
     T{ tag
         { name dtd }
@@ -83,17 +83,17 @@ V{
         }
     }
 }
-]
+}
 [
     "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Draft//EN\">"
     parse-html
 ] unit-test
 
-[
+{
 V{
     T{ tag { name comment } { text "comment" } }
 }
-] [
+} [
     "<!--comment-->" parse-html
 ] unit-test
 
index dad813dca6d0150c168fab3e640980497e6d5585..c0b59db408500bdedabd69142b79fb6e2d6b9a4f 100644 (file)
@@ -6,29 +6,29 @@ USING:
     tools.test ;
 IN: html.parser.printer.tests
 
-[
+{
     "          "
-] [
+} [
     [ 5 #indentations set 2 tab-width set tabs >string ] with-scope
 ] unit-test
 
-[
+{
     " rel='nofollow' href='http://www.google.com'"
-] [
+} [
     H{ { "href" "http://www.google.com" } { "rel" "nofollow" } }
         [ print-attributes ] with-string-writer
 ] unit-test
 
-[
+{
     "<p>\n  Sup dude!\n  <br>\n</p>\n"
-] [
+} [
     "<p>Sup dude!<br></p>" parse-html [ prettyprint-html ] with-string-writer
 ] unit-test
 
 ! Wrongly nested tags
-[
+{
     "<div>\n  <p>\n    Sup dude!\n    <br>\n  </div>\n</p>\n"
-] [
+} [
     "<div><p>Sup dude!<br></div></p>" parse-html
     [ prettyprint-html ] with-string-writer
 ] unit-test
index e45f3230d23c0b447671c732b84fa6dae1e9a79a..3acaa63edfc73efc05034d6501192f1b4213ece2 100644 (file)
@@ -4,13 +4,13 @@ namespaces prettyprint quotations sequences splitting
 strings tools.test html.parser.utils quoting ;
 IN: html.parser.utils.tests
 
-[ "'Rome'" ] [ "Rome" single-quote ] unit-test
-[ "\"Roma\"" ] [ "Roma" double-quote ] unit-test
-[ "'Firenze'" ] [ "Firenze" quote ] unit-test
-[ "\"Caesar's\"" ] [ "Caesar's" quote ] unit-test
-[ "'Italy'" ] [ "Italy" ?quote ] unit-test
-[ "'Italy'" ] [ "'Italy'" ?quote ] unit-test
-[ "\"Italy\"" ] [ "\"Italy\"" ?quote ] unit-test
-[ "Italy" ] [ "Italy" unquote ] unit-test
-[ "Italy" ] [ "'Italy'" unquote ] unit-test
-[ "Italy" ] [ "\"Italy\"" unquote ] unit-test
+{ "'Rome'" } [ "Rome" single-quote ] unit-test
+{ "\"Roma\"" } [ "Roma" double-quote ] unit-test
+{ "'Firenze'" } [ "Firenze" quote ] unit-test
+{ "\"Caesar's\"" } [ "Caesar's" quote ] unit-test
+{ "'Italy'" } [ "Italy" ?quote ] unit-test
+{ "'Italy'" } [ "'Italy'" ?quote ] unit-test
+{ "\"Italy\"" } [ "\"Italy\"" ?quote ] unit-test
+{ "Italy" } [ "Italy" unquote ] unit-test
+{ "Italy" } [ "'Italy'" unquote ] unit-test
+{ "Italy" } [ "\"Italy\"" unquote ] unit-test
index d29609f19a14fa7c0a37daced89b0b2dc4e78dd9..bd5e9bb27d23558ed11995eb1e9f5f4c3ed55e5a 100644 (file)
@@ -14,33 +14,33 @@ IN: id3.tests
         [ genre ]
     } cleave ;
 
-[
+{
    "BLAH"
    "ARTIST"
    "ALBUM"
    "2009"
    "COMMENT"
    "Bluegrass"
-] [ "vocab:id3/tests/blah.mp3" mp3>id3 id3-params ] unit-test
+} [ "vocab:id3/tests/blah.mp3" mp3>id3 id3-params ] unit-test
 
-[
+{
     "Anthem of the Trinity"
     "Terry Riley"
     "Shri Camel"
     f
     f
     "Classical"
-] [ "vocab:id3/tests/blah2.mp3" mp3>id3 id3-params ] unit-test
+} [ "vocab:id3/tests/blah2.mp3" mp3>id3 id3-params ] unit-test
 
-[
+{
    "Stormy Weather"
    "Frank Sinatra"
    "Night and Day Frank Sinatra"
     f
    "eng, AG# 08E1C12E"
    "Big Band"
-] [ "vocab:id3/tests/blah3.mp3" mp3>id3 id3-params ] unit-test
+} [ "vocab:id3/tests/blah3.mp3" mp3>id3 id3-params ] unit-test
 
 
-[ t ]
+{ t }
 [ 10000 iota [ synchsafe>sequence sequence>synchsafe ] map [ < ] monotonic? ] unit-test
index fedf2fa7d33fb372f069c49b1c07ca6315100f01..a3800491dab3774e5a2a87eb417cee1bd483720e 100644 (file)
@@ -32,21 +32,21 @@ IN: images.gif.tests
 : declared-num-colors ( gif -- n ) flags>> 3 bits 1 + 2^ ;
 : actual-num-colors ( gif -- n ) global-color-table>> length ;
 
-[ 2 ] [ monochrome.gif actual-num-colors ] unit-test
-[ 2 ] [ monochrome.gif declared-num-colors ] unit-test
+{ 2 } [ monochrome.gif actual-num-colors ] unit-test
+{ 2 } [ monochrome.gif declared-num-colors ] unit-test
 
-[ 16 ] [ circle.gif actual-num-colors ] unit-test
-[ 16 ] [ circle.gif declared-num-colors ] unit-test
+{ 16 } [ circle.gif actual-num-colors ] unit-test
+{ 16 } [ circle.gif declared-num-colors ] unit-test
 
-[ 256 ] [ checkmark.gif actual-num-colors ] unit-test
-[ 256 ] [ checkmark.gif declared-num-colors ] unit-test
+{ 256 } [ checkmark.gif actual-num-colors ] unit-test
+{ 256 } [ checkmark.gif declared-num-colors ] unit-test
 
 : >index-stream ( gif -- seq )
     [ compressed-bytes>> ]
     [ image-descriptor>> first-code-size>> ] bi
     gif-lzw-uncompress ;
 
-[
+{
     BV{
         0 0 0 0 0 0
         1 0 0 0 0 1
@@ -55,11 +55,11 @@ IN: images.gif.tests
         1 0 1 1 0 1
         1 0 0 0 0 1
     }
-] [ monochrome.gif >index-stream ] unit-test
+} [ monochrome.gif >index-stream ] unit-test
 
-[
+{
     BV{
         0 1
         1 0
     }
-] [ alpha.gif >index-stream ] unit-test
+} [ alpha.gif >index-stream ] unit-test
index 98e4e15bcf17d002040d602aa2e4f64c368483ae..bf132f4a6617b20bfb3addb1f0fe017dc6c3ba9b 100644 (file)
@@ -11,15 +11,15 @@ IN: images.viewer.tests
     dup (gen-image) <image> swap >>bitmap swap >>dim
     RGB >>component-order ubyte-components >>component-type ;
 
-[ ] [ { 50 50 } gen-image "s" set ] unit-test
-[ ] [ "s" get <image-gadget> "ig" set ] unit-test
+{ } [ { 50 50 } gen-image "s" set ] unit-test
+{ } [ "s" get <image-gadget> "ig" set ] unit-test
 "ig" get [
    [ t ] [ "ig" get image-gadget-texture single-texture? ] unit-test
 ] with-grafted-gadget
 
-[ ] [ "s" get <model> "m" set ] unit-test
-[ ] [ { 150 150 } gen-image "s1" set ] unit-test
-[ ] [ "m" get <image-control> "ic" set ] unit-test
+{ } [ "s" get <model> "m" set ] unit-test
+{ } [ { 150 150 } gen-image "s1" set ] unit-test
+{ } [ "m" get <image-control> "ic" set ] unit-test
 "ic" get [
    [ t ] [ "ic" get image-gadget-texture single-texture? ] unit-test
    [ { 50 50 } ] [ "ic" get texture>> texture-size ] unit-test
index def6654db358dbca53802b2c792bc84d734ecb4a..d79270cb56650d1ade2388ecd35ad465f6c4c31a 100644 (file)
@@ -45,21 +45,21 @@ MEMO: my-uuid ( -- str )
         base-folder "/" my-uuid "/" _
     ] "" append-outputs-as ;
 
-[ t ] [
+{ t } [
     get-test-host <imap4ssl> [ duplex-stream? ] with-disposal
 ] unit-test
 
-[ t ] [
+{ t } [
     get-test-host <imap4ssl> [ capabilities ] with-stream
     { "IMAP4rev1" "UNSELECT" "IDLE" "NAMESPACE" "QUOTA" } swap subset?
 ] unit-test
 
-[ "NO" ] [
+{ "NO" } [
     [ get-test-host <imap4ssl> [ "dont@exist.com" "foo" login ] with-stream ]
     [ ind>> ] recover
 ] unit-test
 
-[ "BAD" ] [
+{ "BAD" } [
     [ get-test-host <imap4ssl> [ f f login ] with-stream ] [ ind>> ] recover
 ] unit-test
 
@@ -75,7 +75,7 @@ MEMO: my-uuid ( -- str )
 ] imap-test
 
 
-[ ] [ \ imap-settings get-global [ ] with-imap-settings ] unit-test
+{ } [ \ imap-settings get-global [ ] with-imap-settings ] unit-test
 
 ! Newly created and then selected folder is empty.
 [ 0 { } ] [
@@ -180,11 +180,11 @@ MEMO: my-uuid ( -- str )
 ] imap-test
 
 ! Internal date parsing
-[ "Mon, 19 Aug 2013 23:16:36 GMT" ] [
+{ "Mon, 19 Aug 2013 23:16:36 GMT" } [
     "19-Aug-2013 23:16:36 +0000" internal-date>timestamp timestamp>rfc822
 ] unit-test
 
-[ "19-Aug-2014 23:16:36 GMT" ] [
+{ "19-Aug-2014 23:16:36 GMT" } [
     "Mon, 19 Aug 2014 23:16:36 GMT" rfc822>timestamp timestamp>internal-date
 ] unit-test
 
index 1c54de3a912d1e39848889e9fdcd8a7acc49f35b..b856ccc2d420beee4f1c9bbc61ad5fe6ca152e86 100644 (file)
@@ -4,52 +4,52 @@ USING: infix infix.private kernel locals math math.functions
 tools.test ;
 IN: infix.tests
 
-[ 0 ] [ [infix 0 infix] ] unit-test
-[ 0.5 ] [ [infix 3.0/6 infix] ] unit-test
-[ 1+2/3 ] [ [infix 5/3 infix] ] unit-test
-[ 3 ] [ [infix 2*7%3+1 infix] ] unit-test
-[ 1419857 ] [ [infix 17**5 infix] ] unit-test
-[ 1 ] [ [infix 2-
+{ 0 } [ [infix 0 infix] ] unit-test
+{ 0.5 } [ [infix 3.0/6 infix] ] unit-test
+{ 1+2/3 } [ [infix 5/3 infix] ] unit-test
+{ 3 } [ [infix 2*7%3+1 infix] ] unit-test
+{ 1419857 } [ [infix 17**5 infix] ] unit-test
+{ 1 } [ [infix 2-
      1
      -5*
      0 infix] ] unit-test
 
-[ 0.0 ] [ [infix sin(0) infix] ] unit-test
-[ 10 ] [ [infix lcm(2,5) infix] ] unit-test
-[ 1.0 ] [ [infix +cos(-0*+3) infix] ] unit-test
+{ 0.0 } [ [infix sin(0) infix] ] unit-test
+{ 10 } [ [infix lcm(2,5) infix] ] unit-test
+{ 1.0 } [ [infix +cos(-0*+3) infix] ] unit-test
 
-[ f ] [ 2 \ gcd check-word ] unit-test ! multiple return values
-[ f ] [ 1 \ drop check-word ] unit-test ! no return value
-[ f ] [ 1 \ lcm check-word ] unit-test ! takes 2 args
+{ f } [ 2 \ gcd check-word ] unit-test ! multiple return values
+{ f } [ 1 \ drop check-word ] unit-test ! no return value
+{ f } [ 1 \ lcm check-word ] unit-test ! takes 2 args
 
 : qux ( -- x ) 2 ;
-[ t ] [ 0 \ qux check-word ] unit-test
-[ 8 ] [ [infix qux()*3+2 infix] ] unit-test
+{ t } [ 0 \ qux check-word ] unit-test
+{ 8 } [ [infix qux()*3+2 infix] ] unit-test
 : foobar ( x -- y ) 1 + ;
-[ t ] [ 1 \ foobar check-word ] unit-test
-[ 4 ] [ [infix foobar(3*5%12) infix] ] unit-test
+{ t } [ 1 \ foobar check-word ] unit-test
+{ 4 } [ [infix foobar(3*5%12) infix] ] unit-test
 : stupid_function ( x x x x x -- y ) + + + + ;
-[ t ] [ 5 \ stupid_function check-word ] unit-test
-[ 10 ] [ [infix stupid_function (0, 1, 2, 3, 4) infix] ] unit-test
-
-[ -1 ] [ [let 1 :> a [infix -a infix] ] ] unit-test
-
-[ CHAR: f ] [ [let "foo" :> s [infix s[0] infix] ] ] unit-test
-[ CHAR: r ] [ [let "bar" :> s [infix s[-1] infix] ] ] unit-test
-[ "foo" ] [ [let "foobar" :> s [infix s[0:3] infix] ] ] unit-test
-[ "foo" ] [ [let "foobar" :> s [infix s[:3] infix] ] ] unit-test
-[ "bar" ] [ [let "foobar" :> s [infix s[-3:] infix] ] ] unit-test
-[ "boof" ] [ [let "foobar" :> s [infix s[-3::-1] infix] ] ] unit-test
-[ "foobar" ] [ [let "foobar" :> s [infix s[:] infix] ] ] unit-test
-[ "foa" ] [ [let "foobar" :> s [infix s[::2] infix] ] ] unit-test
-[ "bar" ] [ [let "foobar" :> s [infix s[-3:100] infix] ] ] unit-test
-[ "foobar" ] [ [let "foobar" :> s [infix s[-100:100] infix] ] ] unit-test
-[ "olh" ] [ [let "hello" :> s [infix s[4::-2] infix] ] ] unit-test
-[ "rb" ] [ [let "foobar" :> s [infix s[:1:-2] infix] ] ] unit-test
-[ "foa" ] [ [let "foobar" :> s [infix s[:-1:2] infix] ] ] unit-test
-[ "rbo" ] [ [let "foobar" :> s [infix s[::-2] infix] ] ] unit-test
-[ "rbo" ] [ [let "foobar" :> s [infix s[:0:-2] infix] ] ] unit-test
-[ "rb" ] [ [let "foobar" :> s [infix s[:-5:-2] infix] ] ] unit-test
+{ t } [ 5 \ stupid_function check-word ] unit-test
+{ 10 } [ [infix stupid_function (0, 1, 2, 3, 4) infix] ] unit-test
+
+[ -1 ] { [let 1 :> a [infix -a infix] } ] unit-test
+
+[ CHAR: f ] { [let "foo" :> s [infix s[0] infix] } ] unit-test
+[ CHAR: r ] { [let "bar" :> s [infix s[-1] infix] } ] unit-test
+[ "foo" ] { [let "foobar" :> s [infix s[0:3] infix] } ] unit-test
+[ "foo" ] { [let "foobar" :> s [infix s[:3] infix] } ] unit-test
+[ "bar" ] { [let "foobar" :> s [infix s[-3:] infix] } ] unit-test
+[ "boof" ] { [let "foobar" :> s [infix s[-3::-1] infix] } ] unit-test
+[ "foobar" ] { [let "foobar" :> s [infix s[:] infix] } ] unit-test
+[ "foa" ] { [let "foobar" :> s [infix s[::2] infix] } ] unit-test
+[ "bar" ] { [let "foobar" :> s [infix s[-3:100] infix] } ] unit-test
+[ "foobar" ] { [let "foobar" :> s [infix s[-100:100] infix] } ] unit-test
+[ "olh" ] { [let "hello" :> s [infix s[4::-2] infix] } ] unit-test
+[ "rb" ] { [let "foobar" :> s [infix s[:1:-2] infix] } ] unit-test
+[ "foa" ] { [let "foobar" :> s [infix s[:-1:2] infix] } ] unit-test
+[ "rbo" ] { [let "foobar" :> s [infix s[::-2] infix] } ] unit-test
+[ "rbo" ] { [let "foobar" :> s [infix s[:0:-2] infix] } ] unit-test
+[ "rb" ] { [let "foobar" :> s [infix s[:-5:-2] infix] } ] unit-test
 
 INFIX:: foo ( x y -- z ) x**2-abs(y);
 
index 95c0627e41b23f603d284834a20cb183b4199d79..24bb3acad99cd4c21746816eba3cc5ae587c7048 100644 (file)
@@ -3,10 +3,10 @@
 USING: infix.ast infix.parser infix.tokenizer tools.test ;
 IN: infix.parser.tests
 
-[ T{ ast-number { value 1 } } ] [ "1" build-infix-ast ] unit-test
-[ T{ ast-negation f T{ ast-number { value 1 } } } ]
+{ T{ ast-number { value 1 } } } [ "1" build-infix-ast ] unit-test
+{ T{ ast-negation f T{ ast-number { value 1 } } } }
 [ "-1" build-infix-ast ] unit-test
-[ T{ ast-op
+{ T{ ast-op
     { left
         T{ ast-op
             { left T{ ast-number { value 1 } } }
@@ -16,9 +16,9 @@ IN: infix.parser.tests
     }
     { right T{ ast-number { value 4 } } }
     { op "+" }
-} ] [ "1+2+4" build-infix-ast ] unit-test
+} } [ "1+2+4" build-infix-ast ] unit-test
 
-[ T{ ast-op
+{ T{ ast-op
     { left T{ ast-number { value 1 } } }
     { right
         T{ ast-op
@@ -28,18 +28,18 @@ IN: infix.parser.tests
         }
     }
     { op "+" }
-} ] [ "1+2*3" build-infix-ast ] unit-test
+} } [ "1+2*3" build-infix-ast ] unit-test
 
-[ T{ ast-op
+{ T{ ast-op
     { left T{ ast-number { value 1 } } }
     { right T{ ast-number { value 2 } } }
     { op "+" }
-} ] [ "(1+2)" build-infix-ast ] unit-test
+} } [ "(1+2)" build-infix-ast ] unit-test
 
-[ T{ ast-local { name "foo" } } ] [ "foo" build-infix-ast ] unit-test
+{ T{ ast-local { name "foo" } } } [ "foo" build-infix-ast ] unit-test
 [ "-" build-infix-ast ] must-fail
 
-[ T{ ast-function
+{ T{ ast-function
     { name "foo" }
     { arguments
         V{
@@ -55,9 +55,9 @@ IN: infix.parser.tests
             }
         }
     }
-} ] [ "foo (1+ 2,2%3)  " build-infix-ast ] unit-test
+} } [ "foo (1+ 2,2%3)  " build-infix-ast ] unit-test
 
-[ T{ ast-op
+{ T{ ast-op
     { left
         T{ ast-op
             { left
@@ -99,9 +99,9 @@ IN: infix.parser.tests
     }
     { right T{ ast-number { value 2 } } }
     { op "/" }
-} ] [ "(bar() + baz[2/ 3+4 ] )/2" build-infix-ast ] unit-test
+} } [ "(bar() + baz[2/ 3+4 ] )/2" build-infix-ast ] unit-test
 
-[ T{ ast-op
+{ T{ ast-op
     { left T{ ast-number { value 1 } } }
     { right
         T{ ast-op
@@ -111,9 +111,9 @@ IN: infix.parser.tests
         }
     }
     { op "+" }
-} ] [ "1\n+\n2\r/\t3" build-infix-ast ] unit-test
+} } [ "1\n+\n2\r/\t3" build-infix-ast ] unit-test
 
-[ T{ ast-negation
+{ T{ ast-negation
     { term
         T{ ast-function
             { name "foo" }
@@ -127,9 +127,9 @@ IN: infix.parser.tests
             }
         }
     }
-} ] [ "-foo(+2,-3)" build-infix-ast ] unit-test
+} } [ "-foo(+2,-3)" build-infix-ast ] unit-test
 
-[ T{ ast-array
+{ T{ ast-array
     { name "arr" }
     { index
         T{ ast-op
@@ -167,7 +167,7 @@ IN: infix.parser.tests
             { op "/" }
         }
     }
-} ] [ "+arr[-(foo(2)+-1)/3]" build-infix-ast ] unit-test
+} } [ "+arr[-(foo(2)+-1)/3]" build-infix-ast ] unit-test
 
 [ "foo bar baz" build-infix-ast ] must-fail
 [ "1+2/4+" build-infix-ast ] must-fail
index b068881b84e0bf64dbfc1a43c17ebda33aa12d4f..b5392f52918d754be6365373ead063853cd0947c 100644 (file)
@@ -3,19 +3,19 @@
 USING: infix.ast infix.tokenizer tools.test ;
 IN: infix.tokenizer.tests
 
-[ V{ T{ ast-number f 1 } } ] [ "1" tokenize-infix ] unit-test
-[ V{ T{ ast-number f 1.02 } CHAR: * T{ ast-number f 3 } } ] [ "1.02*3" tokenize-infix ] unit-test
-[ V{ T{ ast-number f 3 } CHAR: / CHAR: ( T{ ast-number f 3 } CHAR: + T{ ast-number f 4 } CHAR: ) } ]
+{ V{ T{ ast-number f 1 } } } [ "1" tokenize-infix ] unit-test
+{ V{ T{ ast-number f 1.02 } CHAR: * T{ ast-number f 3 } } } [ "1.02*3" tokenize-infix ] unit-test
+{ V{ T{ ast-number f 3 } CHAR: / CHAR: ( T{ ast-number f 3 } CHAR: + T{ ast-number f 4 } CHAR: ) } }
 [ "3/(3+4)" tokenize-infix ] unit-test
-[ V{ "foo"  CHAR: ( "x" CHAR: , "y" CHAR: , "z" CHAR: ) } ] [ "foo(x,y,z)" tokenize-infix ] unit-test
-[ V{ "arr"  CHAR: [ "x" CHAR: + T{ ast-number f 3 } CHAR: ] } ]
+{ V{ "foo"  CHAR: ( "x" CHAR: , "y" CHAR: , "z" CHAR: ) } } [ "foo(x,y,z)" tokenize-infix ] unit-test
+{ V{ "arr"  CHAR: [ "x" CHAR: + T{ ast-number f 3 } CHAR: ] } }
 [ "arr[x+3]" tokenize-infix ] unit-test
 [ "1.0.4" tokenize-infix ] must-fail
-[ V{ CHAR: + CHAR: ] T{ ast-number f 3.4 } CHAR: , "bar" } ]
+{ V{ CHAR: + CHAR: ] T{ ast-number f 3.4 } CHAR: , "bar" } }
 [ "+]3.4,bar" tokenize-infix ] unit-test
-[ V{ "baz_34c" } ] [ "baz_34c" tokenize-infix ] unit-test
-[ V{ T{ ast-number f 34 } "c_baz" } ] [ "34c_baz"  tokenize-infix ] unit-test
-[ V{ CHAR: ( T{ ast-number f 1 } CHAR: + T{ ast-number f 2 } CHAR: ) } ]
+{ V{ "baz_34c" } } [ "baz_34c" tokenize-infix ] unit-test
+{ V{ T{ ast-number f 34 } "c_baz" } } [ "34c_baz"  tokenize-infix ] unit-test
+{ V{ CHAR: ( T{ ast-number f 1 } CHAR: + T{ ast-number f 2 } CHAR: ) } }
 [ "(1+2)" tokenize-infix ] unit-test
-[ V{ T{ ast-number f 1 } CHAR: + T{ ast-number f 2 } CHAR: / T{ ast-number f 3 } } ]
+{ V{ T{ ast-number f 1 } CHAR: + T{ ast-number f 2 } CHAR: / T{ ast-number f 3 } } }
 [ "1\n+\r2\t/ 3" tokenize-infix ] unit-test
index fefd3c80654f7c2a8620d7a60eb6a6dc35365622..473b8a9ebc32447463ae97bd257bed33e72ce598 100644 (file)
@@ -5,23 +5,23 @@ USING: ini-file tools.test ;
 
 IN: ini-file.tests
 
-[ H{ } ] [ "" string>ini ] unit-test
+{ H{ } } [ "" string>ini ] unit-test
 
-[ H{ { "section" H{ } } } ] [ "[section]" string>ini ] unit-test
+{ H{ { "section" H{ } } } } [ "[section]" string>ini ] unit-test
 
-[ H{ { "section" H{ } } } ] [ "[\"section\" ]" string>ini ] unit-test
+{ H{ { "section" H{ } } } } [ "[\"section\" ]" string>ini ] unit-test
 
-[ H{ { "   some name with spaces " H{ } } } ]
+{ H{ { "   some name with spaces " H{ } } } }
 [ "[ \"   some name with spaces \"]" string>ini ] unit-test
 
-[ H{ { "[]" H{ } } } ] [ "[\\[\\]]" string>ini ] unit-test
+{ H{ { "[]" H{ } } } } [ "[\\[\\]]" string>ini ] unit-test
 
-[ H{ { "foo" "bar" } } ] [ "foo=bar" string>ini ] unit-test
+{ H{ { "foo" "bar" } } } [ "foo=bar" string>ini ] unit-test
 
-[ H{ { "foo" "bar" } { "baz" "quz" } } ]
+{ H{ { "foo" "bar" } { "baz" "quz" } } }
 [ "foo=bar\nbaz= quz" string>ini ] unit-test
 
-[ H{ { "section" H{ { "foo" "abc def" } } } } ]
+{ H{ { "section" H{ { "foo" "abc def" } } } } }
 [
     """
     [section]
@@ -29,7 +29,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "abc def" } } } } ]
+{ H{ { "section" H{ { "foo" "abc def" } } } } }
 [
     """
     [section]
@@ -38,7 +38,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "abc def" } } } } ]
+{ H{ { "section" H{ { "foo" "abc def" } } } } }
 [
     """
     [section]
@@ -47,14 +47,14 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "abc def" } } } } ]
+{ H{ { "section" H{ { "foo" "abc def" } } } } }
 [
     """
     [section]   foo = "abc def"
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "abc def" } } } } ]
+{ H{ { "section" H{ { "foo" "abc def" } } } } }
 [
     """
     [section]   foo = abc \\
@@ -62,7 +62,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "" } } } } ]
+{ H{ { "section" H{ { "foo" "" } } } } }
 [
     """
     [section]
@@ -70,7 +70,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "section" H{ { "foo" "" } } } } ]
+{ H{ { "section" H{ { "foo" "" } } } } }
 [
     """
     [section]
@@ -78,7 +78,7 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "" H{ { "" "" } } } } ]
+{ H{ { "" H{ { "" "" } } } } }
 [
     """
     []
@@ -86,11 +86,11 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "owner" H{ { "name" "John Doe" }
+{ H{ { "owner" H{ { "name" "John Doe" }
                   { "organization" "Acme Widgets Inc." } } }
      { "database" H{ { "server" "192.0.2.62" }
                      { "port" "143" }
-                     { "file" "payroll.dat" } } } } ]
+                     { "file" "payroll.dat" } } } } }
 [
     """
     ; last modified 1 April 2001 by John Doe
@@ -105,8 +105,8 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "a long section name"
-       H{ { "a long key name" "a long value name" } } } } ]
+{ H{ { "a long section name"
+       H{ { "a long key name" "a long value name" } } } } }
 [
     """
     [a long section name ]
@@ -114,8 +114,8 @@ IN: ini-file.tests
     """ string>ini
 ] unit-test
 
-[ H{ { "key with \n esc\ape \r codes \""
-       "value with \t esc\ape codes" } } ]
+{ H{ { "key with \n esc\ape \r codes \""
+       "value with \t esc\ape codes" } } }
 [
     """
     key with \\n esc\\ape \\r codes \\\" = value with \\t esc\\ape codes
@@ -123,7 +123,7 @@ IN: ini-file.tests
 ] unit-test
 
 
-[ """key with \\n esc\\ape \\r codes \\\"=value with \\t esc\\ape codes\n""" ]
+{ """key with \\n esc\\ape \\r codes \\\"=value with \\t esc\\ape codes\n""" }
 [
     H{ { "key with \n esc\ape \r codes \""
          "value with \t esc\ape codes" } } ini>string
index d1ebb9a32ee03519cc832b35b0b6eb365b96b08f..88386bb61aa8b8d39c5694d23b29259f834f9e36 100644 (file)
@@ -3,13 +3,13 @@
 USING: tools.test io.binary.fast ;
 IN: io.binary.fast.tests
 
-[ 0x0102 ] [ B{ 01 02 } 2be> ] unit-test
-[ 0x01020304 ] [ B{ 01 02 03 04 } 4be> ] unit-test
-[ 0x0102030405060708 ] [ B{ 01 02 03 04 05 06 07 08 } 8be> ] unit-test
+{ 0x0102 } [ B{ 01 02 } 2be> ] unit-test
+{ 0x01020304 } [ B{ 01 02 03 04 } 4be> ] unit-test
+{ 0x0102030405060708 } [ B{ 01 02 03 04 05 06 07 08 } 8be> ] unit-test
 
-[ 0x0102 ] [ B{ 02 01 } 2le> ] unit-test
-[ 0x01020304 ] [ B{ 04 03 02 01 } 4le> ] unit-test
-[ 0x0102030405060708 ] [ B{ 08 07 06 05 04 03 02 01 } 8le> ] unit-test
+{ 0x0102 } [ B{ 02 01 } 2le> ] unit-test
+{ 0x01020304 } [ B{ 04 03 02 01 } 4le> ] unit-test
+{ 0x0102030405060708 } [ B{ 08 07 06 05 04 03 02 01 } 8le> ] unit-test
 
 { 0x04030201 } [ B{ 1 2 3 4 } signed-le> ] unit-test
 { 0x01020304 } [ B{ 1 2 3 4 } signed-be> ] unit-test
index ad3016a83be6b84d96b46f032425345269f135a2..35751ef7f19c807987b9c3ef9a1f54ec84862daf 100644 (file)
@@ -6,39 +6,39 @@ io.encodings.utf8 namespaces tools.test ;
 IN: io.encodings.detect.tests
 
 ! UTF encodings with BOMs
-[ utf16be ] [ HEX{ FEFF 0031 0032 0033 } detect-byte-array ] unit-test
-[ utf16le ] [ HEX{ FFFE 3100 3200 3300 } detect-byte-array ] unit-test
-[ utf32be ] [ HEX{ 0000FEFF 00000031 00000032 00000033 } detect-byte-array ] unit-test
-[ utf32le ] [ HEX{ FFFE0000 31000000 32000000 33000000 } detect-byte-array ] unit-test
-[ utf8 ] [ HEX{ EF BB BF 31 32 33 } detect-byte-array ] unit-test
+{ utf16be } [ HEX{ FEFF 0031 0032 0033 } detect-byte-array ] unit-test
+{ utf16le } [ HEX{ FFFE 3100 3200 3300 } detect-byte-array ] unit-test
+{ utf32be } [ HEX{ 0000FEFF 00000031 00000032 00000033 } detect-byte-array ] unit-test
+{ utf32le } [ HEX{ FFFE0000 31000000 32000000 33000000 } detect-byte-array ] unit-test
+{ utf8 } [ HEX{ EF BB BF 31 32 33 } detect-byte-array ] unit-test
 
 ! XML prolog
-[ utf8 ]
+{ utf8 }
 [ """<?xml version="1.0"?>""" >byte-array detect-byte-array ]
 unit-test
 
-[ utf8 ]
+{ utf8 }
 [ """<?xml version="1.0" encoding="UTF-8"?>""" >byte-array detect-byte-array ]
 unit-test
 
-[ latin1 ]
+{ latin1 }
 [ """<?xml version='1.0' encoding='ISO-8859-1'?>""" >byte-array detect-byte-array ]
 unit-test
 
-[ latin1 ]
+{ latin1 }
 [ """<?xml version='1.0' encoding="ISO-8859-1" """ >byte-array detect-byte-array ]
 unit-test
 
 ! Default to utf8 if decoding succeeds and there are no nulls
-[ utf8 ] [ HEX{ } detect-byte-array ] unit-test
-[ utf8 ] [ HEX{ 31 32 33 } detect-byte-array ] unit-test
-[ utf8 ] [ HEX{ 31 32 C2 A0 33 } detect-byte-array ] unit-test
-[ latin1 ] [ HEX{ 31 32 A0 33 } detect-byte-array ] unit-test
-[ koi8-r ] [
+{ utf8 } [ HEX{ } detect-byte-array ] unit-test
+{ utf8 } [ HEX{ 31 32 33 } detect-byte-array ] unit-test
+{ utf8 } [ HEX{ 31 32 C2 A0 33 } detect-byte-array ] unit-test
+{ latin1 } [ HEX{ 31 32 A0 33 } detect-byte-array ] unit-test
+{ koi8-r } [
     koi8-r default-8bit-encoding [
         HEX{ 31 32 A0 33 } detect-byte-array
     ] with-variable
 ] unit-test
 
-[ binary ] [ HEX{ 31 32 33 C2 A0 00 } detect-byte-array ] unit-test
-[ binary ] [ HEX{ 31 32 33 C2 A0 00 30 } detect-byte-array ] unit-test
+{ binary } [ HEX{ 31 32 33 C2 A0 00 } detect-byte-array ] unit-test
+{ binary } [ HEX{ 31 32 33 C2 A0 00 30 } detect-byte-array ] unit-test
index b4a7b90f7a0f41572cf4a25ace47a523998edfa3..7f9f9a4e424188cbb9b8fe0c94f8391ce4912bc0 100644 (file)
@@ -6,45 +6,45 @@ io.streams.memory io.streams.peek io.streams.string kernel make
 namespaces sequences strings tools.test ;
 IN: io.streams.peek.tests
 
-[ CHAR: a ]
+{ CHAR: a }
 [ "abc" <string-reader> <peek-stream> stream-read1 ] unit-test
 
-[ CHAR: a ]
+{ CHAR: a }
 [ "abc" <string-reader> <peek-stream> stream-peek1 ] unit-test
 
-[ f ]
+{ f }
 [ "" <string-reader> <peek-stream> stream-peek1 ] unit-test
 
-[ CHAR: a ]
+{ CHAR: a }
 [ "abc" <string-reader> <peek-stream> stream-peek1 ] unit-test
 
-[ "ab" 99 ]
+{ "ab" 99 }
 [ "abc" <string-reader> <peek-stream> "c" swap stream-read-until ] unit-test
 
-[ "ab" f ]
+{ "ab" f }
 [ "ab" <string-reader> <peek-stream> "c" swap stream-read-until ] unit-test
 
-[ CHAR: a ]
+{ CHAR: a }
 [
     "abc" <string-reader> <peek-stream>
     [ stream-peek1 drop ]
     [ stream-peek1 ] bi
 ] unit-test
 
-[ "ab" ]
+{ "ab" }
 [
     "abc" <string-reader> <peek-stream>
     2 swap stream-peek
 ] unit-test
 
-[ "ab" ]
+{ "ab" }
 [
     "abc" <string-reader> <peek-stream>
     2 over stream-peek drop
     2 swap stream-peek
 ] unit-test
 
-[
+{
     {
         B{ 97 98 99 100 }
         B{ 97 98 99 100 101 102 }
@@ -56,7 +56,7 @@ IN: io.streams.peek.tests
         B{ 105 106 107 108 109 110 111 112 }
         B{ 105 106 107 108 109 110 111 112 113 114 }
     }
-] [
+} [
     [
         "abcdefghijklmnopqrstuvwxyz" >byte-array binary <byte-reader> <peek-stream>
         4 over stream-peek ,
@@ -71,7 +71,7 @@ IN: io.streams.peek.tests
     ] { } make
 ] unit-test
 
-[
+{
     {
         "abcd"
         "abcdef"
@@ -83,7 +83,7 @@ IN: io.streams.peek.tests
         "ijklmnop"
         "ijklmnopqr"
     }
-]
+}
 [
     [
         "abcdefghijklmnopqrstuvwxyz" >byte-array ascii <byte-reader> <peek-stream>
@@ -99,7 +99,7 @@ IN: io.streams.peek.tests
     ] { } make
 ] unit-test
 
-[
+{
     {
         B{ 0 1 2 3 }
         B{ 0 1 2 3 4 5 }
@@ -111,7 +111,7 @@ IN: io.streams.peek.tests
         B{ 8 9 10 11 12 13 14 15 }
         B{ 8 9 10 11 12 13 14 15 16 17 }
     }
-]
+}
 [
     [
         [
index 401935fd01c29b87a17d30b3246d5a02f04f0f44..dadd6fb255cb8c78d859634bc2d6c2f7f8a1e0ec 100644 (file)
@@ -1,8 +1,8 @@
 USING: jamshred.oint tools.test ;
 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
-[ { 1 0 0 } ] [ { 1 1 0 } { 0 1 0 } proj-perp ] unit-test
-[ { 1/2 -1/2 0 } ] [ { 1 0 0 } { 1 1 0 } proj-perp ] unit-test
-[ { -1/2 1/2 0 } ] [ { 0 1 0 } { 1 1 0 } proj-perp ] unit-test
+{ { 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
+{ { 1 0 0 } } [ { 1 1 0 } { 0 1 0 } proj-perp ] unit-test
+{ { 1/2 -1/2 0 } } [ { 1 0 0 } { 1 1 0 } proj-perp ] unit-test
+{ { -1/2 1/2 0 } } [ { 0 1 0 } { 1 1 0 } proj-perp ] unit-test
index ac696f54445bcaafcbb5e9481ce6e193c111e509..4a215d068462138c948436017783fc00762f844d 100644 (file)
@@ -9,27 +9,27 @@ IN: jamshred.tunnel.tests
 : test-segment-oint ( -- oint )
     { 0 0 0 } { 0 0 -1 } { 0 1 0 } { -1 0 0 } <oint> ;
 
-[ { -1 0 0 } ] [ test-segment-oint { 1 0 0 } vector-to-centre ] unit-test
-[ { 1 0 0 } ] [ test-segment-oint { -1 0 0 } vector-to-centre ] unit-test
-[ { 0 -1 0 } ] [ test-segment-oint { 0 1 0 } vector-to-centre ] unit-test
-[ { 0 1 0 } ] [ test-segment-oint { 0 -1 0 } vector-to-centre ] unit-test
-[ { -1 0 0 } ] [ test-segment-oint { 1 0 -1 } vector-to-centre ] unit-test
-[ { 1 0 0 } ] [ test-segment-oint { -1 0 -1 } vector-to-centre ] unit-test
-[ { 0 -1 0 } ] [ test-segment-oint { 0 1 -1 } vector-to-centre ] unit-test
-[ { 0 1 0 } ] [ test-segment-oint { 0 -1 -1 } vector-to-centre ] unit-test
+{ { -1 0 0 } } [ test-segment-oint { 1 0 0 } vector-to-centre ] unit-test
+{ { 1 0 0 } } [ test-segment-oint { -1 0 0 } vector-to-centre ] unit-test
+{ { 0 -1 0 } } [ test-segment-oint { 0 1 0 } vector-to-centre ] unit-test
+{ { 0 1 0 } } [ test-segment-oint { 0 -1 0 } vector-to-centre ] unit-test
+{ { -1 0 0 } } [ test-segment-oint { 1 0 -1 } vector-to-centre ] unit-test
+{ { 1 0 0 } } [ test-segment-oint { -1 0 -1 } vector-to-centre ] unit-test
+{ { 0 -1 0 } } [ test-segment-oint { 0 1 -1 } vector-to-centre ] unit-test
+{ { 0 1 0 } } [ test-segment-oint { 0 -1 -1 } vector-to-centre ] unit-test
 
 : simplest-straight-ahead ( -- oint segment )
     { 0 0 0 } { 0 0 -1 } { 0 1 0 } { -1 0 0 } <oint>
     initial-segment ;
 
-[ { 0.0 0.0 0.0 } ] [ simplest-straight-ahead sideways-heading ] unit-test
-[ { 0.0 0.0 0.0 } ] [ simplest-straight-ahead sideways-relative-location ] unit-test
+{ { 0.0 0.0 0.0 } } [ simplest-straight-ahead sideways-heading ] unit-test
+{ { 0.0 0.0 0.0 } } [ simplest-straight-ahead sideways-relative-location ] unit-test
 
 : simple-collision-up ( -- oint segment )
     { 0 0 0 } { 0 1 0 } { 0 0 1 } { -1 0 0 } <oint>
     initial-segment ;
 
-[ { 0.0 1.0 0.0 } ] [ simple-collision-up sideways-heading ] unit-test
-[ { 0.0 0.0 0.0 } ] [ simple-collision-up sideways-relative-location ] unit-test
-[ { 0.0 1.0 0.0 } ]
+{ { 0.0 1.0 0.0 } } [ simple-collision-up sideways-heading ] unit-test
+{ { 0.0 0.0 0.0 } } [ simple-collision-up sideways-relative-location ] unit-test
+{ { 0.0 1.0 0.0 } }
 [ simple-collision-up collision-vector 0 0 0 3array v+ ] unit-test
index 13dc34135092ea4d14bbec6a381d0082484fe82c..7e81e4f7dfe2e9e8045a0fbc883da073d0902a2d 100644 (file)
@@ -1,23 +1,23 @@
 USING: koszul tools.test kernel sequences assocs namespaces ;
 IN: koszul.tests
 
-[
+{
     { V{ { } } V{ { 1 } } V{ { 2 3 } { 7 8 } } V{ { 4 5 6 } } }
-] [
+} [
     { { 1 } { 2 3 } { 4 5 6 } { 7 8 } { } } graded
 ] unit-test
 
 SYMBOLS: x1 x2 x3 x4 x5 x6 z1 z2 ;
 
-[ H{ { { x1 } 3 } } ] [ x1 3 wedge ] unit-test
+{ H{ { { x1 } 3 } } } [ x1 3 wedge ] unit-test
 
-[ H{ { { x1 } 3 } { { x2 } 4 } } ]
+{ H{ { { x1 } 3 } { { x2 } 4 } } }
 [ x1 3 wedge x2 4 wedge alt+ ] unit-test
 
 x1 x2 wedge z1 d=
 x3 x4 wedge z2 d=
 
-[ H{ { { x1 x2 z2 } 1 } { { x3 x4 z1 } -1 } } ]
+{ H{ { { x1 x2 z2 } 1 } { { x3 x4 z1 } -1 } } }
 [ z1 z2 wedge d ] unit-test
 
 ! Unimodular example
@@ -29,24 +29,24 @@ x y wedge z d=
 y z wedge x d=
 z x wedge y d=
 
-[ { 1 0 0 1 } ] [ { x y z } graded-betti ] unit-test
+{ { 1 0 0 1 } } [ { x y z } graded-betti ] unit-test
 
 ! Solvable example
 boundaries get clear-assoc
 
 x y wedge y d=
 
-[ { 1 1 0 } ] [ { x y } graded-betti ] unit-test
+{ { 1 1 0 } } [ { x y } graded-betti ] unit-test
 
 ! Nilpotent example
 boundaries get clear-assoc
 
 x1 x2 wedge x3 x4 wedge alt+ z d=
 
-[ { 1 4 5 5 4 1 } ]
+{ { 1 4 5 5 4 1 } }
 [ { x1 x2 x3 x4 z } graded-betti ] unit-test
 
-[ { { 1 4 5 0 0 } { 0 0 5 4 1 } } ]
+{ { { 1 4 5 0 0 } { 0 0 5 4 1 } } }
 [ { x1 x2 x3 x4 } { z } bigraded-betti ] unit-test
 
 ! Free 2-step on 4 generators
@@ -61,14 +61,14 @@ x2 x3 wedge e23 d=
 x2 x4 wedge e24 d=
 x3 x4 wedge e34 d=
 
-[ { 1 4 20 56 84 90 84 56 20 4 1 } ]
+{ { 1 4 20 56 84 90 84 56 20 4 1 } }
 [ { x1 x2 x3 x4 e12 e13 e14 e23 e24 e34 } graded-betti ]
 unit-test
 
 ! Make sure this works
-[ ] [ e12 d alt. ] unit-test
+{ } [ e12 d alt. ] unit-test
 
-[ ] [
+{ } [
     { x1 x2 x3 x4 x5 x6 } { w z }
     bigraded-laplacian-kernel bigraded-basis.
 ] unit-test
index bab2171675a3be963c530f5b0b09565a480ffbc2..01c63ba13d82156c04d592f3eff050b9c6d01a17 100644 (file)
@@ -4,7 +4,7 @@ IN: lint.tests
 ! Don't write code like this
 : lint1 ( obj -- ) [ "hi" print ] [ ] if ; ! when
 
-[ { { lint1 { [ [ ] if ] } } } ] [ \ lint1 lint-word ] unit-test
+{ { { lint1 { [ [ ] if ] } } } } [ \ lint1 lint-word ] unit-test
 
 ! : lint2 ( a b -- b a b ) dup -rot ; ! tuck
 
@@ -12,4 +12,4 @@ IN: lint.tests
 
 : lint3 ( seq -- seq ) [ 0 swap nth 1 + ] map ;
 
-[ { { lint3 { [ 0 swap nth ] } } } ] [ \ lint3 lint-word ] unit-test
+{ { { lint3 { [ 0 swap nth ] } } } } [ \ lint3 lint-word ] unit-test
index 66a7300592ac4d91033b2b5fe178f8c8abc7df8e..dca1df2c999b612019afd75426a5ee6dfab57630 100644 (file)
@@ -2,6 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien.llvm io.pathnames llvm.invoker llvm.reader tools.test ;
 
-[ 3 ] [
+{ 3 } [
     << "resource:extra/llvm/reader/add.bc" install-bc >> 1 2 add
 ] unit-test
index 8dedc7eab6831b6fddbd270ef00ee7842af70cf6..e9d1fb0a732f65f5e6f9fa37c308225f29e0b8fe 100644 (file)
@@ -2,4 +2,4 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: destructors llvm.jit llvm.wrappers tools.test ;
 
-[ ] [ "test" <module> "test" add-module "test" remove-module ] unit-test
+{ } [ "test" <module> "test" add-module "test" remove-module ] unit-test
index 9422ce54aa88a80ff0713f07ec89952fa2038be3..8e57fb19f945cd25981ce05d2e9f70829fa54ec2 100644 (file)
@@ -2,39 +2,39 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel llvm.types sequences tools.test ;
 
-[ T{ integer f 32 }  ] [ " i32 " parse-type ] unit-test
-[ float ] [ " float " parse-type ] unit-test
-[ T{ pointer f f x86_fp80 } ] [ " x86_fp80 * " parse-type ] unit-test
-[ T{ vector f f 4 T{ integer f 32 } } ] [ " < 4 x i32 > " parse-type ] unit-test
-[ T{ struct f f { float double } f } ] [ TYPE: { float , double } ; ] unit-test
-[ T{ array f f 0 float } ] [ TYPE: [ 0 x float ] ; ] unit-test
+{ T{ integer f 32 }  } [ " i32 " parse-type ] unit-test
+{ float } [ " float " parse-type ] unit-test
+{ T{ pointer f f x86_fp80 } } [ " x86_fp80 * " parse-type ] unit-test
+{ T{ vector f f 4 T{ integer f 32 } } } [ " < 4 x i32 > " parse-type ] unit-test
+{ T{ struct f f { float double } f } } [ TYPE: { float , double } ; ] unit-test
+{ T{ array f f 0 float } } [ TYPE: [ 0 x float ] ; ] unit-test
 
-[ label void metadata ]
+{ label void metadata }
 [ [ " label " " void " " metadata " ] [ parse-type ] each ] unit-test
 
-[ T{ function f f float { float float } t } ]
+{ T{ function f f float { float float } t } }
 [ TYPE: float ( float , float , ... ) ; ] unit-test
 
-[ T{ struct f f { float TYPE: i32 (i32)* ; } t } ]
+{ T{ struct f f { float TYPE: i32 (i32)* ; } t } }
 [ TYPE: < { float, i32 (i32)* } > ; ] unit-test
 
-[ t ] [ TYPE: i32 ; TYPE: i32 ; [ >tref ] same? ] unit-test
-[ t ] [ TYPE: i32 * ; TYPE: i32 * ; [ >tref ] same? ] unit-test
+{ t } [ TYPE: i32 ; TYPE: i32 ; [ >tref ] same? ] unit-test
+{ t } [ TYPE: i32 * ; TYPE: i32 * ; [ >tref ] same? ] unit-test
 
-[ TYPE: i32 ; ] [ TYPE: i32 ; >tref tref> ] unit-test
-[ TYPE: float ; ] [ TYPE: float ; >tref tref> ] unit-test
-[ TYPE: double ; ] [ TYPE: double ; >tref tref> ] unit-test
-[ TYPE: x86_fp80 ; ] [ TYPE: x86_fp80 ; >tref tref> ] unit-test
-[ TYPE: fp128 ; ] [ TYPE: fp128 ; >tref tref> ] unit-test
-[ TYPE: ppc_fp128 ; ] [ TYPE: ppc_fp128 ; >tref tref> ] unit-test
-[ TYPE: opaque ; ] [ TYPE: opaque ; >tref tref> ] unit-test
-[ TYPE: label ; ] [ TYPE: label ; >tref tref> ] unit-test
-[ TYPE: void ; ] [ TYPE: void ; >tref tref> ] unit-test
-[ TYPE: i32* ; ] [ TYPE: i32* ; >tref tref> ] unit-test
-[ TYPE: < 2 x i32 > ; ] [ TYPE: < 2 x i32 > ; >tref tref> ] unit-test
-[ TYPE: [ 0 x i32 ] ; ] [ TYPE: [ 0 x i32 ] ; >tref tref> ] unit-test
-[ TYPE: { i32, i32 } ; ] [ TYPE: { i32, i32 } ; >tref tref> ] unit-test
-[ TYPE: < { i32, i32 } > ; ] [ TYPE: < { i32, i32 } > ; >tref tref> ] unit-test
-[ TYPE: i32 ( i32 ) ; ] [ TYPE: i32 ( i32 ) ; >tref tref> ] unit-test
-[ TYPE: \1* ; ] [ TYPE: \1* ; >tref tref> ] unit-test
-[ TYPE: { i32, \2* } ; ] [ TYPE: { i32, \2* } ; >tref tref> ] unit-test
+{ TYPE: i32 ; } [ TYPE: i32 ; >tref tref> ] unit-test
+{ TYPE: float ; } [ TYPE: float ; >tref tref> ] unit-test
+{ TYPE: double ; } [ TYPE: double ; >tref tref> ] unit-test
+{ TYPE: x86_fp80 ; } [ TYPE: x86_fp80 ; >tref tref> ] unit-test
+{ TYPE: fp128 ; } [ TYPE: fp128 ; >tref tref> ] unit-test
+{ TYPE: ppc_fp128 ; } [ TYPE: ppc_fp128 ; >tref tref> ] unit-test
+{ TYPE: opaque ; } [ TYPE: opaque ; >tref tref> ] unit-test
+{ TYPE: label ; } [ TYPE: label ; >tref tref> ] unit-test
+{ TYPE: void ; } [ TYPE: void ; >tref tref> ] unit-test
+{ TYPE: i32* ; } [ TYPE: i32* ; >tref tref> ] unit-test
+{ TYPE: < 2 x i32 > ; } [ TYPE: < 2 x i32 > ; >tref tref> ] unit-test
+{ TYPE: [ 0 x i32 ] ; } [ TYPE: [ 0 x i32 ] ; >tref tref> ] unit-test
+{ TYPE: { i32, i32 } ; } [ TYPE: { i32, i32 } ; >tref tref> ] unit-test
+{ TYPE: < { i32, i32 } > ; } [ TYPE: < { i32, i32 } > ; >tref tref> ] unit-test
+{ TYPE: i32 ( i32 ) ; } [ TYPE: i32 ( i32 ) ; >tref tref> ] unit-test
+{ TYPE: \1* ; } [ TYPE: \1* ; >tref tref> ] unit-test
+{ TYPE: { i32, \2* } ; } [ TYPE: { i32, \2* } ; >tref tref> ] unit-test
index 86668d6824755cf37b0f2eb82d8a293a6ea7560a..6d7493209bc186de434ed57e00ba58d06b0e8d73 100644 (file)
@@ -2,6 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: destructors kernel llvm.wrappers sequences tools.test vocabs ;
 
-[ ] [ "test" <module> dispose ] unit-test
-[ ] [ "test" <module> <provider> dispose ] unit-test
-[ ] [ "llvm.jit" vocabs member? [ "test" <module> <provider> <engine> dispose ] unless ] unit-test
+{ } [ "test" <module> dispose ] unit-test
+{ } [ "test" <module> <provider> dispose ] unit-test
+{ } [ "llvm.jit" vocabs member? [ "test" <module> <provider> <engine> dispose ] unless ] unit-test
index bc02dcec87b7a5bb4ce7bbab56283ee442316605..89a796c5835e516f3ad99ee2026da6c6b32e5a93 100644 (file)
@@ -5,14 +5,14 @@ math.statistics math.text.english sequences tools.test
 math.vectors ;
 IN: machine-learning.rebalancing.tests
 
-[ t ] [
+{ t } [
     { 1 1 1 2 } [ [ number>text ] map ] [ ] bi
     100,000 balance-labels nip
     histogram values first2 - abs 3,000 <
 ] unit-test
 
 
-[ t ] [
+{ t } [
     { 1 1 1 2 } [ [ number>text ] map ] [ ] bi
     { 1/10 9/10 } 100,000 skew-labels nip
     histogram values { 10,000 90,000 } -.05 v~
index 33bc346541095c9591aeb40b86bafda73242b55a..f93fb734801d2e411d11868be2f8dd9b35fd437e 100644 (file)
@@ -2,14 +2,14 @@ USING: io io.pathnames kernel mason.child mason.config
 namespaces sequences system tools.test ;
 IN: mason.child.tests
 
-[ { "nmake" "/f" "nmakefile" "x86-32" } ] [
+{ { "nmake" "/f" "nmakefile" "x86-32" } } [
     H{
         { target-os windows }
         { target-cpu x86.32 }
     } [ mason-child-make-cmd ] with-variables
 ] unit-test
 
-[ { "make" "macosx-x86-32" } ] [
+{ { "make" "macosx-x86-32" } } [
     H{
         { target-os macosx }
         { target-cpu x86.32 }
@@ -27,18 +27,18 @@ IN: mason.child.tests
 
 [ [ "Hi" print ] [ drop 3 ] [ 4 ] recover-else ] must-infer
 
-[ 4 ] [ [ "Hi" print ] [ drop 3 ] [ 4 ] recover-else ] unit-test
+{ 4 } [ [ "Hi" print ] [ drop 3 ] [ 4 ] recover-else ] unit-test
 
-[ 3 ] [ [ "Hi" throw ] [ drop 3 ] [ 4 ] recover-else ] unit-test
+{ 3 } [ [ "Hi" throw ] [ drop 3 ] [ 4 ] recover-else ] unit-test
 
-[ "A" ] [
+{ "A" } [
     {
         { [ 3 throw ] [ { "X" "Y" "Z" "A" } nth ] }
         [ "B" ]
     } recover-cond
 ] unit-test
 
-[ "B" ] [
+{ "B" } [
     {
         { [ ] [ ] }
         [ "B" ]
index 1d1ea3d89162a865413ecfabfd110c1e51b6500a..e1b1aee1c4505931332d32069f01cdbcbca24099 100644 (file)
@@ -3,9 +3,9 @@ USING: prettyprint mason.common mason.config
 namespaces calendar tools.test io.files
 io.files.temp io.encodings.utf8 sequences ;
 
-[ "00:01:02" ] [ 62,000,000,000 nanos>time ] unit-test
+{ "00:01:02" } [ 62,000,000,000 nanos>time ] unit-test
 
-[ t ] [
+{ t } [
     [
         "/home/bobby/builds" builds-dir set
         T{ timestamp
@@ -20,10 +20,10 @@ io.files.temp io.encodings.utf8 sequences ;
     "/home/bobby/builds/2008-09-11-12-23" head?
 ] unit-test
 
-[ ] [ "empty-test" temp-file utf8 [ ] with-file-writer ] unit-test
+{ } [ "empty-test" temp-file utf8 [ ] with-file-writer ] unit-test
 
 [ "empty-test" temp-file eval-file ] must-fail
 
-[ ] [ "eval-file-test" temp-file utf8 [ { 1 2 3 } . ] with-file-writer ] unit-test
+{ } [ "eval-file-test" temp-file utf8 [ { 1 2 3 } . ] with-file-writer ] unit-test
 
-[ { 1 2 3 } ] [ "eval-file-test" temp-file eval-file ] unit-test
+{ { 1 2 3 } } [ "eval-file-test" temp-file eval-file ] unit-test
index 5e4f93de5297b3ff5b57136e7c524793430a66d2..26e5afd511f7feeafc28e6104abab71c261f9516 100644 (file)
@@ -2,7 +2,7 @@ IN: mason.email.tests
 USING: mason.email mason.common mason.config namespaces
 tools.test system ;
 
-[ "mason on linux-x86-64: 12345 -- error" ] [
+{ "mason on linux-x86-64: 12345 -- error" } [
     [
         linux target-os set
         x86.64 target-cpu set
index aedbd7135eaf4c6c7a87eb19e258fe56ab930a64..dc76bdad4e6644900a996fc2b87308773fbfbee9 100644 (file)
@@ -2,7 +2,7 @@ USING: mason.config mason.platform namespaces tools.test
 strings system ;
 IN: mason.platform.tests
 
-[ t ] [ platform string? ] unit-test
+{ t } [ platform string? ] unit-test
 
 [
     linux target-os set
index 10c177e1b80c7998399b09eecf40cb28d804a417..fb3df6c50d7676cbc4acaccba1bfb6e9b4e9bfb5 100644 (file)
@@ -2,7 +2,7 @@ IN: mason.release.branch.tests
 USING: mason.release.branch mason.config tools.test namespaces
 system ;
 
-[ { "git" "push" "-f" "joe@blah.com:/my/git" "master:clean-linux-x86-32" } ] [
+{ { "git" "push" "-f" "joe@blah.com:/my/git" "master:clean-linux-x86-32" } } [
     [
         "joe" branch-username set
         "blah.com" branch-host set
@@ -13,7 +13,7 @@ system ;
     ] with-scope
 ] unit-test
 
-[ { "scp" "boot.windows-x86.64.image" "joe@blah.com:/stuff/clean/windows-x86-64" } ] [
+{ { "scp" "boot.windows-x86.64.image" "joe@blah.com:/stuff/clean/windows-x86-64" } } [
     [
         "scp" scp-command set
         "joe" image-username set
index cdbd5eef39c283385a769c1c4b46fd851f5f605c..52008323f6638677c68333df29f914a956a73d97 100644 (file)
@@ -3,53 +3,53 @@ USING: arrays kernel literals tools.test math math.affine-transforms
 math.constants math.functions ;
 IN: math.affine-transforms.tests
 
-[ { 7.25 4.25 } ] [
+{ { 7.25 4.25 } } [
     { 0.75 0.75 } { 0.75 -0.75 } { 5.0 5.0 } <affine-transform>
     { 1.0 2.0 } a.v
 ] unit-test
 
-[ -1.125 ] [
+{ -1.125 } [
     { 0.75 0.75 } { 0.75 -0.75 } { 5.0 5.0 } <affine-transform>
     |a|
 ] unit-test
 
-{ 1.0 3.0 } { 2.0 4.0 } { 5.0 6.0 } <affine-transform> 1array [
+{ 1.0 3.0 } { 2.0 4.0 } { 5.0 6.0 } <affine-transform> }      [
     { 1.0 2.0 } { 3.0 4.0 } { 5.0 6.0 } <affine-transform>
     transpose-axes
 ] unit-test
 
-{ 1.0 -1.0 } { 1.0 1.0 } { 0.0 0.0 } <affine-transform> 1array [
+{ 1.0 -1.0 } { 1.0 1.0 } { 0.0 0.0 } <affine-transform> }      [
     { 0.5 0.5 } { -0.5 0.5 } { 5.0 5.0 } <affine-transform>
     inverse-axes
 ] unit-test
 
-{ 1.0 -1.0 } { 1.0 1.0 } { -10.0 0.0 } <affine-transform> 1array [
+{ 1.0 -1.0 } { 1.0 1.0 } { -10.0 0.0 } <affine-transform> }      [
     { 0.5 0.5 } { -0.5 0.5 } { 5.0 5.0 } <affine-transform>
     inverse-transform
 ] unit-test
 
-{ 1.0 0.0 } { 0.0 1.0 } { 0.0 0.0 } <affine-transform> 1array [
+{ 1.0 0.0 } { 0.0 1.0 } { 0.0 0.0 } <affine-transform> }      [
     { 0.5 0.5 } { -0.5 0.5 } { 5.0 5.0 } <affine-transform>
     dup inverse-transform a.
 ] unit-test
 
-{ 2.0 -1.0 } { -1.0 -2.0 } { 5.0 -6.0 } <affine-transform> 1array [
+{ 2.0 -1.0 } { -1.0 -2.0 } { 5.0 -6.0 } <affine-transform> }      [
     { 1.0 0.0 } { 0.0 -1.0 } { 0.0 0.0 } <affine-transform>
     { 2.0 1.0 } { -1.0 2.0 } { 5.0 6.0 } <affine-transform>
     a.
 ] unit-test
 
-[ t ] [
+{ t } [
     { 0.01  0.02  } { 0.03  0.04  } { 0.05  0.06  } <affine-transform>
     { 0.011 0.021 } { 0.031 0.041 } { 0.051 0.061 } <affine-transform> 0.01 a~
 ] unit-test
 
-{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> 1array [
+{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> }      [
     { 5.0 10.0 } <translation>
 ] unit-test
 
 { $[ pi  0.25 * cos ] $[ pi 0.25 * sin ] }
 { $[ pi -0.25 * sin ] $[ pi 0.25 * cos ] }
-{ 0.0 0.0 } <affine-transform> 1array [
+{ 0.0 0.0 } <affine-transform> }      [
     pi 0.25 * <rotation>
 ] unit-test
index b02c3a53ba50da96b820e5954de87519b852716e..8d732b8cdb81be5152e1ae508b0a349ae725516c 100644 (file)
@@ -4,30 +4,30 @@ IN: math.analysis.tests
 
 CONSTANT: eps .00000001
 
-[ t ] [ -9000000000000000000000000000000000000000000 gamma 1/0. = ] unit-test
-[ t ] [ -1.5 gamma 2.363271801207344 eps ~ ] unit-test
-[ t ] [ -1 gamma 1/0. = ] unit-test
-[ t ] [ -0.5 gamma -3.544907701811 eps ~ ] unit-test
-[ t ] [ 0 gamma 1/0. = ] unit-test
-[ t ] [ .5 gamma 1.772453850905479 eps ~ ] unit-test
-[ t ] [ 1 gamma 1 eps ~ ] unit-test
-[ t ] [ 2 gamma 1 eps ~ ] unit-test
-[ t ] [ 3 gamma 2 eps ~ ] unit-test
-[ t ] [ 11 gamma 3628800.000015679 eps ~ ] unit-test
-[ t ] [ 90000000000000000000000000000000000000000000 gamma 1/0. = ] unit-test
+{ t } [ -9000000000000000000000000000000000000000000 gamma 1/0. = ] unit-test
+{ t } [ -1.5 gamma 2.363271801207344 eps ~ ] unit-test
+{ t } [ -1 gamma 1/0. = ] unit-test
+{ t } [ -0.5 gamma -3.544907701811 eps ~ ] unit-test
+{ t } [ 0 gamma 1/0. = ] unit-test
+{ t } [ .5 gamma 1.772453850905479 eps ~ ] unit-test
+{ t } [ 1 gamma 1 eps ~ ] unit-test
+{ t } [ 2 gamma 1 eps ~ ] unit-test
+{ t } [ 3 gamma 2 eps ~ ] unit-test
+{ t } [ 11 gamma 3628800.000015679 eps ~ ] unit-test
+{ t } [ 90000000000000000000000000000000000000000000 gamma 1/0. = ] unit-test
 ! some fun identities
-[ t ] [ 2/3 gamma 2 pi * 3 sqrt 1/3 gamma * / eps ~ ] unit-test
-[ t ] [ 3/4 gamma 2 sqrt pi * 1/4 gamma / eps ~ ] unit-test
-[ t ] [ 4/5 gamma 2 5 sqrt / 2 + sqrt pi * 1/5 gamma / eps ~ ] unit-test
-[ t ] [ 3/5 gamma 2 2 5 sqrt / - sqrt pi * 2/5 gamma / eps ~ ] unit-test
-[ t ] [ -90000000000000000000000000000000000000000000 gammaln 1/0. = ] unit-test
-[ t ] [ -1.5 gammaln 1/0. = ] unit-test
-[ t ] [ -1 gammaln 1/0. = ] unit-test
-[ t ] [ -0.5 gammaln 1/0. = ] unit-test
+{ t } [ 2/3 gamma 2 pi * 3 sqrt 1/3 gamma * / eps ~ ] unit-test
+{ t } [ 3/4 gamma 2 sqrt pi * 1/4 gamma / eps ~ ] unit-test
+{ t } [ 4/5 gamma 2 5 sqrt / 2 + sqrt pi * 1/5 gamma / eps ~ ] unit-test
+{ t } [ 3/5 gamma 2 2 5 sqrt / - sqrt pi * 2/5 gamma / eps ~ ] unit-test
+{ t } [ -90000000000000000000000000000000000000000000 gammaln 1/0. = ] unit-test
+{ t } [ -1.5 gammaln 1/0. = ] unit-test
+{ t } [ -1 gammaln 1/0. = ] unit-test
+{ t } [ -0.5 gammaln 1/0. = ] unit-test
 ! [ t ] [ 0 gammaln 1/0. = ] unit-test
-[ t ] [ .5 gammaln 0.572364942924679 eps ~ ] unit-test
-[ t ] [ 1 gammaln 0 eps ~ ] unit-test
-[ t ] [ 2 gammaln 1.110223024625157e-16 eps ~ ] unit-test
-[ t ] [ 3 gammaln 0.6931471805599456 eps ~ ] unit-test
-[ t ] [ 11 gammaln 15.10441257307984 eps ~ ] unit-test
-[ t ] [ 9000000000000000000000000000000000000000000 gammaln 8.811521863477754e44 eps ~ ] unit-test
+{ t } [ .5 gammaln 0.572364942924679 eps ~ ] unit-test
+{ t } [ 1 gammaln 0 eps ~ ] unit-test
+{ t } [ 2 gammaln 1.110223024625157e-16 eps ~ ] unit-test
+{ t } [ 3 gammaln 0.6931471805599456 eps ~ ] unit-test
+{ t } [ 11 gammaln 15.10441257307984 eps ~ ] unit-test
+{ t } [ 9000000000000000000000000000000000000000000 gammaln 8.811521863477754e44 eps ~ ] unit-test
index a8d387bc30a7f6003483d8445996d9ef30c692eb..23ad5b73b3cb19395402e832f3f964c46b5ec8a9 100644 (file)
@@ -6,14 +6,14 @@ math.floating-point sequences tools.test ;
 
 IN: math.approx.tests
 
-[ { 3 3 13/4 16/5 19/6 22/7 } ]
+{ { 3 3 13/4 16/5 19/6 22/7 } }
 [
     pi double>ratio
     { 1/2 1/4 1/8 1/16 1/32 1/64 }
     [ approximate ] with map
 ] unit-test
 
-[ { -3 -3 -13/4 -16/5 -19/6 -22/7 } ]
+{ { -3 -3 -13/4 -16/5 -19/6 -22/7 } }
 [
     pi double>ratio neg
     { 1/2 1/4 1/8 1/16 1/32 1/64 }
index fa3a9bd328ba21ae212ef8559c8404c68888fb01..5a7345d68237b246e5ee67da688ac37818ad1380 100644 (file)
@@ -4,18 +4,18 @@ IN: math.blas.matrices.tests
 
 ! clone
 
-[ smatrix{
+{ smatrix{
     { 1.0 2.0 3.0 }
     { 4.0 5.0 6.0 }
     { 7.0 8.0 9.0 }
-} ] [
+} } [
     smatrix{
         { 1.0 2.0 3.0 }
         { 4.0 5.0 6.0 }
         { 7.0 8.0 9.0 }
     } clone
 ] unit-test
-[ f ] [
+{ f } [
     smatrix{
         { 1.0 2.0 3.0 }
         { 4.0 5.0 6.0 }
@@ -23,18 +23,18 @@ IN: math.blas.matrices.tests
     } dup clone eq?
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 1.0 2.0 3.0 }
     { 4.0 5.0 6.0 }
     { 7.0 8.0 9.0 }
-} ] [
+} } [
     dmatrix{
         { 1.0 2.0 3.0 }
         { 4.0 5.0 6.0 }
         { 7.0 8.0 9.0 }
     } clone
 ] unit-test
-[ f ] [
+{ f } [
     dmatrix{
         { 1.0 2.0 3.0 }
         { 4.0 5.0 6.0 }
@@ -42,18 +42,18 @@ IN: math.blas.matrices.tests
     } dup clone eq?
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { C{ 1.0 1.0 } 2.0          3.0          }
     { 4.0          C{ 5.0 2.0 } 6.0          }
     { 7.0          8.0          C{ 9.0 3.0 } }
-} ] [
+} } [
     cmatrix{
         { C{ 1.0 1.0 } 2.0          3.0          }
         { 4.0          C{ 5.0 2.0 } 6.0          }
         { 7.0          8.0          C{ 9.0 3.0 } }
     } clone
 ] unit-test
-[ f ] [
+{ f } [
     cmatrix{
         { C{ 1.0 1.0 } 2.0          3.0          }
         { 4.0          C{ 5.0 2.0 } 6.0          }
@@ -61,18 +61,18 @@ IN: math.blas.matrices.tests
     } dup clone eq?
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { C{ 1.0 1.0 } 2.0          3.0          }
     { 4.0          C{ 5.0 2.0 } 6.0          }
     { 7.0          8.0          C{ 9.0 3.0 } }
-} ] [
+} } [
     zmatrix{
         { C{ 1.0 1.0 } 2.0          3.0          }
         { 4.0          C{ 5.0 2.0 } 6.0          }
         { 7.0          8.0          C{ 9.0 3.0 } }
     } clone
 ] unit-test
-[ f ] [
+{ f } [
     zmatrix{
         { C{ 1.0 1.0 } 2.0          3.0          }
         { 4.0          C{ 5.0 2.0 } 6.0          }
@@ -82,7 +82,7 @@ IN: math.blas.matrices.tests
 
 ! M.V
 
-[ svector{ 3.0 1.0 6.0 } ] [
+{ svector{ 3.0 1.0 6.0 } } [
     smatrix{
         {  0.0 1.0 0.0 1.0 }
         { -1.0 0.0 0.0 2.0 }
@@ -91,7 +91,7 @@ IN: math.blas.matrices.tests
     svector{ 1.0 2.0 3.0 1.0 }
     M.V
 ] unit-test
-[ svector{ -2.0 1.0 3.0 14.0 } ] [
+{ svector{ -2.0 1.0 3.0 14.0 } } [
     smatrix{
         {  0.0 1.0 0.0 1.0 }
         { -1.0 0.0 0.0 2.0 }
@@ -101,7 +101,7 @@ IN: math.blas.matrices.tests
     M.V
 ] unit-test
 
-[ dvector{ 3.0 1.0 6.0 } ] [
+{ dvector{ 3.0 1.0 6.0 } } [
     dmatrix{
         {  0.0 1.0 0.0 1.0 }
         { -1.0 0.0 0.0 2.0 }
@@ -110,7 +110,7 @@ IN: math.blas.matrices.tests
     dvector{ 1.0 2.0 3.0 1.0 }
     M.V
 ] unit-test
-[ dvector{ -2.0 1.0 3.0 14.0 } ] [
+{ dvector{ -2.0 1.0 3.0 14.0 } } [
     dmatrix{
         {  0.0 1.0 0.0 1.0 }
         { -1.0 0.0 0.0 2.0 }
@@ -120,7 +120,7 @@ IN: math.blas.matrices.tests
     M.V
 ] unit-test
 
-[ cvector{ 3.0 C{ 1.0 2.0 } 6.0 } ] [
+{ cvector{ 3.0 C{ 1.0 2.0 } 6.0 } } [
     cmatrix{
         {  0.0 1.0          0.0 1.0 }
         { -1.0 C{ 0.0 1.0 } 0.0 2.0 }
@@ -129,7 +129,7 @@ IN: math.blas.matrices.tests
     cvector{ 1.0 2.0 3.0 1.0 }
     M.V
 ] unit-test
-[ cvector{ -2.0 C{ 1.0 2.0 } 3.0 14.0 } ] [
+{ cvector{ -2.0 C{ 1.0 2.0 } 3.0 14.0 } } [
     cmatrix{
         {  0.0 1.0          0.0 1.0 }
         { -1.0 C{ 0.0 1.0 } 0.0 2.0 }
@@ -139,7 +139,7 @@ IN: math.blas.matrices.tests
     M.V
 ] unit-test
 
-[ zvector{ 3.0 C{ 1.0 2.0 } 6.0 } ] [
+{ zvector{ 3.0 C{ 1.0 2.0 } 6.0 } } [
     zmatrix{
         {  0.0 1.0          0.0 1.0 }
         { -1.0 C{ 0.0 1.0 } 0.0 2.0 }
@@ -148,7 +148,7 @@ IN: math.blas.matrices.tests
     zvector{ 1.0 2.0 3.0 1.0 }
     M.V
 ] unit-test
-[ zvector{ -2.0 C{ 1.0 2.0 } 3.0 14.0 } ] [
+{ zvector{ -2.0 C{ 1.0 2.0 } 3.0 14.0 } } [
     zmatrix{
         {  0.0 1.0          0.0 1.0 }
         { -1.0 C{ 0.0 1.0 } 0.0 2.0 }
@@ -160,46 +160,46 @@ IN: math.blas.matrices.tests
 
 ! V(*)
 
-[ smatrix{
+{ smatrix{
     { 1.0 2.0 3.0  4.0 }
     { 2.0 4.0 6.0  8.0 }
     { 3.0 6.0 9.0 12.0 }
-} ] [
+} } [
     svector{ 1.0 2.0 3.0 } svector{ 1.0 2.0 3.0 4.0 } V(*)
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 1.0 2.0 3.0  4.0 }
     { 2.0 4.0 6.0  8.0 }
     { 3.0 6.0 9.0 12.0 }
-} ] [
+} } [
     dvector{ 1.0 2.0 3.0 } dvector{ 1.0 2.0 3.0 4.0 } V(*)
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { 1.0          2.0          C{ 3.0 -3.0 } 4.0            }
     { 2.0          4.0          C{ 6.0 -6.0 } 8.0            }
     { C{ 3.0 3.0 } C{ 6.0 6.0 } 18.0          C{ 12.0 12.0 } }
-} ] [
+} } [
     cvector{ 1.0 2.0 C{ 3.0 3.0 } } cvector{ 1.0 2.0 C{ 3.0 -3.0 } 4.0 } V(*)
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { 1.0          2.0          C{ 3.0 -3.0 } 4.0            }
     { 2.0          4.0          C{ 6.0 -6.0 } 8.0            }
     { C{ 3.0 3.0 } C{ 6.0 6.0 } 18.0          C{ 12.0 12.0 } }
-} ] [
+} } [
     zvector{ 1.0 2.0 C{ 3.0 3.0 } } zvector{ 1.0 2.0 C{ 3.0 -3.0 } 4.0 } V(*)
 ] unit-test
 
 ! M.
 
-[ smatrix{
+{ smatrix{
     { 1.0 0.0  0.0 4.0  0.0 }
     { 0.0 0.0 -3.0 0.0  0.0 }
     { 0.0 4.0  0.0 0.0 10.0 }
     { 0.0 0.0  0.0 0.0  0.0 }
-} ] [
+} } [
     smatrix{
         { 1.0 0.0  0.0 }
         { 0.0 0.0 -1.0 }
@@ -212,13 +212,13 @@ IN: math.blas.matrices.tests
     } M.
 ] unit-test
 
-[ smatrix{
+{ smatrix{
     { 1.0  0.0  0.0 0.0 }
     { 0.0  0.0  4.0 0.0 }
     { 0.0 -3.0  0.0 0.0 }
     { 4.0  0.0  0.0 0.0 }
     { 0.0  0.0 10.0 0.0 }
-} ] [
+} } [
     smatrix{
         { 1.0 0.0 0.0 4.0 0.0 }
         { 0.0 2.0 0.0 0.0 5.0 }
@@ -231,12 +231,12 @@ IN: math.blas.matrices.tests
     } Mtranspose M.
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 1.0 0.0  0.0 4.0  0.0 }
     { 0.0 0.0 -3.0 0.0  0.0 }
     { 0.0 4.0  0.0 0.0 10.0 }
     { 0.0 0.0  0.0 0.0  0.0 }
-} ] [
+} } [
     dmatrix{
         { 1.0 0.0  0.0 }
         { 0.0 0.0 -1.0 }
@@ -249,13 +249,13 @@ IN: math.blas.matrices.tests
     } M.
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 1.0  0.0  0.0 0.0 }
     { 0.0  0.0  4.0 0.0 }
     { 0.0 -3.0  0.0 0.0 }
     { 4.0  0.0  0.0 0.0 }
     { 0.0  0.0 10.0 0.0 }
-} ] [
+} } [
     dmatrix{
         { 1.0 0.0 0.0 4.0 0.0 }
         { 0.0 2.0 0.0 0.0 5.0 }
@@ -268,12 +268,12 @@ IN: math.blas.matrices.tests
     } Mtranspose M.
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { 1.0 0.0            0.0 4.0  0.0 }
     { 0.0 0.0           -3.0 0.0  0.0 }
     { 0.0 C{ 4.0 -4.0 }  0.0 0.0 10.0 }
     { 0.0 0.0            0.0 0.0  0.0 }
-} ] [
+} } [
     cmatrix{
         { 1.0 0.0  0.0 }
         { 0.0 0.0 -1.0 }
@@ -286,13 +286,13 @@ IN: math.blas.matrices.tests
     } M.
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { 1.0  0.0  0.0          0.0 }
     { 0.0  0.0 C{ 4.0 -4.0 } 0.0 }
     { 0.0 -3.0  0.0          0.0 }
     { 4.0  0.0  0.0          0.0 }
     { 0.0  0.0 10.0          0.0 }
-} ] [
+} } [
     cmatrix{
         { 1.0 0.0           0.0 4.0 0.0 }
         { 0.0 C{ 2.0 -2.0 } 0.0 0.0 5.0 }
@@ -305,12 +305,12 @@ IN: math.blas.matrices.tests
     } Mtranspose M.
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { 1.0 0.0            0.0 4.0  0.0 }
     { 0.0 0.0           -3.0 0.0  0.0 }
     { 0.0 C{ 4.0 -4.0 }  0.0 0.0 10.0 }
     { 0.0 0.0            0.0 0.0  0.0 }
-} ] [
+} } [
     zmatrix{
         { 1.0 0.0  0.0 }
         { 0.0 0.0 -1.0 }
@@ -323,13 +323,13 @@ IN: math.blas.matrices.tests
     } M.
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { 1.0  0.0  0.0          0.0 }
     { 0.0  0.0 C{ 4.0 -4.0 } 0.0 }
     { 0.0 -3.0  0.0          0.0 }
     { 4.0  0.0  0.0          0.0 }
     { 0.0  0.0 10.0          0.0 }
-} ] [
+} } [
     zmatrix{
         { 1.0 0.0           0.0 4.0 0.0 }
         { 0.0 C{ 2.0 -2.0 } 0.0 0.0 5.0 }
@@ -344,40 +344,40 @@ IN: math.blas.matrices.tests
 
 ! n*M
 
-[ smatrix{
+{ smatrix{
     { 2.0 0.0 }
     { 0.0 2.0 }
-} ] [
+} } [
     2.0 smatrix{
         { 1.0 0.0 }
         { 0.0 1.0 }
     } n*M
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 2.0 0.0 }
     { 0.0 2.0 }
-} ] [
+} } [
     2.0 dmatrix{
         { 1.0 0.0 }
         { 0.0 1.0 }
     } n*M
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { C{ 2.0 1.0 } 0.0           }
     { 0.0          C{ -1.0 2.0 } }
-} ] [
+} } [
     C{ 2.0 1.0 } cmatrix{
         { 1.0 0.0          }
         { 0.0 C{ 0.0 1.0 } }
     } n*M
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { C{ 2.0 1.0 } 0.0           }
     { 0.0          C{ -1.0 2.0 } }
-} ] [
+} } [
     C{ 2.0 1.0 } zmatrix{
         { 1.0 0.0          }
         { 0.0 C{ 0.0 1.0 } }
@@ -386,56 +386,56 @@ IN: math.blas.matrices.tests
 
 ! Mrows, Mcols
 
-[ svector{ 3.0 3.0 3.0 } ] [
+{ svector{ 3.0 3.0 3.0 } } [
     2 smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mcols nth
 ] unit-test
-[ svector{ 3.0 2.0 3.0 4.0 } ] [
+{ svector{ 3.0 2.0 3.0 4.0 } } [
     2 smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mrows nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mrows length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mcols length
 ] unit-test
-[ svector{ 3.0 3.0 3.0 } ] [
+{ svector{ 3.0 3.0 3.0 } } [
     2 smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mrows nth
 ] unit-test
-[ svector{ 3.0 2.0 3.0 4.0 } ] [
+{ svector{ 3.0 2.0 3.0 4.0 } } [
     2 smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mcols nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mcols length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     smatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
@@ -443,56 +443,56 @@ IN: math.blas.matrices.tests
     } Mtranspose Mrows length
 ] unit-test
 
-[ dvector{ 3.0 3.0 3.0 } ] [
+{ dvector{ 3.0 3.0 3.0 } } [
     2 dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mcols nth
 ] unit-test
-[ dvector{ 3.0 2.0 3.0 4.0 } ] [
+{ dvector{ 3.0 2.0 3.0 4.0 } } [
     2 dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mrows nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mrows length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mcols length
 ] unit-test
-[ dvector{ 3.0 3.0 3.0 } ] [
+{ dvector{ 3.0 3.0 3.0 } } [
     2 dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mrows nth
 ] unit-test
-[ dvector{ 3.0 2.0 3.0 4.0 } ] [
+{ dvector{ 3.0 2.0 3.0 4.0 } } [
     2 dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mcols nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
         { 3.0 2.0 3.0 4.0 }
     } Mtranspose Mcols length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     dmatrix{
         { 1.0 2.0 3.0 4.0 }
         { 2.0 2.0 3.0 4.0 }
@@ -500,56 +500,56 @@ IN: math.blas.matrices.tests
     } Mtranspose Mrows length
 ] unit-test
 
-[ cvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } ] [
+{ cvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } } [
     2 cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mcols nth
 ] unit-test
-[ cvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } ] [
+{ cvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } } [
     2 cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mrows nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mrows length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mcols length
 ] unit-test
-[ cvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } ] [
+{ cvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } } [
     2 cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mrows nth
 ] unit-test
-[ cvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } ] [
+{ cvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } } [
     2 cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mcols nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mcols length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     cmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
@@ -557,56 +557,56 @@ IN: math.blas.matrices.tests
     } Mtranspose Mrows length
 ] unit-test
 
-[ zvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } ] [
+{ zvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } } [
     2 zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mcols nth
 ] unit-test
-[ zvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } ] [
+{ zvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } } [
     2 zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mrows nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mrows length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mcols length
 ] unit-test
-[ zvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } ] [
+{ zvector{ C{ 3.0 1.0 } C{ 3.0 2.0 } C{ 3.0 3.0 } } } [
     2 zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mrows nth
 ] unit-test
-[ zvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } ] [
+{ zvector{ C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } } } [
     2 zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mcols nth
 ] unit-test
-[ 3 ] [
+{ 3 } [
     zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
         { C{ 1.0 3.0 } C{ 2.0 3.0 } C{ 3.0 3.0 } C{ 4.0 3.0 } }
     } Mtranspose Mcols length
 ] unit-test
-[ 4 ] [
+{ 4 } [
     zmatrix{
         { C{ 1.0 1.0 } C{ 2.0 1.0 } C{ 3.0 1.0 } C{ 4.0 1.0 } }
         { C{ 1.0 2.0 } C{ 2.0 2.0 } C{ 3.0 2.0 } C{ 4.0 2.0 } }
@@ -616,10 +616,10 @@ IN: math.blas.matrices.tests
 
 ! Msub
 
-[ smatrix{
+{ smatrix{
     { 3.0 2.0 1.0 }
     { 0.0 1.0 0.0 }
-} ] [
+} } [
     smatrix{
         { 0.0 1.0 2.0 3.0 2.0 }
         { 1.0 0.0 3.0 2.0 1.0 }
@@ -627,11 +627,11 @@ IN: math.blas.matrices.tests
     } 1 2 2 3 Msub
 ] unit-test
 
-[ smatrix{
+{ smatrix{
     { 3.0 0.0 }
     { 2.0 1.0 }
     { 1.0 0.0 }
-} ] [
+} } [
     smatrix{
         { 0.0 1.0 2.0 3.0 2.0 }
         { 1.0 0.0 3.0 2.0 1.0 }
@@ -639,10 +639,10 @@ IN: math.blas.matrices.tests
     } Mtranspose 2 1 3 2 Msub
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 3.0 2.0 1.0 }
     { 0.0 1.0 0.0 }
-} ] [
+} } [
     dmatrix{
         { 0.0 1.0 2.0 3.0 2.0 }
         { 1.0 0.0 3.0 2.0 1.0 }
@@ -650,11 +650,11 @@ IN: math.blas.matrices.tests
     } 1 2 2 3 Msub
 ] unit-test
 
-[ dmatrix{
+{ dmatrix{
     { 3.0 0.0 }
     { 2.0 1.0 }
     { 1.0 0.0 }
-} ] [
+} } [
     dmatrix{
         { 0.0 1.0 2.0 3.0 2.0 }
         { 1.0 0.0 3.0 2.0 1.0 }
@@ -662,10 +662,10 @@ IN: math.blas.matrices.tests
     } Mtranspose 2 1 3 2 Msub
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { C{ 3.0 3.0 } 2.0 1.0 }
     { 0.0          1.0 0.0 }
-} ] [
+} } [
     cmatrix{
         { 0.0 1.0 2.0          3.0 2.0 }
         { 1.0 0.0 C{ 3.0 3.0 } 2.0 1.0 }
@@ -673,11 +673,11 @@ IN: math.blas.matrices.tests
     } 1 2 2 3 Msub
 ] unit-test
 
-[ cmatrix{
+{ cmatrix{
     { C{ 3.0 3.0 } 0.0 }
     { 2.0          1.0 }
     { 1.0          0.0 }
-} ] [
+} } [
     cmatrix{
         { 0.0 1.0 2.0          3.0 2.0 }
         { 1.0 0.0 C{ 3.0 3.0 } 2.0 1.0 }
@@ -685,10 +685,10 @@ IN: math.blas.matrices.tests
     } Mtranspose 2 1 3 2 Msub
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { C{ 3.0 3.0 } 2.0 1.0 }
     { 0.0          1.0 0.0 }
-} ] [
+} } [
     zmatrix{
         { 0.0 1.0 2.0          3.0 2.0 }
         { 1.0 0.0 C{ 3.0 3.0 } 2.0 1.0 }
@@ -696,11 +696,11 @@ IN: math.blas.matrices.tests
     } 1 2 2 3 Msub
 ] unit-test
 
-[ zmatrix{
+{ zmatrix{
     { C{ 3.0 3.0 } 0.0 }
     { 2.0          1.0 }
     { 1.0          0.0 }
-} ] [
+} } [
     zmatrix{
         { 0.0 1.0 2.0          3.0 2.0 }
         { 1.0 0.0 C{ 3.0 3.0 } 2.0 1.0 }
index ef2f7ad6f98515be38672a8b6a2770ca01710382..e566a46f5d5ab4848cb6e2316b57c9e954ee62b9 100644 (file)
@@ -3,37 +3,37 @@ IN: math.blas.vectors.tests
 
 ! clone
 
-[ svector{ 1.0 2.0 3.0 } ] [ svector{ 1.0 2.0 3.0 } clone ] unit-test
-[ f ] [ svector{ 1.0 2.0 3.0 } dup clone eq? ] unit-test
-[ dvector{ 1.0 2.0 3.0 } ] [ dvector{ 1.0 2.0 3.0 } clone ] unit-test
-[ f ] [ dvector{ 1.0 2.0 3.0 } dup clone eq? ] unit-test
-[ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } ] [ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } clone ] unit-test
-[ f ] [ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } dup clone eq? ] unit-test
-[ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } ] [ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } clone ] unit-test
-[ f ] [ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } dup clone eq? ] unit-test
+{ svector{ 1.0 2.0 3.0 } } [ svector{ 1.0 2.0 3.0 } clone ] unit-test
+{ f } [ svector{ 1.0 2.0 3.0 } dup clone eq? ] unit-test
+{ dvector{ 1.0 2.0 3.0 } } [ dvector{ 1.0 2.0 3.0 } clone ] unit-test
+{ f } [ dvector{ 1.0 2.0 3.0 } dup clone eq? ] unit-test
+{ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } } [ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } clone ] unit-test
+{ f } [ cvector{ 1.0 C{ 2.0 3.0 } 4.0 } dup clone eq? ] unit-test
+{ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } } [ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } clone ] unit-test
+{ f } [ zvector{ 1.0 C{ 2.0 3.0 } 4.0 } dup clone eq? ] unit-test
 
 ! nth
 
-[ 1.0 ] [ 2 svector{ 3.0 2.0 1.0 } nth ] unit-test
-[ 1.0 ] [ 2 dvector{ 3.0 2.0 1.0 } nth ] unit-test
+{ 1.0 } [ 2 svector{ 3.0 2.0 1.0 } nth ] unit-test
+{ 1.0 } [ 2 dvector{ 3.0 2.0 1.0 } nth ] unit-test
 
-[ C{ 1.0 2.0 } ]
+{ C{ 1.0 2.0 } }
 [ 2 cvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 1.0 2.0 } } nth ] unit-test
 
-[ C{ 1.0 2.0 } ]
+{ C{ 1.0 2.0 } }
 [ 2 zvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 1.0 2.0 } } nth ] unit-test
 
 ! set-nth
 
-[ svector{ 3.0 2.0 0.0 } ] [ 0.0 2 svector{ 3.0 2.0 1.0 } [ set-nth ] keep ] unit-test
-[ dvector{ 3.0 2.0 0.0 } ] [ 0.0 2 dvector{ 3.0 2.0 1.0 } [ set-nth ] keep ] unit-test
+{ svector{ 3.0 2.0 0.0 } } [ 0.0 2 svector{ 3.0 2.0 1.0 } [ set-nth ] keep ] unit-test
+{ dvector{ 3.0 2.0 0.0 } } [ 0.0 2 dvector{ 3.0 2.0 1.0 } [ set-nth ] keep ] unit-test
 
-[ cvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 3.0 4.0 } } ] [
+{ cvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 3.0 4.0 } } } [
     C{ 3.0 4.0 } 2
     cvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 1.0 2.0 } }
     [ set-nth ] keep
 ] unit-test
-[ zvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 3.0 4.0 } } ] [
+{ zvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 3.0 4.0 } } } [
     C{ 3.0 4.0 } 2
     zvector{ C{ -3.0 -2.0 } C{ -1.0 0.0 } C{ 1.0 2.0 } }
     [ set-nth ] keep
@@ -41,140 +41,140 @@ IN: math.blas.vectors.tests
 
 ! V+
 
-[ svector{ 11.0 22.0 } ] [ svector{ 1.0 2.0 } svector{ 10.0 20.0 } V+ ] unit-test
-[ dvector{ 11.0 22.0 } ] [ dvector{ 1.0 2.0 } dvector{ 10.0 20.0 } V+ ] unit-test
+{ svector{ 11.0 22.0 } } [ svector{ 1.0 2.0 } svector{ 10.0 20.0 } V+ ] unit-test
+{ dvector{ 11.0 22.0 } } [ dvector{ 1.0 2.0 } dvector{ 10.0 20.0 } V+ ] unit-test
 
-[ cvector{ 11.0 C{ 22.0 33.0 } } ]
+{ cvector{ 11.0 C{ 22.0 33.0 } } }
 [ cvector{ 1.0 C{ 2.0 3.0 } } cvector{ 10.0 C{ 20.0 30.0 } } V+ ]
 unit-test
 
-[ zvector{ 11.0 C{ 22.0 33.0 } } ]
+{ zvector{ 11.0 C{ 22.0 33.0 } } }
 [ zvector{ 1.0 C{ 2.0 3.0 } } zvector{ 10.0 C{ 20.0 30.0 } } V+ ]
 unit-test
 
 ! V-
 
-[ svector{ 9.0 18.0 } ] [ svector{ 10.0 20.0 } svector{ 1.0 2.0 } V- ] unit-test
-[ dvector{ 9.0 18.0 } ] [ dvector{ 10.0 20.0 } dvector{ 1.0 2.0 } V- ] unit-test
+{ svector{ 9.0 18.0 } } [ svector{ 10.0 20.0 } svector{ 1.0 2.0 } V- ] unit-test
+{ dvector{ 9.0 18.0 } } [ dvector{ 10.0 20.0 } dvector{ 1.0 2.0 } V- ] unit-test
 
-[ cvector{ 9.0 C{ 18.0 27.0 } } ]
+{ cvector{ 9.0 C{ 18.0 27.0 } } }
 [ cvector{ 10.0 C{ 20.0 30.0 } } cvector{ 1.0 C{ 2.0 3.0 } } V- ]
 unit-test
 
-[ zvector{ 9.0 C{ 18.0 27.0 } } ]
+{ zvector{ 9.0 C{ 18.0 27.0 } } }
 [ zvector{ 10.0 C{ 20.0 30.0 } } zvector{ 1.0 C{ 2.0 3.0 } } V- ]
 unit-test
 
 ! Vneg
 
-[ svector{ 1.0 -2.0 } ] [ svector{ -1.0 2.0 } Vneg ] unit-test
-[ dvector{ 1.0 -2.0 } ] [ dvector{ -1.0 2.0 } Vneg ] unit-test
+{ svector{ 1.0 -2.0 } } [ svector{ -1.0 2.0 } Vneg ] unit-test
+{ dvector{ 1.0 -2.0 } } [ dvector{ -1.0 2.0 } Vneg ] unit-test
 
-[ cvector{ 1.0 C{ -2.0 3.0 } } ] [ cvector{ -1.0 C{ 2.0 -3.0 } } Vneg ] unit-test
-[ zvector{ 1.0 C{ -2.0 3.0 } } ] [ zvector{ -1.0 C{ 2.0 -3.0 } } Vneg ] unit-test
+{ cvector{ 1.0 C{ -2.0 3.0 } } } [ cvector{ -1.0 C{ 2.0 -3.0 } } Vneg ] unit-test
+{ zvector{ 1.0 C{ -2.0 3.0 } } } [ zvector{ -1.0 C{ 2.0 -3.0 } } Vneg ] unit-test
 
 ! n*V
 
-[ svector{ 100.0 200.0 } ] [ 10.0 svector{ 10.0 20.0 } n*V ] unit-test
-[ dvector{ 100.0 200.0 } ] [ 10.0 dvector{ 10.0 20.0 } n*V ] unit-test
+{ svector{ 100.0 200.0 } } [ 10.0 svector{ 10.0 20.0 } n*V ] unit-test
+{ dvector{ 100.0 200.0 } } [ 10.0 dvector{ 10.0 20.0 } n*V ] unit-test
 
-[ cvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } ]
+{ cvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } }
 [ C{ 10.0 2.0 } cvector{ 2.0 C{ 1.0 1.0 } } n*V ]
 unit-test
 
-[ zvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } ]
+{ zvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } }
 [ C{ 10.0 2.0 } zvector{ 2.0 C{ 1.0 1.0 } } n*V ]
 unit-test
 
 ! V*n
 
-[ svector{ 100.0 200.0 } ] [ svector{ 10.0 20.0 } 10.0 V*n ] unit-test
-[ dvector{ 100.0 200.0 } ] [ dvector{ 10.0 20.0 } 10.0 V*n ] unit-test
+{ svector{ 100.0 200.0 } } [ svector{ 10.0 20.0 } 10.0 V*n ] unit-test
+{ dvector{ 100.0 200.0 } } [ dvector{ 10.0 20.0 } 10.0 V*n ] unit-test
 
-[ cvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } ]
+{ cvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } }
 [ cvector{ 2.0 C{ 1.0 1.0 } } C{ 10.0 2.0 } V*n ]
 unit-test
 
-[ zvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } ]
+{ zvector{ C{ 20.0 4.0 } C{ 8.0 12.0 } } }
 [ zvector{ 2.0 C{ 1.0 1.0 } } C{ 10.0 2.0 } V*n ]
 unit-test
 
 ! V/n
 
-[ svector{ 1.0 2.0 } ] [ svector{ 4.0 8.0 } 4.0 V/n ] unit-test
-[ dvector{ 1.0 2.0 } ] [ dvector{ 4.0 8.0 } 4.0 V/n ] unit-test
+{ svector{ 1.0 2.0 } } [ svector{ 4.0 8.0 } 4.0 V/n ] unit-test
+{ dvector{ 1.0 2.0 } } [ dvector{ 4.0 8.0 } 4.0 V/n ] unit-test
 
-[ cvector{ C{ 0.0 -4.0 } 1.0 } ]
+{ cvector{ C{ 0.0 -4.0 } 1.0 } }
 [ cvector{ C{ 4.0 -4.0 } C{ 1.0 1.0 } } C{ 1.0 1.0 } V/n ]
 unit-test
 
-[ zvector{ C{ 0.0 -4.0 } 1.0 } ]
+{ zvector{ C{ 0.0 -4.0 } 1.0 } }
 [ zvector{ C{ 4.0 -4.0 } C{ 1.0 1.0 } } C{ 1.0 1.0 } V/n ]
 unit-test
 
 ! V.
 
-[ 7.0 ] [ svector{ 1.0 2.5 } svector{ 2.0 2.0 } V. ] unit-test
-[ 7.0 ] [ dvector{ 1.0 2.5 } dvector{ 2.0 2.0 } V. ] unit-test
-[ C{ 7.0 7.0 } ] [ cvector{ C{ 1.0 1.0 } 2.5 } cvector{ 2.0 C{ 2.0 2.0 } } V. ] unit-test
-[ C{ 7.0 7.0 } ] [ zvector{ C{ 1.0 1.0 } 2.5 } zvector{ 2.0 C{ 2.0 2.0 } } V. ] unit-test
+{ 7.0 } [ svector{ 1.0 2.5 } svector{ 2.0 2.0 } V. ] unit-test
+{ 7.0 } [ dvector{ 1.0 2.5 } dvector{ 2.0 2.0 } V. ] unit-test
+{ C{ 7.0 7.0 } } [ cvector{ C{ 1.0 1.0 } 2.5 } cvector{ 2.0 C{ 2.0 2.0 } } V. ] unit-test
+{ C{ 7.0 7.0 } } [ zvector{ C{ 1.0 1.0 } 2.5 } zvector{ 2.0 C{ 2.0 2.0 } } V. ] unit-test
 
 ! V.conj
 
-[ C{ 7.0 3.0 } ] [ cvector{ C{ 1.0 1.0 } 2.5 } cvector{ 2.0 C{ 2.0 2.0 } } V.conj ] unit-test
-[ C{ 7.0 3.0 } ] [ zvector{ C{ 1.0 1.0 } 2.5 } zvector{ 2.0 C{ 2.0 2.0 } } V.conj ] unit-test
+{ C{ 7.0 3.0 } } [ cvector{ C{ 1.0 1.0 } 2.5 } cvector{ 2.0 C{ 2.0 2.0 } } V.conj ] unit-test
+{ C{ 7.0 3.0 } } [ zvector{ C{ 1.0 1.0 } 2.5 } zvector{ 2.0 C{ 2.0 2.0 } } V.conj ] unit-test
 
 ! Vnorm
 
-[ t ] [ svector{ 3.0 4.0 } Vnorm 5.0 0.000001 ~ ] unit-test
-[ t ] [ dvector{ 3.0 4.0 } Vnorm 5.0 0.000001 ~ ] unit-test
+{ t } [ svector{ 3.0 4.0 } Vnorm 5.0 0.000001 ~ ] unit-test
+{ t } [ dvector{ 3.0 4.0 } Vnorm 5.0 0.000001 ~ ] unit-test
 
-[ t ] [ cvector{ C{ 3.0 4.0 } 12.0 } Vnorm 13.0 0.000001 ~ ] unit-test
-[ t ] [ zvector{ C{ 3.0 4.0 } 12.0 } Vnorm 13.0 0.000001 ~ ] unit-test
+{ t } [ cvector{ C{ 3.0 4.0 } 12.0 } Vnorm 13.0 0.000001 ~ ] unit-test
+{ t } [ zvector{ C{ 3.0 4.0 } 12.0 } Vnorm 13.0 0.000001 ~ ] unit-test
 
 ! Vasum
 
-[ 6.0 ] [ svector{ 1.0 2.0 -3.0 } Vasum ] unit-test
-[ 6.0 ] [ dvector{ 1.0 2.0 -3.0 } Vasum ] unit-test
+{ 6.0 } [ svector{ 1.0 2.0 -3.0 } Vasum ] unit-test
+{ 6.0 } [ dvector{ 1.0 2.0 -3.0 } Vasum ] unit-test
 
-[ 15.0 ] [ cvector{ 1.0 C{ -2.0 3.0 } C{ 4.0 -5.0 } } Vasum ] unit-test
-[ 15.0 ] [ zvector{ 1.0 C{ -2.0 3.0 } C{ 4.0 -5.0 } } Vasum ] unit-test
+{ 15.0 } [ cvector{ 1.0 C{ -2.0 3.0 } C{ 4.0 -5.0 } } Vasum ] unit-test
+{ 15.0 } [ zvector{ 1.0 C{ -2.0 3.0 } C{ 4.0 -5.0 } } Vasum ] unit-test
 
 ! Vswap
 
-[ svector{ 2.0 2.0 } svector{ 1.0 1.0 } ]
+{ svector{ 2.0 2.0 } svector{ 1.0 1.0 } }
 [ svector{ 1.0 1.0 } svector{ 2.0 2.0 } Vswap ]
 unit-test
 
-[ dvector{ 2.0 2.0 } dvector{ 1.0 1.0 } ]
+{ dvector{ 2.0 2.0 } dvector{ 1.0 1.0 } }
 [ dvector{ 1.0 1.0 } dvector{ 2.0 2.0 } Vswap ]
 unit-test
 
-[ cvector{ 2.0 C{ 2.0 2.0 } } cvector{ C{ 1.0 1.0 } 1.0 } ]
+{ cvector{ 2.0 C{ 2.0 2.0 } } cvector{ C{ 1.0 1.0 } 1.0 } }
 [ cvector{ C{ 1.0 1.0 } 1.0 } cvector{ 2.0 C{ 2.0 2.0 } } Vswap ]
 unit-test
 
-[ zvector{ 2.0 C{ 2.0 2.0 } } zvector{ C{ 1.0 1.0 } 1.0 } ]
+{ zvector{ 2.0 C{ 2.0 2.0 } } zvector{ C{ 1.0 1.0 } 1.0 } }
 [ zvector{ C{ 1.0 1.0 } 1.0 } zvector{ 2.0 C{ 2.0 2.0 } } Vswap ]
 unit-test
 
 ! Viamax
 
-[ 3 ] [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } Viamax ] unit-test
-[ 3 ] [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } Viamax ] unit-test
-[ 0 ] [ cvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Viamax ] unit-test
-[ 0 ] [ zvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Viamax ] unit-test
+{ 3 } [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } Viamax ] unit-test
+{ 3 } [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } Viamax ] unit-test
+{ 0 } [ cvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Viamax ] unit-test
+{ 0 } [ zvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Viamax ] unit-test
 
 ! Vamax
 
-[ -6.0 ] [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } Vamax ] unit-test
-[ -6.0 ] [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } Vamax ] unit-test
-[ C{ 2.0 -5.0 } ] [ cvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Vamax ] unit-test
-[ C{ 2.0 -5.0 } ] [ zvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Vamax ] unit-test
+{ -6.0 } [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } Vamax ] unit-test
+{ -6.0 } [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } Vamax ] unit-test
+{ C{ 2.0 -5.0 } } [ cvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Vamax ] unit-test
+{ C{ 2.0 -5.0 } } [ zvector{ C{ 2.0 -5.0 } 4.0 -6.0 -1.0 } Vamax ] unit-test
 
 ! Vsub
 
-[ svector{ -5.0 4.0 -6.0 } ] [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } 1 3 Vsub ] unit-test
-[ dvector{ -5.0 4.0 -6.0 } ] [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } 1 3 Vsub ] unit-test
-[ cvector{ -5.0 C{ 4.0 3.0 } -6.0 } ] [ cvector{ 1.0 -5.0 C{ 4.0 3.0 } -6.0 -1.0 } 1 3 Vsub ] unit-test
-[ zvector{ -5.0 C{ 4.0 3.0 } -6.0 } ] [ zvector{ 1.0 -5.0 C{ 4.0 3.0 } -6.0 -1.0 } 1 3 Vsub ] unit-test
+{ svector{ -5.0 4.0 -6.0 } } [ svector{ 1.0 -5.0 4.0 -6.0 -1.0 } 1 3 Vsub ] unit-test
+{ dvector{ -5.0 4.0 -6.0 } } [ dvector{ 1.0 -5.0 4.0 -6.0 -1.0 } 1 3 Vsub ] unit-test
+{ cvector{ -5.0 C{ 4.0 3.0 } -6.0 } } [ cvector{ 1.0 -5.0 C{ 4.0 3.0 } -6.0 -1.0 } 1 3 Vsub ] unit-test
+{ zvector{ -5.0 C{ 4.0 3.0 } -6.0 } } [ zvector{ 1.0 -5.0 C{ 4.0 3.0 } -6.0 -1.0 } 1 3 Vsub ] unit-test
index a8448d6d6b9d7fe44fc551637ce3d44057e77fe3..eb6ad7f21f1fab64014816b49c08c71066cb72d5 100644 (file)
@@ -3,10 +3,10 @@
 USING: kernel math math.combinators tools.test ;
 IN: math.combinators.tests
 
-[ 0 ] [ -3 [ drop 0 ] when-negative ] unit-test
-[ -2 ] [ -3 [ 1 + ] when-negative ] unit-test
-[ 2 ] [ 2 [ 0 ] when-negative ] unit-test
+{ 0 } [ -3 [ drop 0 ] when-negative ] unit-test
+{ -2 } [ -3 [ 1 + ] when-negative ] unit-test
+{ 2 } [ 2 [ 0 ] when-negative ] unit-test
 
-[ 0 ] [ 3 [ drop 0 ] when-positive ] unit-test
-[ 4 ] [ 3 [ 1 + ] when-positive ] unit-test
-[ -2 ] [ -2 [ 0 ] when-positive ] unit-test
+{ 0 } [ 3 [ drop 0 ] when-positive ] unit-test
+{ 4 } [ 3 [ 1 + ] when-positive ] unit-test
+{ -2 } [ -2 [ 0 ] when-positive ] unit-test
index cedea4984c4c34423349132e88fd7d4b21a7b945..20b98a7f342525be2c4c06f714663a57cde07b89 100644 (file)
@@ -3,27 +3,27 @@ tools.test ;
 
 IN: math.compare.tests
 
-[ -1 ] [ -1 5 absmin ] unit-test
-[ -1 ] [ -1 -5 absmin ] unit-test
+{ -1 } [ -1 5 absmin ] unit-test
+{ -1 } [ -1 -5 absmin ] unit-test
 
-[ -5 ] [ 1 -5 absmax ] unit-test
-[ 5 ] [ 1 5 absmax ] unit-test
+{ -5 } [ 1 -5 absmax ] unit-test
+{ 5 } [ 1 5 absmax ] unit-test
 
-[ 0 ] [ -1 -3 posmax ] unit-test
-[ 1 ] [ 1 -3 posmax ] unit-test
-[ 3 ] [ -1 3 posmax ] unit-test
+{ 0 } [ -1 -3 posmax ] unit-test
+{ 1 } [ 1 -3 posmax ] unit-test
+{ 3 } [ -1 3 posmax ] unit-test
 
-[ 0 ] [ 1 3 negmin ] unit-test
-[ -3 ] [ 1 -3 negmin ] unit-test
-[ -1 ] [ -1 3 negmin ] unit-test
+{ 0 } [ 1 3 negmin ] unit-test
+{ -3 } [ 1 -3 negmin ] unit-test
+{ -1 } [ -1 3 negmin ] unit-test
 
-[ 1 ] [ 1 2 [ ] min-by ] unit-test
-[ 1 ] [ 2 1 [ ] min-by ] unit-test
-[ 42.0 ] [ 42.0 1/0. [ ] min-by ] unit-test
-[ 42.0 ] [ 1/0. 42.0 [ ] min-by ] unit-test
-[ 2 ] [ 1 2 [ ] max-by ] unit-test
-[ 2 ] [ 2 1 [ ] max-by ] unit-test
-[ 1/0. ] [ 42.0 1/0. [ ] max-by ] unit-test
-[ 1/0. ] [ 1/0. 42.0 [ ] max-by ] unit-test
-[ "12345" ] [ "123" "12345" [ length ] max-by ] unit-test
-[ "123" ] [ "123" "12345" [ length ] min-by ] unit-test
+{ 1 } [ 1 2 [ ] min-by ] unit-test
+{ 1 } [ 2 1 [ ] min-by ] unit-test
+{ 42.0 } [ 42.0 1/0. [ ] min-by ] unit-test
+{ 42.0 } [ 1/0. 42.0 [ ] min-by ] unit-test
+{ 2 } [ 1 2 [ ] max-by ] unit-test
+{ 2 } [ 2 1 [ ] max-by ] unit-test
+{ 1/0. } [ 42.0 1/0. [ ] max-by ] unit-test
+{ 1/0. } [ 1/0. 42.0 [ ] max-by ] unit-test
+{ "12345" } [ "123" "12345" [ length ] max-by ] unit-test
+{ "123" } [ "123" "12345" [ length ] min-by ] unit-test
index d8fac0beb22aa4ea6fcd895f2fee29976e6004e6..6f217433b70f87ed97ac954a3d562ec063415772 100644 (file)
@@ -1,21 +1,21 @@
 USING: kernel math.constants math.continued-fractions tools.test ;
 
-[ V{ 2 2.0 } ] [ V{ 2.5 } dup next-approx ] unit-test
-[ V{ 2 2 } ] [ V{ 2.5 } dup next-approx dup next-approx ] unit-test
+{ V{ 2 2.0 } } [ V{ 2.5 } dup next-approx ] unit-test
+{ V{ 2 2 } } [ V{ 2.5 } dup next-approx dup next-approx ] unit-test
 
-[ 5/2 ] [ V{ 2 2.1 } >ratio ] unit-test
-[ 5/2 ] [ V{ 2 1.9 } >ratio ] unit-test
-[ 5/2 ] [ V{ 2 2.0 } >ratio ] unit-test
-[ 5/2 ] [ V{ 2 2 } >ratio ] unit-test
+{ 5/2 } [ V{ 2 2.1 } >ratio ] unit-test
+{ 5/2 } [ V{ 2 1.9 } >ratio ] unit-test
+{ 5/2 } [ V{ 2 2.0 } >ratio ] unit-test
+{ 5/2 } [ V{ 2 2 } >ratio ] unit-test
 
-[ 3 ] [ 1 pi approx ] unit-test
-[ 22/7 ] [ 0.1 pi approx ] unit-test
-[ 355/113 ] [ 0.00001 pi approx ] unit-test
+{ 3 } [ 1 pi approx ] unit-test
+{ 22/7 } [ 0.1 pi approx ] unit-test
+{ 355/113 } [ 0.00001 pi approx ] unit-test
 
-[ 2 ] [ 1 2 approx ] unit-test
-[ 2 ] [ 0.1 2 approx ] unit-test
-[ 2 ] [ 0.00001 2 approx ] unit-test
+{ 2 } [ 1 2 approx ] unit-test
+{ 2 } [ 0.1 2 approx ] unit-test
+{ 2 } [ 0.00001 2 approx ] unit-test
 
-[ 3 ] [ 1 2.5 approx ] unit-test
-[ 5/2 ] [ 0.1 2.5 approx ] unit-test
-[ 5/2 ] [ 0.0001 2.5 approx ] unit-test
+{ 3 } [ 1 2.5 approx ] unit-test
+{ 5/2 } [ 0.1 2.5 approx ] unit-test
+{ 5/2 } [ 0.0001 2.5 approx ] unit-test
index dc47e68c55077a0f0a60221b499e0118ba2120bc..055c44cd098a99472d4b19e7426c3e8510aea209 100644 (file)
@@ -4,13 +4,13 @@ USING: tools.test math.dual kernel accessors math math.functions
     math.constants ;
 IN: math.dual.tests
 
-[ 0.0 1.0 ] [ 0 1 <dual> dsin unpack-dual ] unit-test
-[ 1.0 0.0 ] [ 0 1 <dual> dcos unpack-dual ] unit-test
-[ 3 5 ] [ 1 5 <dual> 2 d+ unpack-dual ] unit-test
-[ 0 -1 ] [ 1 5 <dual> 1 6 <dual> d- unpack-dual ] unit-test
-[ 2 1 ] [ 2 3 <dual> 1 -1 <dual> d* unpack-dual ] unit-test
-[ 1/2 -1/4 ] [ 2 1 <dual> 1 swap d/ unpack-dual ] unit-test
-[ 2 ] [ 1 1 <dual> 2 d^ epsilon-part>> ] unit-test
-[ 2.0 .25 ] [ 4 1 <dual> dsqrt unpack-dual ] unit-test
-[ 2 -1 ] [ -2 1 <dual> dabs unpack-dual ] unit-test
-[ -2 -1 ] [ 2 1 <dual> dneg unpack-dual ] unit-test
+{ 0.0 1.0 } [ 0 1 <dual> dsin unpack-dual ] unit-test
+{ 1.0 0.0 } [ 0 1 <dual> dcos unpack-dual ] unit-test
+{ 3 5 } [ 1 5 <dual> 2 d+ unpack-dual ] unit-test
+{ 0 -1 } [ 1 5 <dual> 1 6 <dual> d- unpack-dual ] unit-test
+{ 2 1 } [ 2 3 <dual> 1 -1 <dual> d* unpack-dual ] unit-test
+{ 1/2 -1/4 } [ 2 1 <dual> 1 swap d/ unpack-dual ] unit-test
+{ 2 } [ 1 1 <dual> 2 d^ epsilon-part>> ] unit-test
+{ 2.0 .25 } [ 4 1 <dual> dsqrt unpack-dual ] unit-test
+{ 2 -1 } [ -2 1 <dual> dabs unpack-dual ] unit-test
+{ -2 -1 } [ 2 1 <dual> dneg unpack-dual ] unit-test
index da8288b6e47143c92c579040eff7f8163ca23b63..368a1b756cda7bee3a322848158de859c163588e 100644 (file)
@@ -89,28 +89,28 @@ IN: math.extras.test
 { { 1 8+4/5 16+3/5 24+2/5 32+1/5 } } [ 1 40 5 linspace[a,b) >array ] unit-test
 { { 1 10+3/4 20+1/2 30+1/4 40 } } [ 1 40 5 linspace[a,b] >array ] unit-test
 
-[ f ] [ { } majority ] unit-test
-[ 1 ] [ { 1 } majority ] unit-test
-[ f ] [ { 1 2 } majority ] unit-test
-[ 1 ] [ { 1 1 2 } majority ] unit-test
-[ f ] [ { 1 1 2 2 } majority ] unit-test
-[ 2 ] [ { 1 1 2 2 2 } majority ] unit-test
-[ 3 ] [ { 1 2 3 1 2 3 1 2 3 3 } majority ] unit-test
+{ f } [ { } majority ] unit-test
+{ 1 } [ { 1 } majority ] unit-test
+{ f } [ { 1 2 } majority ] unit-test
+{ 1 } [ { 1 1 2 } majority ] unit-test
+{ f } [ { 1 1 2 2 } majority ] unit-test
+{ 2 } [ { 1 1 2 2 2 } majority ] unit-test
+{ 3 } [ { 1 2 3 1 2 3 1 2 3 3 } majority ] unit-test
 { CHAR: C } [ "AAACCBBCCCBCC" majority ] unit-test
 
-[ -5 ] [ -4-3/5 round-to-even ] unit-test
-[ -4 ] [ -4-1/2 round-to-even ] unit-test
-[ -4 ] [ -4-2/5 round-to-even ] unit-test
-[ 5 ] [ 4+3/5 round-to-even ] unit-test
-[ 4 ] [ 4+1/2 round-to-even ] unit-test
-[ 4 ] [ 4+2/5 round-to-even ] unit-test
-
-[ -5.0 ] [ -4.6 round-to-even ] unit-test
-[ -4.0 ] [ -4.5 round-to-even ] unit-test
-[ -4.0 ] [ -4.4 round-to-even ] unit-test
-[ 5.0 ] [ 4.6 round-to-even ] unit-test
-[ 4.0 ] [ 4.5 round-to-even ] unit-test
-[ 4.0 ] [ 4.4 round-to-even ] unit-test
+{ -5 } [ -4-3/5 round-to-even ] unit-test
+{ -4 } [ -4-1/2 round-to-even ] unit-test
+{ -4 } [ -4-2/5 round-to-even ] unit-test
+{ 5 } [ 4+3/5 round-to-even ] unit-test
+{ 4 } [ 4+1/2 round-to-even ] unit-test
+{ 4 } [ 4+2/5 round-to-even ] unit-test
+
+{ -5.0 } [ -4.6 round-to-even ] unit-test
+{ -4.0 } [ -4.5 round-to-even ] unit-test
+{ -4.0 } [ -4.4 round-to-even ] unit-test
+{ 5.0 } [ 4.6 round-to-even ] unit-test
+{ 4.0 } [ 4.5 round-to-even ] unit-test
+{ 4.0 } [ 4.4 round-to-even ] unit-test
 
 { 0.0 } [ 0 2 round-to-decimal ] unit-test
 { 1.0 } [ 1 2 round-to-decimal ] unit-test
index 9f2fda9ff0aa1cf38099b82a22361d1c32eda702..d0440e09e36d681255880ac6a60a3ef522e3a2b0 100644 (file)
@@ -1,10 +1,10 @@
 USING: kernel math.functions math.ranges sequences tools.test ;
 IN: math.factorials
 
-[ 1 ] [ -1 factorial ] unit-test ! not necessarily correct
-[ 1 ] [ 0 factorial ] unit-test
-[ 1 ] [ 1 factorial ] unit-test
-[ 3628800 ] [ 10 factorial ] unit-test
+{ 1 } [ -1 factorial ] unit-test ! not necessarily correct
+{ 1 } [ 0 factorial ] unit-test
+{ 1 } [ 1 factorial ] unit-test
+{ 3628800 } [ 10 factorial ] unit-test
 
 { { 1 1 2 6 24 120 720 5040 40320 362880 3628800 } } [
     10 factorials
index f3fdede18ed71207fb748d9edfa5a51e2c5fffb2..44e18b0829348c4acc29739c7805a2f75352acd8 100644 (file)
@@ -3,23 +3,23 @@ tools.test ;
 
 IN: math.finance.tests
 
-[ { 1 2 3 4 5 } ] [ { 1 2 3 4 5 } 1 ema ] unit-test
-[ { 1+1/2 2+1/2 3+1/2 4+1/2 } ] [ { 1 2 3 4 5 } 2 ema ] unit-test
-[ { 2 3 4 } ] [ { 1 2 3 4 5 } 3 ema ] unit-test
+{ { 1 2 3 4 5 } } [ { 1 2 3 4 5 } 1 ema ] unit-test
+{ { 1+1/2 2+1/2 3+1/2 4+1/2 } } [ { 1 2 3 4 5 } 2 ema ] unit-test
+{ { 2 3 4 } } [ { 1 2 3 4 5 } 3 ema ] unit-test
 
-[ { 2 4 } ] [ { 1 3 5 } 2 sma ] unit-test
+{ { 2 4 } } [ { 1 3 5 } 2 sma ] unit-test
 
-[ { 2 3 4 5 } ] [ 6 iota 2 dema ] unit-test
+{ { 2 3 4 5 } } [ 6 iota 2 dema ] unit-test
 
-[ t ] [ 6 iota 2 [ dema ] [ 1 gdema ] 2bi = ] unit-test
+{ t } [ 6 iota 2 [ dema ] [ 1 gdema ] 2bi = ] unit-test
 
-[ { 3 4 5 } ] [ 6 iota 2 tema ] unit-test
-[ { 6 7 8 9 } ] [ 10 iota 3 tema ] unit-test
+{ { 3 4 5 } } [ 6 iota 2 tema ] unit-test
+{ { 6 7 8 9 } } [ 10 iota 3 tema ] unit-test
 
-[ { 1 3 1 } ] [ { 1 3 2 6 3 } 2 momentum ] unit-test
+{ { 1 3 1 } } [ { 1 3 2 6 3 } 2 momentum ] unit-test
 
 { { 0.0 50.0 25.0 75.0 100.0 125.0 -50.0 -75.0 -90.0 } } [
     { 1 1.5 1.25 1.75 2.0 2.25 0.5 0.25 0.1 } performance
 ] unit-test
 
-[ 4+1/6 ] [ 100 semimonthly ] unit-test
+{ 4+1/6 } [ 100 semimonthly ] unit-test
index b7b95992b2b5af6a0d689a7e22000116aa6bf8d2..b1f08648e2c4869b0aa779f6db953f6927fe5a4b 100644 (file)
@@ -4,23 +4,23 @@ USING: tools.test math.floating-point kernel
 math.constants fry sequences math random ;
 IN: math.floating-point.tests
 
-[ t ] [ pi >double< >double pi = ] unit-test
-[ t ] [ -1.0 >double< >double -1.0 = ] unit-test
+{ t } [ pi >double< >double pi = ] unit-test
+{ t } [ -1.0 >double< >double -1.0 = ] unit-test
 
-[ t ] [ 1/0. infinity? ] unit-test
-[ t ] [ -1/0. infinity? ] unit-test
-[ f ] [ 0/0. infinity? ] unit-test
-[ f ] [ 10. infinity? ] unit-test
-[ f ] [ -10. infinity? ] unit-test
-[ f ] [ 0. infinity? ] unit-test
+{ t } [ 1/0. infinity? ] unit-test
+{ t } [ -1/0. infinity? ] unit-test
+{ f } [ 0/0. infinity? ] unit-test
+{ f } [ 10. infinity? ] unit-test
+{ f } [ -10. infinity? ] unit-test
+{ f } [ 0. infinity? ] unit-test
 
-[ 0 ] [ 0.0 double>ratio ] unit-test
-[ 1 ] [ 1.0 double>ratio ] unit-test
-[ 1/2 ] [ 0.5 double>ratio ] unit-test
-[ 3/4 ] [ 0.75 double>ratio ] unit-test
-[ 12+1/2 ] [ 12.5 double>ratio ] unit-test
-[ -12-1/2 ] [ -12.5 double>ratio ] unit-test
-[ 3+39854788871587/281474976710656 ] [ pi double>ratio ] unit-test
+{ 0 } [ 0.0 double>ratio ] unit-test
+{ 1 } [ 1.0 double>ratio ] unit-test
+{ 1/2 } [ 0.5 double>ratio ] unit-test
+{ 3/4 } [ 0.75 double>ratio ] unit-test
+{ 12+1/2 } [ 12.5 double>ratio ] unit-test
+{ -12-1/2 } [ -12.5 double>ratio ] unit-test
+{ 3+39854788871587/281474976710656 } [ pi double>ratio ] unit-test
 
 : roundtrip ( n -- )
     [ '[ _ ] ] keep '[ _ double>ratio >float ] unit-test ;
index 611fb991a21e5958adadf2c313990d721aa3252e..8ffab958c139cd9f364d36b55b364119cbd9c44c 100644 (file)
@@ -6,7 +6,7 @@ FROM: math.matrices => m~ ;
 SPECIALIZED-ARRAY: float-4
 IN: math.matrices.simd.tests
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 3.0 0.0 0.0 0.0 }
@@ -15,9 +15,9 @@ IN: math.matrices.simd.tests
             float-4{ 0.0 0.0 0.0 1.0 }
         }
     }
-] [ float-4{ 3.0 4.0 2.0 0.0 } scale-matrix4 ] unit-test
+} [ float-4{ 3.0 4.0 2.0 0.0 } scale-matrix4 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 1/8. 0.0  0.0  0.0 }
@@ -26,9 +26,9 @@ IN: math.matrices.simd.tests
             float-4{ 0.0  0.0  0.0  1.0 }
         }
     }
-] [ float-4{ 8.0 4.0 2.0 0.0 } ortho-matrix4 ] unit-test
+} [ float-4{ 8.0 4.0 2.0 0.0 } ortho-matrix4 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 0.0 0.0 -1.0 0.0 }
@@ -37,7 +37,7 @@ IN: math.matrices.simd.tests
             float-4{ 3.0 4.0  2.0 1.0 }
         }
     }
-] [
+} [
     S{ matrix4 f
         float-4-array{
             float-4{  0.0 1.0 0.0 3.0 }
@@ -48,7 +48,7 @@ IN: math.matrices.simd.tests
     } transpose-matrix4
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 1.0 0.0 0.0 0.0 }
@@ -57,9 +57,9 @@ IN: math.matrices.simd.tests
             float-4{ 3.0 4.0 2.0 1.0 }
         }
     }
-] [ float-4{ 3.0 4.0 2.0 0.0 } translation-matrix4 ] unit-test
+} [ float-4{ 3.0 4.0 2.0 0.0 } translation-matrix4 ] unit-test
 
-[ t ] [
+{ t } [
     float-4{ $[ 1/2. sqrt ] 0.0 $[ 1/2. sqrt ] 0.0 } pi rotation-matrix4
     S{ matrix4 f
         float-4-array{
@@ -72,7 +72,7 @@ IN: math.matrices.simd.tests
     1.0e-7 m~
 ] unit-test
 
-[ t ] [
+{ t } [
     float-4{ 0.0 1.0 0.0 1.0 } pi 1/2. * rotation-matrix4
     S{ matrix4 f
         float-4-array{
@@ -85,7 +85,7 @@ IN: math.matrices.simd.tests
     1.0e-7 m~
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{  2.0  0.0  0.0  0.0 }
@@ -94,7 +94,7 @@ IN: math.matrices.simd.tests
             float-4{ 10.0 18.0 28.0  1.0 }
         }
     }
-] [
+} [
     S{ matrix4 f
         float-4-array{
             float-4{ 2.0 0.0 0.0 0.0 }
@@ -114,7 +114,7 @@ IN: math.matrices.simd.tests
     m4.
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 3.0 0.0 0.0 0.0 }
@@ -123,7 +123,7 @@ IN: math.matrices.simd.tests
             float-4{ 5.0 6.0 7.0 2.0 }
         }
     }
-] [
+} [
     S{ matrix4 f
         float-4-array{
             float-4{ 2.0 0.0 0.0 0.0 }
@@ -143,7 +143,7 @@ IN: math.matrices.simd.tests
     m4+
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{  1.0  0.0  0.0 0.0 }
@@ -152,7 +152,7 @@ IN: math.matrices.simd.tests
             float-4{ -5.0 -6.0 -7.0 0.0 }
         }
     }
-] [
+} [
     S{ matrix4 f
         float-4-array{
             float-4{ 2.0 0.0 0.0 0.0 }
@@ -172,7 +172,7 @@ IN: math.matrices.simd.tests
     m4-
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 3.0 0.0 0.0 15.0 }
@@ -181,7 +181,7 @@ IN: math.matrices.simd.tests
             float-4{ 0.0 0.0 0.0  3.0 }
         }
     }
-] [
+} [
     S{ matrix4 f
         float-4-array{
             float-4{ 1.0 0.0 0.0 5.0 }
@@ -193,7 +193,7 @@ IN: math.matrices.simd.tests
     3.0 m4*n
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 3.0 0.0 0.0 15.0 }
@@ -202,7 +202,7 @@ IN: math.matrices.simd.tests
             float-4{ 0.0 0.0 0.0  3.0 }
         }
     }
-] [
+} [
     3.0
     S{ matrix4 f
         float-4-array{
@@ -215,7 +215,7 @@ IN: math.matrices.simd.tests
     n*m4
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 1/2. 0.0   0.0   0.0 }
@@ -224,22 +224,22 @@ IN: math.matrices.simd.tests
             float-4{ 0.0  0.0 -10/4.  0.0 }
         }
     }
-] [
+} [
     float-4{ 2.0 2.0 0.0 0.0 } 1.0 5.0
     frustum-matrix4
 ] unit-test
 
-[ float-4{ 3.0 4.0 5.0 1.0 } ]
+{ float-4{ 3.0 4.0 5.0 1.0 } }
 [ float-4{ 1.0 1.0 1.0 1.0 } translation-matrix4 float-4{ 2.0 3.0 4.0 1.0 } m4.v ] unit-test
 
-[ float-4{ 2.0 2.5 3.0 1.0 } ]
+{ float-4{ 2.0 2.5 3.0 1.0 } }
 [
     float-4{ 1.0 1.0 1.0 1.0 } translation-matrix4
     float-4{ 0.5 0.5 0.5 1.0 } scale-matrix4 m4.
     float-4{ 2.0 3.0 4.0 1.0 } m4.v
 ] unit-test
 
-[
+{
     S{ matrix4 f
         float-4-array{
             float-4{ 1.0  0.0  0.0  0.0 }
@@ -248,11 +248,11 @@ IN: math.matrices.simd.tests
             float-4{ 0.0  0.0  0.0  1.0 }
         }
     }
-] [
+} [
     float-4{ 1.0 0.0 0.0 0.0 } q>matrix4
 ] unit-test
 
-[ t ] [
+{ t } [
     pi 0.5 * 0.0 0.0 euler4 q>matrix4
     S{ matrix4 f
         float-4-array{
@@ -265,7 +265,7 @@ IN: math.matrices.simd.tests
     1.0e-7 m~
 ] unit-test
 
-[ t ] [
+{ t } [
     0.0 pi 0.25 * 0.0 euler4 q>matrix4
     S{ matrix4 f
         float-4-array{
index d5f98de7c8380ca259b5011b8341106d3a2239f9..7b803f7d4b0eed38c232921a58e40e4e9474c85d 100644 (file)
@@ -2,8 +2,8 @@ USING: kernel math.numerical-integration tools.test math
 math.constants math.functions ;
 IN: math.numerical-integration.tests
 
-[ 50 ] [ 0 10 [ ] integrate-simpson ] unit-test
-[ 1000/3 ] [ 0 10 [ sq ] integrate-simpson ] unit-test
-[ t ] [ 0 pi 2 / [ sin ] integrate-simpson 1 .000000001 ~abs ] unit-test
-[ t ] [ 0 pi [ sin ] integrate-simpson 2 .00000001 ~abs ] unit-test
-[ t ] [  0 pi 2 * [ sin ] integrate-simpson 0 .00000000001 ~abs ] unit-test
+{ 50 } [ 0 10 [ ] integrate-simpson ] unit-test
+{ 1000/3 } [ 0 10 [ sq ] integrate-simpson ] unit-test
+{ t } [ 0 pi 2 / [ sin ] integrate-simpson 1 .000000001 ~abs ] unit-test
+{ t } [ 0 pi [ sin ] integrate-simpson 2 .00000001 ~abs ] unit-test
+{ t } [  0 pi 2 * [ sin ] integrate-simpson 0 .00000000001 ~abs ] unit-test
index 81a94687a7c46463a391537a5bd1114577c79199..2829b37a56acd2f5438a0ff5351faa996a64bbe0 100644 (file)
@@ -1,15 +1,15 @@
 USING: math.functions math.text.english tools.test ;
 IN: math.text.english.tests
 
-[ "zero" ] [ 0 number>text ] unit-test
-[ "twenty-one" ] [ 21 number>text ] unit-test
-[ "one hundred" ] [ 100 number>text ] unit-test
-[ "one hundred and one" ] [ 101 number>text ] unit-test
-[ "one thousand and one" ] [ 1001 number>text ] unit-test
-[ "one thousand, one hundred and one" ] [ 1101 number>text ] unit-test
-[ "one million, one thousand and one" ] [ 1001001 number>text ] unit-test
-[ "one million, one thousand, one hundred and one" ] [ 1001101 number>text ] unit-test
-[ "one million, one hundred and eleven thousand, one hundred and eleven" ] [ 1111111 number>text ] unit-test
-[ "one duotrigintillion" ] [ 10 99 ^ number>text ] unit-test
+{ "zero" } [ 0 number>text ] unit-test
+{ "twenty-one" } [ 21 number>text ] unit-test
+{ "one hundred" } [ 100 number>text ] unit-test
+{ "one hundred and one" } [ 101 number>text ] unit-test
+{ "one thousand and one" } [ 1001 number>text ] unit-test
+{ "one thousand, one hundred and one" } [ 1101 number>text ] unit-test
+{ "one million, one thousand and one" } [ 1001001 number>text ] unit-test
+{ "one million, one thousand, one hundred and one" } [ 1001101 number>text ] unit-test
+{ "one million, one hundred and eleven thousand, one hundred and eleven" } [ 1111111 number>text ] unit-test
+{ "one duotrigintillion" } [ 10 99 ^ number>text ] unit-test
 
-[ "negative one hundred and twenty-three" ] [ -123 number>text ] unit-test
+{ "negative one hundred and twenty-three" } [ -123 number>text ] unit-test
index fd8438718dcdf264f86c1e5b85e90fc25f8a0c4a..4bac7d90ae59a3c968f6a6827e9ea3c36871670d 100644 (file)
@@ -1,22 +1,22 @@
 USING: math math.functions math.parser math.text.french sequences tools.test ;
 
-[ "zéro" ] [ 0 number>text ] unit-test
-[ "vingt et un" ] [ 21 number>text ] unit-test
-[ "vingt-deux" ] [ 22 number>text ] unit-test
-[ "deux mille" ] [ 2000 number>text ] unit-test
-[ "soixante et un" ] [ 61 number>text ] unit-test
-[ "soixante-deux" ] [ 62 number>text ] unit-test
-[ "quatre-vingts" ] [ 80 number>text ] unit-test
-[ "quatre-vingt-un" ] [ 81 number>text ] unit-test
-[ "quatre-vingt-onze" ] [ 91 number>text ] unit-test
-[ "deux cents" ] [ 200 number>text ] unit-test
-[ "mille deux cents" ] [ 1200 number>text ] unit-test
-[ "mille deux cent quatre-vingts" ] [ 1280 number>text ] unit-test
-[ "mille deux cent quatre-vingt-un" ] [ 1281 number>text ] unit-test
-[ "un billion deux cent vingt milliards quatre-vingts millions trois cent quatre-vingt mille deux cents" ] [ 1220080380200 number>text ] unit-test
-[ "un million" ] [ 1000000 number>text ] unit-test
-[ "un million un" ] [ 1000001 number>text ] unit-test
-[ "moins vingt" ] [ -20 number>text ] unit-test
-[ 104 ] [ -1 10 102 ^ - number>text length ] unit-test
+{ "zéro" } [ 0 number>text ] unit-test
+{ "vingt et un" } [ 21 number>text ] unit-test
+{ "vingt-deux" } [ 22 number>text ] unit-test
+{ "deux mille" } [ 2000 number>text ] unit-test
+{ "soixante et un" } [ 61 number>text ] unit-test
+{ "soixante-deux" } [ 62 number>text ] unit-test
+{ "quatre-vingts" } [ 80 number>text ] unit-test
+{ "quatre-vingt-un" } [ 81 number>text ] unit-test
+{ "quatre-vingt-onze" } [ 91 number>text ] unit-test
+{ "deux cents" } [ 200 number>text ] unit-test
+{ "mille deux cents" } [ 1200 number>text ] unit-test
+{ "mille deux cent quatre-vingts" } [ 1280 number>text ] unit-test
+{ "mille deux cent quatre-vingt-un" } [ 1281 number>text ] unit-test
+{ "un billion deux cent vingt milliards quatre-vingts millions trois cent quatre-vingt mille deux cents" } [ 1220080380200 number>text ] unit-test
+{ "un million" } [ 1000000 number>text ] unit-test
+{ "un million un" } [ 1000001 number>text ] unit-test
+{ "moins vingt" } [ -20 number>text ] unit-test
+{ 104 } [ -1 10 102 ^ - number>text length ] unit-test
 ! Check that we do not exhaust stack
-[ 1484 ] [ 10 100 ^ 1 - number>text length ] unit-test
+{ 1484 } [ 10 100 ^ 1 - number>text length ] unit-test
index 04fbcdc1a71c00e7f27da9408ffe8c72d228d10f..78500ef764783fe51ce44b79564ec83ff62122a4 100644 (file)
@@ -1,3 +1,3 @@
 USING: math.text.utils tools.test ;
 
-[ { 1 999 2 } ] [ 2999001 3 digit-groups ] unit-test
+{ { 1 999 2 } } [ 2999001 3 digit-groups ] unit-test
index a88739ec5588be93662547b5c1cad4e984440491..1b38472a64a9459323552ed2cabcac7b5d0bafbe 100644 (file)
@@ -1,5 +1,5 @@
 USING: math.transforms.haar tools.test ;
 IN: math.transforms.haar.tests
 
-[ { 3 2 -1 -2 3 0 4 1 } ] [ { 7 1 6 6 3 -5 4 2 } haar ] unit-test
-[ { 7 1 6 6 3 -5 4 2 } ] [ { 3 2 -1 -2 3 0 4 1 } rev-haar ] unit-test
+{ { 3 2 -1 -2 3 0 4 1 } } [ { 7 1 6 6 3 -5 4 2 } haar ] unit-test
+{ { 7 1 6 6 3 -5 4 2 } } [ { 3 2 -1 -2 3 0 4 1 } rev-haar ] unit-test
index 7e657dbe71464584d87abe4918183bc9b61a2c14..142f80e23ef02bcb0e9c42be62655cffa3a1dae1 100644 (file)
@@ -2,14 +2,14 @@
 USING: math.vectors.homogeneous tools.test ;
 IN: math.vectors.homogeneous.tests
 
-[ { 1.0 2.0 1.0 } ] [ { 1.0 0.0 1.0 } { 0.0 2.0 1.0 } h+ ] unit-test
-[ { 1.0 -2.0 1.0 } ] [ { 1.0 0.0 1.0 } { 0.0 2.0 1.0 } h- ] unit-test
-[ { 2.0 2.0 2.0 } ] [ { 1.0 0.0 1.0 } { 0.0 2.0 2.0 } h+ ] unit-test
-[ { 1.0 2.0 2.0 } ] [ { 1.0 0.0 2.0 } { 0.0 2.0 2.0 } h+ ] unit-test
+{ { 1.0 2.0 1.0 } } [ { 1.0 0.0 1.0 } { 0.0 2.0 1.0 } h+ ] unit-test
+{ { 1.0 -2.0 1.0 } } [ { 1.0 0.0 1.0 } { 0.0 2.0 1.0 } h- ] unit-test
+{ { 2.0 2.0 2.0 } } [ { 1.0 0.0 1.0 } { 0.0 2.0 2.0 } h+ ] unit-test
+{ { 1.0 2.0 2.0 } } [ { 1.0 0.0 2.0 } { 0.0 2.0 2.0 } h+ ] unit-test
 
-[ { 2.0 4.0 2.0 } ] [ 2.0 { 1.0 2.0 2.0 } n*h ] unit-test
-[ { 2.0 4.0 2.0 } ] [ { 1.0 2.0 2.0 } 2.0 h*n ] unit-test
+{ { 2.0 4.0 2.0 } } [ 2.0 { 1.0 2.0 2.0 } n*h ] unit-test
+{ { 2.0 4.0 2.0 } } [ { 1.0 2.0 2.0 } 2.0 h*n ] unit-test
 
-[ { 0.5 1.5 } ] [ { 1.0 3.0 2.0 } h>v ] unit-test
-[ { 0.5 1.5 1.0 } ] [ { 0.5 1.5 } v>h ] unit-test
-[ { 0.5 1.5 1.0 } ] [ { 0.5 1.5 } v>h ] unit-test
+{ { 0.5 1.5 } } [ { 1.0 3.0 2.0 } h>v ] unit-test
+{ { 0.5 1.5 1.0 } } [ { 0.5 1.5 } v>h ] unit-test
+{ { 0.5 1.5 1.0 } } [ { 0.5 1.5 } v>h ] unit-test
index c6f6cc8c962affdc01c4c41df3f087340385dba2..6317a08347cecd5b1ac154672546bdd954111ed9 100644 (file)
@@ -27,18 +27,18 @@ IN: memcached.tests
 PRIVATE>
 
 ! test version
-[ t ] [ [ m/version ] with-memcached length 0 > ] unit-test
+{ t } [ [ m/version ] with-memcached length 0 > ] unit-test
 
 ! test simple set get
 [ m/flush ] with-memcached
 [ "valuex" x m/set ] with-memcached
-[ "valuex" ] [ [ x m/get ] with-memcached ] unit-test
+{ "valuex" } [ [ x m/get ] with-memcached ] unit-test
 
 ! test flush
 [ m/flush ] with-memcached
 [ "valuex" x m/set "valuey" y m/set ] with-memcached
-[ "valuex" ] [ [ x m/get ] with-memcached ] unit-test
-[ "valuey" ] [ [ y m/get ] with-memcached ] unit-test
+{ "valuex" } [ [ x m/get ] with-memcached ] unit-test
+{ "valuey" } [ [ y m/get ] with-memcached ] unit-test
 [ m/flush ] with-memcached
 [ [ x m/get ] with-memcached ] not-found?
 [ [ y m/get ] with-memcached ] not-found?
@@ -49,7 +49,7 @@ PRIVATE>
 ! test delete
 [ m/flush ] with-memcached
 [ "valuex" x m/set ] with-memcached
-[ "valuex" ] [ [ x m/get ] with-memcached ] unit-test
+{ "valuex" } [ [ x m/get ] with-memcached ] unit-test
 [ x m/delete ] with-memcached
 [ [ x m/get ] with-memcached ] not-found?
 
@@ -58,30 +58,30 @@ PRIVATE>
 [ [ x m/get ] with-memcached ] not-found?
 [ [ "ex" x m/replace ] with-memcached ] not-found?
 [ "ex" x m/add ] with-memcached
-[ "ex" ] [ [ x m/get ] with-memcached ] unit-test
+{ "ex" } [ [ x m/get ] with-memcached ] unit-test
 [ "ex2" x m/replace ] with-memcached
-[ "ex2" ] [ [ x m/get ] with-memcached ] unit-test
+{ "ex2" } [ [ x m/get ] with-memcached ] unit-test
 
 ! test incr
 [ m/flush ] with-memcached
-[ 0 ] [ [ x m/incr ] with-memcached ] unit-test
-[ 1 ] [ [ x m/incr ] with-memcached ] unit-test
-[ 212 ] [ [ 211 x m/incr-val ] with-memcached ] unit-test
-[ 8589934804 ] [ [ 2 33 ^ x m/incr-val ] with-memcached ] unit-test
+{ 0 } [ [ x m/incr ] with-memcached ] unit-test
+{ 1 } [ [ x m/incr ] with-memcached ] unit-test
+{ 212 } [ [ 211 x m/incr-val ] with-memcached ] unit-test
+{ 8589934804 } [ [ 2 33 ^ x m/incr-val ] with-memcached ] unit-test
 
 ! test decr
 [ m/flush ] with-memcached
 [ "5" x m/set ] with-memcached
-[ 4 ] [ [ x m/decr ] with-memcached ] unit-test
-[ 0 ] [ [ 211 x m/decr-val ] with-memcached ] unit-test
+{ 4 } [ [ x m/decr ] with-memcached ] unit-test
+{ 0 } [ [ 211 x m/decr-val ] with-memcached ] unit-test
 
 ! test timebombed flush
 [ m/flush ] with-memcached
 [ [ x m/get ] with-memcached ] not-found?
 [ "valuex" x m/set ] with-memcached
-[ "valuex" ] [ [ x m/get ] with-memcached ] unit-test
+{ "valuex" } [ [ x m/get ] with-memcached ] unit-test
 [ 2 m/flush-later ] with-memcached
-[ "valuex" ] [ [ x m/get ] with-memcached ] unit-test
+{ "valuex" } [ [ x m/get ] with-memcached ] unit-test
 3 seconds sleep
 [ [ x m/get ] with-memcached ] not-found?
 
@@ -89,19 +89,19 @@ PRIVATE>
 [ m/flush ] with-memcached
 [ "some" x m/set ] with-memcached
 [ "thing" x m/append ] with-memcached
-[ "something" ] [ [ x m/get ] with-memcached ] unit-test
+{ "something" } [ [ x m/get ] with-memcached ] unit-test
 
 ! test prepend
 [ m/flush ] with-memcached
 [ "some" x m/set ] with-memcached
 [ "thing" x m/prepend ] with-memcached
-[ "thingsome" ] [ [ x m/get ] with-memcached ] unit-test
+{ "thingsome" } [ [ x m/get ] with-memcached ] unit-test
 
 ! test multi-get
 [ m/flush ] with-memcached
-[ H{ } ] [ [ x y z 3array m/getseq ] with-memcached ] unit-test
+{ H{ } } [ [ x y z 3array m/getseq ] with-memcached ] unit-test
 [ "5" x m/set ] with-memcached
 [ "valuex" y m/set ] with-memcached
-[ { "5" "valuex" } ] [
+{ { "5" "valuex" } } [
     [ x y z 3array m/getseq values natural-sort ] with-memcached
 ] unit-test
index ed40dad9b6e0dce9003fe9d128722c30766f3430..6656cb5a6a4d139e8f8b7119921f13e9deb4ce18 100644 (file)
@@ -3,7 +3,7 @@ USING: accessors alien destructors kernel math
 memory.piles tools.test ;
 IN: memory.piles.tests
 
-[ 25 ] [
+{ 25 } [
     [
         100 <pile> &dispose
         [ 25 pile-alloc ] [ 50 pile-alloc ] bi
@@ -11,7 +11,7 @@ IN: memory.piles.tests
     ] with-destructors
 ] unit-test
 
-[ 32 ] [
+{ 32 } [
     [
         100 <pile> &dispose
         [ 25 pile-alloc ] [ 8 pile-align 50 pile-alloc ] bi
@@ -19,7 +19,7 @@ IN: memory.piles.tests
     ] with-destructors
 ] unit-test
 
-[ 75 ] [
+{ 75 } [
     [
         100 <pile> &dispose
         dup 25 pile-alloc drop
@@ -28,7 +28,7 @@ IN: memory.piles.tests
     ] with-destructors
 ] unit-test
 
-[ 100 ] [
+{ 100 } [
     [
         100 <pile> &dispose
         dup 25 pile-alloc drop
index 29f99a5a11472f807c3ad0638a16fb9da86e9fe9..d1980f706f282c8a8285287fa73c75cba5d7d357 100644 (file)
@@ -4,14 +4,14 @@ IN: memory.pools.tests
 
 TUPLE: foo x ;
 
-[ 1 ] [
+{ 1 } [
     foo 2 foo <pool> set-class-pool
 
     foo new-from-pool drop
     foo class-pool pool-size
 ] unit-test
 
-[ T{ foo } T{ foo } f ] [
+{ T{ foo } T{ foo } f } [
     foo 2 foo <pool> set-class-pool
 
     foo new-from-pool
@@ -19,7 +19,7 @@ TUPLE: foo x ;
     foo new-from-pool
 ] unit-test
 
-[ f ] [
+{ f } [
     foo 2 foo <pool> set-class-pool
 
     foo new-from-pool
index 322dafcc61772dabc2c5a5425bc5e212b9d9e8c9..bfc4d6fd3df22e419ce1e48c0f1b8d08c755cdc0 100644 (file)
@@ -7,7 +7,7 @@ M: sequence testing nip reverse ;
 AFTER: string testing append ;
 BEFORE: array testing over prefix "a" set ;
 
-[ V{ 3 2 1 } ] [ 3 V{ 1 2 3 } testing ] unit-test
-[ "heyyeh" ] [ 4 "yeh" testing ] unit-test
-[ { 4 2 0 } ] [ 5 { 0 2 4 } testing ] unit-test
-[ { 5 0 2 4 } ] [ "a" get ] unit-test
+{ V{ 3 2 1 } } [ 3 V{ 1 2 3 } testing ] unit-test
+{ "heyyeh" } [ 4 "yeh" testing ] unit-test
+{ { 4 2 0 } } [ 5 { 0 2 4 } testing ] unit-test
+{ { 5 0 2 4 } } [ "a" get ] unit-test
index 8188b448d37344890eb9c138d85b9d34aa3b4fd1..16efac9d8c1fea90229edff7bbbf1fd31098cafb 100644 (file)
@@ -6,31 +6,31 @@ f <history> "history" set
 
 "history" get add-history
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get add-history
 3 "history" get set-model
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get add-history
 4 "history" get set-model
 
-[ f ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ f } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
 
 "history" get go-back
 
-[ 3 ] [ "history" get value>> ] unit-test
+{ 3 } [ "history" get value>> ] unit-test
 
-[ t ] [ "history" get back>> empty? ] unit-test
-[ f ] [ "history" get forward>> empty? ] unit-test
+{ t } [ "history" get back>> empty? ] unit-test
+{ f } [ "history" get forward>> empty? ] unit-test
 
 "history" get go-forward
 
-[ 4 ] [ "history" get value>> ] unit-test
+{ 4 } [ "history" get value>> ] unit-test
 
-[ f ] [ "history" get back>> empty? ] unit-test
-[ t ] [ "history" get forward>> empty? ] unit-test
+{ f } [ "history" get back>> empty? ] unit-test
+{ t } [ "history" get forward>> empty? ] unit-test
index 4c568f5f5f5d6c1962fdecdd9841e4e01b150116..a7b925ca2fc0cf09619c6ae20b0a43f4b957e933 100644 (file)
@@ -2,55 +2,55 @@ USING: tools.test math kernel sequences lists promises monads ;
 FROM: monads => do ;
 IN: monads.tests
 
-[ 5 ] [ 1 identity-monad return [ 4 + ] fmap run-identity ] unit-test
+{ 5 } [ 1 identity-monad return [ 4 + ] fmap run-identity ] unit-test
 [ "OH HAI" identity-monad fail ] must-fail
 
-[ 666 ] [
+{ 666 } [
     111 <just> [ 6 * ] fmap [ ] [ "OOPS" throw ] if-maybe
 ] unit-test
 
-[ nothing ] [
+{ nothing } [
     111 <just> [ maybe-monad fail ] bind
 ] unit-test
 
-[ 100 ] [
+{ 100 } [
     5 either-monad return [ 10 * ] [ 20 * ] if-either
 ] unit-test
 
-[ T{ left f "OOPS" } ] [
+{ T{ left f "OOPS" } } [
     5 either-monad return >>= [ drop "OOPS" either-monad fail ] swap call
 ] unit-test
 
-[ { 10 20 30 } ] [
+{ { 10 20 30 } } [
     { 1 2 3 } [ 10 * ] fmap
 ] unit-test
 
-[ { } ] [
+{ { } } [
     { 1 2 3 } [ drop "OOPS" array-monad fail ] bind
 ] unit-test
 
-[ 5 ] [
+{ 5 } [
     5 state-monad return "initial state" run-st
 ] unit-test
 
-[ 8 ] [
+{ 8 } [
     5 state-monad return [ 3 + state-monad return ] bind
     "initial state" run-st
 ] unit-test
 
-[ 8 ] [
+{ 8 } [
     5 state-monad return >>=
     [ 3 + state-monad return ] swap call
     "initial state" run-st
 ] unit-test
 
-[ 11 ] [
+{ 11 } [
     f state-monad return >>=
     [ drop get-st ] swap call
     11 run-st
 ] unit-test
 
-[ 15 ] [
+{ 15 } [
     f state-monad return
     [ drop get-st ] bind
     [ 4 + put-st ] bind
@@ -58,7 +58,7 @@ IN: monads.tests
     11 run-st
 ] unit-test
 
-[ 15 ] [
+{ 15 } [
     {
         [ f return-st ]
         [ drop get-st ]
@@ -68,7 +68,7 @@ IN: monads.tests
     11 run-st
 ] unit-test
 
-[ nothing ] [
+{ nothing } [
     {
         [ "hi" <just> ]
         [ " bye" append <just> ]
@@ -82,20 +82,20 @@ LAZY: nats-from ( n -- list )
 
 : nats ( -- list ) 0 nats-from ;
 
-[ 3 ] [
+{ 3 } [
     {
         [ nats ]
         [ dup 3 = [ list-monad return ] [ list-monad fail ] if ]
     } do car
 ] unit-test
 
-[ 9/11 ] [
+{ 9/11 } [
     {
         [ ask ]
     } do 9/11 run-reader
 ] unit-test
 
-[ 8 ] [
+{ 8 } [
     {
         [ ask ]
         [ 3 + reader-monad return ]
@@ -103,27 +103,27 @@ LAZY: nats-from ( n -- list )
     5 run-reader
 ] unit-test
 
-[ 6 ] [
+{ 6 } [
     f reader-monad return [ drop ask ] bind [ 1 + ] local 5 run-reader
 ] unit-test
 
-[ f { 1 2 3 } ] [
+{ f { 1 2 3 } } [
     5 writer-monad return
     [ drop { 1 2 3 } tell ] bind
     run-writer
 ] unit-test
 
-[ T{ identity f 7 } ]
+{ T{ identity f 7 } }
 [
     4 identity-monad return
     [ 3 + ] identity-monad return
     identity-monad apply
 ] unit-test
 
-[ nothing ] [
+{ nothing } [
     5 <just> nothing maybe-monad apply
 ] unit-test
 
-[ T{ just f 15 } ] [
+{ T{ just f 15 } } [
     5 <just> [ 10 + ] <just> maybe-monad apply
 ] unit-test
index 226b7126766b84bd0c11559bf80e89c66ab0d08a..66abcb237fdd54fe39132bd35b42ccc8578fad82 100644 (file)
@@ -1,25 +1,25 @@
 USING: money parser tools.test eval ;
 IN: money.tests
 
-[ -1/10 ] [ DECIMAL: -.1 ] unit-test
-[ -1/10 ] [ DECIMAL: -0.1 ] unit-test
-[ -1/10 ] [ DECIMAL: -00.10 ] unit-test
+{ -1/10 } [ DECIMAL: -.1 ] unit-test
+{ -1/10 } [ DECIMAL: -0.1 ] unit-test
+{ -1/10 } [ DECIMAL: -00.10 ] unit-test
 
-[ 0 ] [ DECIMAL: .0 ] unit-test
-[ 0 ] [ DECIMAL: 0.0 ] unit-test
-[ 0 ] [ DECIMAL: 0. ] unit-test
-[ 0 ] [ DECIMAL: 0 ] unit-test
-[ 1/10 ] [ DECIMAL: .1 ] unit-test
-[ 1/10 ] [ DECIMAL: 0.1 ] unit-test
-[ 1/10 ] [ DECIMAL: 00.10 ] unit-test
-[ 23 ] [ DECIMAL: 23 ] unit-test
-[ -23 ] [ DECIMAL: -23 ] unit-test
-[ -23-1/100 ] [ DECIMAL: -23.01 ] unit-test
+{ 0 } [ DECIMAL: .0 ] unit-test
+{ 0 } [ DECIMAL: 0.0 ] unit-test
+{ 0 } [ DECIMAL: 0. ] unit-test
+{ 0 } [ DECIMAL: 0 ] unit-test
+{ 1/10 } [ DECIMAL: .1 ] unit-test
+{ 1/10 } [ DECIMAL: 0.1 ] unit-test
+{ 1/10 } [ DECIMAL: 00.10 ] unit-test
+{ 23 } [ DECIMAL: 23 ] unit-test
+{ -23 } [ DECIMAL: -23 ] unit-test
+{ -23-1/100 } [ DECIMAL: -23.01 ] unit-test
 
 [ "DECIMAL: ." eval ] must-fail
 [ "DECIMAL: f" eval ] must-fail
 [ "DECIMAL: 0.f" eval ] must-fail
 [ "DECIMAL: f.0" eval ] must-fail
 
-[ "$100.00" ] [ DECIMAL: 100.0 money>string ] unit-test
-[ "$0.00" ] [ DECIMAL: 0.0 money>string ] unit-test
+{ "$100.00" } [ DECIMAL: 100.0 money>string ] unit-test
+{ "$0.00" } [ DECIMAL: 0.0 money>string ] unit-test
index 2dad7f997cad7395ec1b417462b8126c2fab0380..95b837a9eb168af98d668d17caac8c71e932f0eb 100644 (file)
@@ -3,38 +3,38 @@
 USING: arrays morse strings tools.test ;
 IN: morse.tests
 
-[ "?" ] [ CHAR: \\ ch>morse ] unit-test
-[ "..." ] [ CHAR: s ch>morse ] unit-test
-[ CHAR: s ] [ "..." morse>ch ] unit-test
-[ CHAR: \s ] [ "..--..--.." morse>ch ] unit-test
-[ "-- --- .-. ... . / -.-. --- -.. ." ] [ "morse code" >morse ] unit-test
-[ "morse code" ] [ "-- --- .-. ... . / -.-. --- -.. ." morse> ] unit-test
-[ "hello, world!" ] [ "Hello, World!" >morse morse> ] unit-test
-[ ".- -... -.-." ] [ "abc" >morse ] unit-test
+{ "?" } [ CHAR: \\ ch>morse ] unit-test
+{ "..." } [ CHAR: s ch>morse ] unit-test
+{ CHAR: s } [ "..." morse>ch ] unit-test
+{ CHAR: \s } [ "..--..--.." morse>ch ] unit-test
+{ "-- --- .-. ... . / -.-. --- -.. ." } [ "morse code" >morse ] unit-test
+{ "morse code" } [ "-- --- .-. ... . / -.-. --- -.. ." morse> ] unit-test
+{ "hello, world!" } [ "Hello, World!" >morse morse> ] unit-test
+{ ".- -... -.-." } [ "abc" >morse ] unit-test
 
-[ "abc" ] [ ".- -... -.-." morse> ] unit-test
+{ "abc" } [ ".- -... -.-." morse> ] unit-test
 
-[ "morse code" ] [
+{ "morse code" } [
     [MORSE
         -- --- .-. ... . /
         -.-. --- -.. .
     MORSE] >morse morse> ] unit-test
 
-[ "morse code 123" ] [
+{ "morse code 123" } [
     [MORSE
         __ ___ ._. ... . /
         _._. ___ _.. . /
         .____ ..___ ...__
     MORSE] ] unit-test
 
-[ [MORSE
+{ [MORSE
       -- --- .-. ... . /
       -.-. --- -.. .
-  MORSE] ] [
+  MORSE] } [
     "morse code" >morse morse>
 ] unit-test
 
-[ "factor rocks!" ] [
+{ "factor rocks!" } [
     [MORSE
       ..-. .- -.-. - --- .-. /
       .-. --- -.-. -.- ... -.-.--
index 48435512fd97d18d4d484807e1cc5e142d8186cc..1f3b35ade109d03bf4daaf0948b5f7f37f8137b8 100644 (file)
@@ -2,7 +2,7 @@ IN: msxml-to-csv.tests
 USING: msxml-to-csv tools.test csv io.encodings.utf8
 io.files.temp kernel ;
 
-[ t ] [
+{ t } [
     "test.csv" temp-file
     "resource:extra/msxml-to-csv/test.xml" msxml>csv
     "test.csv" temp-file utf8 file>csv
index 2c446dc229248a61d0ea56f5693d5c03e793e501..ae65b6a21821ce154451dbcd58897439f4a6f1e5 100644 (file)
@@ -4,30 +4,30 @@ USING: accessors eval kernel lexer nested-comments tools.test ;
 IN: nested-comments.tests
 
 ! Correct
-[ ] [
+{ } [
     "USE: nested-comments (* comment *)" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "USE: nested-comments (* comment*)" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "USE: nested-comments (* comment
 *)" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "USE: nested-comments (* comment
 *)" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "USE: nested-comments (* comment
 *)" eval( -- )
 ] unit-test
 
-[ ] [
+{ } [
     "USE: nested-comments (* comment
     (* *)
 
index e216637c51db149c2422674c27141e7f3aee6b46..a9438f3cbc0b1a9b4e15f9596e16be51bc6de8d4 100644 (file)
@@ -1,4 +1,4 @@
 IN: noise.tests
 USING: noise tools.test sequences math ;
 
-[ t ] [ { 100 100 } perlin-noise-map-coords [ [ 100 <= ] all? ] all? ] unit-test
+{ t } [ { 100 100 } perlin-noise-map-coords [ [ 100 <= ] all? ] all? ] unit-test
index 191c2af7ca1d654a13c8826ff4b7283e60ab7984..a1d3a21e79b2acc101ce4d550edf5b584ca5c715 100644 (file)
@@ -21,12 +21,12 @@ CONSTANT: -√2/2 $[ 0.5 sqrt neg ]
     { 1.0 0.0 1.0 }
 } { 0.0 0.0 0.0 0.25 0.25 0.5 0.5 0.75 0.75 1.0 1.0 1.0 } <nurbs-curve> test-nurbs set
 
-[ t ] [ test-nurbs get 0.0   eval-nurbs {   1.0   0.0 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.25  eval-nurbs {   0.0   1.0 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.5   eval-nurbs {  -1.0   0.0 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.75  eval-nurbs {   0.0  -1.0 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.0   eval-nurbs {   1.0   0.0 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.25  eval-nurbs {   0.0   1.0 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.5   eval-nurbs {  -1.0   0.0 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.75  eval-nurbs {   0.0  -1.0 } 0.00001 v~ ] unit-test
 
-[ t ] [ test-nurbs get 0.125 eval-nurbs ${ √2/2 √2/2 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.375 eval-nurbs ${ -√2/2 √2/2 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.625 eval-nurbs ${ -√2/2 -√2/2 } 0.00001 v~ ] unit-test
-[ t ] [ test-nurbs get 0.875 eval-nurbs ${ √2/2 -√2/2 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.125 eval-nurbs ${ √2/2 √2/2 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.375 eval-nurbs ${ -√2/2 √2/2 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.625 eval-nurbs ${ -√2/2 -√2/2 } 0.00001 v~ ] unit-test
+{ t } [ test-nurbs get 0.875 eval-nurbs ${ √2/2 -√2/2 } 0.00001 v~ ] unit-test
index 4e632b049e43a6d7c1f0f5b5e5fc0d505a739d26..e4ccf391ba9c2508861ddc0bbbf24dcfe5ff1480 100644 (file)
@@ -2,17 +2,17 @@ USING: oauth oauth.private tools.test accessors kernel assocs
 strings namespaces urls ;
 IN: oauth.tests
 
-[ "%26&b" ] [ "&" "b" hmac-key ] unit-test
-[ "%26&" ] [ "&" f hmac-key ] unit-test
+{ "%26&b" } [ "&" "b" hmac-key ] unit-test
+{ "%26&" } [ "&" f hmac-key ] unit-test
 
-[ "B&http%3A%2F%2Ftwitter.com%2F&a%3Db" ] [
+{ "B&http%3A%2F%2Ftwitter.com%2F&a%3Db" } [
     URL" http://twitter.com"
     "B"
     { { "a" "b" } }
     signature-base-string
 ] unit-test
 
-[ "0EieqbHx0FJ/RtFskmRj9/TDpqo=" ] [
+{ "0EieqbHx0FJ/RtFskmRj9/TDpqo=" } [
     "ABC" "DEF" <token> consumer-token set
 
     URL" http://twitter.com"
index 655293b82e990d8b6885cdc693fea9db896a2d54..4f4e5fb7e18fc005e78cd0fe0b26bee49c78eb11 100644 (file)
@@ -70,5 +70,5 @@ ERROR: cl-error err ;
     queue clReleaseCommandQueue cl-success
     context clReleaseContext cl-success ;
 
-[ float-array{ 1.0 4.0 9.0 16.0 100.0 } ]
+{ float-array{ 1.0 4.0 9.0 16.0 100.0 } }
 [ float-array{ 1.0 2.0 3.0 4.0 10.0 } opencl-square ] unit-test
index 90a40f9befd7017fe78411a6ed180e7f823e73f9..4b8fdeb0e44a9c5b5c4b463057892f89dc1c4971 100644 (file)
@@ -42,5 +42,5 @@ __kernel void square(
         ] with-cl-state
     ] with-destructors ;
 
-[ float-array{ 1.0 4.0 9.0 16.0 100.0 } ]
+{ float-array{ 1.0 4.0 9.0 16.0 100.0 } }
 [ float-array{ 1.0 2.0 3.0 4.0 10.0 } opencl-square ] unit-test
index ba8d5df4f0e1d641e4facb03b6967d162fef5d22..0d1d25d4a9bdd8effa09ebec927c9647c4f31f6e 100644 (file)
@@ -27,17 +27,17 @@ PAIR-M: barm thang blibble
 PAIR-M: barm zim blibble
     "coconut " class-names ;
 
-[ "vanilla zang-zim" ] [ zim new zang new blibble ] unit-test
+{ "vanilla zang-zim" } [ zim new zang new blibble ] unit-test
 
 ! args automatically swap to match most specific method
-[ "chocolate foom-zim" ] [ foom new zim  new blibble ] unit-test
-[ "chocolate foom-zim" ] [ zim  new foom new blibble ] unit-test
+{ "chocolate foom-zim" } [ foom new zim  new blibble ] unit-test
+{ "chocolate foom-zim" } [ zim  new foom new blibble ] unit-test
 
-[ "strawberry barm-barm" ] [ barm new barm new blibble ] unit-test
-[ "strawberry barm-foom" ] [ barm new foom new blibble ] unit-test
-[ "strawberry barm-foom" ] [ foom new barm new blibble ] unit-test
+{ "strawberry barm-barm" } [ barm new barm new blibble ] unit-test
+{ "strawberry barm-foom" } [ barm new foom new blibble ] unit-test
+{ "strawberry barm-foom" } [ foom new barm new blibble ] unit-test
 
-[ "coconut barm-zang" ] [ zang new barm new blibble ] unit-test
-[ "coconut barm-zim" ] [ barm new zim  new blibble ] unit-test
+{ "coconut barm-zang" } [ zang new barm new blibble ] unit-test
+{ "coconut barm-zim" } [ barm new zim  new blibble ] unit-test
 
 [ 1 2 blibble ] [ no-pair-method? ] must-fail-with
index 695e50ea7e43ab567abaad9abe2d5bdd735e98f9..d8d5a24602416b07f045030bf15a93110de7c15b 100644 (file)
@@ -2,9 +2,9 @@
 USING: kernel pair-rocket tools.test ;
 IN: pair-rocket.tests
 
-[ { "a" 1 } ] [ "a" => 1 ] unit-test
-[ { { "a" } { 1 } } ] [ { "a" } => { 1 } ] unit-test
-[ { drop 1 } ] [ drop => 1 ] unit-test
+{ { "a" 1 } } [ "a" => 1 ] unit-test
+{ { { "a" } { 1 } } } [ { "a" } => { 1 } ] unit-test
+{ { drop 1 } } [ drop => 1 ] unit-test
 
-[ H{ { "zippity" 5 } { "doo" 2 } { "dah" 7 } } ]
+{ H{ { "zippity" 5 } { "doo" 2 } { "dah" 7 } } }
 [ H{ "zippity" => 5 "doo" => 2 "dah" => 7 } ] unit-test
index 524f7680ed0c3c7757fc0de66e1b23ef21d5519b..90e5f8c8a81e2a1285f84965db250e50a4649a30 100644 (file)
@@ -5,19 +5,19 @@ SYMBOL: blah
 
 "blah" blah <pair> "b" set
 
-[ "blah" t ] [ blah "b" get at* ] unit-test
-[ f f ] [ "fdaf" "b" get at* ] unit-test
-[ 1 ] [ "b" get assoc-size ] unit-test
-[ { { blah "blah" } } ] [ "b" get >alist ] unit-test
-[ ] [ "bleah" blah "b" get set-at ] unit-test
-[ 1 ] [ "b" get assoc-size ] unit-test
-[ { { blah "bleah" } } ] [ "b" get >alist ] unit-test
-[ "bleah" t ] [ blah "b" get at* ] unit-test
-[ f f ] [ "fdaf" "b" get at* ] unit-test
+{ "blah" t } [ blah "b" get at* ] unit-test
+{ f f } [ "fdaf" "b" get at* ] unit-test
+{ 1 } [ "b" get assoc-size ] unit-test
+{ { { blah "blah" } } } [ "b" get >alist ] unit-test
+{ } [ "bleah" blah "b" get set-at ] unit-test
+{ 1 } [ "b" get assoc-size ] unit-test
+{ { { blah "bleah" } } } [ "b" get >alist ] unit-test
+{ "bleah" t } [ blah "b" get at* ] unit-test
+{ f f } [ "fdaf" "b" get at* ] unit-test
 [ blah "b" get delete-at ] must-fail
-[ ] [ 1 2 "b" get set-at ] unit-test
-[ "bleah" t ] [ blah "b" get at* ] unit-test
-[ 1 t ] [ 2 "b" get at* ] unit-test
-[ f f ] [ "fdaf" "b" get at* ] unit-test
-[ 2 ] [ "b" get assoc-size ] unit-test
-[ { { 2 1 } { blah "bleah" } } ] [ "b" get >alist ] unit-test
+{ } [ 1 2 "b" get set-at ] unit-test
+{ "bleah" t } [ blah "b" get at* ] unit-test
+{ 1 t } [ 2 "b" get at* ] unit-test
+{ f f } [ "fdaf" "b" get at* ] unit-test
+{ 2 } [ "b" get assoc-size ] unit-test
+{ { { 2 1 } { blah "bleah" } } } [ "b" get >alist ] unit-test
index 7db51c36de9d2d0a7f6334a862ffedd42aa3a67a..8639a03e96533415d620a08a00f2f3867a956239 100644 (file)
@@ -9,7 +9,7 @@ SYMBOL: sum
         '[ over + @ drop ] each-integer drop f
     ] bshift 2nip ; inline
 
-[ 55 ] [
+{ 55 } [
     0 sum set
     [ 1 10 range sum get + sum set f ] breset drop
     sum get
index c8a79fd0a69f5ad40344c14166a58b472151f45d..38d46f2b50585e2b2fbd3eb720cf931af30d9d32 100644 (file)
@@ -48,7 +48,7 @@ M: maze cost
 >>
 
 ! Existing path from s to f
-[
+{
     {
         { 1 1 }
         { 2 1 }
@@ -66,15 +66,15 @@ M: maze cost
         { 8 7 }
         { 8 6 }
     }
-] [
+} [
     { 8 6 } test1 drop
 ] unit-test
 
 ! Check that only the right positions have been considered in the s to f path
-[ 7 ] [ { 7 1 } test1 nip length ] unit-test
+{ 7 } [ { 7 1 } test1 nip length ] unit-test
 
 ! Non-existing path from s to g -- all positions must have been considered
-[ f 26 ] [ { 1 7 } test1 length ] unit-test
+{ f 26 } [ { 1 7 } test1 length ] unit-test
 
 ! Look for a path between A and C. The best path is A --> D --> C. C will be placed
 ! in the open set early because B will be examined first. This checks that the evaluation
@@ -110,16 +110,16 @@ MEMO: routes ( -- hash ) $[ { "ABD" "BC" "C" "DCE" "ECF" } [ unclip swap 2array
 >>
 
 ! Check path from A to C -- all nodes but F must have been examined
-[ "ADC" "ABCDE" ] [ "AC" test2 [ >string ] dip ] unit-test
+{ "ADC" "ABCDE" } [ "AC" test2 [ >string ] dip ] unit-test
 
 ! No path from D to B -- all nodes reachable from D must have been examined
-[ f "CDEF" ] [ "DB" test2 ] unit-test
+{ f "CDEF" } [ "DB" test2 ] unit-test
 
 ! Find a path using BFS. There are no path from F to A, and the path from D to
 ! C does not include any other node.
 
-[ f ] [ "FA" first2 routes <bfs> find-path ] unit-test
-[ "DC" ] [ "DC" first2 routes <bfs> find-path >string ] unit-test
+{ f } [ "FA" first2 routes <bfs> find-path ] unit-test
+{ "DC" } [ "DC" first2 routes <bfs> find-path >string ] unit-test
 
 <<
 
@@ -134,12 +134,12 @@ MEMO: costs ( -- costs )
 >>
 
 ! Check path from A to C -- all nodes but F must have been examined
-[ "ADC" "ABCDE" ] [ "AC" test3 [ >string ] dip ] unit-test
+{ "ADC" "ABCDE" } [ "AC" test3 [ >string ] dip ] unit-test
 
 ! No path from D to B -- all nodes reachable from D must have been examined
-[ f "CDEF" ] [ "DB" test3 ] unit-test
+{ f "CDEF" } [ "DB" test3 ] unit-test
 
-[ { 1 3 } ] [
+{ { 1 3 } } [
     1 3 H{
         { 1 H{ { 2 0 } { 3 0 } } }
         { 2 H{ { 3 0 } { 1 0 } { 4 0 } } }
index 491ae1efa6f1174b072b53c6c5b5d0c6aa1d6a8a..75b9c3b6305dc0e76b12f0d200883e9288609750 100644 (file)
@@ -1,4 +1,4 @@
 USING: pcre.ffi sequences splitting tools.test ;
 IN: pcre.ffi.tests
 
-[ 2 ] [ pcre_version " " split length ] unit-test
+{ 2 } [ pcre_version " " split length ] unit-test
index 7ad2997f566eef459a5013688c8a0d6f225cca82..ed1cdffc4971078b217b7c26e976c5714ebc4b18 100644 (file)
@@ -4,11 +4,11 @@ system tools.test ;
 QUALIFIED: regexp
 IN: pcre.tests
 
-[ { "Bords" "words" "word" } ] [
+{ { "Bords" "words" "word" } } [
     "Bords, words, word." { ", " ", " "." } split-subseqs
 ] unit-test
 
-[ { { 3 "day" } { 2 "month" } { 1 "year" } } ] [
+{ { { 3 "day" } { 2 "month" } { 1 "year" } } } [
     "(?P<year>\\d{4})-(?P<month>\\d{2})-(?P<day>\\d{2})"
     <compiled-pcre> nametable>>
 ] unit-test
@@ -17,66 +17,66 @@ CONSTANT: iso-date "(?P<year>\\d{4})-(?P<month>\\d{2})-(?P<day>\\d{2})"
 
 ! On windows the erroffset appears to be set to 0 despite there being
 ! nothing wrong with the regexp.
-[ t ] [
+{ t } [
     "foo" (pcre) 3array rest { { f -1 } { f 0 } } member?
 ] unit-test
 
-[ { 1 2 3 } ] [
+{ { 1 2 3 } } [
     iso-date <pcre>
     { "year" "month" "day" } [ pcre_get_stringnumber ] with map
 ] unit-test
 
-[ t ] [ "foo" <compiled-pcre> PCRE_UTF8 has-option? ] unit-test
+{ t } [ "foo" <compiled-pcre> PCRE_UTF8 has-option? ] unit-test
 
 os unix? [ [ 10 ] [ PCRE_CONFIG_NEWLINE pcre-config ] unit-test ] when
 
 ! In this day and age, not supporting utf-8 is broken.
-[ 1 ] [ PCRE_CONFIG_UTF8 pcre-config ] unit-test
+{ 1 } [ PCRE_CONFIG_UTF8 pcre-config ] unit-test
 
-[ 1 ] [ PCRE_CONFIG_UNICODE_PROPERTIES pcre-config ] unit-test
+{ 1 } [ PCRE_CONFIG_UNICODE_PROPERTIES pcre-config ] unit-test
 
 ! Ok if these options throw if the pcre library is to old to support
 ! these configuration parameters.
-[ t ] [
+{ t } [
     [ PCRE_CONFIG_UTF16 pcre-config ] [ what>> ] recover
     { 0 $ PCRE_CONFIG_UTF16 } member?
 ] unit-test
-[ t ] [
+{ t } [
     [ PCRE_CONFIG_UTF32 pcre-config ] [ what>> ] recover
     { 0 $ PCRE_CONFIG_UTF32 } member?
 ] unit-test
 
-[ 33 ]
+{ 33 }
 [
     [ "foo" <pcre> f 33 pcre-fullinfo ] [ what>> ] recover
 ] unit-test
 
 ! Tests for findall
-[
+{
     { { f "1999-01-12" } { "year" "1999" } { "month" "01" } { "day" "12" } }
-] [
+} [
     "1999-01-12" iso-date <compiled-pcre> findall first
 ] unit-test
 
-[ 3 ] [
+{ 3 } [
     "2003-10-09 1999-09-01 1514-10-20" iso-date <compiled-pcre> findall length
 ] unit-test
 
-[ 5 ] [ "abcdef" "[a-e]" findall length ] unit-test
+{ 5 } [ "abcdef" "[a-e]" findall length ] unit-test
 
-[ 3 ] [ "foo bar baz" "foo|bar|baz" findall length ] unit-test
+{ 3 } [ "foo bar baz" "foo|bar|baz" findall length ] unit-test
 
-[ 3 ] [ "örjan är åtta" "[åäö]" findall length ] unit-test
+{ 3 } [ "örjan är åtta" "[åäö]" findall length ] unit-test
 
-[ 3 ] [ "ÅÄÖ" "\\p{Lu}" findall length ] unit-test
+{ 3 } [ "ÅÄÖ" "\\p{Lu}" findall length ] unit-test
 
-[ 3 ] [ "foobar" "foo(?=bar)" findall first first second length ] unit-test
+{ 3 } [ "foobar" "foo(?=bar)" findall first first second length ] unit-test
 
-[ { { { f ", " } } { { f ", " } } { { f "." } } } ] [
+{ { { { f ", " } } { { f ", " } } { { f "." } } } } [
     "Words, words, word." "\\W+" findall
 ] unit-test
 
-[ { ", " ", " "." } ] [
+{ { ", " ", " "." } } [
     "Words, words, word." "\\W+" findall [ first second ] map
 ] unit-test
 
@@ -84,56 +84,56 @@ os unix? [ [ 10 ] [ PCRE_CONFIG_NEWLINE pcre-config ] unit-test ] when
     10000 [ CHAR: a CHAR: z [a,b] random ] "" replicate-as ;
 
 ! Performance
-[ 0 ] [ long-string ".{0,15}foobar.{0,10}" findall length ] unit-test
+{ 0 } [ long-string ".{0,15}foobar.{0,10}" findall length ] unit-test
 
 ! Empty matches, corner case behaviour is copied from pcredemo.c
-[ { { { f "foo" } } { { f "" } } } ]
+{ { { { f "foo" } } { { f "" } } } }
 [ "foo" ".*" findall ] unit-test
 
-[ { { { f "" } } { { f "" } } { { f "" } } } ]
+{ { { { f "" } } { { f "" } } { { f "" } } } }
 [ "foo" "B*" findall ] unit-test
 
 ! Empty matches in strings with multi-byte characters are tricky.
-[ { { { f "" } } { { f "" } } { { f "" } } { { f "" } } } ]
+{ { { { f "" } } { { f "" } } { { f "" } } { { f "" } } } }
 [ "öööö" "x*" findall ] unit-test
 
 ! Tests for matches?
-[ t ] [ "örjan" "örjan" matches? ] unit-test
+{ t } [ "örjan" "örjan" matches? ] unit-test
 
-[ t ] [ "abcö" "\\p{Ll}{4}" matches? ] unit-test
+{ t } [ "abcö" "\\p{Ll}{4}" matches? ] unit-test
 
 ! Dotall mode, off by default
-[ f ] [ "." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
-[ t ] [ "(?s)." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
+{ f } [ "." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
+{ t } [ "(?s)." <compiled-pcre> PCRE_DOTALL has-option? ] unit-test
 
-[ f ] [ "\n" "." matches? ] unit-test
-[ t ] [ "\n" "(?s)." matches? ] unit-test
+{ f } [ "\n" "." matches? ] unit-test
+{ t } [ "\n" "(?s)." matches? ] unit-test
 
 ! Caseless mode, off by default
-[ { f t } ] [
+{ { f t } } [
     { "x" "(?i)x" } [ <compiled-pcre> PCRE_CASELESS has-option? ] map
 ] unit-test
 
 ! Backreferences
-[ { t f } ] [
+{ { t f } } [
     { "response and responsibility" "sense and responsibility" }
     [ "(sens|respons)e and \\1ibility" matches? ] map
 ] unit-test
 
-[ { t t f } ] [
+{ { t t f } } [
     { "rah rah" "RAH RAH" "RAH rah" } [ "((?i)rah)\\s+\\1" matches? ] map
 ] unit-test
 
 ! Splitting
-[ { { "Words" "words" "word" } { "Words" "words" "word" } } ] [
+{ { { "Words" "words" "word" } { "Words" "words" "word" } } } [
     "Words, words, word." { "\\W+" "[,. ]" } [ split ] with map
 ] unit-test
 
 ! Bigger tests
-[ t ] [
+{ t } [
     "http://factorcode.org/" http-get nip
     "href=\"(?P<link>[^\"]+)\"" findall [ "link" of ] map sequence?
 ] unit-test
 
 ! Test that the regexp syntax works.
-[ t ] [ "1234abcd" regexp:R[ ^\d+\w+$] matches? ] unit-test
+{ t } [ "1234abcd" regexp:R[ ^\d+\w+$] matches? ] unit-test
index b42c3de56b055d1870cd9e80116bc50ebdf5cab4..ca00082c427557b9cab560bf0dd66e6d790f6ed3 100644 (file)
@@ -5,11 +5,11 @@ USING: pdf.units tools.test ;
 
 IN: pdf.units.tests
 
-[ 0 ] [ "0" string>points ] unit-test
-[ 1 ] [ "1" string>points ] unit-test
-[ 1.5 ] [ "1.5" string>points ] unit-test
+{ 0 } [ "0" string>points ] unit-test
+{ 1 } [ "1" string>points ] unit-test
+{ 1.5 } [ "1.5" string>points ] unit-test
 
-[ 12 ] [ "12pt" string>points ] unit-test
+{ 12 } [ "12pt" string>points ] unit-test
 
-[ 72.0 ] [ "1in" string>points ] unit-test
-[ 108.0 ] [ "1.5in" string>points ] unit-test
+{ 72.0 } [ "1in" string>points ] unit-test
+{ 108.0 } [ "1.5in" string>points ] unit-test
index b6890a64cd702be1d5b32ba150db2dbc9600a458..ee1f219e9c502a964d8c0c2532dfae13254e661a 100644 (file)
@@ -6,7 +6,7 @@ sequences tools.test ;
 
 IN: picomath
 
-[ t ] [
+{ t } [
     {
         { -3  -0.999977909503 }
         { -1  -0.842700792950 }
@@ -17,7 +17,7 @@ IN: picomath
     supremum 1e-6 <
 ] unit-test
 
-[ t ] [
+{ t } [
     {
         { -1               -0.632120558828558 }
         { 0.0              0.0 }
@@ -28,7 +28,7 @@ IN: picomath
     supremum 1e-6 <
 ] unit-test
 
-[ t ] [
+{ t } [
     {
         { -3  0.00134989803163 }
         { -1  0.158655253931 }
@@ -41,7 +41,7 @@ IN: picomath
 
 : factorial ( n -- n! ) [ 1 ] [ [1,b] 1 [ * ] reduce ] if-zero ;
 
-[ t ] [
+{ t } [
     { 0 1 10 100 1000 10000 } [
         [ factorial log ] [ log-factorial ] bi - abs
     ] map supremum 1e-6 <
@@ -50,7 +50,7 @@ IN: picomath
 : relative-error ( approx value -- relative-error )
     [ - abs ] keep / ;
 
-[ t ] [
+{ t } [
     {
         { 1e-20 1e+20 }
         { 2.19824158876e-16 4.5490905327e+15 }   ! 0.99*DBL_EPSILON
@@ -67,7 +67,7 @@ IN: picomath
     supremum 1e-6 <
 ] unit-test
 
-[ t ] [
+{ t } [
     {
         { 1e-12 27.6310211159 }
         { 0.9999 5.77297915613e-05 }
index 18f596c0e0f511083ac233767237b9a5a704360b..d3f8a6c4380786a16f2458a27e9a567549b3676c 100644 (file)
@@ -1,27 +1,27 @@
 USING: accessors kernel math math.order poker poker.private tools.test ;
 IN: poker.tests
 
-[ 134236965 ] [ "KD" >ckf ] unit-test
-[ 529159 ] [ "5s" >ckf ] unit-test
-[ 33589533 ] [ "jc" >ckf ] unit-test
+{ 134236965 } [ "KD" >ckf ] unit-test
+{ 529159 } [ "5s" >ckf ] unit-test
+{ 33589533 } [ "jc" >ckf ] unit-test
 
-[ 7462 ] [ "7C 5D 4H 3S 2C" string>value ] unit-test
-[ 1601 ] [ "KD QS JC TH 9S" string>value ] unit-test
-[ 11 ] [ "AC AD AH AS KC" string>value ] unit-test
-[ 9 ] [ "6C 5C 4C 3C 2C" string>value ] unit-test
-[ 1 ] [ "AC KC QC JC TC" string>value ] unit-test
+{ 7462 } [ "7C 5D 4H 3S 2C" string>value ] unit-test
+{ 1601 } [ "KD QS JC TH 9S" string>value ] unit-test
+{ 11 } [ "AC AD AH AS KC" string>value ] unit-test
+{ 9 } [ "6C 5C 4C 3C 2C" string>value ] unit-test
+{ 1 } [ "AC KC QC JC TC" string>value ] unit-test
 
-[ "High Card" ] [ "7C 5D 4H 3S 2C" string>hand-name ] unit-test
-[ "Straight" ] [ "KD QS JC TH 9S" string>hand-name ] unit-test
-[ "Four of a Kind" ] [ "AC AD AH AS KC" string>hand-name ] unit-test
-[ "Straight Flush" ] [ "6C 5C 4C 3C 2C" string>hand-name ] unit-test
+{ "High Card" } [ "7C 5D 4H 3S 2C" string>hand-name ] unit-test
+{ "Straight" } [ "KD QS JC TH 9S" string>hand-name ] unit-test
+{ "Four of a Kind" } [ "AC AD AH AS KC" string>hand-name ] unit-test
+{ "Straight Flush" } [ "6C 5C 4C 3C 2C" string>hand-name ] unit-test
 
-[ t ] [ "7C 5D 4H 3S 2C" "KD QS JC TH 9S" [ string>value ] bi@ > ] unit-test
-[ t ] [ "AC AD AH AS KC" "KD QS JC TH 9S" [ string>value ] bi@ < ] unit-test
-[ t ] [ "7C 5D 4H 3S 2C" "7D 5D 4D 3C 2S" [ string>value ] bi@ = ] unit-test
+{ t } [ "7C 5D 4H 3S 2C" "KD QS JC TH 9S" [ string>value ] bi@ > ] unit-test
+{ t } [ "AC AD AH AS KC" "KD QS JC TH 9S" [ string>value ] bi@ < ] unit-test
+{ t } [ "7C 5D 4H 3S 2C" "7D 5D 4D 3C 2S" [ string>value ] bi@ = ] unit-test
 
-[ t ] [ "7C 5D 4H 3S 2C" "2C 3S 4H 5D 7C" [ string>value ] bi@ = ] unit-test
+{ t } [ "7C 5D 4H 3S 2C" "2C 3S 4H 5D 7C" [ string>value ] bi@ = ] unit-test
 
-[ t ] [ "7C 5D 4H 3S 2C" "7D 5D 4D 3C 2S" [ string>value ] bi@ = ] unit-test
+{ t } [ "7C 5D 4H 3S 2C" "7D 5D 4D 3C 2S" [ string>value ] bi@ = ] unit-test
 
-[ 190 ] [ "AS KD JC KH 2D 2S KC" string>value ] unit-test
+{ 190 } [ "AS KD JC KH 2D 2S KC" string>value ] unit-test
index 10c5024d588c766b8c5a3a47647e0ce1441524d9..c2a1ed36b471547a896622e15331e80af02c79e6 100644 (file)
@@ -8,26 +8,26 @@ FROM: pop3 => count delete ;
 
 <promise> "p1" set
 
-[ ] [ "p1" get mock-pop3-server ] unit-test
-[ ] [
+{ } [ "p1" get mock-pop3-server ] unit-test
+{ } [
         <pop3-account>
             "127.0.0.1" >>host
             "p1" get 5 seconds ?promise-timeout >>port
         connect
 ] unit-test
-[ ] [ "username@host.com" >user ] unit-test
-[ ] [ "password" >pwd ] unit-test
-[ { "CAPA" "TOP" "UIDL" } ] [ capa ] unit-test
-[ 2 ] [ count ] unit-test
-[ H{ { 1 "1006" } { 2 "747" } } ] [ list ] unit-test
-[
+{ } [ "username@host.com" >user ] unit-test
+{ } [ "password" >pwd ] unit-test
+{ { "CAPA" "TOP" "UIDL" } } [ capa ] unit-test
+{ 2 } [ count ] unit-test
+{ H{ { 1 "1006" } { 2 "747" } } } [ list ] unit-test
+{
     H{
         { "From:" "from.first@mail.com" }
         { "Subject:" "First test with mock POP3 server" }
         { "To:" "username@host.com" }
     }
-] [ 1 0 top drop headers ] unit-test
-[
+} [ 1 0 top drop headers ] unit-test
+{
     {
         T{ message
             { # 1 }
@@ -46,17 +46,17 @@ FROM: pop3 => count delete ;
             { size "747" }
         }
     }
-] [ consolidate ] unit-test
-[ "000000d547ac2fc2" ] [ 1 uidl ] unit-test
-[ ] [ 1 delete ] unit-test
-[ ] [ reset ] unit-test
-[ ] [ close ] unit-test
+} [ consolidate ] unit-test
+{ "000000d547ac2fc2" } [ 1 uidl ] unit-test
+{ } [ 1 delete ] unit-test
+{ } [ reset ] unit-test
+{ } [ close ] unit-test
 
 
 <promise> "p2" set
 
-[ ] [ "p2" get mock-pop3-server ] unit-test
-[ ] [
+{ } [ "p2" get mock-pop3-server ] unit-test
+{ } [
         <pop3-account>
             "127.0.0.1" >>host
             "p2" get 5 seconds ?promise-timeout >>port
@@ -64,5 +64,5 @@ FROM: pop3 => count delete ;
             "password" >>pwd
         connect
 ] unit-test
-[ f ] [ 1 retrieve empty? ] unit-test
-[ ] [ close ] unit-test
+{ f } [ 1 retrieve empty? ] unit-test
+{ } [ close ] unit-test
index 32a72dfaf0d735df8b88b4fbc3147a69653e5f73..d08d1657299755ba868121f6aaaa1cd675e2602e 100644 (file)
@@ -1,8 +1,8 @@
 USING: project-euler.001 tools.test ;
 IN: project-euler.001.tests
 
-[ 233168 ] [ euler001 ] unit-test
-[ 233168 ] [ euler001a ] unit-test
-[ 233168 ] [ euler001b ] unit-test
-[ 233168 ] [ euler001c ] unit-test
-[ 233168 ] [ euler001d ] unit-test
+{ 233168 } [ euler001 ] unit-test
+{ 233168 } [ euler001a ] unit-test
+{ 233168 } [ euler001b ] unit-test
+{ 233168 } [ euler001c ] unit-test
+{ 233168 } [ euler001d ] unit-test
index 46015bee3edb82112343a09a1bb705650eda2ded..d614a9ac5ea8560dacd9483aa1e01f698bf65702 100644 (file)
@@ -1,6 +1,6 @@
 USING: project-euler.002 tools.test ;
 IN: project-euler.002.tests
 
-[ 4613732 ] [ euler002 ] unit-test
-[ 4613732 ] [ euler002a ] unit-test
-[ 4613732 ] [ euler002b ] unit-test
+{ 4613732 } [ euler002 ] unit-test
+{ 4613732 } [ euler002a ] unit-test
+{ 4613732 } [ euler002b ] unit-test
index ab136a8c20429974e12a10e358b82b880c533a22..8981fd838f1c74162d6d5650fc2adf553f2b1159 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.003 tools.test ;
 IN: project-euler.003.tests
 
-[ 6857 ] [ euler003 ] unit-test
+{ 6857 } [ euler003 ] unit-test
index 6640e7e41195cffa0e8be6dc00917b55e957c63a..cadd323a0cc546d7dee730408979481ecd8fdc4a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.004 tools.test ;
 IN: project-euler.004.tests
 
-[ 906609 ] [ euler004 ] unit-test
+{ 906609 } [ euler004 ] unit-test
index 1d17b2e432de67af7ed272d77b98e1dc45a39253..b88c566d98eaf37522ddad5089f67d8a2a26aced 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.005 tools.test ;
 IN: project-euler.005.tests
 
-[ 232792560 ] [ euler005 ] unit-test
+{ 232792560 } [ euler005 ] unit-test
index 56fbbd342149ee44db03625f6e127e62fe7012dc..ec5e103095f9097f7461145659becbc77884bc45 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.006 tools.test ;
 IN: project-euler.006.tests
 
-[ 25164150 ] [ euler006 ] unit-test
+{ 25164150 } [ euler006 ] unit-test
index ab2bf1547cb52a72f7676204878fa801135e728f..c828266d594358624f61394c8b3eb86ad2791360 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.007 tools.test ;
 IN: project-euler.007.tests
 
-[ 104743 ] [ euler007 ] unit-test
+{ 104743 } [ euler007 ] unit-test
index 15fd9f464818d46994f4286765d889ec7342915e..2dea1059a7958288b871cb6463cdea1e2dac39db 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.008 tools.test ;
 IN: project-euler.008.tests
 
-[ 40824 ] [ euler008 ] unit-test
+{ 40824 } [ euler008 ] unit-test
index 20be369818209c850de09a3ed47c500276e57bed..56de7f5f5ff06ba93c7e11993ff8cff3fb9c5690 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.009 tools.test ;
 IN: project-euler.009.tests
 
-[ 31875000 ] [ euler009 ] unit-test
+{ 31875000 } [ euler009 ] unit-test
index b110ce882482e566b7b385f2214cbc8f34067621..18d066be48c8db7ecf43fd23a7b110e0d8bfd975 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.010 tools.test ;
 IN: project-euler.010.tests
 
-[ 142913828922 ] [ euler010 ] unit-test
+{ 142913828922 } [ euler010 ] unit-test
index 5c48320f561927217e4e669c5f2bf12d8ad10b4e..4932a84737f31cb1ff568571ed308d31139377a4 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.011 tools.test ;
 IN: project-euler.011.tests
 
-[ 70600674 ] [ euler011 ] unit-test
+{ 70600674 } [ euler011 ] unit-test
index c2d9730f057319d6a2cb0f739bc455a870e3b47a..2cd7b4041613368d6942e10bd865816ac8a25f43 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.012 tools.test ;
 IN: project-euler.012.tests
 
-[ 76576500 ] [ euler012 ] unit-test
+{ 76576500 } [ euler012 ] unit-test
index 3d9f88d84e32b541931404556d8f99115f187aff..a0c603fe1bb8a53d1e896db21a6b92b1e4d5e831 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.013 tools.test ;
 IN: project-euler.013.tests
 
-[ 5537376230 ] [ euler013 ] unit-test
+{ 5537376230 } [ euler013 ] unit-test
index b423c903237ab82f22655882dac1364f5610c754..4d6c12cfe6528e30c0e34bd32df389ce63bb0781 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.014 tools.test ;
 IN: project-euler.014.tests
 
-[ 837799 ] [ euler014 ] unit-test
-[ 837799 ] [ euler014a ] unit-test
+{ 837799 } [ euler014 ] unit-test
+{ 837799 } [ euler014a ] unit-test
index 9c86421889d772325d8ad69f2fbee082aaf82d33..bdf701cd0b1f5e2dd979cdd8b9a887129c3c2d99 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.015 tools.test ;
 IN: project-euler.015.tests
 
-[ 137846528820 ] [ euler015 ] unit-test
+{ 137846528820 } [ euler015 ] unit-test
index e75a114e680c040c41ce27dadfdbb81f524f3d34..0b6dfe2eec4c98428097133844869c27fddc4b19 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.016 tools.test ;
 IN: project-euler.016.tests
 
-[ 1366 ] [ euler016 ] unit-test
+{ 1366 } [ euler016 ] unit-test
index 3c2b2d548722a3e477a79cf024c9a1581ee0fa93..798d3715eecac9d4305c7a24339658e8cb9370d7 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.017 tools.test ;
 IN: project-euler.017.tests
 
-[ 21124 ] [ euler017 ] unit-test
+{ 21124 } [ euler017 ] unit-test
index 1d4d65079e0375bf31d21690cc60b42bdc563b76..cdade9e36311bf66d7c579ffce7005073fdd1f5c 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.018 tools.test ;
 IN: project-euler.018.tests
 
-[ 1074 ] [ euler018 ] unit-test
-[ 1074 ] [ euler018a ] unit-test
+{ 1074 } [ euler018 ] unit-test
+{ 1074 } [ euler018a ] unit-test
index 543c01b06e268023fb5d1a1cbb0192db01e6a329..2353e10b5b0b2d8106e284fbb8e22df3bd2e64a3 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.019 tools.test ;
 IN: project-euler.019.tests
 
-[ 171 ] [ euler019 ] unit-test
-[ 171 ] [ euler019a ] unit-test
+{ 171 } [ euler019 ] unit-test
+{ 171 } [ euler019a ] unit-test
index 2d9175bb188af7c04ad322fe570e85f3d1d423d4..58f388543a0ca1dfc15993c5b740dab4234744e3 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.020 tools.test ;
 IN: project-euler.020.tests
 
-[ 648 ] [ euler020 ] unit-test
+{ 648 } [ euler020 ] unit-test
index f20ae562c2f31f04fd08b92ca8c0dc50dde3d06c..3b400d6799e58fbb9fc8388ca742957d1d9dbde4 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.021 tools.test ;
 IN: project-euler.021.tests
 
-[ 31626 ] [ euler021 ] unit-test
+{ 31626 } [ euler021 ] unit-test
index bcd5c18166a6a262fd4867a83687d1f93c4be3ba..b419acaf7763d9de2b751aa9e144cfd5269df318 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.022 tools.test ;
 IN: project-euler.022.tests
 
-[ 871198282 ] [ euler022 ] unit-test
+{ 871198282 } [ euler022 ] unit-test
index bba4173147c4558155e5c0f4376716b46b562514..f38b471ba13e8571da4a976e9aed66416cb3c359 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.023 tools.test ;
 IN: project-euler.023.tests
 
-[ 4179871 ] [ euler023 ] unit-test
+{ 4179871 } [ euler023 ] unit-test
index fe722e587e0b80184b68284c855ee224b3a8e0b6..d05ea1c387054a1d87b64c9664be6fb7ea4e822a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.024 tools.test ;
 IN: project-euler.024.tests
 
-[ 2783915460 ] [ euler024 ] unit-test
+{ 2783915460 } [ euler024 ] unit-test
index 0de6820de933549067208507a5b23b8b8ac073fd..beb457163f1985a11ce6b56896aba2a4baa94682 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.025 tools.test ;
 IN: project-euler.025.tests
 
-[ 4782 ] [ euler025 ] unit-test
-[ 4782 ] [ euler025a ] unit-test
+{ 4782 } [ euler025 ] unit-test
+{ 4782 } [ euler025a ] unit-test
index 1b9b953c269e01f3220815607924bb73c626c1eb..2ea442af6112732081d6a5a7c51b3d1435ee4334 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.026 tools.test ;
 IN: project-euler.026.tests
 
-[ 983 ] [ euler026 ] unit-test
+{ 983 } [ euler026 ] unit-test
index 614d8a547d0a622c087b8ddb05f51de53a95cec1..bb03ef5813ab063a875092da4a2f8bd65a5091e3 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.027 tools.test ;
 IN: project-euler.027.tests
 
-[ -59231 ] [ euler027 ] unit-test
+{ -59231 } [ euler027 ] unit-test
index fea5ef1c80b9d1c90af2a202daa7505f41071424..2489f453cb3d3b78e970e262be73e740afbaf73b 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.028 tools.test ;
 IN: project-euler.028.tests
 
-[ 669171001 ] [ euler028 ] unit-test
+{ 669171001 } [ euler028 ] unit-test
index 5fd064fb0bb3cefcff0f24d103324835f0d356e0..0ee8da31b431399613f288dc6b9b96a7763b8469 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.029 tools.test ;
 IN: project-euler.029.tests
 
-[ 9183 ] [ euler029 ] unit-test
+{ 9183 } [ euler029 ] unit-test
index 3b0d03025b5ea8807d21bc389ae483c544352a93..9439ebc300ded096b203e26a145064cc46cee53a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.030 tools.test ;
 IN: project-euler.030.tests
 
-[ 443839 ] [ euler030 ] unit-test
+{ 443839 } [ euler030 ] unit-test
index 5e8171736809cb5b6af985a8a7bb305d6d4c0db9..0951a235a1f14e5234f0070c34e8812a71645b90 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.031 tools.test ;
 IN: project-euler.031.tests
 
-[ 73682 ] [ euler031 ] unit-test
+{ 73682 } [ euler031 ] unit-test
index 039c31df1b0b0f014b1ba6cb2974a494fc6eef69..66b1ebcc5660d9a3509f5a9d1b1937b9463be78c 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.032 tools.test ;
 IN: project-euler.032.tests
 
-[ 45228 ] [ euler032 ] unit-test
-[ 45228 ] [ euler032a ] unit-test
+{ 45228 } [ euler032 ] unit-test
+{ 45228 } [ euler032a ] unit-test
index e57d623692fa964caba71d157354e5a595ec93f3..76f4b405aca8968f9a700c334166c29b7aa6a42b 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.033 tools.test ;
 IN: project-euler.033.tests
 
-[ 100 ] [ euler033 ] unit-test
+{ 100 } [ euler033 ] unit-test
index 56d2bbb517595f456ef3c71e9471dd3f6d8d7347..d8f72e7d49051851f0c473e7ede2405732363ef1 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.034 tools.test ;
 IN: project-euler.034.tests
 
-[ 40730 ] [ euler034 ] unit-test
+{ 40730 } [ euler034 ] unit-test
index 0ede690e17f46c1e4a7b8565b6619ae40f7bf156..2f1fdd378fcd09078bc9f1ffc5139d316468789c 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.035 tools.test ;
 IN: project-euler.035.tests
 
-[ 55 ] [ euler035 ] unit-test
+{ 55 } [ euler035 ] unit-test
index 07c2d76915be8e2c0b5c3801651bd61f7afc0b00..e26ddc66cdf2766e474418ea86bf5e28c9e8f781 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.036 tools.test ;
 IN: project-euler.036.tests
 
-[ 872187 ] [ euler036 ] unit-test
+{ 872187 } [ euler036 ] unit-test
index b661e5be089feeef27342154b5eca3996e8f406c..9d566842edcfbeb3a0d3d9213bda2dbef98bdae4 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.037 tools.test ;
 IN: project-euler.037.tests
 
-[ 748317 ] [ euler037 ] unit-test
+{ 748317 } [ euler037 ] unit-test
index 0bad86994312a9880600c12a1aa5a263f90a14be..b929759476de1c7c9b8bd0847c6b7940de4a0261 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.038 tools.test ;
 IN: project-euler.038.tests
 
-[ 932718654 ] [ euler038 ] unit-test
+{ 932718654 } [ euler038 ] unit-test
index 742550a6cf35cbfc9d973e4a0217ea07580bb480..a91df942c7bc35c8ee942689066d260a7ebeeb80 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.039 tools.test ;
 IN: project-euler.039.tests
 
-[ 840 ] [ euler039 ] unit-test
+{ 840 } [ euler039 ] unit-test
index 5934e65ed64779c1a78c964b6804cb6d725448f7..01172713d21fe725078ac4d61bbd0381b7ce3187 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.040 tools.test ;
 IN: project-euler.040.tests
 
-[ 210 ] [ euler040 ] unit-test
+{ 210 } [ euler040 ] unit-test
index 5226860bd074f281500724bf85bd5b147f003b90..9d5f8c54f375b6e23ad1edc88973499a509d0fad 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.041 tools.test ;
 IN: project-euler.041.tests
 
-[ 7652413 ] [ euler041 ] unit-test
+{ 7652413 } [ euler041 ] unit-test
index ef8f06f9e024ab905f89edff3e5183275e75c7d2..200ec4cc3fd24f045dc851e5bb03431f816dc742 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.042 tools.test ;
 IN: project-euler.042.tests
 
-[ 162 ] [ euler042 ] unit-test
-[ 162 ] [ euler042a ] unit-test
+{ 162 } [ euler042 ] unit-test
+{ 162 } [ euler042a ] unit-test
index 4c96721db29ce91bd7868c05d91249974865b1fa..c67b0a6600a3d8364e55390ed349c097553807e2 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.043 tools.test ;
 IN: project-euler.043.tests
 
-[ 16695334890 ] [ euler043 ] unit-test
-[ 16695334890 ] [ euler043a ] unit-test
+{ 16695334890 } [ euler043 ] unit-test
+{ 16695334890 } [ euler043a ] unit-test
index df93dd6a1becbb125591d00461971ad919a82c6e..3d247a31b152bf68ffc60fe040bed375c13cd72e 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.044 tools.test ;
 IN: project-euler.044.tests
 
-[ 5482660 ] [ euler044 ] unit-test
+{ 5482660 } [ euler044 ] unit-test
index 4beb8f8e3c242691846dc4552e101205259ec009..9f794e571836fa773c2cf891bd94a8e07cbbe5b2 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.045 tools.test ;
 IN: project-euler.045.tests
 
-[ 1533776805 ] [ euler045 ] unit-test
+{ 1533776805 } [ euler045 ] unit-test
index ecfff9dd77e37f7035f4f21cdf0b78b1e54d8096..b81b72ce29f70e94b788a3d76171de48ef2341e9 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.046 tools.test ;
 IN: project-euler.046.tests
 
-[ 5777 ] [ euler046 ] unit-test
+{ 5777 } [ euler046 ] unit-test
index fb3c72f736d3b23e039735bae84b6025f0c96067..6f35dae1e6f676975d11a61c13db4a8129b3d814 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.047 tools.test ;
 IN: project-euler.047.tests
 
-[ 134043 ] [ euler047 ] unit-test
-[ 134043 ] [ euler047a ] unit-test
+{ 134043 } [ euler047 ] unit-test
+{ 134043 } [ euler047a ] unit-test
index 172623ab0542d3b80f19d2110a78327fdb3a22f8..1fa2a1635a41e4abce3b1a7569743b61c5f3662e 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.048 tools.test ;
 IN: project-euler.048.tests
 
-[ 9110846700 ] [ euler048 ] unit-test
+{ 9110846700 } [ euler048 ] unit-test
index 679647ac186aac0666cebf12732bf7c38da68434..02e7dfb05f8280d88678ce84ea56f25ae6a86f67 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.049 tools.test ;
 IN: project-euler.049.tests
 
-[ 296962999629 ] [ euler049 ] unit-test
+{ 296962999629 } [ euler049 ] unit-test
index 2bd5482f7e6d6f9edf2a9f825c33f20a623b404f..da56dcdf15eecaeb034ae4033abba76668a9ecf4 100644 (file)
@@ -1,6 +1,6 @@
 USING: project-euler.050 project-euler.050.private tools.test ;
 IN: project-euler.050.tests
 
-[ 41 ] [ 100 solve ] unit-test
-[ 953 ] [ 1000 solve ] unit-test
-[ 997651 ] [ euler050 ] unit-test
+{ 41 } [ 100 solve ] unit-test
+{ 953 } [ 1000 solve ] unit-test
+{ 997651 } [ euler050 ] unit-test
index f6bd5bc37a49a4e4f0f3c13a5c5cdbd86151fc58..fc3e56a440f561b087f745c91bad9f37f174dee2 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.051 tools.test ;
 IN: project-euler.051.tests
 
-[ 121313 ] [ euler051 ] unit-test
+{ 121313 } [ euler051 ] unit-test
index be032c86a385fd2cf952907e1ed66a0d8087fbce..e478484d06e7c7ac6875545f496c176708052705 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.052 tools.test ;
 IN: project-euler.052.tests
 
-[ 142857 ] [ euler052 ] unit-test
+{ 142857 } [ euler052 ] unit-test
index 6c9ffaea97fd4191738791d69123e6b672063724..0a990216ce3bdf3916b683c7126b1726b018147b 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.053 tools.test ;
 IN: project-euler.053.tests
 
-[ 4075 ] [ euler053 ] unit-test
+{ 4075 } [ euler053 ] unit-test
index 31e915c70ceb86c6fcd354b7e6cb719972f26f95..a9607980847ee1588770fa41e5828bc8663215f5 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.054 tools.test ;
 IN: project-euler.054.tests
 
-[ 376 ] [ euler054 ] unit-test
+{ 376 } [ euler054 ] unit-test
index ad23695da6aab465d0f988394e963f3ce28edcc6..fe5e37d074a2e59707ba26c6a732eb95a056aff0 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.055 tools.test ;
 IN: project-euler.055.tests
 
-[ 249 ] [ euler055 ] unit-test
+{ 249 } [ euler055 ] unit-test
index b1f37514d184b66f8a79af33fb284ab3d0edc922..c399eafb3cd089ae0e4b67c7731df6f3e14978b9 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.056 tools.test ;
 IN: project-euler.056.tests
 
-[ 972 ] [ euler056 ] unit-test
+{ 972 } [ euler056 ] unit-test
index 231c7339a3e396163d4209b762cf28d80cd17285..640e9c9269b2339e583b88bda13c9dc2b488505e 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.059 tools.test ;
 IN: project-euler.059.tests
 
-[ 107359 ] [ euler059 ] unit-test
+{ 107359 } [ euler059 ] unit-test
index d8e0b9682ee3d5f0b68823f6c2cd5d5ddb110fe0..0be629eebe71427559c798d910d24e0960e98f0f 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.062 tools.test ;
 IN: project-euler.062.tests
 
-[ 127035954683 ] [ euler062 ] unit-test
+{ 127035954683 } [ euler062 ] unit-test
index 8d16cce32e0aa5225ff963bd788fd08993ff4752..3057d8e2e0153c9d5ecf87cfacc68914981631df 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.065 tools.test ;
 IN: project-euler.065.tests
 
-[ 272 ] [ euler065 ] unit-test
+{ 272 } [ euler065 ] unit-test
index 1e8940f91e001c4775ec34f00b26cc55fef023ac..411ed61dd8a53b9895c2a6d8451162213e6f4386 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.067 tools.test ;
 IN: project-euler.067.tests
 
-[ 7273 ] [ euler067 ] unit-test
-[ 7273 ] [ euler067a ] unit-test
+{ 7273 } [ euler067 ] unit-test
+{ 7273 } [ euler067a ] unit-test
index d402b16902fee1d571c6509dd3b4c5873caee62c..f03faa7ebbd68bc2c3bb50b1fdbc27c6e80048aa 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.070 tools.test ;
 IN: project-euler.070.tests
 
-[ 8319823 ] [ euler070 ] unit-test
+{ 8319823 } [ euler070 ] unit-test
index ba61d7640b2e3ca19380240be9f1a0933405f424..6c864e62ed9a71f0d9d8b96cedd9f6d7d5904b28 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.071 tools.test ;
 IN: project-euler.071.tests
 
-[ 428570 ] [ euler071 ] unit-test
+{ 428570 } [ euler071 ] unit-test
index 80a8949d0dbe13aace898fcffcf910774e1a07ef..1cbecd96ef8a6f265bf43795ee279052c32e9912 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.072 tools.test ;
 IN: project-euler.072.tests
 
-[ 303963552391 ] [ euler072 ] unit-test
+{ 303963552391 } [ euler072 ] unit-test
index 6389150c391fa02816c2e12d8c5d6254d072f0ed..7816602fe3ea5cfd1d385a962c10d8cd89188bbf 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.073 tools.test ;
 IN: project-euler.073.tests
 
-[ 5066251 ] [ euler073 ] unit-test
+{ 5066251 } [ euler073 ] unit-test
index 9287480a849874815d19f99cce64526ed0ca937c..502de72778ed12ea2f63822339512e3b2d81aa9f 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.074 tools.test ;
 IN: project-euler.074.tests
 
-[ 402 ] [ euler074 ] unit-test
+{ 402 } [ euler074 ] unit-test
index 8c69a99e1b869a8b6c4b8c2299fc7dbf077ddc00..77d8d146325f554990f42ce8e5001beccf2463b1 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.075 tools.test ;
 IN: project-euler.075.tests
 
-[ 214954 ] [ euler075 ] unit-test
+{ 214954 } [ euler075 ] unit-test
index 9d435b1f30c1cd2ee45202fee904735006c7b1c9..58f0b58d9b2e0c2d8835a55e8be93e508c3f4aef 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.076 tools.test ;
 IN: project-euler.076.tests
 
-[ 190569291 ] [ euler076 ] unit-test
+{ 190569291 } [ euler076 ] unit-test
index d9f47cffb8bac549641cab21bad2f008076a577d..4f251d61ca216bd20dee3f46849dcfd5c5d7f428 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.079 tools.test ;
 IN: project-euler.079.tests
 
-[ 73162890 ] [ euler079 ] unit-test
+{ 73162890 } [ euler079 ] unit-test
index aba9676f8755c58862de9d39406b5376c2247b84..29966f805e30ea051cb9ab54b1407e7ce0e2d016 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.081 tools.test ;
 IN: project-euler.081.tests
 
-[ 427337 ] [ euler081 ] unit-test
+{ 427337 } [ euler081 ] unit-test
index 2dadf6a4545a2be2a3d0d33248696f723e93ccab..ecf533185f6932497c7af5c04e0c19f54a29f81a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.085 tools.test ;
 IN: project-euler.085.tests
 
-[ 2772 ] [ euler085 ] unit-test
+{ 2772 } [ euler085 ] unit-test
index 9b26b347b0baa85a2a46127dbb762e2af0de61a6..1dcd388c1e0889548c0d589fcbc0ad02f46c2f38 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.089 tools.test ;
 IN: project-euler.089.tests
 
-[ 743 ] [ euler089 ] unit-test
+{ 743 } [ euler089 ] unit-test
index 0a89e18504241518e4d683a1d5159a65b58897a1..0b6e042517d8102319e3c0dd0635e6d6ba96b2c2 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.092 tools.test ;
 IN: project-euler.092.tests
 
-[ 8581146 ] [ euler092 ] unit-test
+{ 8581146 } [ euler092 ] unit-test
index 3a484032ae53126b4c3cd7178a20acbbbb48c85e..7ca5e9fa646059c5c9b35b1602d753aaf455635e 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.097 tools.test ;
 IN: project-euler.097.tests
 
-[ 8739992577 ] [ euler097 ] unit-test
+{ 8739992577 } [ euler097 ] unit-test
index d3d46d98b473b540b7cfb4068c5ef5c357949f89..12402d730a4502fbf796937bb176a78b91239d40 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.099 project-euler.099.private tools.test ;
 IN: project-euler.099.tests
 
-[ 2 ] [ { { 2 11 } { 3 7 } } solve ] unit-test
-[ 709 ] [ euler099 ] unit-test
+{ 2 } [ { { 2 11 } { 3 7 } } solve ] unit-test
+{ 709 } [ euler099 ] unit-test
index bbe84eb86e0e04c71e94d7d44b01e65fed29ea19..b9bc6352ad15aefa161b3483d18b7c1c91eccea2 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.100 tools.test ;
 IN: project-euler.100.tests
 
-[ 756872327473 ] [ euler100 ] unit-test
+{ 756872327473 } [ euler100 ] unit-test
index 897f21a1b518afd1f08ba23338ee3a7e83e7e5e8..bd5236a8bc969a1f8b118cc6a240f05ead2acce7 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.102 tools.test ;
 IN: project-euler.102.tests
 
-[ 228 ] [ euler102 ] unit-test
+{ 228 } [ euler102 ] unit-test
index da98bc9b000eb37995f5e3f8b0c346a15b0addad..9e215ea750fe3164d3491a49f300f54e1e842f78 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.112 tools.test ;
 IN: project-euler.112.tests
 
-[ 1587000 ] [ euler112 ] unit-test
+{ 1587000 } [ euler112 ] unit-test
index fae67f3d2dcc91fb038896c8ca5cf4093fa151ab..de0cc8ffc8579eaee4e988787823e4c729e51c4e 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.116 tools.test ;
 IN: project-euler.116.tests
 
-[ 20492570929 ] [ euler116 ] unit-test
+{ 20492570929 } [ euler116 ] unit-test
index ba677cf49d99cd36db9d7b60c8cc187f0496a5ff..359e22ed458277ade6797404bde36334196ca621 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.117 tools.test ;
 IN: project-euler.117.tests
 
-[ 100808458960497 ] [ euler117 ] unit-test
+{ 100808458960497 } [ euler117 ] unit-test
index cdbb5afc18c2c813b92eefc25b7ac07f5dad7b4b..46708046fe3c31373696c7425dcd1e4736db4e4a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.124 tools.test ;
 IN: project-euler.124.tests
 
-[ 21417 ] [ euler124 ] unit-test
+{ 21417 } [ euler124 ] unit-test
index 63c25eaf587dbe6127e405e7c5834a052d3c5714..0b2f348fdfa28eae1e6c81b285004a03a49b7070 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.134 tools.test ;
 IN: project-euler.134.tests
 
-[ 18613426663617118 ] [ euler134 ] unit-test
+{ 18613426663617118 } [ euler134 ] unit-test
index 66c8f6c45c9940cfa169ed6695b272c37511cb23..9907a3347f48240e754cccfb11d2c44b179b3a4b 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.148 tools.test ;
 IN: project-euler.148.tests
 
-[ 2129970655314432 ] [ euler148 ] unit-test
+{ 2129970655314432 } [ euler148 ] unit-test
index 19fb31b3eba1beb261f0a8aa3924c0da2bb9c773..f81094e1882584956b65a013eaee3eaa5c61b0ac 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.150 tools.test ;
 IN: project-euler.150.tests
 
-[ -271248680 ] [ euler150 ] unit-test
+{ -271248680 } [ euler150 ] unit-test
index beea8e3645fad5abece1c65e61be124e82353073..45df689c4aafbeaae54390678b253122f20dbdf9 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.151 tools.test ;
 IN: project-euler.151.tests
 
-[ 12138569781349/26138246400000 ] [ euler151 ] unit-test
+{ 12138569781349/26138246400000 } [ euler151 ] unit-test
index 013e8bd87244aae678490ab50779cf54ee16c755..19a6a23d28d550ec550918af587f7dcfbd95bc65 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.164 tools.test ;
 IN: project-euler.164.tests
 
-[ 378158756814587 ] [ euler164 ] unit-test
+{ 378158756814587 } [ euler164 ] unit-test
index 0722e7fa161f8ddadbb85f3c12e6e049e71e2223..267401487020539d503d8696bcec97737267cb07 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.169 tools.test ;
 IN: project-euler.169.tests
 
-[ 178653872807 ] [ euler169 ] unit-test
+{ 178653872807 } [ euler169 ] unit-test
index 9417ba862f456e75d4626dcc16a93bca06b0d782..f68bfd3e8cfc5026cd46a4ab9b68b546c500c013 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.173 tools.test ;
 IN: project-euler.173.tests
 
-[ 1572729 ] [ euler173 ] unit-test
+{ 1572729 } [ euler173 ] unit-test
index 541aa7dc47ae8597725a333f9f652094e3080f14..fd691f9caded7054c17a378da76ad8fdc9ace150 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.175 tools.test ;
 IN: project-euler.175.tests
 
-[ "1,13717420,8" ] [ euler175 ] unit-test
+{ "1,13717420,8" } [ euler175 ] unit-test
index aa0debbbe3f586370033b024646e33549ab58cb4..bb4303a5bce20f20b2b7e289a166ed8265aaea4a 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.188 tools.test ;
 IN: project-euler.188.tests
 
-[ 95962097 ] [ euler188 ] unit-test
+{ 95962097 } [ euler188 ] unit-test
index edcfa981bb21b398f52699e80d82f5645be3d9ce..2bb513f3481af89afdff64a1f254d6efde15efc9 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.190 tools.test ;
 IN: project-euler.190.tests
 
-[ 371048281 ] [ euler190 ] unit-test
+{ 371048281 } [ euler190 ] unit-test
index 4922f9a8ccebe96cb8187321d20beb67e71c937d..b9c6652b74956562d98e90fc101692a8c0cc2268 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.203 project-euler.203.private tools.test ;
 IN: project-euler.203.tests
 
-[ 105 ] [ 8 solve ] unit-test
-[ 34029210557338 ] [ euler203 ] unit-test
+{ 105 } [ 8 solve ] unit-test
+{ 34029210557338 } [ euler203 ] unit-test
index 132adfb05e854f87ce85a4ec268dd9b0595bf014..7ed3b665401251fb33ee1e566d14b3ffac87287d 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.206 tools.test ;
 IN: project-euler.206.tests
 
-[ 1389019170 ] [ euler206 ] unit-test
+{ 1389019170 } [ euler206 ] unit-test
index 9d265b70d2f0124819d0fe969e232ca25a2e7fa6..de74c4a9e9e57b1fab9e67891818a85ead943f2b 100644 (file)
@@ -1,5 +1,5 @@
 USING: project-euler.215 project-euler.215.private tools.test ;
 IN: project-euler.215.tests
 
-[ 8 ] [ 9 3 solve ] unit-test
-[ 806844323190414 ] [ euler215 ] unit-test
+{ 8 } [ 9 3 solve ] unit-test
+{ 806844323190414 } [ euler215 ] unit-test
index b506144e3d2e958c5e972f3a6d616ef469ff36b2..57a1726eacb96fe044f4328f3edb27eae4303b03 100644 (file)
@@ -1,4 +1,4 @@
 USING: project-euler.255 tools.test ;
 IN: project-euler.255.tests
 
-[ 4.4474011180 ] [ euler255 ] unit-test
+{ 4.4474011180 } [ euler255 ] unit-test
index 5e6a7f40c401f94500569aac22018292f0dc2f6b..c227b9748937755e833ca6bb6cebb6628288af87 100644 (file)
@@ -2,4 +2,4 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: project-euler.265 tools.test ;
 
-[ 209110240768 ] [ euler265 ] unit-test
+{ 209110240768 } [ euler265 ] unit-test
index 86b00489681986a1dc8b159bfcbe03687dba786a..ff60c1479c8696054b52821cf3acbe9bdb4780d0 100644 (file)
@@ -2,4 +2,4 @@ IN: project-euler.ave-time.tests
 USING: tools.test math arrays project-euler.ave-time ;
 
 { 0 3 } [ 1 2 [ + ] 10 collect-benchmarks ] must-infer-as
-[ 1 2 t ] [ 1 2 [ + ] 10 collect-benchmarks array? ] unit-test
+{ 1 2 t } [ 1 2 [ + ] 10 collect-benchmarks array? ] unit-test
index 1f7a3668e2e68c46217c155bef10f28d97ad1bcf..521021bc8509ff268f6dd4fef027e8ee57d4938d 100644 (file)
@@ -3,15 +3,15 @@
 USING: tools.test project-euler.common ;
 IN: project-euler.common.tests
 
-[ 4 ] [ -1000 number-length ] unit-test
-[ 3 ] [ -999 number-length ] unit-test
-[ 3 ] [ -100 number-length ] unit-test
-[ 2 ] [ -99 number-length ] unit-test
-[ 1 ] [ -9 number-length ] unit-test
-[ 1 ] [ -1 number-length ] unit-test
-[ 1 ] [ 0 number-length ] unit-test
-[ 1 ] [ 9 number-length ] unit-test
-[ 2 ] [ 99 number-length ] unit-test
-[ 3 ] [ 100 number-length ] unit-test
-[ 3 ] [ 999 number-length ] unit-test
-[ 4 ] [ 1000 number-length ] unit-test
+{ 4 } [ -1000 number-length ] unit-test
+{ 3 } [ -999 number-length ] unit-test
+{ 3 } [ -100 number-length ] unit-test
+{ 2 } [ -99 number-length ] unit-test
+{ 1 } [ -9 number-length ] unit-test
+{ 1 } [ -1 number-length ] unit-test
+{ 1 } [ 0 number-length ] unit-test
+{ 1 } [ 9 number-length ] unit-test
+{ 2 } [ 99 number-length ] unit-test
+{ 3 } [ 100 number-length ] unit-test
+{ 3 } [ 999 number-length ] unit-test
+{ 4 } [ 1000 number-length ] unit-test
index d5881c7914846403817797eb02564302b36e4358..599c602a74759f278620cdb0cdfcf9547315546d 100644 (file)
@@ -47,7 +47,7 @@ IN: python
 
 { } [ 123 <alien> unsteal-ref ] unit-test
 
-[ t ] [ Py_GetVersion string? ] unit-test
+{ t } [ Py_GetVersion string? ] unit-test
 
 [ "os" ] [ "os" py-import PyModule_GetName ] py-test
 
index 2846f2267df40f585dcd1e630c84be27021dcf20..f3186ac8418af64248b0d503f3853b165e9c44e2 100644 (file)
@@ -9,33 +9,33 @@ IN: quadtrees.tests
 : delete>>key ( assoc key -- assoc )
     over delete-at ; inline
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } {  0.0  -0.25 } "a" f f f f t } ]
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } {  0.0  -0.25 } "a" f f f f t } }
 [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } {  0.0  -0.25 } "b" f f f f t } ]
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } {  0.0  -0.25 } "b" f f f f t } }
 [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.0  -0.25 } value>>key
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
     T{ quadtree f T{ rect f { -1.0 -1.0 } { 1.0 1.0 } } { -0.5  -0.75 } "c" f f f f t }
     T{ quadtree f T{ rect f {  0.0 -1.0 } { 1.0 1.0 } } {  0.0  -0.25 } "a" f f f f t }
     T{ quadtree f T{ rect f { -1.0  0.0 } { 1.0 1.0 } } f               f   f f f f t }
     T{ quadtree f T{ rect f {  0.0  0.0 } { 1.0 1.0 } } {  0.25  0.25 } "b" f f f f t }
     f
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
         "c" { -0.5  -0.75 } value>>key
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
     T{ quadtree f T{ rect f { -1.0 -1.0 } { 1.0 1.0 } } { -0.5  -0.75 } "c" f f f f t }
     T{ quadtree f T{ rect f {  0.0 -1.0 } { 1.0 1.0 } } {  0.0  -0.25 } "a" f f f f t }
     T{ quadtree f T{ rect f { -1.0  0.0 } { 1.0 1.0 } } f               f   f f f f t }
@@ -46,7 +46,7 @@ IN: quadtrees.tests
         T{ quadtree f T{ rect f {  0.5  0.5 } { 0.5 0.5 } } f               f   f f f f t }
     }
     f
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -54,7 +54,7 @@ IN: quadtrees.tests
         "d" {  0.75  0.25 } value>>key
 ] unit-test
 
-[ "b" t ] [
+{ "b" t } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -64,7 +64,7 @@ IN: quadtrees.tests
     {  0.25  0.25 } ?of
 ] unit-test
 
-[ { 1.0 1.0 } f ] [
+{ { 1.0 1.0 } f } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -74,7 +74,7 @@ IN: quadtrees.tests
     {  1.0   1.0  } ?of
 ] unit-test
 
-[ { "a" "c" } ] [
+{ { "a" "c" } } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -84,13 +84,13 @@ IN: quadtrees.tests
     { -0.6 -0.8 } { 0.8 1.0 } <rect> swap in-rect natural-sort
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
     T{ quadtree f T{ rect f { -1.0 -1.0 } { 1.0 1.0 } } { -0.5  -0.75 } "c" f f f f t }
     T{ quadtree f T{ rect f {  0.0 -1.0 } { 1.0 1.0 } } {  0.0  -0.25 } "a" f f f f t }
     T{ quadtree f T{ rect f { -1.0  0.0 } { 1.0 1.0 } } f               f   f f f f t }
     T{ quadtree f T{ rect f {  0.0  0.0 } { 1.0 1.0 } } {  0.75  0.25 } "d" f f f f t }
     f
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -101,13 +101,13 @@ IN: quadtrees.tests
         prune-quadtree
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
     T{ quadtree f T{ rect f { -1.0 -1.0 } { 1.0 1.0 } } { -0.5  -0.75 } "c" f f f f t }
     T{ quadtree f T{ rect f {  0.0 -1.0 } { 1.0 1.0 } } {  0.0  -0.25 } "a" f f f f t }
     T{ quadtree f T{ rect f { -1.0  0.0 } { 1.0 1.0 } } f               f   f f f f t }
     T{ quadtree f T{ rect f {  0.0  0.0 } { 1.0 1.0 } } f               f   f f f f t }
     f
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" {  0.0  -0.25 } value>>key
         "b" {  0.25  0.25 } value>>key
@@ -119,7 +119,7 @@ IN: quadtrees.tests
         prune-quadtree
 ] unit-test
 
-[ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
+{ T{ quadtree f T{ rect f { -1.0 -1.0 } { 2.0 2.0 } } f f
     T{ quadtree f T{ rect f { -1.0 -1.0 } { 1.0 1.0 } } f f
         T{ quadtree f T{ rect f { -1.0 -1.0 } { 0.5 0.5 } } { -0.75 -0.75 } "b" f f f f t }
         T{ quadtree f T{ rect f { -0.5 -1.0 } { 0.5 0.5 } } f               f   f f f f t }
@@ -149,7 +149,7 @@ IN: quadtrees.tests
         f
     }
     f
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" { -0.25 -0.25 } value>>key
         "b" { -0.75 -0.75 } value>>key
@@ -163,7 +163,7 @@ IN: quadtrees.tests
         prune-quadtree
 ] unit-test
 
-[ 8 ] [
+{ 8 } [
     unit-bounds <quadtree>
         "a" { -0.25 -0.25 } value>>key
         "b" { -0.75 -0.75 } value>>key
@@ -177,7 +177,7 @@ IN: quadtrees.tests
         assoc-size
 ] unit-test
 
-[ {
+{ {
     { { -0.75 -0.75 } "b" }
     { { -0.75  0.75 } "d" }
     { { -0.25 -0.25 } "a" }
@@ -186,7 +186,7 @@ IN: quadtrees.tests
     { {  0.25  0.25 } "g" }
     { {  0.75 -0.75 } "f" }
     { {  0.75  0.75 } "h" }
-} ] [
+} } [
     unit-bounds <quadtree>
         "a" { -0.25 -0.25 } value>>key
         "b" { -0.75 -0.75 } value>>key
@@ -202,7 +202,7 @@ IN: quadtrees.tests
 
 TUPLE: pointy-thing center ;
 
-[ {
+{ {
     T{ pointy-thing f { 0 0 } }
     T{ pointy-thing f { 1 0 } }
     T{ pointy-thing f { 0 1 } }
@@ -219,7 +219,7 @@ TUPLE: pointy-thing center ;
     T{ pointy-thing f { 3 2 } }
     T{ pointy-thing f { 2 3 } }
     T{ pointy-thing f { 3 3 } }
-} ] [
+} } [
     {
         T{ pointy-thing f { 3 1 } }
         T{ pointy-thing f { 2 3 } }
index c9d92087519e9bcdf42172fe81a6e4c68c288db6..aa98aff97f7a83a748b8fb1d09ff74fcc95d42d8 100644 (file)
@@ -2,4 +2,4 @@
 USING: qw tools.test ;
 IN: qw.tests
 
-[ { "zippity" "doo" "dah" } ] [ qw{ zippity doo dah } ] unit-test
+{ { "zippity" "doo" "dah" } } [ qw{ zippity doo dah } ] unit-test
index 8595fec9540af95590974ac39d52bdc377df4078..0527bf374823d4eb735673239c3de8e3f9dbf964 100644 (file)
@@ -3,24 +3,24 @@ random.blum-blum-shub alien.c-types sequences splitting
 grouping ;
 IN: blum-blum-shub.tests
 
-[ 887708070 ] [
+{ 887708070 } [
     T{ blum-blum-shub f 590695557939 811977232793 } clone random-32*
 ] unit-test
 
 
-[ 887708070 ] [
+{ 887708070 } [
     T{ blum-blum-shub f 590695557939 811977232793 } clone [
         32 random-bits
     ] with-random
 ] unit-test
 
-[ 3812677130378646276 ] [
+{ 3812677130378646276 } [
     T{ blum-blum-shub f 590695557939 811977232793 } clone [
         64 random-bits
     ] with-random
 ] unit-test
 
-[ 3716213681 ]
+{ 3716213681 }
 [
     T{ blum-blum-shub f 200352954495 846054538649 } clone 100 over [
         random-32* drop
index 6ad8b57fb82b22affcac5642827cda2902bf2ce5..27bdb3245fc166039187045a6a8e47638c7352df 100644 (file)
@@ -5,13 +5,13 @@ sequences specialized-arrays tools.test ;
 SPECIALIZED-ARRAY: uint
 IN: random.cmwc.tests
 
-[ ] [
+{ } [
     cmwc-4096 [
         random-32 drop
     ] with-random
 ] unit-test
 
-[
+{
 {
     4294604858
     4294948512
@@ -24,14 +24,14 @@ IN: random.cmwc.tests
     4294817038
     4294798256
 }
-] [
+} [
     cmwc-4096
     4096 iota uint >c-array 362436 <cmwc-seed> seed-random [
         10 [ random-32 ] replicate
     ] with-random
 ] unit-test
 
-[ t ] [
+{ t } [
     cmwc-4096 [
         4096 iota uint >c-array 362436 <cmwc-seed> seed-random [
             10 [ random-32 ] replicate
index df90d4d40fe2b3566a69dadd6850f2b150530827..ee9905a0970f91a7d6248b9849409516708c119d 100644 (file)
@@ -5,14 +5,14 @@ sequences tools.test specialized-arrays alien.c-types ;
 SPECIALIZED-ARRAY: double
 IN: random.lagged-fibonacci.tests
 
-[ t ] [
+{ t } [
     3 <lagged-fibonacci> [
         1000 [ random-float ] double-array{ } replicate-as
         999 swap nth 0.860072135925293 -.01 ~
     ] with-random
 ] unit-test
 
-[ t ] [
+{ t } [
     3 <lagged-fibonacci> [
         [
             1000 [ random-float ] double-array{ } replicate-as
index bde36114c3bd9a6852bb4ffc6c8be225ac6aa207..8fb4af2c9dcd256950967b4acf0faab4eaadc158 100644 (file)
@@ -3,17 +3,17 @@
 USING: tools.test redis.response-parser io.streams.string ;
 IN: redis.response-parser.tests
 
-[ 1 ] [ ":1\r\n" [ read-response ] with-string-reader ] unit-test
+{ 1 } [ ":1\r\n" [ read-response ] with-string-reader ] unit-test
 
-[ "hello" ] [ "$5\r\nhello\r\n" [ read-response ] with-string-reader ] unit-test
+{ "hello" } [ "$5\r\nhello\r\n" [ read-response ] with-string-reader ] unit-test
 
-[ f ] [ "$-1\r\n" [ read-response ] with-string-reader ] unit-test
+{ f } [ "$-1\r\n" [ read-response ] with-string-reader ] unit-test
 
-[ { "hello" "world!" } ] [
+{ { "hello" "world!" } } [
     "*2\r\n$5\r\nhello\r\n$6\r\nworld!\r\n" [ read-response ] with-string-reader
 ] unit-test
 
-[ { "hello" f "world!" } ] [
+{ { "hello" f "world!" } } [
     "*3\r\n$5\r\nhello\r\n$-1\r\n$6\r\nworld!\r\n" [
         read-response
     ] with-string-reader
index 54b489268018b6d339121ad82e21d17e3d3dd397..418c20da168637e14b07df2c96499d6ce7501440 100644 (file)
@@ -4,7 +4,7 @@ USING: calendar io.encodings.utf8 io.files robots tools.test
 urls ;
 IN: robots.tests
 
-[
+{
     { "http://www.chiplist.com/sitemap.txt" }
     {
         T{ rules
@@ -332,4 +332,4 @@ IN: robots.tests
             { unknowns H{ } }
         }
     }
-] [ "vocab:robots/robots.txt" utf8 file-contents parse-robots.txt ] unit-test
+} [ "vocab:robots/robots.txt" utf8 file-contents parse-robots.txt ] unit-test
index 67e7f8d991c4b8e9217214688011e5d35c9aeeac..2b6f490ee90d77b27f25f607c6ff8dc42358b033 100644 (file)
@@ -16,27 +16,27 @@ TUPLE: foon <{ utensil fork spoon } ;
 TUPLE: tuning-spork <{ utensil spoon tuning-fork } ;
 
 ! role class testing
-[ t ] [ fork role? ] unit-test
-[ f ] [ foon role? ] unit-test
+{ t } [ fork role? ] unit-test
+{ f } [ foon role? ] unit-test
 
 ! roles aren't tuple classes by themselves and can't be instantiated
-[ f ] [ fork tuple-class? ] unit-test
+{ f } [ fork tuple-class? ] unit-test
 [ fork new ] must-fail
 
 ! tuples which consume roles fall under their class
-[ t ] [ foon new fork? ] unit-test
-[ t ] [ foon new spoon? ] unit-test
-[ f ] [ foon new tuning-fork? ] unit-test
-[ f ] [ foon new instrument? ] unit-test
+{ t } [ foon new fork? ] unit-test
+{ t } [ foon new spoon? ] unit-test
+{ f } [ foon new tuning-fork? ] unit-test
+{ f } [ foon new instrument? ] unit-test
 
-[ t ] [ tuning-spork new fork? ] unit-test
-[ t ] [ tuning-spork new spoon? ] unit-test
-[ t ] [ tuning-spork new tuning-fork? ] unit-test
-[ t ] [ tuning-spork new instrument? ] unit-test
+{ t } [ tuning-spork new fork? ] unit-test
+{ t } [ tuning-spork new spoon? ] unit-test
+{ t } [ tuning-spork new tuning-fork? ] unit-test
+{ t } [ tuning-spork new instrument? ] unit-test
 
 ! consumed role slots are placed in tuples in order
-[ qw{ handle tines bowl } ] [ foon all-slots [ name>> ] map ] unit-test
-[ qw{ handle bowl tines tone volume } ] [ tuning-spork all-slots [ name>> ] map ] unit-test
+{ qw{ handle tines bowl } } [ foon all-slots [ name>> ] map ] unit-test
+{ qw{ handle bowl tines tone volume } } [ tuning-spork all-slots [ name>> ] map ] unit-test
 
 ! can't combine roles whose slots overlap
 ROLE: bong bowl ;
@@ -64,5 +64,5 @@ M: fork poke drop " got poked" append ;
 M: spoon scoop drop " got scooped" append ;
 M: instrument tune drop " got tuned" append ;
 
-[ "potato got poked" "potato got scooped" "potato got tuned" ]
+{ "potato got poked" "potato got scooped" "potato got tuned" }
 [ "potato" tuning-spork new [ poke ] [ scoop ] [ tune ] 2tri ] unit-test
index 8e2009a1eb9b6c97a84d8689851b9afff016ea52..20d9ab310999ccba5e95b247f0f1cdc15a8f0678 100644 (file)
@@ -1,6 +1,6 @@
 USING: kernel tools.test ;
 IN: rosetta-code.y-combinator
 
-[ 120 ] [ 5 [ almost-fac ] Y call ] unit-test
-[ 8 ]   [ 6 [ almost-fib ] Y call ] unit-test
-[ 61 ]  [ 3 3 [ almost-ack ] Y call ] unit-test
+{ 120 } [ 5 [ almost-fac ] Y call ] unit-test
+{ 8 }   [ 6 [ almost-fib ] Y call ] unit-test
+{ 61 }  [ 3 3 [ almost-ack ] Y call ] unit-test
index 2fd91ed2d027d6a6a922a7a5997a2823fd2d0a22..15bbf24303d35e6700d9c595c146f056ce65e9ee 100644 (file)
@@ -1,4 +1,4 @@
 IN: rpn.tests
 USING: rpn lists tools.test ;
 
-[ { 2 } ] [ "4 2 -" rpn-parse rpn-eval list>array ] unit-test
+{ { 2 } } [ "4 2 -" rpn-parse rpn-eval list>array ] unit-test
index 39e445b4956b5b03d98100610eb52bf022ceb839..de6ba280b8e92c4ce8a251c40e53d3428b208919 100644 (file)
@@ -1,26 +1,26 @@
 USING: assocs sequences.abbrev tools.test ;
 IN: sequences.abbrev.tests
 
-[ { "hello" "help" } ] [
+{ { "hello" "help" } } [
     "he" { "apple" "hello" "help" } abbrev at
 ] unit-test
 
-[ f ] [
+{ f } [
     "he" { "apple" "hello" "help" } unique-abbrev at
 ] unit-test
 
-[ { "apple" } ] [
+{ { "apple" } } [
     "a" { "apple" "hello" "help" } abbrev at
 ] unit-test
 
-[ { "apple" } ] [
+{ { "apple" } } [
     "a" { "apple" "hello" "help" } unique-abbrev at
 ] unit-test
 
-[ f ] [
+{ f } [
     "a" { "hello" "help" } abbrev at
 ] unit-test
 
-[ f ] [
+{ f } [
     "a" { "hello" "help" } unique-abbrev at
 ] unit-test
index 83bef71849699c39710d1b010abdd8a8912a0394..29c9247ef0b6de2141983e3754c24cc4e8462538 100644 (file)
@@ -4,25 +4,25 @@ tools.test vectors ;
 
 IN: sequences.extras.tests
 
-[ { "a" "b" "c" "d" "ab" "bc" "cd" "abc" "bcd" "abcd" } ] [ "abcd" all-subseqs ] unit-test
+{ { "a" "b" "c" "d" "ab" "bc" "cd" "abc" "bcd" "abcd" } } [ "abcd" all-subseqs ] unit-test
 
-[ { "a" "ab" "abc" "abcd" "b" "bc" "bcd" "c" "cd" "d" } ]
+{ { "a" "ab" "abc" "abcd" "b" "bc" "bcd" "c" "cd" "d" } }
 [ [ "abcd" [ , ] each-subseq ] { } make ] unit-test
 
 { B{ 115 } } [ 1 2 "asdf" B{ } subseq-as ] unit-test
 
-[ "" ] [ "abc" "def" longest-subseq ] unit-test
-[ "abcd" ] [ "abcd" "abcde" longest-subseq ] unit-test
-[ "foo" ] [ "foo" "foobar" longest-subseq ] unit-test
-[ "foo" ] [ "foobar" "foo" longest-subseq ] unit-test
+{ "" } [ "abc" "def" longest-subseq ] unit-test
+{ "abcd" } [ "abcd" "abcde" longest-subseq ] unit-test
+{ "foo" } [ "foo" "foobar" longest-subseq ] unit-test
+{ "foo" } [ "foobar" "foo" longest-subseq ] unit-test
 
-[ "" "" ] [ "" "" CHAR: ? pad-longest ] unit-test
-[ "abc" "def" ] [ "abc" "def" CHAR: ? pad-longest ] unit-test
-[ "   " "abc" ] [ "" "abc" CHAR: \s pad-longest ] unit-test
-[ "abc" "   " ] [ "abc" "" CHAR: \s pad-longest ] unit-test
-[ "abc..." "foobar" ] [ "abc" "foobar" CHAR: . pad-longest ] unit-test
+{ "" "" } [ "" "" CHAR: ? pad-longest ] unit-test
+{ "abc" "def" } [ "abc" "def" CHAR: ? pad-longest ] unit-test
+{ "   " "abc" } [ "" "abc" CHAR: \s pad-longest ] unit-test
+{ "abc" "   " } [ "abc" "" CHAR: \s pad-longest ] unit-test
+{ "abc..." "foobar" } [ "abc" "foobar" CHAR: . pad-longest ] unit-test
 
-[ { 0 1 0 1 } ] [
+{ { 0 1 0 1 } } [
     { 0 0 0 0 } { 1 3 } over [ 1 + ] change-nths
 ] unit-test
 
@@ -30,13 +30,13 @@ IN: sequences.extras.tests
     { 1 2 3 } [ even? ] selector* [ each ] dip
 ] unit-test
 
-[ { 1 3 5 } ] [ { 1 2 3 4 5 6 } [ nip even? ] filter-index ] unit-test
+{ { 1 3 5 } } [ { 1 2 3 4 5 6 } [ nip even? ] filter-index ] unit-test
 
-[ V{ 1 3 5 } ] [ { 1 2 3 4 5 6 } [ nip even? ] V{ } filter-index-as ] unit-test
+{ V{ 1 3 5 } } [ { 1 2 3 4 5 6 } [ nip even? ] V{ } filter-index-as ] unit-test
 
-[ { 1 3 5 } ] [ { 1 2 3 4 5 6 } even-indices ] unit-test
+{ { 1 3 5 } } [ { 1 2 3 4 5 6 } even-indices ] unit-test
 
-[ { 2 4 6 } ] [ { 1 2 3 4 5 6 } odd-indices ] unit-test
+{ { 2 4 6 } } [ { 1 2 3 4 5 6 } odd-indices ] unit-test
 
 { "a b c d e" }
 [ "a      b  \t \n \r  c   d \n    e   " [ blank? ] " " compact ] unit-test
index a49f3cce42045628868e169f5753e88b3fd833d5..3bc38ed7a0019b9985ab9da3227a369729b01236 100644 (file)
@@ -3,42 +3,42 @@ USING: assocs kernel sequences sequences.inserters tools.test
 unicode.case ;
 IN: sequences.inserters.tests
 
-[ V{ 1 2 "Three" "Four" "Five" } ] [
+{ V{ 1 2 "Three" "Four" "Five" } } [
     { "three" "four" "five" }
     [ >title ] V{ 1 2 } clone <appender> map-as
 ] unit-test
 
-[ t ] [
+{ t } [
     { "three" "four" "five" }
     [ >title ] V{ 1 2 } clone [ <appender> map-as ] keep eq?
 ] unit-test
 
-[ V{ 1 2 "Three" "Four" "Five" } ] [
+{ V{ 1 2 "Three" "Four" "Five" } } [
     { { "Th" "ree" } { "Fo" "ur" } { "Fi" "ve" } }
     [ append ] V{ 1 2 } clone <appender> assoc>map
 ] unit-test
 
-[ t ] [
+{ t } [
     { { "Th" "ree" } { "Fo" "ur" } { "Fi" "ve" } }
     [ append ] V{ 1 2 } clone [ <appender> assoc>map ] keep eq?
 ] unit-test
 
-[ V{ "Three" "Four" "Five" } ] [
+{ V{ "Three" "Four" "Five" } } [
     { "three" "four" "five" }
     [ >title ] V{ 1 2 } clone <replacer> map-as
 ] unit-test
 
-[ t ] [
+{ t } [
     { "three" "four" "five" }
     [ >title ] V{ 1 2 } clone [ <replacer> map-as ] keep eq?
 ] unit-test
 
-[ V{ "Three" "Four" "Five" } ] [
+{ V{ "Three" "Four" "Five" } } [
     { { "Th" "ree" } { "Fo" "ur" } { "Fi" "ve" } }
     [ append ] V{ 1 2 } clone <replacer> assoc>map
 ] unit-test
 
-[ t ] [
+{ t } [
     { { "Th" "ree" } { "Fo" "ur" } { "Fi" "ve" } }
     [ append ] V{ 1 2 } clone [ <replacer> assoc>map ] keep eq?
 ] unit-test
index 4bcbb29da6982d49ef309bed687e91c80d89536f..c097a257e5fdf4f19385d74d7f44ef639f6d6aee 100644 (file)
@@ -1,15 +1,15 @@
 USING: accessors arrays kernel sequences sequences.modified tools.test ;
 IN: sequences.modified.tests
 
-[ { 2 4 6 } ] [ { 1 2 3 } 2 scale ] unit-test
-[ { 1 4 3 } ] [ { 1 2 3 } 2 <scaled> 8 1 pick set-nth seq>> ] unit-test
-[ { 2 8 6 } ] [ { 1 2 3 } 2 <scaled> 8 1 pick set-nth >array ] unit-test
+{ { 2 4 6 } } [ { 1 2 3 } 2 scale ] unit-test
+{ { 1 4 3 } } [ { 1 2 3 } 2 <scaled> 8 1 pick set-nth seq>> ] unit-test
+{ { 2 8 6 } } [ { 1 2 3 } 2 <scaled> 8 1 pick set-nth >array ] unit-test
 
-[ { 2 3 4 } ] [ { 1 2 3 } 1 seq-offset ] unit-test
-[ { 1 5 3 } ] [ { 1 2 3 } 1 <offset> 6 1 pick set-nth seq>> ] unit-test
-[ { 2 6 4 } ] [ { 1 2 3 } 1 <offset> 6 1 pick set-nth >array ] unit-test
+{ { 2 3 4 } } [ { 1 2 3 } 1 seq-offset ] unit-test
+{ { 1 5 3 } } [ { 1 2 3 } 1 <offset> 6 1 pick set-nth seq>> ] unit-test
+{ { 2 6 4 } } [ { 1 2 3 } 1 <offset> 6 1 pick set-nth >array ] unit-test
 
-[ 4 ] [ { { 1 2 } { 3 4 } } <summed> 0 swap nth ] unit-test
-[ 6 ] [ { { 1 2 } { 3 4 } } <summed> 1 swap nth ] unit-test
-[ 2 ] [ { { 1 2 } { 3 4 } } <summed> length ] unit-test
-[ { 4 6 } ] [ { { 1 2 } { 3 4 } } <summed> >array ] unit-test
+{ 4 } [ { { 1 2 } { 3 4 } } <summed> 0 swap nth ] unit-test
+{ 6 } [ { { 1 2 } { 3 4 } } <summed> 1 swap nth ] unit-test
+{ 2 } [ { { 1 2 } { 3 4 } } <summed> length ] unit-test
+{ { 4 6 } } [ { { 1 2 } { 3 4 } } <summed> >array ] unit-test
index 03aeb5fbd27eca6dfe15789de9385c7df7f1a74a..9dc94a7ed69418729d0bca0484838b2f44657434 100644 (file)
@@ -19,16 +19,16 @@ IN: sequences.n-based.tests
         "December"
     } clone 1 <n-based-assoc> ; inline
 
-[ "December" t ]
+{ "December" t }
 [ 12 months at* ] unit-test
-[ f f ]
+{ f f }
 [ 13 months at* ] unit-test
-[ f f ]
+{ f f }
 [ 0 months at* ] unit-test
 
-[ 12 ] [ months assoc-size ] unit-test
+{ 12 } [ months assoc-size ] unit-test
 
-[ {
+{ {
     {  1 "January" }
     {  2 "February" }
     {  3 "March" }
@@ -41,9 +41,9 @@ IN: sequences.n-based.tests
     { 10 "October" }
     { 11 "November" }
     { 12 "December" }
-} ] [ months >alist ] unit-test
+} } [ months >alist ] unit-test
 
-[ V{
+{ V{
     "January"
     "February"
     "March"
@@ -57,6 +57,6 @@ IN: sequences.n-based.tests
     "November"
     "December"
     "Smarch"
-} ] [ "Smarch" 13 months [ set-at ] keep seq>> ] unit-test
+} } [ "Smarch" 13 months [ set-at ] keep seq>> ] unit-test
 
-[ V{ } ] [ months [ clear-assoc ] keep seq>> ] unit-test
+{ V{ } } [ months [ clear-assoc ] keep seq>> ] unit-test
index 8437ea215db7278c917d8a72fda05b3ac14cd591..e42b70f9504cc154b906d5f0067f35e78b94ed1d 100644 (file)
@@ -1,11 +1,11 @@
 USING: sequences.repeating tools.test ;
 IN: sequences.repeating.tests
 
-[ { 1 2 3 1 2 } ] [ { 1 2 3 } 5 cycle ] unit-test
-[ { 1 2 3 1 2 3 1 2 3 } ] [ { 1 2 3 } 9 cycle ] unit-test
+{ { 1 2 3 1 2 } } [ { 1 2 3 } 5 cycle ] unit-test
+{ { 1 2 3 1 2 3 1 2 3 } } [ { 1 2 3 } 9 cycle ] unit-test
 
-[ { } ] [ { 1 2 3 } 0 repeat ] unit-test
-[ { 1 2 3 } ] [ { 1 2 3 } 1 repeat ] unit-test
-[ { 1 1 2 2 3 3 } ] [ { 1 2 3 } 2 repeat ] unit-test
-[ { 1 1 1 2 2 2 3 3 3 } ] [ { 1 2 3 } 3 repeat ] unit-test
-[ { 1 1 1 1 2 2 2 2 3 3 3 3 } ] [ { 1 2 3 } 4 repeat ] unit-test
+{ { } } [ { 1 2 3 } 0 repeat ] unit-test
+{ { 1 2 3 } } [ { 1 2 3 } 1 repeat ] unit-test
+{ { 1 1 2 2 3 3 } } [ { 1 2 3 } 2 repeat ] unit-test
+{ { 1 1 1 2 2 2 3 3 3 } } [ { 1 2 3 } 3 repeat ] unit-test
+{ { 1 1 1 1 2 2 2 2 3 3 3 3 } } [ { 1 2 3 } 4 repeat ] unit-test
index c0e02c83b2f1edd1d04fafdf05803e81a994900c..254ac1e512f8ede8b7af46a7850577000dbec054 100644 (file)
@@ -2,7 +2,7 @@
 USING: kernel sequences sequences.squish tools.test vectors ;
 IN: sequences.squish.tests
 
-[ { { 1 2 3 } { 4 } { 5 6 } } ] [
+{ { { 1 2 3 } { 4 } { 5 6 } } } [
     V{ { 1 2 3 } V{ { 4 } { 5 6 } } }
     [ vector? ] { } squish
 ] unit-test
index e58d5a79d5fa7d8c5f556994b4a1a53b30314ec0..c19fa08ac0ca44fa46af4d71c35d10b01050a439 100644 (file)
@@ -22,4 +22,4 @@ IN: site-watcher.tests
         f <site> select-tuples
     ] with-db ;
 
-[ f ] [ fake-sites empty? ] unit-test
+{ f } [ fake-sites empty? ] unit-test
index 01335f54d12bd52091d675428966fb70ab39fe2b..c8b1c18a0884758fed5690fae9ec2d22ab57f831 100755 (executable)
@@ -5,15 +5,15 @@ IN: slots.syntax.tests
 
 TUPLE: slot-test1 a b c ;
 
-[ 1 2 3 ] [ T{ slot-test1 f 1 2 3 } slots[ a b c ] ] unit-test
-[ 3 ] [ T{ slot-test1 f 1 2 3 } slots[ c ] ] unit-test
-[ ] [ T{ slot-test1 f 1 2 3 } slots[ ] ] unit-test
+[ 1 2 3 ] { T{ slot-test1 f 1 2 3 } slots[ a b c } ] unit-test
+[ 3 ] { T{ slot-test1 f 1 2 3 } slots[ c } ] unit-test
+[ ] { T{ slot-test1 f 1 2 3 } slots[ } ] unit-test
 
-[ { 1 2 3 } ] [ T{ slot-test1 f 1 2 3 } slots{ a b c } ] unit-test
-[ { 3 } ] [ T{ slot-test1 f 1 2 3 } slots{ c } ] unit-test
-[ { } ] [ T{ slot-test1 f 1 2 3 } slots{ } ] unit-test
+{ { 1 2 3 } } [ T{ slot-test1 f 1 2 3 } slots{ a b c } ] unit-test
+{ { 3 } } [ T{ slot-test1 f 1 2 3 } slots{ c } ] unit-test
+{ { } } [ T{ slot-test1 f 1 2 3 } slots{ } ] unit-test
 
 TUPLE: slot-test2 a b c d ;
 
-[ T{ slot-test2 f 1 2 33 44 } ]
+{ T{ slot-test2 f 1 2 33 44 } }
 [ 1 2 3 slot-test1 boa 11 22 33 44 slot-test2 boa copy-slots{ a b } ] unit-test
index 181bdef62dff44b2946d04effeff6e247e5ce22e..5b558a8b4f2696fa99f28108438cb71f1d7d0e38 100644 (file)
@@ -12,7 +12,7 @@ IN: smalltalk.compiler.tests
 : test-inference ( ast -- in# out# )
     test-compilation infer [ in>> ] [ out>> ] bi [ length ] bi@ ;
 
-[ 2 1 ] [
+{ 2 1 } [
     T{ ast-block f
        { "a" "b" }
        {
@@ -25,7 +25,7 @@ IN: smalltalk.compiler.tests
     } test-inference
 ] unit-test
 
-[ 3 1 ] [
+{ 3 1 } [
     T{ ast-block f
        { "a" "b" "c" }
        {
@@ -47,7 +47,7 @@ IN: smalltalk.compiler.tests
     } test-inference
 ] unit-test
 
-[ 0 1 ] [
+{ 0 1 } [
     T{ ast-block f
        { }
        { }
@@ -78,7 +78,7 @@ IN: smalltalk.compiler.tests
     } test-inference
 ] unit-test
 
-[ "a" ] [
+{ "a" } [
     T{ ast-block f
        { }
        { }
index 31fd3a77b27dd3f09b4037c1afdfe4c4808c7003..e0f09289122d1c5452968cd257b71c8b75d8441f 100644 (file)
@@ -14,11 +14,11 @@ SYMBOL: fake-local
     H{ { "jumble" fake-local } } >>local-writers
 lexenv set
 
-[ [ fake-local ] ] [ "mumble" lexenv get lookup-reader ] unit-test
-[ [ fake-self x>> ] ] [ "x" lexenv get lookup-reader ] unit-test
-[ [ \ tuple ] ] [ "Object" lexenv get lookup-reader ] unit-test
+{ [ fake-local ] } [ "mumble" lexenv get lookup-reader ] unit-test
+{ [ fake-self x>> ] } [ "x" lexenv get lookup-reader ] unit-test
+{ [ \ tuple ] } [ "Object" lexenv get lookup-reader ] unit-test
 
-[ [ fake-local ] ] [ "jumble" lexenv get lookup-writer ] unit-test
-[ [ fake-self y<< ] ] [ "y" lexenv get lookup-writer ] unit-test
+{ [ fake-local ] } [ "jumble" lexenv get lookup-writer ] unit-test
+{ [ fake-self y<< ] } [ "y" lexenv get lookup-writer ] unit-test
 
 [ "blahblah" lexenv get lookup-writer ] must-fail
index fc12af705f96cb9c7aeb55d6823a8b3348843adf..a0dc5bde5778bec91a24f360c8e05250d4d8e129 100644 (file)
@@ -1,3 +1,3 @@
 USING: smalltalk.parser smalltalk.compiler.return tools.test ;
 
-[ t ] [ "(i <= 1) ifTrue: [^1] ifFalse: [^((Fib new i:(i-1)) compute + (Fib new i:(i-2)) compute)]" parse-smalltalk need-return-continuation? ] unit-test
+{ t } [ "(i <= 1) ifTrue: [^1] ifFalse: [^((Fib new i:(i-1)) compute + (Fib new i:(i-2)) compute)]" parse-smalltalk need-return-continuation? ] unit-test
index 0fb05747a040a961b0f68c2ed1b7cecb3ca5d35d..eaf4e546987f615ef5ffd95edb542ebc9da08e3d 100644 (file)
@@ -1,11 +1,11 @@
 IN: smalltalk.eval.tests
 USING: smalltalk.eval tools.test io.streams.string kernel ;
 
-[ 3 ] [ "1+2" eval-smalltalk ] unit-test
-[ "HAI" ] [ "(1<10) ifTrue:['HAI'] ifFalse:['BAI']" eval-smalltalk ] unit-test
-[ 7 ] [ "1+2+3;+4" eval-smalltalk ] unit-test
-[ 6 "5\n6\n" ] [ [ "[:x|x print] value: 5; value: 6" eval-smalltalk ] with-string-writer ] unit-test
-[ 5 ] [ "|x| x:=5. x" eval-smalltalk ] unit-test
-[ 11 ] [ "[:i| |x| x:=5. i+x] value: 6" eval-smalltalk ] unit-test
-[ t ] [ "class Blah [method foo [5]]. Blah new foo" eval-smalltalk tuple? ] unit-test
-[ 196418 ] [ "vocab:smalltalk/eval/fib.st" eval-smalltalk-file ] unit-test
+{ 3 } [ "1+2" eval-smalltalk ] unit-test
+{ "HAI" } [ "(1<10) ifTrue:['HAI'] ifFalse:['BAI']" eval-smalltalk ] unit-test
+{ 7 } [ "1+2+3;+4" eval-smalltalk ] unit-test
+{ 6 "5\n6\n" } [ [ "[:x|x print] value: 5; value: 6" eval-smalltalk ] with-string-writer ] unit-test
+{ 5 } [ "|x| x:=5. x" eval-smalltalk ] unit-test
+{ 11 } [ "[:i| |x| x:=5. i+x] value: 6" eval-smalltalk ] unit-test
+{ t } [ "class Blah [method foo [5]]. Blah new foo" eval-smalltalk tuple? ] unit-test
+{ 196418 } [ "vocab:smalltalk/eval/fib.st" eval-smalltalk-file ] unit-test
index 0921b96127924946c4677d3098a9d03d5c48aea6..5fd3d57857e599880630f2176db87305f4121db1 100644 (file)
@@ -7,17 +7,17 @@ EBNF: test-Character
 test         = <foreign parse-smalltalk Character>
 ;EBNF
 
-[ CHAR: a ] [ "a" test-Character ] unit-test
+{ CHAR: a } [ "a" test-Character ] unit-test
 
 EBNF: test-Comment
 test         = <foreign parse-smalltalk Comment>
 ;EBNF
 
-[ T{ ast-comment f "Hello, this is a comment." } ]
+{ T{ ast-comment f "Hello, this is a comment." } }
 [ "\"Hello, this is a comment.\"" test-Comment ]
 unit-test
 
-[ T{ ast-comment f "Hello, \"this\" is a comment." } ]
+{ T{ ast-comment f "Hello, \"this\" is a comment." } }
 [ "\"Hello, \"\"this\"\" is a comment.\"" test-Comment ]
 unit-test
 
@@ -25,36 +25,36 @@ EBNF: test-Identifier
 test         = <foreign parse-smalltalk Identifier>
 ;EBNF
 
-[ "OrderedCollection" ] [ "OrderedCollection" test-Identifier ] unit-test
+{ "OrderedCollection" } [ "OrderedCollection" test-Identifier ] unit-test
 
 EBNF: test-Literal
 test         = <foreign parse-smalltalk Literal>
 ;EBNF
 
-[ nil ] [ "nil" test-Literal ] unit-test
-[ 123 ] [ "123" test-Literal ] unit-test
-[ 0xdeadbeef ] [ "16rdeadbeef" test-Literal ] unit-test
-[ -123 ] [ "-123" test-Literal ] unit-test
-[ 1.2 ] [ "1.2" test-Literal ] unit-test
-[ -1.24 ] [ "-1.24" test-Literal ] unit-test
-[ 12.4e7 ] [ "12.4e7" test-Literal ] unit-test
-[ 12.4e-7 ] [ "12.4e-7" test-Literal ] unit-test
-[ -12.4e7 ] [ "-12.4e7" test-Literal ] unit-test
-[ CHAR: x ] [ "$x" test-Literal ] unit-test
-[ "Hello, world" ] [ "'Hello, world'" test-Literal ] unit-test
-[ "Hello, 'funny' world" ] [ "'Hello, ''funny'' world'" test-Literal ] unit-test
-[ T{ symbol f "foo" } ] [ "#foo" test-Literal ] unit-test
-[ T{ symbol f "+" } ] [ "#+" test-Literal ] unit-test
-[ T{ symbol f "at:put:" } ] [ "#at:put:" test-Literal ] unit-test
-[ T{ symbol f "Hello world" } ] [ "#'Hello world'" test-Literal ] unit-test
-[ B{ 1 2 3 4 } ] [ "#[1 2 3 4]" test-Literal ] unit-test
-[ { nil t f } ] [ "#(nil true false)" test-Literal ] unit-test
-[ { nil { t f } } ] [ "#(nil (true false))" test-Literal ] unit-test
-[ T{ ast-block f { } { } { } } ] [ "[]" test-Literal ] unit-test
-[ T{ ast-block f { "x" } { } { T{ ast-return f T{ ast-name f "x" } } } } ] [ "[ :x|^x]" test-Literal ] unit-test
-[ T{ ast-block f { } { } { T{ ast-return f self } } } ] [ "[^self]" test-Literal ] unit-test
-
-[
+{ nil } [ "nil" test-Literal ] unit-test
+{ 123 } [ "123" test-Literal ] unit-test
+{ 0xdeadbeef } [ "16rdeadbeef" test-Literal ] unit-test
+{ -123 } [ "-123" test-Literal ] unit-test
+{ 1.2 } [ "1.2" test-Literal ] unit-test
+{ -1.24 } [ "-1.24" test-Literal ] unit-test
+{ 12.4e7 } [ "12.4e7" test-Literal ] unit-test
+{ 12.4e-7 } [ "12.4e-7" test-Literal ] unit-test
+{ -12.4e7 } [ "-12.4e7" test-Literal ] unit-test
+{ CHAR: x } [ "$x" test-Literal ] unit-test
+{ "Hello, world" } [ "'Hello, world'" test-Literal ] unit-test
+{ "Hello, 'funny' world" } [ "'Hello, ''funny'' world'" test-Literal ] unit-test
+{ T{ symbol f "foo" } } [ "#foo" test-Literal ] unit-test
+{ T{ symbol f "+" } } [ "#+" test-Literal ] unit-test
+{ T{ symbol f "at:put:" } } [ "#at:put:" test-Literal ] unit-test
+{ T{ symbol f "Hello world" } } [ "#'Hello world'" test-Literal ] unit-test
+{ B{ 1 2 3 4 } } [ "#[1 2 3 4]" test-Literal ] unit-test
+{ { nil t f } } [ "#(nil true false)" test-Literal ] unit-test
+{ { nil { t f } } } [ "#(nil (true false))" test-Literal ] unit-test
+{ T{ ast-block f { } { } { } } } [ "[]" test-Literal ] unit-test
+{ T{ ast-block f { "x" } { } { T{ ast-return f T{ ast-name f "x" } } } } } [ "[ :x|^x]" test-Literal ] unit-test
+{ T{ ast-block f { } { } { T{ ast-return f self } } } } [ "[^self]" test-Literal ] unit-test
+
+{
     T{ ast-block
        { arguments { "i" } }
        { body
@@ -66,68 +66,68 @@ test         = <foreign parse-smalltalk Literal>
          }
        }
     }
-]
+}
 [ "[ :i | i print ]" test-Literal ] unit-test
 
-[
+{
     T{ ast-block
        { body { 5 self } }
     }
-]
+}
 [ "[5. self]" test-Literal ] unit-test
 
 EBNF: test-FormalBlockArgumentDeclarationList
 test         = <foreign parse-smalltalk FormalBlockArgumentDeclarationList>
 ;EBNF
 
-[ V{ "x" "y" "elt" } ] [ ":x :y :elt" test-FormalBlockArgumentDeclarationList ] unit-test
+{ V{ "x" "y" "elt" } } [ ":x :y :elt" test-FormalBlockArgumentDeclarationList ] unit-test
 
 EBNF: test-Operand
 test         = <foreign parse-smalltalk Operand>
 ;EBNF
 
-[ { 123 15.6 { t f } } ] [ "#(123 15.6 (true false))" test-Operand ] unit-test
-[ T{ ast-name f "x" } ] [ "x" test-Operand ] unit-test
+{ { 123 15.6 { t f } } } [ "#(123 15.6 (true false))" test-Operand ] unit-test
+{ T{ ast-name f "x" } } [ "x" test-Operand ] unit-test
 
 EBNF: test-Expression
 test         = <foreign parse-smalltalk Expression>
 ;EBNF
 
-[ self ] [ "self" test-Expression ] unit-test
-[ { 123 15.6 { t f } } ] [ "#(123 15.6 (true false))" test-Expression ] unit-test
-[ T{ ast-name f "x" } ] [ "x" test-Expression ] unit-test
-[ T{ ast-message-send f 5 "print" { } } ] [ "5 print" test-Expression ] unit-test
-[ T{ ast-message-send f T{ ast-message-send f 5 "squared" { } } "print" { } } ] [ "5 squared print" test-Expression ] unit-test
-[ T{ ast-message-send f 2 "+" { 2 } } ] [ "2+2" test-Expression ] unit-test
+{ self } [ "self" test-Expression ] unit-test
+{ { 123 15.6 { t f } } } [ "#(123 15.6 (true false))" test-Expression ] unit-test
+{ T{ ast-name f "x" } } [ "x" test-Expression ] unit-test
+{ T{ ast-message-send f 5 "print" { } } } [ "5 print" test-Expression ] unit-test
+{ T{ ast-message-send f T{ ast-message-send f 5 "squared" { } } "print" { } } } [ "5 squared print" test-Expression ] unit-test
+{ T{ ast-message-send f 2 "+" { 2 } } } [ "2+2" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send f
         T{ ast-message-send f 3 "factorial" { } }
         "+"
         { T{ ast-message-send f 4 "factorial" { } } }
     }
-]
+}
 [ "3 factorial + 4 factorial" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send f
         T{ ast-message-send f 3 "factorial" { } }
         "+"
         { T{ ast-message-send f 4 "factorial" { } } }
     }
-]
+}
 [ "   3 factorial + 4 factorial" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send f
         T{ ast-message-send f 3 "factorial" { } }
         "+"
         { T{ ast-message-send f 4 "factorial" { } } }
     }
-]
+}
 [ "   3 factorial + 4 factorial     " test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send f
         T{ ast-message-send f
             T{ ast-message-send f 3 "factorial" { } }
@@ -137,10 +137,10 @@ test         = <foreign parse-smalltalk Expression>
         "factorial"
         { }
     }
-]
+}
 [ "(3 factorial + 4) factorial" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send
        { receiver
          T{ ast-message-send
@@ -162,10 +162,10 @@ test         = <foreign parse-smalltalk Expression>
        }
        { selector "print" }
     }
-]
+}
 [ "((1 < 10) ifTrue: [ 'HI' ] ifFalse: [ 'BYE' ]) print" test-Expression ] unit-test
 
-[
+{
     T{ ast-cascade
        { receiver 12 }
        { messages
@@ -175,10 +175,10 @@ test         = <foreign parse-smalltalk Expression>
          }
        }
     }
-]
+}
 [ "12 sqrt; + 2" test-Expression ] unit-test
 
-[
+{
     T{ ast-cascade
        { receiver T{ ast-message-send f 12 "sqrt" } }
        { messages
@@ -188,10 +188,10 @@ test         = <foreign parse-smalltalk Expression>
          }
        }
     }
-]
+}
 [ "12 sqrt + 1; + 2" test-Expression ] unit-test
 
-[
+{
     T{ ast-cascade
        { receiver T{ ast-message-send f 12 "squared" } }
        { messages
@@ -201,19 +201,19 @@ test         = <foreign parse-smalltalk Expression>
          }
        }
     }
-]
+}
 [ "12 squared to: 100; sqrt" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send f
         T{ ast-message-send f 1 "+" { 2 } }
         "*"
         { 3 }
     }
-]
+}
 [ "1+2*3" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send
        { receiver
          T{ ast-message-send
@@ -224,28 +224,28 @@ test         = <foreign parse-smalltalk Expression>
        }
        { selector "value" }
     }
-]
+}
 [ "(#(['a']) at: 0) value" test-Expression ] unit-test
 
 EBNF: test-FinalStatement
 test         = <foreign parse-smalltalk FinalStatement>
 ;EBNF
 
-[ T{ ast-name f "value" } ] [ "value" test-FinalStatement ] unit-test
-[ T{ ast-return f T{ ast-name f "value" } } ] [ "^value" test-FinalStatement ] unit-test
-[ T{ ast-assignment f T{ ast-name f "value" } 5 } ] [ "value:=5" test-FinalStatement ] unit-test
+{ T{ ast-name f "value" } } [ "value" test-FinalStatement ] unit-test
+{ T{ ast-return f T{ ast-name f "value" } } } [ "^value" test-FinalStatement ] unit-test
+{ T{ ast-assignment f T{ ast-name f "value" } 5 } } [ "value:=5" test-FinalStatement ] unit-test
 
 EBNF: test-LocalVariableDeclarationList
 test         = <foreign parse-smalltalk LocalVariableDeclarationList>
 ;EBNF
 
-[ T{ ast-local-variables f { "i" "j" } } ] [ " |  i j   |" test-LocalVariableDeclarationList ] unit-test
+{ T{ ast-local-variables f { "i" "j" } } } [ " |  i j   |" test-LocalVariableDeclarationList ] unit-test
 
 
-[ T{ ast-message-send f T{ ast-name f "x" } "foo:bar:" { 1 2 } } ]
+{ T{ ast-message-send f T{ ast-name f "x" } "foo:bar:" { 1 2 } } }
 [ "x foo:1 bar:2" test-Expression ] unit-test
 
-[
+{
     T{ ast-message-send
         f
         T{ ast-message-send f
@@ -256,14 +256,14 @@ test         = <foreign parse-smalltalk LocalVariableDeclarationList>
         "between:and:"
         { 10 100 }
     }
-]
+}
 [ "3 factorial + 4 factorial between: 10 and: 100" test-Expression ] unit-test
 
-[ T{ ast-sequence f { } { 1 2 } } ] [ "1. 2" parse-smalltalk ] unit-test
+{ T{ ast-sequence f { } { 1 2 } } } [ "1. 2" parse-smalltalk ] unit-test
 
-[ T{ ast-sequence f { } { 1 2 } } ] [ "1. 2." parse-smalltalk ] unit-test
+{ T{ ast-sequence f { } { 1 2 } } } [ "1. 2." parse-smalltalk ] unit-test
 
-[
+{
     T{ ast-sequence f { }
         {
             T{ ast-class
@@ -273,10 +273,10 @@ test         = <foreign parse-smalltalk LocalVariableDeclarationList>
             }
         }
     }
-]
+}
 [ "class Test [|a|]" parse-smalltalk ] unit-test
 
-[
+{
     T{ ast-sequence f { }
         {
             T{ ast-class
@@ -292,9 +292,9 @@ test         = <foreign parse-smalltalk LocalVariableDeclarationList>
             }
         }
     }
-]
+}
 [ "class Test1 [|a|]. class Test2 extends Test1 [|b|]" parse-smalltalk ] unit-test
 
-[ ] [ "class Foo []. Tests blah " parse-smalltalk drop ] unit-test
+{ } [ "class Foo []. Tests blah " parse-smalltalk drop ] unit-test
 
-[ ] [ "vocab:smalltalk/parser/test.st" ascii file-contents parse-smalltalk drop ] unit-test
+{ } [ "vocab:smalltalk/parser/test.st" ascii file-contents parse-smalltalk drop ] unit-test
index 6d87add9e244b7326a5cd5b03735649e1829a2b5..ec3a9d016a4586e4b37752c41b7c0444dc867436 100644 (file)
@@ -1,4 +1,4 @@
 IN: smalltalk.printer.tests
 USING: smalltalk.printer tools.test ;
 
-[ "#((1 2) 'hi')" ] [ { { 1 2 } "hi" } smalltalk>string ] unit-test
+{ "#((1 2) 'hi')" } [ { { 1 2 } "hi" } smalltalk>string ] unit-test
index 7ffc617122583323a36719058c4242b21311f76c..e8a77a97b15a34df5b05cc69d6ce7f32f20878a9 100644 (file)
@@ -12,8 +12,8 @@ MEMO: test-dictionary ( -- assoc )
 : test-correct ( word -- word/f )
     test-dictionary (correct) ;
 
-[ "government" ] [ "goverment" test-correct ] unit-test
-[ "government" ] [ "govxernment" test-correct ] unit-test
-[ "government" ] [ "govermnent" test-correct ] unit-test
-[ "government" ] [ "govxermnent" test-correct ] unit-test
-[ "government" ] [ "govyrmnent" test-correct ] unit-test
+{ "government" } [ "goverment" test-correct ] unit-test
+{ "government" } [ "govxernment" test-correct ] unit-test
+{ "government" } [ "govermnent" test-correct ] unit-test
+{ "government" } [ "govxermnent" test-correct ] unit-test
+{ "government" } [ "govyrmnent" test-correct ] unit-test
index 60babf03a095abd04dabdb8662487bf389be65c4..71c6361ea81ad7e37b3ceeffa861843f9b3de07f 100644 (file)
@@ -1,4 +1,4 @@
 IN: sudoku.tests
 USING: tools.test sudoku ;
 
-[ ] [ sudoku-demo ] unit-test
+{ } [ sudoku-demo ] unit-test
index 2634f37d05f9a0c6db8f5d432fec1244c43c8cc4..911f748058c0f7f36a458964cedfa7f2e0afaaef 100644 (file)
@@ -3,41 +3,41 @@ USING: accessors arrays literals math math.affine-transforms
 math.functions sequences svg tools.test xml xml.traversal multiline ;
 IN: svg.tests
 
-{ 1.0 2.25 } { -3.0 4.0 } { 5.5 0.5 } <affine-transform> 1array [
+{ 1.0 2.25 } { -3.0 4.0 } { 5.5 0.5 } <affine-transform> }      [
     "matrix ( 1 +2.25 -3  , 0.4e+1  ,5.5, 5e-1 )" svg-transform>affine-transform
 ] unit-test
 
-{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> 1array [
+{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> }      [
     "translate(5.0, 1e1 )" svg-transform>affine-transform
 ] unit-test
 
-{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> 1array [
+{ 1.0 0.0 } { 0.0 1.0 } { 5.0 10.0 } <affine-transform> }      [
     "translate( 5.0  1e+1)" svg-transform>affine-transform
 ] unit-test
 
-{ 2.0 0.0 } { 0.0 2.0 } { 0.0 0.0 } <affine-transform> 1array [
+{ 2.0 0.0 } { 0.0 2.0 } { 0.0 0.0 } <affine-transform> }      [
     "scale(2.0)" svg-transform>affine-transform
 ] unit-test
 
-{ 2.0 0.0 } { 0.0 4.0 } { 0.0 0.0 } <affine-transform> 1array [
+{ 2.0 0.0 } { 0.0 4.0 } { 0.0 0.0 } <affine-transform> }      [
     "scale(2.0 4.0)" svg-transform>affine-transform
 ] unit-test
 
-{ 2.0 0.0 } { 0.0 4.0 } { 0.0 0.0 } <affine-transform> 1array [
+{ 2.0 0.0 } { 0.0 4.0 } { 0.0 0.0 } <affine-transform> }      [
     "scale(2.0 4.0)" svg-transform>affine-transform
 ] unit-test
 
-[ t ] [
+{ t } [
     "skewX(45)" svg-transform>affine-transform
     { 1.0 0.0 } { 1.0 1.0 } { 0.0 0.0 } <affine-transform> 0.001 a~
 ] unit-test
 
-[ t ] [
+{ t } [
     "skewY(-4.5e1)" svg-transform>affine-transform
     { 1.0 -1.0 } { 0.0 1.0 } { 0.0 0.0 } <affine-transform> 0.001 a~
 ] unit-test
 
-[ t ] [
+{ t } [
     "rotate(30)" svg-transform>affine-transform
     { $[ 0.75 sqrt ] 0.5            }
     { -0.5           $[ 0.75 sqrt ] }
@@ -45,7 +45,7 @@ IN: svg.tests
     0.001 a~
 ] unit-test
 
-[ t ] [
+{ t } [
     "rotate(30 1.0,2.0)" svg-transform>affine-transform
     { $[  30 degrees cos ] $[ 30 degrees sin ] }
     { $[ -30 degrees sin ] $[ 30 degrees cos ] } {
@@ -56,11 +56,11 @@ IN: svg.tests
 
 { $[  30 degrees cos ] $[ 30 degrees sin ] }
 { $[ -30 degrees sin ] $[ 30 degrees cos ] }
-{ 1.0 2.0 } <affine-transform> 1array [
+{ 1.0 2.0 } <affine-transform> }      [
     "translate(1 2) rotate(30)" svg-transform>affine-transform
 ] unit-test
 
-[ {
+{ {
     T{ moveto f { 1.0  1.0 } f }
     T{ lineto f { 3.0 -1.0 } f }
 
@@ -89,7 +89,7 @@ IN: svg.tests
     T{ smooth-quadratic-bezier-curveto f { 3.0 4.0 } t }
 
     T{ elliptical-arc f { 5.0 6.0 } 7.0 t f { 8.0 9.0 } f }
-} ] [
+} } [
     """
     M 1.0,+1 3,-10e-1  l 2 2, 2 -2, 2 2   v -9 1 H 9 8  z 
     M 0 0  C -4.0 0.0 -8.0 4.0 -8.0 8.0  -8.0 4.0 -12.0 8.0 -16.0 8.0
@@ -109,8 +109,8 @@ STRING: test-svg-string
 : test-svg-path ( -- obj )
     test-svg-string string>xml body>> children-tags first ;
 
-[ { T{ moveto f { -1.0 -1.0 } f } T{ lineto f { 2.0 2.0 } t } } ]
+{ { T{ moveto f { -1.0 -1.0 } f } T{ lineto f { 2.0 2.0 } t } } }
 [ test-svg-path tag-d ] unit-test
 
-[ T{ affine-transform f { 1.0 0.0 } { 0.0 1.0 } { 1.0 2.0 } } ]
+{ T{ affine-transform f { 1.0 0.0 } { 0.0 1.0 } { 1.0 2.0 } } }
 [ test-svg-path tag-transform ] unit-test
index 5f0705717467930964051f30b7d4972a8dc18213..f9c4287c84b87fe7d2268c66e8ac61d525b1906a 100644 (file)
@@ -2,7 +2,7 @@ USING: synth tools.test ;
 
 IN: synth.tests
 
-[
+{
     {
         0.0
         0.9510565162951535
@@ -10,4 +10,4 @@ IN: synth.tests
         -0.587785252292473
         -0.9510565162951536
     }
-] [ 5 single-sine-wave ] unit-test
+} [ 5 single-sine-wave ] unit-test
index 6c12a423eb85c7499a3ec888da6db6d6c4b0cf97..df2e0fe37535809b350e843db136f5bdf40c67af 100644 (file)
@@ -3,116 +3,116 @@ taxes.usa taxes.usa.federal taxes.usa.mn
 calendar taxes.usa.w4 usa-cities math.finance ;
 IN: taxes.usa.tests
 
-[
+{
     426 23
-] [
+} [
     12000 2008 3 f <w4> <federal> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     426 23
-] [
+} [
     12000 2008 3 t <w4> <federal> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     684 4
-] [
+} [
     20000 2008 3 f <w4> <federal> net biweekly
     dollars/cents
 ] unit-test
 
 
 
-[
+{
     804 58
-] [
+} [
     24000 2008 3 f <w4> <federal> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     831 31
-] [
+} [
     24000 2008 3 t <w4> <federal> net biweekly
     dollars/cents
 ] unit-test
 
 
-[
+{
     780 81
-] [
+} [
     24000 2008 3 f <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     818 76
-] [
+} [
     24000 2008 3 t <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
 
-[
+{
     2124 39
-] [
+} [
     78250 2008 3 f <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     2321 76
-] [
+} [
     78250 2008 3 t <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
 
-[
+{
     2612 63
-] [
+} [
     100000 2008 3 f <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     22244 52
-] [
+} [
     1000000 2008 3 f <w4> <mn> net biweekly
     dollars/cents
 ] unit-test
 
-[
+{
     578357 40
-] [
+} [
     1000000 2008 3 f <w4> <mn> net
     dollars/cents
 ] unit-test
 
-[
+{
     588325 41
-] [
+} [
     1000000 2008 3 t <w4> <mn> net
     dollars/cents
 ] unit-test
 
 
-[ 30 97 ] [
+{ 30 97 } [
     24000 2008 2 f <w4> <mn> MN withholding* biweekly dollars/cents
 ] unit-test
 
-[ 173 66 ] [
+{ 173 66 } [
     78250 2008 2 f <w4> <mn> MN withholding* biweekly dollars/cents
 ] unit-test
 
 
-[ 138 69 ] [
+{ 138 69 } [
     24000 2008 2 f <w4> <federal> total-withholding biweekly dollars/cents
 ] unit-test
 
-[ 754 72 ] [
+{ 754 72 } [
     78250 2008 2 f <w4> <federal> total-withholding biweekly dollars/cents
 ] unit-test
index 81ee65bcb8bc30fef72b8a0c01b6f612a9f4d507..16a4e7df591d26312108f88418523b79cae85013 100644 (file)
@@ -1,23 +1,23 @@
 USING: accessors arrays colors colors.constants kernel tetris.board tetris.piece tools.test ;
 
-[ { { f f } { f f } { f f } } ] [ 2 3 make-rows ] unit-test
-[ { { f f } { f f } { f f } } ] [ 2 3 <board> rows>> ] unit-test
-[ 1 { f f } ] [ 2 3 <board> { 1 1 } board@block ] unit-test
-[ f ] [ 2 3 <board> { 1 1 } block ] unit-test
+{ { { f f } { f f } { f f } } } [ 2 3 make-rows ] unit-test
+{ { { f f } { f f } { f f } } } [ 2 3 <board> rows>> ] unit-test
+{ 1 { f f } } [ 2 3 <board> { 1 1 } board@block ] unit-test
+{ f } [ 2 3 <board> { 1 1 } block ] unit-test
 [ 2 3 <board> { 2 3 } block ] must-fail
-COLOR: red 1array [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } block ] unit-test
-[ t ] [ 2 3 <board> { 1 1 } block-free? ] unit-test
-[ f ] [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } block-free? ] unit-test
-[ t ] [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 2 } block-free? ] unit-test
-[ t ] [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 0 1 } block-free? ] unit-test
-[ t ] [ 2 3 <board> { 0 0 } block-in-bounds? ] unit-test
-[ f ] [ 2 3 <board> { -1 0 } block-in-bounds? ] unit-test
-[ t ] [ 2 3 <board> { 1 2 } block-in-bounds? ] unit-test
-[ f ] [ 2 3 <board> { 2 2 } block-in-bounds? ] unit-test
-[ t ] [ 2 3 <board> { 1 1 } location-valid? ] unit-test
-[ f ] [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } location-valid? ] unit-test
-[ t ] [ 10 10 <board> 10 <random-piece> piece-valid? ] unit-test
-[ f ] [ 2 3 <board> 10 <random-piece> { 1 2 } >>location piece-valid? ] unit-test
-[ { { f } { f } } ] [ 1 1 <board> add-row rows>> ] unit-test
-[ { { f } } ] [ 1 2 <board> dup { 0 1 } COLOR: red set-block remove-full-rows rows>> ] unit-test
-[ { { f } { f } } ] [ 1 2 <board> dup { 0 1 } COLOR: red set-block dup check-rows drop rows>> ] unit-test
+COLOR: red }      [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } block ] unit-test
+{ t } [ 2 3 <board> { 1 1 } block-free? ] unit-test
+{ f } [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } block-free? ] unit-test
+{ t } [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 2 } block-free? ] unit-test
+{ t } [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 0 1 } block-free? ] unit-test
+{ t } [ 2 3 <board> { 0 0 } block-in-bounds? ] unit-test
+{ f } [ 2 3 <board> { -1 0 } block-in-bounds? ] unit-test
+{ t } [ 2 3 <board> { 1 2 } block-in-bounds? ] unit-test
+{ f } [ 2 3 <board> { 2 2 } block-in-bounds? ] unit-test
+{ t } [ 2 3 <board> { 1 1 } location-valid? ] unit-test
+{ f } [ 2 3 <board> dup { 1 1 } COLOR: red set-block { 1 1 } location-valid? ] unit-test
+{ t } [ 10 10 <board> 10 <random-piece> piece-valid? ] unit-test
+{ f } [ 2 3 <board> 10 <random-piece> { 1 2 } >>location piece-valid? ] unit-test
+{ { { f } { f } } } [ 1 1 <board> add-row rows>> ] unit-test
+{ { { f } } } [ 1 2 <board> dup { 0 1 } COLOR: red set-block remove-full-rows rows>> ] unit-test
+{ { { f } { f } } } [ 1 2 <board> dup { 0 1 } COLOR: red set-block dup check-rows drop rows>> ] unit-test
index 381298ca2ff54d94569394e3b66dd0efe3ed97dd..d172c1a996914cb714976ca20aaa21341cb95506 100644 (file)
@@ -2,15 +2,15 @@ USING: accessors kernel tetris.game tetris.board tetris.piece tools.test
 sequences ;
 FROM: tetris.game => level>> ;
 
-[ t ] [ <default-tetris> [ current-piece ] [ next-piece ] bi and t f ? ] unit-test
-[ t ] [ <default-tetris> { 1 1 } can-move? ] unit-test
-[ t ] [ <default-tetris> { 1 1 } tetris-move ] unit-test
-[ 1 ] [ <default-tetris> dup { 1 1 } tetris-move drop current-piece location>> second ] unit-test
-[ 1 ] [ <default-tetris> level>> ] unit-test
-[ 1 ] [ <default-tetris> 9 >>rows level>> ] unit-test
-[ 2 ] [ <default-tetris> 10 >>rows level>> ] unit-test
-[ 0 ] [ 3 0 rows-score ] unit-test
-[ 80 ] [ 1 1 rows-score ] unit-test
-[ 4800 ] [ 3 4 rows-score ] unit-test
-[ 1 ] [ <default-tetris> dup 3 score-rows dup 3 score-rows dup 3 score-rows level>> ] unit-test
-[ 2 ] [ <default-tetris> dup 4 score-rows dup 4 score-rows dup 2 score-rows level>> ] unit-test
+{ t } [ <default-tetris> [ current-piece ] [ next-piece ] bi and t f ? ] unit-test
+{ t } [ <default-tetris> { 1 1 } can-move? ] unit-test
+{ t } [ <default-tetris> { 1 1 } tetris-move ] unit-test
+{ 1 } [ <default-tetris> dup { 1 1 } tetris-move drop current-piece location>> second ] unit-test
+{ 1 } [ <default-tetris> level>> ] unit-test
+{ 1 } [ <default-tetris> 9 >>rows level>> ] unit-test
+{ 2 } [ <default-tetris> 10 >>rows level>> ] unit-test
+{ 0 } [ 3 0 rows-score ] unit-test
+{ 80 } [ 1 1 rows-score ] unit-test
+{ 4800 } [ 3 4 rows-score ] unit-test
+{ 1 } [ <default-tetris> dup 3 score-rows dup 3 score-rows dup 3 score-rows level>> ] unit-test
+{ 2 } [ <default-tetris> dup 4 score-rows dup 4 score-rows dup 2 score-rows level>> ] unit-test
index 05e4faa68fd9a6dc3b806b0b0bf424c292fb6cd4..bd857f0ed4d11282807ff6653045cf4865b80089 100644 (file)
@@ -4,20 +4,20 @@ USING: accessors kernel tetris.tetromino tetris.piece tools.test sequences array
 
 ! these two tests rely on the first rotation of the first tetromino being the
 ! 'I' tetromino in its vertical orientation.
-[ 4 ] [ tetrominoes get first states>> first blocks-width ] unit-test
-[ 1 ] [ tetrominoes get first states>> first blocks-height ] unit-test
+{ 4 } [ tetrominoes get first states>> first blocks-width ] unit-test
+{ 1 } [ tetrominoes get first states>> first blocks-height ] unit-test
 
-[ { 0 0 } ] [ random-tetromino <piece> location>> ] unit-test
-[ 0 ] [ 10 <random-piece> rotation>> ] unit-test
+{ { 0 0 } } [ random-tetromino <piece> location>> ] unit-test
+{ 0 } [ 10 <random-piece> rotation>> ] unit-test
 
-[ { { 0 0 } { 1 0 } { 2 0 } { 3 0 } } ]
+{ { { 0 0 } { 1 0 } { 2 0 } { 3 0 } } }
 [ tetrominoes get first <piece> piece-blocks ] unit-test
 
-[ { { 0 0 } { 0 1 } { 0 2 } { 0 3 } } ]
+{ { { 0 0 } { 0 1 } { 0 2 } { 0 3 } } }
 [ tetrominoes get first <piece> 1 rotate-piece piece-blocks ] unit-test
 
-[ { { 1 1 } { 2 1 } { 3 1 } { 4 1 } } ]
+{ { { 1 1 } { 2 1 } { 3 1 } { 4 1 } } }
 [ tetrominoes get first <piece> { 1 1 } move-piece piece-blocks ] unit-test
 
-[ 3 ] [ tetrominoes get second <piece> piece-width ] unit-test
-[ 2 ] [ tetrominoes get second <piece> 1 rotate-piece piece-width ] unit-test
+{ 3 } [ tetrominoes get second <piece> piece-width ] unit-test
+{ 2 } [ tetrominoes get second <piece> 1 rotate-piece piece-width ] unit-test
index f6d73291a71845f02f4c4058680a1b3fe8204790..5ec618f90fee80f8f7f9f5167034eaccace78569 100644 (file)
@@ -3,7 +3,7 @@
 
 USING: kernel tnetstrings sequences tools.test ;
 
-[ t ] [
+{ t } [
     {
         { H{ } "0:}" }
         { { } "0:]" }
index 0212cc6cd32e8298e5386380946aa85eb19ab06b..568b6feac2c588cc5d3bd72578407fec6c7571df 100644 (file)
@@ -2,35 +2,35 @@ USING: kernel tools.test trees trees.avl math random sequences
 assocs accessors trees.avl.private trees.private ;
 IN: trees.avl.tests
 
-[ "key1" 0 "key2" 0 ] [
+{ "key1" 0 "key2" 0 } [
     T{ avl-node f "key1" f f T{ avl-node f "key2" f f 1 } 2 }
     [ single-rotate ] go-left
     [ left>> dup key>> swap balance>> ] keep
     dup key>> swap balance>>
 ] unit-test
 
-[ "key1" 0 "key2" 0 ] [
+{ "key1" 0 "key2" 0 } [
     T{ avl-node f "key1" f f T{ avl-node f "key2" f f f 1 } 2 }
     [ select-rotate ] go-left
     [ left>> dup key>> swap balance>> ] keep
     dup key>> swap balance>>
 ] unit-test
 
-[ "key1" 0 "key2" 0 ] [
+{ "key1" 0 "key2" 0 } [
     T{ avl-node f "key1" f T{ avl-node f "key2" f f f -1 } f -2 }
     [ single-rotate ] go-right
     [ right>> dup key>> swap balance>> ] keep
     dup key>> swap balance>>
 ] unit-test
 
-[ "key1" 0 "key2" 0 ] [
+{ "key1" 0 "key2" 0 } [
     T{ avl-node f "key1" f T{ avl-node f "key2" f f f -1 } f -2 }
     [ select-rotate ] go-right
     [ right>> dup key>> swap balance>> ] keep
     dup key>> swap balance>>
 ] unit-test
 
-[ "key1" -1 "key2" 0 "key3" 0 ]
+{ "key1" -1 "key2" 0 "key3" 0 }
 [ T{ avl-node f "key1" f f
         T{ avl-node f "key2" f
             T{ avl-node f "key3" f f f 1 } f -1 } 2 }
@@ -38,7 +38,7 @@ IN: trees.avl.tests
     [ left>> dup key>> swap balance>> ] keep
     [ right>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
-[ "key1" 0 "key2" 0 "key3" 0 ]
+{ "key1" 0 "key2" 0 "key3" 0 }
 [ T{ avl-node f "key1" f f
         T{ avl-node f "key2" f
             T{ avl-node f "key3" f f f 0 } f -1 } 2 }
@@ -46,7 +46,7 @@ IN: trees.avl.tests
     [ left>> dup key>> swap balance>> ] keep
     [ right>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
-[ "key1" 0 "key2" 1 "key3" 0 ]
+{ "key1" 0 "key2" 1 "key3" 0 }
 [ T{ avl-node f "key1" f f
         T{ avl-node f "key2" f
             T{ avl-node f "key3" f f f -1 } f -1 } 2 }
@@ -55,7 +55,7 @@ IN: trees.avl.tests
     [ right>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
 
-[ "key1" 1 "key2" 0 "key3" 0 ]
+{ "key1" 1 "key2" 0 "key3" 0 }
 [ T{ avl-node f "key1" f
         T{ avl-node f "key2" f f
             T{ avl-node f "key3" f f f -1 } 1 } f -2 }
@@ -63,7 +63,7 @@ IN: trees.avl.tests
     [ right>> dup key>> swap balance>> ] keep
     [ left>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
-[ "key1" 0 "key2" 0 "key3" 0 ]
+{ "key1" 0 "key2" 0 "key3" 0 }
 [ T{ avl-node f "key1" f
         T{ avl-node f "key2" f f
             T{ avl-node f "key3" f f f 0 } 1 } f -2 }
@@ -71,7 +71,7 @@ IN: trees.avl.tests
     [ right>> dup key>> swap balance>> ] keep
     [ left>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
-[ "key1" 0 "key2" -1 "key3" 0 ]
+{ "key1" 0 "key2" -1 "key3" 0 }
 [ T{ avl-node f "key1" f
         T{ avl-node f "key2" f f
             T{ avl-node f "key3" f f f 1 } 1 } f -2 }
@@ -80,13 +80,13 @@ IN: trees.avl.tests
     [ left>> dup key>> swap balance>> ] keep
     dup key>> swap balance>> ] unit-test
 
-[ "eight" ] [
+{ "eight" } [
     <avl> "seven" 7 pick set-at
     "eight" 8 pick set-at "nine" 9 pick set-at
     root>> value>>
 ] unit-test
 
-[ "another eight" ] [ ! ERROR!
+{ "another eight" } [ ! ERROR!
     <avl> "seven" 7 pick set-at
     "another eight" 8 pick set-at 8 of
 ] unit-test
@@ -101,17 +101,17 @@ IN: trees.avl.tests
     } clone ;
 
 ! test set-at, at, at*
-[ t ] [ test-tree avl? ] unit-test
-[ "seven" ] [ <avl> "seven" 7 pick set-at 7 of ] unit-test
-[ "seven" t ] [ <avl> "seven" 7 pick set-at 7 ?of ] unit-test
-[ 8 f ] [ <avl> "seven" 7 pick set-at 8 ?of ] unit-test
-[ "seven" ] [ <avl> "seven" 7 pick set-at 7 of ] unit-test
-[ "replacement" ] [ <avl> "seven" 7 pick set-at "replacement" 7 pick set-at 7 of ] unit-test
-[ "nine" ] [ test-tree 9 of ] unit-test
-[ "replaced four" ] [ test-tree 4 of ] unit-test
-[ "replaced seven" ] [ test-tree 7 of ] unit-test
+{ t } [ test-tree avl? ] unit-test
+{ "seven" } [ <avl> "seven" 7 pick set-at 7 of ] unit-test
+{ "seven" t } [ <avl> "seven" 7 pick set-at 7 ?of ] unit-test
+{ 8 f } [ <avl> "seven" 7 pick set-at 8 ?of ] unit-test
+{ "seven" } [ <avl> "seven" 7 pick set-at 7 of ] unit-test
+{ "replacement" } [ <avl> "seven" 7 pick set-at "replacement" 7 pick set-at 7 of ] unit-test
+{ "nine" } [ test-tree 9 of ] unit-test
+{ "replaced four" } [ test-tree 4 of ] unit-test
+{ "replaced seven" } [ test-tree 7 of ] unit-test
 
 ! test delete-at--all errors!
-[ f ] [ test-tree 9 over delete-at 9 of ] unit-test
-[ "replaced seven" ] [ test-tree 9 over delete-at 7 of ] unit-test
-[ "nine" ] [ test-tree 7 over delete-at 4 over delete-at 9 of ] unit-test
+{ f } [ test-tree 9 over delete-at 9 of ] unit-test
+{ "replaced seven" } [ test-tree 9 over delete-at 7 of ] unit-test
+{ "nine" } [ test-tree 7 over delete-at 4 over delete-at 9 of ] unit-test
index b068c473b12fc17115eea2df3ed3ae8520c40d39..2e8eb454a8db698791db5362bf5007284acdb36d 100644 (file)
@@ -11,17 +11,17 @@ IN: trees.tests
     } clone ;
 
 ! test set-at, at, at*
-[ "seven" ] [ <tree> "seven" 7 pick set-at 7 of ] unit-test
-[ "seven" t ] [ <tree> "seven" 7 pick set-at 7 ?of ] unit-test
-[ 8 f ] [ <tree> "seven" 7 pick set-at 8 ?of ] unit-test
-[ "seven" ] [ <tree> "seven" 7 pick set-at 7 of ] unit-test
-[ "replacement" ] [ <tree> "seven" 7 pick set-at "replacement" 7 pick set-at 7 of ] unit-test
-[ "replaced four" ] [ test-tree 4 of ] unit-test
-[ "nine" ] [ test-tree 9 of ] unit-test
+{ "seven" } [ <tree> "seven" 7 pick set-at 7 of ] unit-test
+{ "seven" t } [ <tree> "seven" 7 pick set-at 7 ?of ] unit-test
+{ 8 f } [ <tree> "seven" 7 pick set-at 8 ?of ] unit-test
+{ "seven" } [ <tree> "seven" 7 pick set-at 7 of ] unit-test
+{ "replacement" } [ <tree> "seven" 7 pick set-at "replacement" 7 pick set-at 7 of ] unit-test
+{ "replaced four" } [ test-tree 4 of ] unit-test
+{ "nine" } [ test-tree 9 of ] unit-test
 
 ! test delete-at
-[ f ] [ test-tree 9 over delete-at 9 of ] unit-test
-[ "replaced seven" ] [ test-tree 9 over delete-at 7 of ] unit-test
-[ "replaced four" ] [ test-tree 9 over delete-at 4 of ] unit-test
-[ "nine" "replaced four" ] [ test-tree 7 over delete-at 9 over at 4 rot at ] unit-test
-[ "nine" ] [ test-tree 7 over delete-at 4 over delete-at 9 of ] unit-test
+{ f } [ test-tree 9 over delete-at 9 of ] unit-test
+{ "replaced seven" } [ test-tree 9 over delete-at 7 of ] unit-test
+{ "replaced four" } [ test-tree 9 over delete-at 4 of ] unit-test
+{ "nine" "replaced four" } [ test-tree 7 over delete-at 9 over at 4 rot at ] unit-test
+{ "nine" } [ test-tree 7 over delete-at 4 over delete-at 9 of ] unit-test
index 6d294c741963ad4f43c0e6f1a1cff814c4bdffa2..1420419efd9e15a377f88f30bf5b8f369e53a3fa 100644 (file)
@@ -3,54 +3,54 @@ USING: tools.test txon ;
 
 IN: txon.tests
 
-[ "ABC" ] [ "ABC" >txon ] unit-test
+{ "ABC" } [ "ABC" >txon ] unit-test
 
-[ "A\\`C" ] [ "A`C" >txon ] unit-test
+{ "A\\`C" } [ "A`C" >txon ] unit-test
 
-[ "123" ] [ 123 >txon ] unit-test
+{ "123" } [ 123 >txon ] unit-test
 
-[ "1\n2\n3" ] [ { 1 2 3 } >txon ] unit-test
+{ "1\n2\n3" } [ { 1 2 3 } >txon ] unit-test
 
-[ "a:`123`\nb:`456`" ] [ H{ { "a" 123 } { "b" 456 } } >txon ] unit-test
+{ "a:`123`\nb:`456`" } [ H{ { "a" 123 } { "b" 456 } } >txon ] unit-test
 
-[ "foo" ] [ "foo" txon> ] unit-test
+{ "foo" } [ "foo" txon> ] unit-test
 
-[ "foo" ] [ "   foo   " txon> ] unit-test
+{ "foo" } [ "   foo   " txon> ] unit-test
 
-[ H{ { "foo" "" } } ]
+{ H{ { "foo" "" } } }
 [ "foo:``" txon> ] unit-test
 
-[ H{ { "foo" " " } } ]
+{ H{ { "foo" " " } } }
 [ "foo:` `" txon> ] unit-test
 
-[ H{ { "name" "value" } } ]
+{ H{ { "name" "value" } } }
 [ "name:`value`" txon> ] unit-test
 
-[ H{ { "name" "value" } } ]
+{ H{ { "name" "value" } } }
 [ "  name:`value`  " txon> ] unit-test
 
-[ H{ { "foo`bar" "value" } } ]
+{ H{ { "foo`bar" "value" } } }
 [ "foo\\`bar:`value`" txon> ] unit-test
 
-[ H{ { "foo" "bar`baz" } } ]
+{ H{ { "foo" "bar`baz" } } }
 [ "foo:`bar\\`baz`" txon> ] unit-test
 
-[ { H{ { "name1" "value1" } } H{ { "name2" "value2" } } } ]
+{ { H{ { "name1" "value1" } } H{ { "name2" "value2" } } } }
 [ "name1:`value1`name2:`value2`" txon> ] unit-test
 
-[ H{ { "name1" H{ { "name2" "nested value" } } } } ]
+{ H{ { "name1" H{ { "name2" "nested value" } } } } }
 [ "name1:`  name2:`nested value` `" txon> ] unit-test
 
-[ "name1:`name2:`nested value``" ]
+{ "name1:`name2:`nested value``" }
 [
     H{ { "name1" H{ { "name2" "nested value" } } } } >txon
 ] unit-test
 
-[
+{
     H{
         { "name1" H{ { "name2" "value2" } { "name3" "value3" } } }
     }
-] [
+} [
     "
     name1:`
         name2:`value2`
@@ -59,11 +59,11 @@ IN: txon.tests
     " txon>
 ] unit-test
 
-[
+{
     H{
         { "name1" H{ { "name2" H{ { "name3" "value3" } } } } }
     }
-] [
+} [
     "
     name1:`
         name2:`
@@ -73,4 +73,4 @@ IN: txon.tests
     " txon>
 ] unit-test
 
-[ H{ { "a" { "1" "2" "3" } } } ] [ "a:`1\n2\n3`" txon> ] unit-test
+{ H{ { "a" { "1" "2" "3" } } } } [ "a:`1\n2\n3`" txon> ] unit-test
index bf2ad72d0e444e6520d17c356a77c8f9803103e8..4caa473c0f41cd4af10b4d8fbba30fa12cff5f9e 100644 (file)
@@ -2,4 +2,4 @@ IN: ui.gadgets.lists.tests
 USING: ui.gadgets.lists models prettyprint math tools.test
 kernel ;
 
-[ ] [ [ drop ] [ 3 + . ] f <model> <list> invoke-value-action ] unit-test
+{ } [ [ drop ] [ 3 + . ] f <model> <list> invoke-value-action ] unit-test
index f29f2748e4f9f180a26fcab9f69ea3582a14f2f5..40afbbd7f70c990aa69823ce414cec8c9a2dc6df 100644 (file)
@@ -1,23 +1,23 @@
 USING: kernel math tools.test units.imperial inverse ;
 IN: units.imperial.tests
 
-[ 1 ] [ 12 inches [ feet ] undo ] unit-test
-[ 12 ] [ 1 feet [ inches ] undo ] unit-test
+{ 1 } [ 12 inches [ feet ] undo ] unit-test
+{ 12 } [ 1 feet [ inches ] undo ] unit-test
 
-[ t ] [ 16 ounces 1 pounds = ] unit-test
-[ t ] [ 1 pounds [ ounces ] undo 16 = ] unit-test
+{ t } [ 16 ounces 1 pounds = ] unit-test
+{ t } [ 1 pounds [ ounces ] undo 16 = ] unit-test
 
-[ 1 ] [ 4 quarts [ gallons ] undo ] unit-test
-[ 4 ] [ 1 gallons [ quarts ] undo ] unit-test
+{ 1 } [ 4 quarts [ gallons ] undo ] unit-test
+{ 4 } [ 1 gallons [ quarts ] undo ] unit-test
 
-[ 2 ] [ 1 pints [ cups ] undo ] unit-test
-[ 1 ] [ 2 cups [ pints ] undo ] unit-test
+{ 2 } [ 1 pints [ cups ] undo ] unit-test
+{ 1 } [ 2 cups [ pints ] undo ] unit-test
 
-[ 256 ] [ 1 gallons [ tablespoons ] undo ] unit-test
-[ 1 ] [ 256 tablespoons [ gallons ] undo ] unit-test
+{ 256 } [ 1 gallons [ tablespoons ] undo ] unit-test
+{ 1 } [ 256 tablespoons [ gallons ] undo ] unit-test
 
-[ 768 ] [ 1 gallons [ teaspoons ] undo ] unit-test
-[ 1 ] [ 768 teaspoons [ gallons ] undo ] unit-test
+{ 768 } [ 1 gallons [ teaspoons ] undo ] unit-test
+{ 1 } [ 768 teaspoons [ gallons ] undo ] unit-test
 
 { 1 } [ 6 feet [ fathoms ] undo ] unit-test
 { 1 } [ 8 furlongs [ miles ] undo ] unit-test
index 001a9d658db9b559315da8db2e1d0243b9042f26..ed6afc82a2f80a37ebfeec5b4abb9f73d6059e74 100644 (file)
@@ -4,48 +4,48 @@ USING: combinators fry kernel locals math math.functions
 math.order math.parser sequences tools.test ;
 IN: units.reduction
 
-[ "0Bi" ] [ 0 n>storage ] unit-test
-[ "0B" ] [ 0 n>Storage ] unit-test
-[ "0Bi" ] [ -0 n>storage ] unit-test
-[ "0B" ] [ -0 n>Storage ] unit-test
-[ "1000Bi" ] [ 1,000 n>storage ] unit-test
-[ "1K" ] [ 1,000 n>Storage ] unit-test
-[ "976Ki" ] [ 1,000,000 n>storage ] unit-test
-[ "1Mi" ] [ 2,000,000 n>storage ] unit-test
-[ "190Mi" ] [ 200,000,000 n>storage ] unit-test
-[ "1M" ] [ 1,000,000 n>Storage ] unit-test
-[ "953Mi" ] [ 1,000,000,000 n>storage ] unit-test
-[ "1G" ] [ 1,000,000,000 n>Storage ] unit-test
-[ "931Gi" ] [ 1,000,000,000,000 n>storage ] unit-test
-[ "1T" ] [ 1,000,000,000,000 n>Storage ] unit-test
-[ "909Ti" ] [ 1,000,000,000,000,000 n>storage ] unit-test
-[ "1P" ] [ 1,000,000,000,000,000 n>Storage ] unit-test
-[ "888Pi" ] [ 1,000,000,000,000,000,000 n>storage ] unit-test
-[ "1E" ] [ 1,000,000,000,000,000,000 n>Storage ] unit-test
-[ "-1E" ] [ -1,000,000,000,000,000,000 n>Storage ] unit-test
+{ "0Bi" } [ 0 n>storage ] unit-test
+{ "0B" } [ 0 n>Storage ] unit-test
+{ "0Bi" } [ -0 n>storage ] unit-test
+{ "0B" } [ -0 n>Storage ] unit-test
+{ "1000Bi" } [ 1,000 n>storage ] unit-test
+{ "1K" } [ 1,000 n>Storage ] unit-test
+{ "976Ki" } [ 1,000,000 n>storage ] unit-test
+{ "1Mi" } [ 2,000,000 n>storage ] unit-test
+{ "190Mi" } [ 200,000,000 n>storage ] unit-test
+{ "1M" } [ 1,000,000 n>Storage ] unit-test
+{ "953Mi" } [ 1,000,000,000 n>storage ] unit-test
+{ "1G" } [ 1,000,000,000 n>Storage ] unit-test
+{ "931Gi" } [ 1,000,000,000,000 n>storage ] unit-test
+{ "1T" } [ 1,000,000,000,000 n>Storage ] unit-test
+{ "909Ti" } [ 1,000,000,000,000,000 n>storage ] unit-test
+{ "1P" } [ 1,000,000,000,000,000 n>Storage ] unit-test
+{ "888Pi" } [ 1,000,000,000,000,000,000 n>storage ] unit-test
+{ "1E" } [ 1,000,000,000,000,000,000 n>Storage ] unit-test
+{ "-1E" } [ -1,000,000,000,000,000,000 n>Storage ] unit-test
 
 : test-n>storage ( string -- string ) n>storage storage>n n>storage ;
 : test-n>Storage ( string -- string ) n>Storage storage>n n>Storage ;
 
-[ "0Bi" ] [ 0 test-n>storage ] unit-test
-[ "0B" ] [ 0 test-n>Storage ] unit-test
-[ "0Bi" ] [ -0 test-n>storage ] unit-test
-[ "0B" ] [ -0 test-n>Storage ] unit-test
-[ "1000Bi" ] [ 1,000 test-n>storage ] unit-test
-[ "1K" ] [ 1,000 test-n>Storage ] unit-test
-[ "976Ki" ] [ 1,000,000 test-n>storage ] unit-test
-[ "1Mi" ] [ 2,000,000 test-n>storage ] unit-test
-[ "190Mi" ] [ 200,000,000 test-n>storage ] unit-test
-[ "1M" ] [ 1,000,000 test-n>Storage ] unit-test
-[ "953Mi" ] [ 1,000,000,000 test-n>storage ] unit-test
-[ "1G" ] [ 1,000,000,000 test-n>Storage ] unit-test
-[ "931Gi" ] [ 1,000,000,000,000 test-n>storage ] unit-test
-[ "1T" ] [ 1,000,000,000,000 test-n>Storage ] unit-test
-[ "909Ti" ] [ 1,000,000,000,000,000 test-n>storage ] unit-test
-[ "1P" ] [ 1,000,000,000,000,000 test-n>Storage ] unit-test
-[ "888Pi" ] [ 1,000,000,000,000,000,000 test-n>storage ] unit-test
-[ "1E" ] [ 1,000,000,000,000,000,000 test-n>Storage ] unit-test
-[ "-1E" ] [ -1,000,000,000,000,000,000 test-n>Storage ] unit-test
+{ "0Bi" } [ 0 test-n>storage ] unit-test
+{ "0B" } [ 0 test-n>Storage ] unit-test
+{ "0Bi" } [ -0 test-n>storage ] unit-test
+{ "0B" } [ -0 test-n>Storage ] unit-test
+{ "1000Bi" } [ 1,000 test-n>storage ] unit-test
+{ "1K" } [ 1,000 test-n>Storage ] unit-test
+{ "976Ki" } [ 1,000,000 test-n>storage ] unit-test
+{ "1Mi" } [ 2,000,000 test-n>storage ] unit-test
+{ "190Mi" } [ 200,000,000 test-n>storage ] unit-test
+{ "1M" } [ 1,000,000 test-n>Storage ] unit-test
+{ "953Mi" } [ 1,000,000,000 test-n>storage ] unit-test
+{ "1G" } [ 1,000,000,000 test-n>Storage ] unit-test
+{ "931Gi" } [ 1,000,000,000,000 test-n>storage ] unit-test
+{ "1T" } [ 1,000,000,000,000 test-n>Storage ] unit-test
+{ "909Ti" } [ 1,000,000,000,000,000 test-n>storage ] unit-test
+{ "1P" } [ 1,000,000,000,000,000 test-n>Storage ] unit-test
+{ "888Pi" } [ 1,000,000,000,000,000,000 test-n>storage ] unit-test
+{ "1E" } [ 1,000,000,000,000,000,000 test-n>Storage ] unit-test
+{ "-1E" } [ -1,000,000,000,000,000,000 test-n>Storage ] unit-test
 
 [ "abc" storage>n ] [ bad-storage-string?  ] must-fail-with
 [ "-abc" storage>n ] [ bad-storage-string?  ] must-fail-with
index 9fb702f0504b34cd9a94b91b260c5f0311f09d69..8ee09210a2028542e68e3d34ddc20965c7e668b7 100644 (file)
@@ -2,12 +2,12 @@ USING: kernel tools.test units.si inverse math.constants
 math.functions units.imperial ;
 IN: units.si.tests
 
-[ t ] [ 1 m 100 cm = ] unit-test
+{ t } [ 1 m 100 cm = ] unit-test
 
-[ t ] [ 180 arc-deg [ radians ] undo pi 0.0001 ~ ] unit-test
+{ t } [ 180 arc-deg [ radians ] undo pi 0.0001 ~ ] unit-test
 
-[ t ] [ 180 arc-min [ arc-deg ] undo 3 0.0001 ~ ] unit-test
+{ t } [ 180 arc-min [ arc-deg ] undo 3 0.0001 ~ ] unit-test
 
-[ -40 ] [ -40 deg-F [ deg-C ] undo ] unit-test
+{ -40 } [ -40 deg-F [ deg-C ] undo ] unit-test
 
-[ -40 ] [ -40 deg-C [ deg-F ] undo ] unit-test
+{ -40 } [ -40 deg-C [ deg-F ] undo ] unit-test
index 5d0fa1cf1e848380e5b791c31d5415e43071956b..b5ff1776c10ff4bef9fd69310d3b430e1e39c256 100644 (file)
@@ -2,20 +2,20 @@ USING: arrays kernel math sequences tools.test units.si
 units.imperial units inverse math.functions ;
 IN: units.tests
 
-[ T{ dimensioned f 3 { m } { } } ] [ 3 m ] unit-test
-[ T{ dimensioned f 3 { m } { s } } ] [ 3 m/s ] unit-test
-[ T{ dimensioned f 4000 { m } { } } ] [ 4 km ] unit-test
+{ T{ dimensioned f 3 { m } { } } } [ 3 m ] unit-test
+{ T{ dimensioned f 3 { m } { s } } } [ 3 m/s ] unit-test
+{ T{ dimensioned f 4000 { m } { } } } [ 4 km ] unit-test
 
-[ t ] [ 4 m 5 m d+ 9 m = ] unit-test
-[ t ] [ 5 m 1 m d- 4 m = ] unit-test
-[ t ] [ 5 m 2 m d* 10 m^2 = ] unit-test
-[ t ] [ 5 m 2 m d/ 5/2 { } { } <dimensioned> = ] unit-test
-[ t ] [ 2 m 5 m 2 m d/ drop 2 m = ] unit-test
+{ t } [ 4 m 5 m d+ 9 m = ] unit-test
+{ t } [ 5 m 1 m d- 4 m = ] unit-test
+{ t } [ 5 m 2 m d* 10 m^2 = ] unit-test
+{ t } [ 5 m 2 m d/ 5/2 { } { } <dimensioned> = ] unit-test
+{ t } [ 2 m 5 m 2 m d/ drop 2 m = ] unit-test
 
-[ t ] [ 1 m 2 m 3 m 3array d-product 6 m^3 = ] unit-test
-[ t ] [ 3 m d-recip 1/3 { } { m } <dimensioned> = ] unit-test
+{ t } [ 1 m 2 m 3 m 3array d-product 6 m^3 = ] unit-test
+{ t } [ 3 m d-recip 1/3 { } { m } <dimensioned> = ] unit-test
 
 : km/L ( n -- d ) km 1 L d/ ;
 : mpg ( n -- d ) miles 1 gallons d/ ;
 
-[ t ] [ 100 10 / km/L [ mpg ] undo 23 1 ~ ] unit-test
+{ t } [ 100 10 / km/L [ mpg ] undo 23 1 ~ ] unit-test
index 2dbeafcfeec7650bdfe5a85bf015f3b0deb92b8a..031bc4fb9f04a5781eb16aa4140beb124d8c7cb2 100644 (file)
@@ -3,4 +3,4 @@
 USING: accessors kernel tools.test usa-cities ;
 IN: usa-cities.tests
 
-[ t ] [ 55406 find-zip-code name>> "Minneapolis" = ] unit-test
+{ t } [ 55406 find-zip-code name>> "Minneapolis" = ] unit-test
index 39c858e1ed7e8a1a96e40e59920335f6f63e6fac..4a7a7e67e1958b71b968ff17c7aac38cd9221565 100644 (file)
@@ -7,9 +7,9 @@ VARIANT: list
     cons: { { first object } { rest list } }
     ;
 
-[ t ] [ nil list? ] unit-test
-[ t ] [ 1 nil <cons> list? ] unit-test
-[ f ] [ 1 list? ] unit-test
+{ t } [ nil list? ] unit-test
+{ t } [ 1 nil <cons> list? ] unit-test
+{ f } [ 1 list? ] unit-test
 
 : list-length ( list -- length )
     {
@@ -17,18 +17,18 @@ VARIANT: list
         { cons [ nip list-length 1 + ] }
     } match ;
 
-[ 4 ]
+{ 4 }
 [ 5 6 7 8 nil <cons> <cons> <cons> <cons> list-length ] unit-test
 
-[ nil t ] [ list initial-value ] unit-test
+{ nil t } [ list initial-value ] unit-test
 
 VARIANT: list2 ;
 VARIANT-MEMBER: list2 nil2
 VARIANT-MEMBER: list2 cons2: { { first object } { rest list2 } }
 
-[ t ] [ nil2 list2? ] unit-test
-[ t ] [ 1 nil2 <cons2> list2? ] unit-test
-[ f ] [ 1 list2? ] unit-test
+{ t } [ nil2 list2? ] unit-test
+{ t } [ 1 nil2 <cons2> list2? ] unit-test
+{ f } [ 1 list2? ] unit-test
 
 : list2-length ( list2 -- length )
     {
@@ -36,5 +36,5 @@ VARIANT-MEMBER: list2 cons2: { { first object } { rest list2 } }
         { cons2 [ nip list2-length 1 + ] }
     } match ;
 
-[ 4 ]
+{ 4 }
 [ 5 6 7 8 nil2 <cons2> <cons2> <cons2> <cons2> list2-length ] unit-test
index 5b81a32c2491d1713d52a5c5445477fcbc9da473..f6870993fd4605f5fd694e68e36b2a551ca2d16f 100644 (file)
@@ -4,7 +4,7 @@ IN: webapps.mason.backend.tests
 
 [ "mason-test.db" temp-file delete-file ] ignore-errors
 
-[ 0 1 2 ] [
+{ 0 1 2 } [
     ! Do it in a with-transaction to simulate semantics of
     ! with-mason-db
     "mason-test.db" temp-file <sqlite-db> [
index 46416249c93cfd4ad02fbd56d9ff2aac7b5c87ee..f9b29b8068293700e9fb5573ce219a5cea3efa2f 100644 (file)
@@ -4,7 +4,7 @@ IN: wordtimer.tests
 : testfn ( a b c d -- a+b c+d )
   + [ + ] dip ;
 
-[ 3 7 ]
+{ 3 7 }
 [ reset-word-timer
   \ testfn [ reset ] [ add-timer ] bi
   1 2 3 4 testfn ] unit-test
index 827d6ecfd0d3312ec94dfb90d07fc4517f939655..f43171992696b369c05b8e4c227a2365387429da 100644 (file)
@@ -1,11 +1,11 @@
 USING: tools.test yahoo kernel io.files xml sequences accessors urls ;
 
-[ T{
+{ T{
     result
     f
     "Official Foo Fighters"
     "http://www.foofighters.com/"
     "Official site with news, tour dates, discography, store, community, and more."
-} ] [ "resource:extra/yahoo/test-results.xml" file>xml parse-yahoo first ] unit-test
+} } [ "resource:extra/yahoo/test-results.xml" file>xml parse-yahoo first ] unit-test
 
-[ URL" http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=Factor-search&query=hi&results=2&similar_ok=1" ] [ "hi" <search> "Factor-search" >>appid 2 >>results t >>similar-ok query ] unit-test
+{ URL" http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=Factor-search&query=hi&results=2&similar_ok=1" } [ "hi" <search> "Factor-search" >>appid 2 >>results t >>similar-ok query ] unit-test
index 8a8fd974802df3ffef53f30e5ff3a11e531b8e37..7e0c7732ba4893d03df1fce2b920dfd22a752f49 100644 (file)
@@ -3,11 +3,11 @@
 USING: tools.test z-algorithm ;
 IN: z-algorithm.tests
 
-[ 0 ] [ "qwerty" "" lcp ] unit-test
-[ 0 ] [ "qwerty" "asdf" lcp ] unit-test
-[ 3 ] [ "qwerty" "qwe" lcp ] unit-test
-[ 3 ] [ "qwerty" "qwet" lcp ] unit-test
+{ 0 } [ "qwerty" "" lcp ] unit-test
+{ 0 } [ "qwerty" "asdf" lcp ] unit-test
+{ 3 } [ "qwerty" "qwe" lcp ] unit-test
+{ 3 } [ "qwerty" "qwet" lcp ] unit-test
 
-[ { } ] [ "" z-values ] unit-test
-[ { 1 } ] [ "q" z-values ] unit-test
-[ { 9 0 5 0 3 0 1 0 1 } ] [ "abababaca" z-values ] unit-test
+{ { } } [ "" z-values ] unit-test
+{ { 1 } } [ "q" z-values ] unit-test
+{ { 9 0 5 0 3 0 1 0 1 } } [ "abababaca" z-values ] unit-test