- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestParseBigInt (0.17 sec)
-
src/encoding/asn1/asn1_test.go
{[]byte{0xff, 0x00}, true, "-256"}, {[]byte{0x01, 0x00}, true, "256"}, {[]byte{}, false, ""}, {[]byte{0x00, 0x7f}, false, ""}, {[]byte{0xff, 0xf0}, false, ""}, } func TestParseBigInt(t *testing.T) { for i, test := range bigIntTests { ret, err := parseBigInt(test.in) if (err == nil) != test.ok { t.Errorf("#%d: Incorrect error result (did fail? %v, expected: %v)", i, err == nil, test.ok)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0)