Skip to content

Commit

Permalink
parseOrThrow()
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Oct 9, 2023
1 parent 9919e42 commit 8122b12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mug/src/test/java/com/google/mu/util/StringFormatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ public void parse_withOneArgLambda_lambdaReturnsNull(@TestParameter Mode mode) {
assertThrows(
NullPointerException.class,
() -> mode.formatOf("1 is {what}").parseOrThrow("1 is one", w -> null));
assertThat(thrown).hasMessageThat().contains("format string '1 is {what}'");
assertThat(thrown).hasMessageThat().contains("input '1 is one'");
}

@Test
Expand Down

0 comments on commit 8122b12

Please sign in to comment.