mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-28 01:31:05 -06:00
updated test
This commit is contained in:
parent
6b4f85b342
commit
3611adc1a1
@ -10,6 +10,12 @@ public class InterpolateTest {
|
|||||||
public void testDeciles() {
|
public void testDeciles() {
|
||||||
long topvalue = 1_000_000_000L;
|
long topvalue = 1_000_000_000L;
|
||||||
|
|
||||||
|
Interpolate t = new Interpolate(10L, 100L);
|
||||||
|
long mint = t.applyAsLong(0L);
|
||||||
|
assertThat(mint).isEqualTo(10L);
|
||||||
|
long maxt = t.applyAsLong(Long.MAX_VALUE);
|
||||||
|
assertThat(maxt).isEqualTo(100L);
|
||||||
|
|
||||||
Interpolate f = new Interpolate(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, topvalue);
|
Interpolate f = new Interpolate(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, topvalue);
|
||||||
long min = f.applyAsLong(0L);
|
long min = f.applyAsLong(0L);
|
||||||
assertThat(min).isEqualTo(0L);
|
assertThat(min).isEqualTo(0L);
|
||||||
|
Loading…
Reference in New Issue
Block a user