! Copyright (C) 2010 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: destructors io io.encodings.binary io.encodings.utf8
-io.files io.streams.byte-array io.streams.string
-io.streams.throwing kernel namespaces tools.test ;
+USING: arrays destructors io io.encodings.binary
+io.encodings.utf8 io.files io.streams.byte-array
+io.streams.string io.streams.throwing kernel namespaces
+sequences tools.test ;
{ "asdf" }
[
-USING: benchmark.regex-dna io io.files io.encodings.ascii
-io.streams.string kernel tools.test splitting ;
+USING: benchmark.regex-dna io.encodings.ascii io.files
+io.streams.string kernel sequences tools.test ;
{ t } [
"resource:extra/benchmark/regex-dna/regex-dna-test-in.txt"
"resource:extra/benchmark/regex-dna/regex-dna-test-out.txt"
! Ensure the line endings don't change on Windows
! when checking out with git.
- ascii file-lines "\n" join =
+ ascii file-lines [ "\n" append ] map concat =
] unit-test