aboutsummaryrefslogtreecommitdiff
path: root/ber/obj_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-26 20:22:03 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-26 20:22:03 +0200
commit7750e4b583a0962f18c3844e74b6ee87206d84e6 (patch)
tree0a3d07b372058d0fa36b98a83f4bf418ea4064ef /ber/obj_test.go
parentd9fb582cb9748e2f98e4ddb0471bdb037ea4f050 (diff)
Bondary checking
Diffstat (limited to 'ber/obj_test.go')
-rw-r--r--ber/obj_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ber/obj_test.go b/ber/obj_test.go
index d8299bb..abe6832 100644
--- a/ber/obj_test.go
+++ b/ber/obj_test.go
@@ -30,4 +30,9 @@ func TestObj(t *testing.T) {
[]byte{0x2B, 0x0C, 0x00, 0x81, 0x5A})
testObj(t, []int{1, 3, 12, 0, 285, 200},
[]byte{0x2B, 0x0C, 0x00, 0x82, 0x1D, 0x81, 0x48})
+ testObj(t, []int{}, []byte{})
+ testObj(t, []int{0, 39}, []byte{0x27})
+ testObj(t, []int{1, 39}, []byte{0x4f})
+ testObj(t, []int{1, 40}, []byte{})
+ testObj(t, []int{2, 40}, []byte{0x78})
}