From f2063a99d7238651ea87a32b75dc9b80bc84b98b Mon Sep 17 00:00:00 2001 From: jlangch Date: Tue, 17 Oct 2023 09:18:21 +0200 Subject: [PATCH] refactoring --- .../impl/functions/IOFunctionsStreamTest.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/java/com/github/jlangch/venice/impl/functions/IOFunctionsStreamTest.java b/src/test/java/com/github/jlangch/venice/impl/functions/IOFunctionsStreamTest.java index 0af9ba9ca..b174e3afb 100644 --- a/src/test/java/com/github/jlangch/venice/impl/functions/IOFunctionsStreamTest.java +++ b/src/test/java/com/github/jlangch/venice/impl/functions/IOFunctionsStreamTest.java @@ -35,12 +35,12 @@ public void test_io_buffered_reader() { final Venice venice = new Venice(); final String script = - "(do " + - " (import :java.io.FileInputStream) " + - " (let [file (io/temp-file \"test-\", \".txt\")] " + - " (io/delete-file-on-exit file) " + - " (io/spit file \"100\n200\" :append false) " + - " (try-with [rd (io/buffered-reader file :encoding :utf-8)] " + + "(do \n" + + " (import :java.io.FileInputStream) \n" + + " (let [file (io/temp-file \"test-\", \".txt\")] \n" + + " (io/delete-file-on-exit file) \n" + + " (io/spit file \"100\n200\" :append false) \n" + + " (try-with [rd (io/buffered-reader file :encoding :utf-8)] \n" + " (pr-str [(read-line rd) (read-line rd)])))) "; assertEquals("[\"100\" \"200\"]",venice.eval(script)); @@ -51,14 +51,14 @@ public void test_io_buffered_writer() { final Venice venice = new Venice(); final String script = - "(do " + - " (import :java.io.FileInputStream) " + - " (let [file (io/temp-file \"test-\", \".txt\")] " + - " (io/delete-file-on-exit file) " + - " (try-with [wr (io/buffered-writer file)] " + - " (println wr \"100\") " + - " (println wr \"200\")) " + - " (try-with [rd (io/buffered-reader file :encoding :utf-8)] " + + "(do \n" + + " (import :java.io.FileInputStream) \n" + + " (let [file (io/temp-file \"test-\", \".txt\")] \n" + + " (io/delete-file-on-exit file) \n" + + " (try-with [wr (io/buffered-writer file)] \n" + + " (println wr \"100\") \n" + + " (println wr \"200\")) \n" + + " (try-with [rd (io/buffered-reader file :encoding :utf-8)] \n" + " (pr-str [(read-line rd) (read-line rd)])))) "; assertEquals("[\"100\" \"200\"]",venice.eval(script));