Skip to content

Commit

Permalink
compare size
Browse files Browse the repository at this point in the history
  • Loading branch information
hc56 committed Oct 8, 2023
1 parent c6ddc03 commit ef23f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/snippets/SnippetsTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public void pick_should_pick_key_pairs_corresponding_to_keys() throws Exception
obj.put("c", 3);

Map<String, Integer> picked = Snippets.pick(obj, new String[]{"a", "c"});
assertThat(picked.size() == obj.size());
assertThat(picked).containsOnly(new SimpleEntry<>("a", 1), new SimpleEntry<>("c", 3));
}

Expand Down

0 comments on commit ef23f75

Please sign in to comment.