We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc3004 commit 9dcb6c8Copy full SHA for 9dcb6c8
src/test/java/com/upokecenter/test/CBORTest.java
@@ -1971,7 +1971,7 @@ public void TestHalfPrecision() {
1971
Assert.assertEquals(Float.POSITIVE_INFINITY, o.AsSingle());
1972
o = CBORObject.DecodeFromBytes(
1973
new byte[] { (byte)0xf9, 0x00, 0x00 });
1974
- Assert.assertEquals(Float.POSITIVE_INFINITY, o.AsSingle());
+ Assert.assertEquals((float)0, o.AsSingle(), 0f);
1975
1976
new byte[] { (byte)0xf9, (byte)0xfc, 0x00 });
1977
Assert.assertEquals(Float.NEGATIVE_INFINITY, o.AsSingle());
0 commit comments