diff --git a/test.js b/test.js index 1536c49..6d098fa 100755 --- a/test.js +++ b/test.js @@ -38,6 +38,8 @@ tests = [ ['060C69C7C79AB78084C289F9870D', '2.25.84478768945400492475277', 'Big OID arc'], ['06146982968D8D889BCCA8C7B3BDD4C080AAAED78A1B', '2.25.184830721219540099336690027854602552603', 'Bigger OID arc'], ['060488378952', '2.999.1234', 'OID arc > 2.47'], + ['060782A384F3CAC00A', '2.9999999999930', 'OID with Int10 corner case (1)'], + ['060881E3AFEAA69A800A', '2.999999999999930', 'OID with Int10 corner case (2)'], ['06092A864886F70D010105', '1.2.840.113549.1.1.5\nsha1WithRSAEncryption\nPKCS #1', 'known OID from Peter Gutmann list'], // OID corner case from https://misc.daniel-marschall.de/asn.1/oid-sizecheck/oid_size_test.txt ['060A81FFFFFFFFFFFFFFFF7F', '2.18446744073709551535', 'OID root 64 bit - 1'], @@ -45,8 +47,6 @@ tests = [ ['060A82808080808080808001', '2.18446744073709551537', 'OID root 64 bit + 1'], ['0620FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F', '2.26959946667150639794667015087019630673637144422540572481103610249135', 'OID derLen20c'], ['0621818080808080808080808080808080808080808080808080808080808080808000', '2.26959946667150639794667015087019630673637144422540572481103610249136', 'OID derLen21c'], - ['060782A384F3CAC00A', '2.9999999999930', 'OID with Int10 corner case (1)'], - ['060881E3AFEAA69A800A', '2.999999999999930', 'OID with Int10 corner case (2)'], ]; tests.forEach(function (t) {