Skip to content

Commit 9dcb6c8

Browse files
committed
edit test
1 parent 2fc3004 commit 9dcb6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/upokecenter/test/CBORTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ public void TestHalfPrecision() {
19711971
Assert.assertEquals(Float.POSITIVE_INFINITY, o.AsSingle());
19721972
o = CBORObject.DecodeFromBytes(
19731973
new byte[] { (byte)0xf9, 0x00, 0x00 });
1974-
Assert.assertEquals(Float.POSITIVE_INFINITY, o.AsSingle());
1974+
Assert.assertEquals((float)0, o.AsSingle(), 0f);
19751975
o = CBORObject.DecodeFromBytes(
19761976
new byte[] { (byte)0xf9, (byte)0xfc, 0x00 });
19771977
Assert.assertEquals(Float.NEGATIVE_INFINITY, o.AsSingle());

0 commit comments

Comments
 (0)