aboutsummaryrefslogtreecommitdiff
path: root/ber/class_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/class_test.go')
-rw-r--r--ber/class_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/ber/class_test.go b/ber/class_test.go
index a0b2569..2eac220 100644
--- a/ber/class_test.go
+++ b/ber/class_test.go
@@ -1,6 +1,9 @@
package ber
-import "fmt"
+import (
+ "bytes"
+ "fmt"
+)
var berTestData = []byte{
0x02, 0x04, 0x0A, 0x30,
@@ -10,7 +13,7 @@ var berTestData = []byte{
func ExampleIdent() {
for _, test := range berTestData {
- c, k, t, _ := Ident([]byte{test})
+ c, k, t := Ident(bytes.NewBuffer([]byte{test}))
if c == classUniversal {
fmt.Printf("%#x: %v %v %v\n",
test, c, k, t)