From f44a85933110dd3ef362090f512678e99ae80256 Mon Sep 17 00:00:00 2001
From: Chen Houwu <chenhouwu@gmail.com>
Date: Sun, 18 May 2014 15:04:42 +0800
Subject: [PATCH] add: case when value is long, ensure it's not get rlp encoded
 as node

---
 trietest.json | 50 ++++++++++++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 22 deletions(-)

diff --git a/trietest.json b/trietest.json
index 059f149fe..2cd4d5f9b 100644
--- a/trietest.json
+++ b/trietest.json
@@ -1,4 +1,10 @@
 [
+  {
+    "inputs": [
+      ["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
+    ],
+    "expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
+  },
   {
     "inputs": [
       ["doe", "reindeer"],
@@ -9,47 +15,47 @@
   },
   {
     "inputs":[
-      ["do", "verb"], 
-      ["horse", "stallion"], 
-      ["doge", "coin"], 
+      ["do", "verb"],
+      ["horse", "stallion"],
+      ["doge", "coin"],
       ["dog", "puppy"]
-    ], 
+    ],
     "expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
   },
   {
     "inputs":[
-      ["do", "verb"], 
-      ["ether", "wookiedoo"], 
-      ["horse", "stallion"], 
-      ["shaman", "horse"], 
-      ["doge", "coin"], 
+      ["do", "verb"],
+      ["ether", "wookiedoo"],
+      ["horse", "stallion"],
+      ["shaman", "horse"],
+      ["doge", "coin"],
       ["ether", ""],
       ["dog", "puppy"],
       ["shaman", ""]
-    ], 
+    ],
     "expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
   },
   {
     "inputs":[
-      ["foo", "bar"], 
-      ["food", "bat"], 
+      ["foo", "bar"],
+      ["food", "bat"],
       ["food", "bass"]
-    ], 
+    ],
     "expectation": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
-  },   
+  },
   {
     "inputs":[
-      ["be", "e"], 
-      ["dog", "puppy"], 
+      ["be", "e"],
+      ["dog", "puppy"],
       ["bed", "d"]
-    ], 
+    ],
     "expectation": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
-  },   
+  },
   {
     "inputs":[
-      ["test", "test"], 
-      ["te", "testy"], 
-    ], 
+      ["test", "test"],
+      ["te", "testy"],
+    ],
     "expectation": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
-  }   
+  }
 ]
-- 
GitLab