]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/streams/string/string-tests.factor
core: Change lines -> read-lines, contents -> read-contents, string-lines -> lines
[factor.git] / basis / io / streams / string / string-tests.factor
index 82bf549f535c456ff8014d44c81a126645f5f81c..0632a76b9409a0aee1b73d79d0b03c8fab4bb7b1 100644 (file)
@@ -1,7 +1,7 @@
 USING: io.streams.string io kernel arrays namespaces make
 tools.test ;
 
-{ "" } [ "" [ contents ] with-string-reader ] unit-test
+{ "" } [ "" [ read-contents ] with-string-reader ] unit-test
 
 { "line 1" CHAR: l }
 [
@@ -10,11 +10,11 @@ tools.test ;
 unit-test
 
 { { "line 1" "line 2" "line 3" } } [
-    "line 1\nline 2\nline 3" [ lines ] with-string-reader
+    "line 1\nline 2\nline 3" [ read-lines ] with-string-reader
 ] unit-test
 
 { { "" "foo" "bar" "baz" } } [
-    "\rfoo\r\nbar\rbaz\n" [ lines ] with-string-reader
+    "\rfoo\r\nbar\rbaz\n" [ read-lines ] with-string-reader
 ] unit-test
 
 { f } [ "" [ readln ] with-string-reader ] unit-test