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/bool_test.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 ber/bool_test.go (limited to 'ber/bool_test.go') 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) - } - } -} -- cgit v1.2.3