aboutsummaryrefslogtreecommitdiff
path: root/ber/class_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-25 15:07:15 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-25 15:07:15 +0200
commit0559b7d4eab07cacf0f005e8e756c1d04470e0c7 (patch)
tree45f327235303491747140bb10f92edce922b7d98 /ber/class_test.go
parent5d024539d5cc2f4deaa88f783533fd453b78586f (diff)
Broken, but a step in right direction
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)