aboutsummaryrefslogtreecommitdiff
path: root/ber/len_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/len_test.go
parent5d024539d5cc2f4deaa88f783533fd453b78586f (diff)
Broken, but a step in right direction
Diffstat (limited to 'ber/len_test.go')
-rw-r--r--ber/len_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ber/len_test.go b/ber/len_test.go
index ea40453..2db6453 100644
--- a/ber/len_test.go
+++ b/ber/len_test.go
@@ -24,7 +24,7 @@ func TestLen(t *testing.T) {
if !bytes.Equal(a, test.out) {
t.Error(test.in, "expected", test.out, "got", a)
}
- n, _ := UnmarshalLen(test.out)
+ n := UnmarshalLen(bytes.NewBuffer(test.out))
if n != test.in {
t.Error(test.out, "expected", test.in, "got", n)
}