Skip to content

Commit

Permalink
#2979 enable dataization output tests from MainTest
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed May 7, 2024
1 parent 19897d1 commit 281d9ed
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions eo-runtime/src/test/java/org/eolang/MainTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
* Test case for {@link Main}.
*
* @since 0.1
* @todo #2931:30min Enable all disabled test in the class. The tests were disabled because object
* tupled-stdout.eo was removed from eo-runtime tests because it wasn't working in CI.
* Need to refactor them and enable
*/
final class MainTest {

Expand All @@ -68,30 +65,27 @@ void printsHelp() {
}

@Test
@Disabled
void deliversCleanOutput() {
MatcherAssert.assertThat(
AtCompositeTest.TO_ADD_MESSAGE,
MainTest.exec("org.eolang.io.tupled-stdout", "Hello!"),
"Incorrect output when dataizing \"true\" object",
MainTest.exec("org.eolang.true"),
Matchers.stringContainsInOrder(
String.format("Hello!%n---%n"),
String.format("%n---%n"),
"true",
String.format("%n")
)
);
}

@Test
@Disabled
void executesJvmFullRun() {
MatcherAssert.assertThat(
AtCompositeTest.TO_ADD_MESSAGE,
MainTest.exec("--verbose", "org.eolang.io.tupled-stdout", "Hello, dude!"),
"Incorrect verbose output when dataizing \"false\" object",
MainTest.exec("--verbose", "org.eolang.false"),
Matchers.allOf(
Matchers.containsString("EOLANG"),
Matchers.containsString("Hello, "),
Matchers.containsString("\uD835\uDD3B( "),
Matchers.containsString("string")
Matchers.containsString("false")
)
);
}
Expand Down

0 comments on commit 281d9ed

Please sign in to comment.