aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-05 21:01:35 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-05 21:01:35 +0200
commit1382a51c0b5143b5962d9f6e58e237c19e5acf35 (patch)
tree6740c03d2a77852d6cbca0b7855e477f1aeac17c /ber
parent835984889ca6aa61d21aaa73041c1f6e686f5d33 (diff)
Add more cases
Diffstat (limited to 'ber')
-rw-r--r--ber/ber_test.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/ber/ber_test.go b/ber/ber_test.go
index 74e64cd..94edbb0 100644
--- a/ber/ber_test.go
+++ b/ber/ber_test.go
@@ -196,11 +196,14 @@ func TestLen(t *testing.T) {
}
var classTestData = map[Header][]byte{
- {classUniversal, kindPrimitive, tagInteger}: {0x02},
- {classApplication, kindConstructed, 2}: {0x62},
- {classContextSpecific, kindConstructed, 1}: {0xa1},
- {classPrivate, kindPrimitive, 32}: {0xdf, 0x20},
- {classPrivate, kindConstructed, 256}: {0xff, 0x82, 0x00},
+ {classUniversal, kindPrimitive, tagInteger}: {0x02},
+ {classUniversal, kindConstructed, tagSequence}: {0x30},
+ {classApplication, kindPrimitive, 2}: {0x42},
+ {classApplication, kindConstructed, 2}: {0x62},
+ {classContextSpecific, kindPrimitive, 1}: {0x81},
+ {classContextSpecific, kindConstructed, 1}: {0xa1},
+ {classPrivate, kindPrimitive, 32}: {0xdf, 0x20},
+ {classPrivate, kindConstructed, 256}: {0xff, 0x82, 0x00},
}
func TestClass(t *testing.T) {