Skip to content

Commit

Permalink
Check that an unknown format returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfryd committed Aug 22, 2024
1 parent 4e00f32 commit b92db0c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public void parseKibiByteFormats() {

final Long newFormat = ParseUtil.parseSizeInKibiBytes("2904KiB");
Assert.assertEquals(2904L, newFormat.longValue());

final Long unknownFormat = ParseUtil.parseSizeInKibiBytes("2904KB");
Assert.assertNull(unknownFormat);
}

@Test
Expand Down

0 comments on commit b92db0c

Please sign in to comment.