aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-08-13 16:12:38 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-08-13 17:05:39 +0800
commit1d2420323ca555f8ac45969bd39415c5e619e4e0 (patch)
tree7ca11784e810dfab9fa9770fa9957bfe452bdb35 /rlp/encode_test.go
parent0dd6911c6222ce65d6aa0760f7c322246464b2d0 (diff)
downloaddexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar.gz
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar.bz2
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar.lz
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar.xz
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.tar.zst
dexon-1d2420323ca555f8ac45969bd39415c5e619e4e0.zip
rlp: add support for boolean encoding/decoding
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r--rlp/encode_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index e83c76b51..60bd95692 100644
--- a/rlp/encode_test.go
+++ b/rlp/encode_test.go
@@ -71,6 +71,10 @@ type encTest struct {
}
var encTests = []encTest{
+ // booleans
+ {val: true, output: "01"},
+ {val: false, output: "80"},
+
// integers
{val: uint32(0), output: "80"},
{val: uint32(127), output: "7F"},