aboutsummaryrefslogtreecommitdiff
path: root/ber/obj_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-30 19:04:10 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-30 19:04:10 +0200
commit50b0ac29b852743325bd9d57b1660f2f90b6d3c4 (patch)
tree75be314b7f6f3cfc1c5eb670bdac6dbc4468e8f5 /ber/obj_test.go
parenta5dba3e8cfd95b3bc5d98aa0f0ca8da81eafedb5 (diff)
Split Base128
Diffstat (limited to 'ber/obj_test.go')
-rw-r--r--ber/obj_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/ber/obj_test.go b/ber/obj_test.go
index 27fd8e6..7f1c4ab 100644
--- a/ber/obj_test.go
+++ b/ber/obj_test.go
@@ -5,26 +5,6 @@ import (
"testing"
)
-type base128Test struct {
- in int
- out []byte
-}
-
-var base128TestData = []base128Test{
- {643, []byte{0x85, 0x03}},
- {113549, []byte{0x86, 0xF7, 0x0D}},
- {49152, []byte{0x83, 0x80, 0x00}},
-}
-
-func TestBase128(t *testing.T) {
- for _, test := range base128TestData {
- n := base128(test.in)
- if !bytes.Equal(n, test.out) {
- t.Error(test.in, "expected", test.out, "got", n)
- }
- }
-}
-
type oidTest struct {
oid OID
out []byte