Skip to content

Commit

Permalink
. t better tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isidore committed Nov 22, 2024
1 parent 3b26f5e commit 24037c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void testFirstOrThrow()
java.lang.RuntimeException: 4 not found
""";
Queryable<Integer> queryable = Queryable.as(1, 2, 3);
assertEquals(3, queryable.first(i -> 2 < i));
assertEquals(3, queryable.firstOrThrow(i -> 2 < i, () -> new RuntimeException("Nothing bigger than 2")));
Approvals.verifyException(() -> queryable.firstOrThrow(i -> i == 4, () -> new RuntimeException("4 not found")),
new Options().inline(expected));
}
Expand Down

0 comments on commit 24037c2

Please sign in to comment.