diff --git a/check_api/src/test/java/com/google/errorprone/ErrorProneFlagsTest.java b/check_api/src/test/java/com/google/errorprone/ErrorProneFlagsTest.java index c1f1f07d91b0..b4bb00e8757b 100644 --- a/check_api/src/test/java/com/google/errorprone/ErrorProneFlagsTest.java +++ b/check_api/src/test/java/com/google/errorprone/ErrorProneFlagsTest.java @@ -53,10 +53,12 @@ public void parseAndGetBoolean() { .parseFlag("-XepOpt:Arg1=tRuE") .parseFlag("-XepOpt:Arg2=FaLsE") .parseFlag("-XepOpt:Arg3=yes") + .parseFlag("-XepOpt:Arg4") .build(); assertThat(flags.getBoolean("Arg1")).hasValue(true); assertThat(flags.getBoolean("Arg2")).hasValue(false); assertThrows(IllegalArgumentException.class, () -> flags.getBoolean("Arg3")); + assertThat(flags.getBoolean("Arg4")).hasValue(true); assertThat(flags.getBoolean("absent")).isEmpty(); }