Skip to content

Commit

Permalink
Hex encode tests done.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Feb 28, 2014
1 parent e1f5e12 commit 33f80fe
Showing 1 changed file with 60 additions and 32 deletions.
92 changes: 60 additions & 32 deletions hexencodetest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 33f80fe

Please sign in to comment.