From 47e9806aae1d2c29fa68b1a31313b43a8ce2c725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Tue, 10 May 2022 17:10:51 +0200 Subject: [PATCH] try fixing line endings in test --- test/Tests/src/System/Reporting_Stream_Decoder_Spec.enso | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/Tests/src/System/Reporting_Stream_Decoder_Spec.enso b/test/Tests/src/System/Reporting_Stream_Decoder_Spec.enso index a7c7ea30e21c..428d85ada698 100644 --- a/test/Tests/src/System/Reporting_Stream_Decoder_Spec.enso +++ b/test/Tests/src/System/Reporting_Stream_Decoder_Spec.enso @@ -9,7 +9,6 @@ import Standard.Test import Standard.Test.Problems spec = - sample_file = Enso_Project.data / "sample.txt" windows_file = Enso_Project.data / "windows.txt" read_file_one_by_one file java_charset expected_size expected_problems=[] = @@ -102,10 +101,12 @@ spec = f.delete Test.specify "should allow reading a UTF-8 file" <| + f = Enso_Project.data / "transient" / "utf8.txt" encoding = Encoding.utf_8 java_charset = encoding.to_java_charset - expected_contents = sample_file.read_text - contents = read_file_one_by_one sample_file java_charset expected_contents.length + f.write_text ((0.up_to 100).map _->'Hello World!' . join '\n') Encoding.utf_8 + expected_contents = f.read_text + contents = read_file_one_by_one f java_charset expected_contents.length contents.should_equal expected_contents Test.specify "should allow reading a Windows file" <|