diff options
author | Gav Wood <i@gavwood.com> | 2014-01-05 02:07:01 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-01-05 02:07:01 +0800 |
commit | 978affbb19197ab018368131ecfc16dfa04f9e26 (patch) | |
tree | 27c4de16e90d1641b9dc43be6f780e16e4827bcd /main.cpp | |
parent | 0391d6a18b96bd737a320d3777ec2aa0f31c748e (diff) | |
download | dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar.gz dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar.bz2 dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar.lz dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar.xz dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.tar.zst dexon-solidity-978affbb19197ab018368131ecfc16dfa04f9e26.zip |
Fix for tests.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,6 @@ #include <random> #include <Common.h> +#include <secp256k1.h> #include "RLP.h" #include "Trie.h" #include "VirtualMachine.h" @@ -19,6 +20,8 @@ std::string randomWord() int main() { + + { Trie t; t.insert("dog", "puppy"); @@ -85,7 +88,9 @@ int main() // 2-item list RLP twoItemList("\x82\x0f\x43""dog"); - assert(twoItemList.itemCount() == 2 && twoItemList[0] == 15 && twoItemList[1] == "dog"); + assert(twoItemList.itemCount() == 2); + assert(twoItemList[0] == 15); + assert(twoItemList[1] == "dog"); assert(rlpList(15, "dog") == "\x82\x0f\x43""dog"); // 1-byte (8-bit) int |