il.oidIntToHex;

test("oidHexToInt ", function() {
  equal(oidHexToInt("2b0e03021a"), "1.3.14.3.2.26", "oidHexToInt 1.3.14.3.2.26/sha1");
  equal(oidHexToInt("2a864886f70d010702"), "1.2.840.113549.1.7.2", "oidHexToInt 1.2.840.113549.1.7.2/signedData");
  equal(oidHexToInt("2a2283bb55"), "1.2.34.56789", "oidHexToInt 1.3.34.56789");
});

test("oidIntToHex", function() {
  equal((new BigInteger(oidIntToHex("1.2.34.56789"), 16)).toString(2), "10101000100010100000111011101101010101", "oidIntToHex 1.2.34.56789 bi