aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-26 00:33:52 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-26 00:33:52 +0200
commit0f6b658abb865dd6f95efc6b4fe5d05d849c332b (patch)
treeff142b18ea9430ebb0c3e381803bd62d8b60f560 /ber
parent108e965580cbbae0d5029b7cc2ca592bd955883e (diff)
Add example of indifenite length
Diffstat (limited to 'ber')
-rw-r--r--ber/new/ber_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/ber/new/ber_test.go b/ber/new/ber_test.go
index cdbed5a..40118db 100644
--- a/ber/new/ber_test.go
+++ b/ber/new/ber_test.go
@@ -164,10 +164,12 @@ func TestBitString(t *testing.T) {
}
var lenTestData = map[int][]byte{
- 0: {0x00},
- 127: {0x7f},
- 128: {0x81, 0x80},
- 256: {0x82, 0x01, 0x00},
+ 0: {0x00},
+ 127: {0x7f},
+ 128: {0x81, 0x80},
+ 256: {0x82, 0x01, 0x00},
+ 8388607: {0x83, 0x7f, 0xff, 0xff},
+ //129: {0x80, 0x81, 0x00, 0x00}, // indefinite length
}
func TestLen(t *testing.T) {