From 54caa4e7e085e177ff05b719ae247d21fe8c257e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 26 Sep 2015 12:04:34 +0200 Subject: Replace with new implementation --- ber/len_test.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 ber/len_test.go (limited to 'ber/len_test.go') diff --git a/ber/len_test.go b/ber/len_test.go deleted file mode 100644 index dc4e4ea..0000000 --- a/ber/len_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package ber - -import ( - "bytes" - "testing" -) - -type lenTest struct { - in int - out []byte -} - -var lenTestData = []lenTest{ - {0, []byte{0x00}}, - {23, []byte{0x17}}, - {193, []byte{0x81, 0xc1}}, - {240, []byte{0x81, 0xf0}}, - {257, []byte{0x82, 0x01, 0x01}}, -} - -func TestLen(t *testing.T) { - for _, test := range lenTestData { - 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) - } - n := UnmarshalLen(bytes.NewBuffer(test.out)) - if n != test.in { - t.Error(test.out, "expected", test.in, "got", n) - } - } -} -- cgit v1.2.3