aboutsummaryrefslogtreecommitdiff
path: root/ber/len_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/len_test.go')
-rw-r--r--ber/len_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ber/len_test.go b/ber/len_test.go
index 2db6453..dc4e4ea 100644
--- a/ber/len_test.go
+++ b/ber/len_test.go
@@ -20,7 +20,9 @@ var lenTestData = []lenTest{
func TestLen(t *testing.T) {
for _, test := range lenTestData {
- a := MarshalLen(test.in)
+ buf := &bytes.Buffer{}
+ MarshalLen(buf, test.in)
+ a := buf.Bytes()
if !bytes.Equal(a, test.out) {
t.Error(test.in, "expected", test.out, "got", a)
}