Hex encode tests done.

This commit is contained in:
Gav Wood 2014-02-28 11:39:35 +00:00
parent e1f5e12abb
commit 33f80fef21
1 changed files with 60 additions and 32 deletions

View File

@ -1,34 +1,62 @@
{
"nz,odd": {
"seq": [ 1, 2, 3, 4, 5 ],
"return": "112345"
},
"z,even": {
"seq": [ 0, 1, 2, 3, 4, 5 ],
"return": "00012345"
},
"long": {
"seq": [ 6, 4, 6, 15, 6, 7, 6, 5, 16 ],
"return": "20646f6765"
},
"short": {
"seq": [ 7, 6, 5, 16 ],
"return": "3765"
},
"nz,one": {
"seq": [ 16 ],
"return": "20"
},
"z,two": {
"seq": [ 0, 16 ],
"return": "30"
},
"nz,even": {
"seq": [ 15, 1, 12, 11, 8, 16 ],
"return": "3f1cb8"
},
"z,odd": {
"seq": [ 0, 15, 1, 12, 11, 8, 16 ],
"return": "200f1cb8"
}
"zz,odd,open": {
"seq": [ 0, 0, 1, 2, 3, 4, 5 ],
"term": false,
"out": "10012345"
},
"z,even,open": {
"seq": [ 0, 1, 2, 3, 4, 5 ],
"term": false,
"out": "00012345"
},
"nz,odd,open": {
"seq": [ 1, 2, 3, 4, 5 ],
"term": false,
"out": "112345"
},
"zz,even,open": {
"seq": [ 0, 0, 1, 2, 3, 4 ],
"term": false,
"out": "00001234"
},
"z,odd,open": {
"seq": [ 0, 1, 2, 3, 4 ],
"term": false,
"out": "101234"
},
"nz,even,open": {
"seq": [ 1, 2, 3, 4 ],
"term": false,
"out": "001234"
},
"zz,odd,term": {
"seq": [ 0, 0, 1, 2, 3, 4, 5 ],
"term": true,
"out": "30012345"
},
"z,even,term": {
"seq": [ 0, 1, 2, 3, 4, 5 ],
"term": true,
"out": "20012345"
},
"nz,odd,term": {
"seq": [ 1, 2, 3, 4, 5 ],
"term": true,
"out": "312345"
},
"zz,even,term": {
"seq": [ 0, 0, 1, 2, 3, 4 ],
"term": true,
"out": "20001234"
},
"z,odd,term": {
"seq": [ 0, 1, 2, 3, 4 ],
"term": true,
"out": "301234"
},
"nz,even,term": {
"seq": [ 1, 2, 3, 4 ],
"term": true,
"out": "201234"
}
}