
test.it.unimi.dsi.fastutil.doubles.DoubleOpenHashSetTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phoenix-mapreduce-byo-shaded-hbase-hbase-2.5.0
Show all versions of phoenix-mapreduce-byo-shaded-hbase-hbase-2.5.0
Phoenix Mapreduce JAR for use with the "hbase mapredcp" classpath
The newest version!
package it.unimi.dsi.fastutil.doubles;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class DoubleOpenHashSetTest {
@Test
public void testNaNs() {
DoubleOpenHashSet s = new DoubleOpenHashSet();
s.add( Double.NaN );
s.add( Double.NaN );
assertEquals( 1, s.size() );
}
@Test
public void testZeros() {
DoubleOpenHashSet s = new DoubleOpenHashSet();
assertTrue( s.add( -0.0d ) );
assertTrue( s.add( +0.0d ) );
assertEquals( 2, s.size() );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy