mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
add test for new functional type
This commit is contained in:
parent
658d400f9a
commit
fdeacc86f2
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user