Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup committed Oct 1, 2024
1 parent 92c943c commit 2182471
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private static Stream<FileAndError> exampleErrorsWithType() throws Throwable {
void testExamplesErrors(FileAndError file) throws Throwable {
StringBuilder stringBuilder = new StringBuilder();
IO io = new IO(
_ -> CompletableFuture.completedFuture(Optional.empty()),
_ -> CompletableFuture.failedFuture(new UnsupportedOperationException()),
a -> {
switch (a) {
case OutputEvent.Text(String t) -> stringBuilder.append(t);
Expand Down Expand Up @@ -545,7 +545,7 @@ void testBinaryOperands(@CartesianTest.Values(strings = {">", ">=", "<", "<=", "
@CartesianTest.Enum(Types.class) Types type2) throws Throwable {
StringBuilder stringBuilder = new StringBuilder();
IO io = new IO(
_ -> CompletableFuture.completedFuture(Optional.empty()),
_ -> CompletableFuture.failedFuture(new UnsupportedOperationException()),
a -> {
switch (a) {
case OutputEvent.Text(String t) -> stringBuilder.append(t);
Expand Down Expand Up @@ -581,7 +581,7 @@ void testUnaryOperands(@CartesianTest.Values(strings = {"+", "-", "nao"}) String
@CartesianTest.Enum(Types.class) Types type) throws Throwable {
StringBuilder stringBuilder = new StringBuilder();
IO io = new IO(
_ -> CompletableFuture.completedFuture(Optional.empty()),
_ -> CompletableFuture.failedFuture(new UnsupportedOperationException()),
a -> {
switch (a) {
case OutputEvent.Text(String t) -> stringBuilder.append(t);
Expand Down

0 comments on commit 2182471

Please sign in to comment.