add test for new functional type

This commit is contained in:
Jonathan Shook 2020-07-09 04:03:02 -05:00
parent 658d400f9a
commit fdeacc86f2

View File

@ -48,7 +48,7 @@ public class SetFunctionsTest {
public void testStepped() { public void testStepped() {
SetStepped f1 = new SetStepped((LongToIntFunction) i -> (int)i, (IntFunction<String>) String::valueOf); SetStepped f1 = new SetStepped((LongToIntFunction) i -> (int)i, (IntFunction<String>) String::valueOf);
Set<Object> set = f1.apply(3L); Set<Object> set = f1.apply(3L);
assertThat(set).contains("3",4); assertThat(set).contains("4",3);
//This is because there is no sizing function. Both functions are value functions //This is because there is no sizing function. Both functions are value functions
//And whatever type they produce is put into the set of objects //And whatever type they produce is put into the set of objects
} }