aboutsummaryrefslogtreecommitdiff
path: root/ber/bool_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/bool_test.go
parent1fcefc99a82bac6ce725b6f11277e4aa291a7f51 (diff)
Replace with new implementation
Diffstat (limited to 'ber/bool_test.go')
-rw-r--r--ber/bool_test.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/ber/bool_test.go b/ber/bool_test.go
deleted file mode 100644
index 1eae7e6..0000000
--- a/ber/bool_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package ber
-
-import (
- "bytes"
- "testing"
-)
-
-type boolTest struct {
- in bool
- out byte
-}
-
-var boolTestData = []boolTest{
- {true, 0xFF},
- {false, 0x00},
-}
-
-func TestBool(t *testing.T) {
- for _, test := range boolTestData {
- buf := &bytes.Buffer{}
- MarshalBool(buf, test.in)
- a, _ := buf.ReadByte()
- if a != test.out {
- t.Error(test.in, "expected", test.out, "got", a)
- }
- buf.WriteByte(test.out)
- n := UnmarshalBool(buf)
- if n != test.in {
- t.Error(test.out, "expected", test.in, "got", n)
- }
- }
-}