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 | |
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.
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | main.cpp | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fbd39371..e383ba2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_policy(SET CMP0015 NEW) aux_source_directory(. SRC_LIST) +include_directories(../../secp256k1/include) include_directories(../libethereum) link_directories(../libethereum) link_directories(../../secp256k1) @@ -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 |