
test.it.unimi.dsi.fastutil.floats.FloatOpenHashSetTest 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.floats;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class FloatOpenHashSetTest {
@Test
public void testNaNs() {
FloatOpenHashSet s = new FloatOpenHashSet();
s.add( Float.NaN );
s.add( Float.NaN );
assertEquals( 1, s.size() );
}
@Test
public void testZeros() {
FloatOpenHashSet s = new FloatOpenHashSet();
assertTrue( s.add( -0.0f ) );
assertTrue( s.add( +0.0f ) );
assertEquals( 2, s.size() );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy