aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-01-05 02:07:01 +0800
committerGav Wood <i@gavwood.com>2014-01-05 02:07:01 +0800
commit978affbb19197ab018368131ecfc16dfa04f9e26 (patch)
tree27c4de16e90d1641b9dc43be6f780e16e4827bcd /main.cpp
parent0391d6a18b96bd737a320d3777ec2aa0f31c748e (diff)
downloaddexon-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.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index f9f527a8..e78f3ce0 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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