We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2374b commit 67e69b3Copy full SHA for 67e69b3
1 file changed
core/src/test/java/fj/data/TreeMapTest.java
@@ -122,4 +122,11 @@ public void minKey() {
122
assertThat(t2.delete(0).minKey(), equalTo(some(1)));
123
}
124
125
+ public void emptyHashCode() {
126
+ // Hash code of tree map should not throw NullPointerException
127
+ // see https://github.com/functionaljava/functionaljava/issues/187
128
+ int i = TreeMap.empty(Ord.stringOrd).hashCode();
129
+ assertTrue(true);
130
+ }
131
+
132
0 commit comments