From fb975ead23bf1000ae12e758cd683d1609583e2c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 27 Jul 2013 15:09:51 -0400 Subject: Add simple key=value dictionary, sorta like java.util.Properties. --- selftest.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'selftest.cpp') diff --git a/selftest.cpp b/selftest.cpp index 4377d837..edbdcaf1 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -45,6 +45,7 @@ #include "node/Peer.hpp" #include "node/Condition.hpp" #include "node/NodeConfig.hpp" +#include "node/Dictionary.hpp" using namespace ZeroTier; @@ -298,6 +299,29 @@ static int testOther() } std::cout << "PASS" << std::endl; + std::cout << "[other] Testing Dictionary... "; std::cout.flush(); + for(int k=0;k<10000;++k) { + Dictionary a,b; + int nk = rand() % 32; + for(int q=0;q