aboutsummaryrefslogtreecommitdiff
path: root/ber/bool_test.go
diff options
context:
space:
mode:
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)
- }
- }
-}