aboutsummaryrefslogtreecommitdiff
path: root/ber/string_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/string_test.go')
-rw-r--r--ber/string_test.go30
1 files changed, 0 insertions, 30 deletions
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)
- }
- }
-}