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

Method sanityGenericsTest

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

Source from the content-addressed store, hash-verified

7public class TestBSTMap {
8
9 @Test
10 public void sanityGenericsTest() {
11 try {
12 BSTMap<String, String> a = new BSTMap<>();
13 BSTMap<String, Integer> b = new BSTMap<>();
14 BSTMap<Integer, String> c = new BSTMap<>();
15 BSTMap<Boolean, Integer> e = new BSTMap<>();
16 } catch (Exception e) {
17 fail();
18 }
19 }
20
21 // This test assumes put/size/containsKey/get are implemented properly.
22 @Test

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected