From 3611adc1a1b0a8686143e7a11a1f9f165a790eb4 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Thu, 12 Mar 2020 01:28:57 -0500 Subject: [PATCH] updated test --- .../basics/shared/from_long/to_long/InterpolateTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/virtdata-lib-basics/src/test/java/io/nosqlbench/virtdata/library/basics/shared/from_long/to_long/InterpolateTest.java b/virtdata-lib-basics/src/test/java/io/nosqlbench/virtdata/library/basics/shared/from_long/to_long/InterpolateTest.java index 1562c367b..605e98275 100644 --- a/virtdata-lib-basics/src/test/java/io/nosqlbench/virtdata/library/basics/shared/from_long/to_long/InterpolateTest.java +++ b/virtdata-lib-basics/src/test/java/io/nosqlbench/virtdata/library/basics/shared/from_long/to_long/InterpolateTest.java @@ -10,6 +10,12 @@ public class InterpolateTest { public void testDeciles() { 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); long min = f.applyAsLong(0L); assertThat(min).isEqualTo(0L);