Skip to content

Commit

Permalink
feat(#3251): messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Aug 14, 2024
1 parent b7cc6ff commit ca9ee3b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOio/InputOutputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void writesToConsole(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'console.write' should have written to posix console, but it didn't",
"The 'console.write' should have written to posix console, but it didn't",
new String(
Files.readAllBytes(Paths.get(file.getAbsolutePath())), StandardCharsets.UTF_8
),
Expand Down Expand Up @@ -336,7 +336,7 @@ void writesToConsoleSequentially(@TempDir final Path temp) throws IOException {
}
);
MatcherAssert.assertThat(
"The posix 'console.write' should have return output block ready to write again, but it didn't",
"The 'console.write' should have return output block ready to write again, but it didn't",
new String(
Files.readAllBytes(Paths.get(file.getAbsolutePath())), StandardCharsets.UTF_8
),
Expand All @@ -359,7 +359,7 @@ void readsFromConsole(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'console.read' object should have read all bytes from standard input, but it didn't",
"The 'console.read' object should have read all bytes from standard input, but it didn't",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand Down Expand Up @@ -390,7 +390,7 @@ void readsSequentiallyFromInputBlockViaConsole(@TempDir final Path temp)
}
);
MatcherAssert.assertThat(
"The posix `console.read` object should have return input block ready to `read` again, but it didn't",
"The `console.read` object should have return input block ready to `read` again, but it didn't",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo("from posix console")
);
Expand All @@ -414,7 +414,7 @@ void dataizesOneLineOnOneLineInputViaStdin(@TempDir final Path temp) throws IOEx
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin.next-line' object should have returned one line from one line input",
"The 'stdin.next-line' object should have returned one line from one line input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand All @@ -433,7 +433,7 @@ void dataizesOneLineOnOneLineWithSeparatorInputViaStdin(
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin.next-line' object should have returned one line from one line with separator input",
"The 'stdin.next-line' object should have returned one line from one line with separator input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand Down Expand Up @@ -462,7 +462,7 @@ void dataizesSecondLineOnThreeLineWithSeparatorInputViaStdin(
}
);
MatcherAssert.assertThat(
"The posix 'stdin.next-line' object should have returned second line from three lines input",
"The 'stdin.next-line' object should have returned second line from three lines input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo("second")
);
Expand All @@ -479,7 +479,7 @@ void dataizesEmptyInputViaStdin(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin.next-line' object should have returned empty line from empty input",
"The 'stdin.next-line' object should have returned empty line from empty input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand All @@ -496,7 +496,7 @@ void dataizesStdinOneLine(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin' object should have been dataized to one line from one line input",
"The 'stdin' object should have been dataized to one line from one line input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand All @@ -513,7 +513,7 @@ void dataizesStdinEmptyLine(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin' object should have been dataized to one line from one line input",
"The 'stdin' object should have been dataized to one line from one line input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand All @@ -535,7 +535,7 @@ void dataizesStdinMultiLine(@TempDir final Path temp) throws IOException {
).take()
);
MatcherAssert.assertThat(
"The posix 'stdin' object should have been dataized to one line from one line input",
"The 'stdin' object should have been dataized to one line from one line input",
new String(result, StandardCharsets.UTF_8),
Matchers.equalTo(content)
);
Expand Down

0 comments on commit ca9ee3b

Please sign in to comment.