mirror of
https://github.com/status-im/nim-rlp.git
synced 2025-02-10 13:06:27 +00:00
Add test for empty byte ranges
This commit is contained in:
parent
da70fbc898
commit
3b2ce4e464
@ -167,3 +167,8 @@ test "encode byte arrays":
|
||||
# The first byte here is the length of the datum (132 - 128 => 4)
|
||||
$(rlp.listElem(1).rawData) == "R[132, 6, 8, 12, 123]"
|
||||
|
||||
test "empty byte arrays":
|
||||
var
|
||||
rlp = rlpFromBytes rlp.encode("")
|
||||
b = rlp.toBytes
|
||||
check $b == "R[]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user