Add a few floating point boundary cases to close #14
diff --git a/test/cbor_test.c b/test/cbor_test.c
index fd2efa5..4918a87 100644
--- a/test/cbor_test.c
+++ b/test/cbor_test.c
@@ -94,6 +94,11 @@
"f8ff", // simple(255)
"f93c00", // 1.0
"f9bc00", // -1.0
+ "f903ff", // 6.097555160522461e-05
+ "f90400", // 6.103515625e-05
+ "f907ff", // 0.00012201070785522461
+ "f90800", // 0.0001220703125
+ "fa47800000", // 65536.0
"fb3ff199999999999a", // 1.1
"f97e00", // NaN
"5f42010243030405ff", // (_ h'0102', h'030405')
@@ -146,6 +151,7 @@
"fb40f86a0000000000", "fa47c35000", // 100000.0
"fb7ff8000000000000", "f97e00", // NaN
"fb3e70000000000000", "f90001", // 5.960464477539063e-08
+ "fb3e78000000000000", "fa33c00000", // 8.940696716308594e-08
"fb3e80000000000000", "f90002", // 1.1920928955078125e-07
};
const cn_cbor *cb;