From 0cd8023a251e8f9015e10778b0e58450bacf5c6d Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 6 May 2008 14:41:59 -0500 Subject: [PATCH] use resource: instead of resource-path --- core/io/io-tests.factor | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/io/io-tests.factor b/core/io/io-tests.factor index 7204bde6fb..50a798d290 100755 --- a/core/io/io-tests.factor +++ b/core/io/io-tests.factor @@ -8,20 +8,17 @@ IN: io.tests "foo" "io.tests" lookup ] unit-test -: ( resource -- stream ) - resource-path latin1 ; - [ "This is a line.\rThis is another line.\r" ] [ - "core/io/test/mac-os-eol.txt" + "resource:core/io/test/mac-os-eol.txt" latin1 [ 500 read ] with-input-stream ] unit-test [ 255 ] [ - "core/io/test/binary.txt" + "resource:core/io/test/binary.txt" latin1 [ read1 ] with-input-stream >fixnum ] unit-test @@ -36,7 +33,8 @@ IN: io.tests } ] [ [ - "core/io/test/separator-test.txt" [ + "resource:core/io/test/separator-test.txt" + latin1 [ "J" read-until 2array , "i" read-until 2array , "X" read-until 2array ,