aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-02-28 19:39:35 +0800
committerGav Wood <i@gavwood.com>2014-02-28 19:39:35 +0800
commit33f80fef211c2d51162c1856e50448be3d90c214 (patch)
tree4c1fbe6240f8a1145c9645b152b935c2c5380acf
parente1f5e12abb38f8cedb4a589b1347fb01c3da902a (diff)
downloadgo-tangerine-33f80fef211c2d51162c1856e50448be3d90c214.tar.gz
go-tangerine-33f80fef211c2d51162c1856e50448be3d90c214.tar.zst
go-tangerine-33f80fef211c2d51162c1856e50448be3d90c214.zip
Hex encode tests done.
-rw-r--r--hexencodetest.json92
1 files changed, 60 insertions, 32 deletions
diff --git a/hexencodetest.json b/hexencodetest.json
index 6fe7891c3..26c5bc7ed 100644
--- a/hexencodetest.json
+++ b/hexencodetest.json
@@ -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"
+ }
}