aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-06 21:05:56 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-06 21:05:56 +0200
commit8301f641a06391c45b91b9c52fcd4b7ebe30c437 (patch)
tree99299825569fd8a5a0709bb4644cb0c1aa3d8e01
parent66c77bd193f6e7d74523d10f49b11f5a12f3322f (diff)
Hex
-rw-r--r--ber/ber_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/ber/ber_test.go b/ber/ber_test.go
index 690a8d5..c1beb32 100644
--- a/ber/ber_test.go
+++ b/ber/ber_test.go
@@ -26,16 +26,16 @@ func TestBool(t *testing.T) {
}
var intTestData = map[int][]byte{
- 0: {0x01, 0x00},
- 127: {0x01, 0x7f},
- 128: {0x02, 0x00, 0x80},
- 256: {0x02, 0x01, 0x00},
- -128: {0x01, 0x80},
- -129: {0x02, 0xff, 0x7f},
- 8388607: {0x03, 0x7f, 0xff, 0xff},
- -8388607: {0x03, 0x80, 0x00, 0x01},
- -136: {0x02, 0xff, 0x78},
- 19988489: {0x04, 0x01, 0x31, 0x00, 0x09},
+ 0: {0x01, 0x00},
+ 127: {0x01, 0x7f},
+ 128: {0x02, 0x00, 0x80},
+ 256: {0x02, 0x01, 0x00},
+ -128: {0x01, 0x80},
+ -129: {0x02, 0xff, 0x7f},
+ 8388607: {0x03, 0x7f, 0xff, 0xff},
+ -8388607: {0x03, 0x80, 0x00, 0x01},
+ -136: {0x02, 0xff, 0x78},
+ 0x1310009: {0x04, 0x01, 0x31, 0x00, 0x09},
}
func TestInt(t *testing.T) {