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/string_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 ber/string_test.go (limited to 'ber/string_test.go') diff --git a/ber/string_test.go b/ber/string_test.go deleted file mode 100644 index 04d1fa1..0000000 --- a/ber/string_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package ber - -import ( - "bytes" - "testing" -) - -type stringTest struct { - in string - out []byte -} - -var stringTestData = []stringTest{ - {"111", []byte{0x31, 0x31, 0x31}}, - {"0A16", []byte{0x30, 0x41, 0x31, 0x36}}, -} - -func TestString(t *testing.T) { - for _, test := range stringTestData { - a := MarshalString(test.in) - if !bytes.Equal(a, test.out) { - t.Error(test.in, "expexted", test.out, "got", a) - } - - b := UnmarshalString(test.out) - if b != test.in { - t.Error(test.out, "expexted", test.in, "got", b) - } - } -} -- cgit v1.2.3