rlp: add support for boolean encoding/decoding

This commit is contained in:
Péter Szilágyi
2015-08-13 11:12:38 +03:00
parent 0dd6911c62
commit 1d2420323c
4 changed files with 53 additions and 0 deletions

View File

@ -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"},