fix test signature

This commit is contained in:
Jonathan Shook 2020-06-18 11:08:37 -05:00
parent 11f6aeb090
commit 17a9c1abbb

View File

@ -11,14 +11,14 @@ public class SetTest {
@Test
public void testSet() {
Set set = new Set((LongToIntFunction) s -> 3, (LongFunction) e -> e);
Set set = new Set((LongToIntFunction) s -> 3, (LongFunction<Object>) e -> e);
java.util.Set<Object> s1 = set.apply(15L);
assertThat(s1).containsOnly(15L,16L,17L);
}
@Test
public void testStringSet() {
StringSet set = new StringSet(s -> 3, (LongToIntFunction) (e -> (int)e));
StringSet set = new StringSet((LongToIntFunction) s -> 3, (LongToIntFunction) (e -> (int)e));
java.util.Set<String> s1 = set.apply(15L);
assertThat(s1).containsOnly("15","16","17");
}