MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / sanityContainsKeyTest

Method sanityContainsKeyTest

lab07/tests/TestBSTMap.java:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40 // Assumes `put` is implemented properly.
41 @Test
42 public void sanityContainsKeyTest() {
43 BSTMap<String, Integer> b = new BSTMap<>();
44 assertThat(b.containsKey("waterYouDoingHere")).isFalse();
45 b.put("waterYouDoingHere", 0);
46 assertThat(b.containsKey("waterYouDoingHere")).isTrue();
47 }
48
49 // Assumes `put` is implemented properly.
50 @Test

Callers

nothing calls this directly

Calls 2

containsKeyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected