aboutsummaryrefslogtreecommitdiff
path: root/ber/string_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-26 12:04:34 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-26 12:04:34 +0200
commit54caa4e7e085e177ff05b719ae247d21fe8c257e (patch)
tree363400fe1c6c1e7b696c72caaabc4882756355fa /ber/string_test.go
parent1fcefc99a82bac6ce725b6f11277e4aa291a7f51 (diff)
Replace with new implementation
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)
- }
- }
-}