diff --git a/Test.vcxproj b/Test.vcxproj new file mode 100644 index 000000000..8b08adad2 --- /dev/null +++ b/Test.vcxproj @@ -0,0 +1,184 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Win32Proj + Test + Test + {3F3E389B-88DE-41D5-A73B-4F6036E18B36} + + + + Application + true + v120 + Unicode + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + ../libethereum + MultiThreadedDebug + true + false + true + 4351 + + + Console + true + true + + + + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + ../libethereum + MultiThreadedDebug + true + false + true + 4351 + + + Console + true + + + + + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + ../libethereum + MultiThreaded + true + AnySuitable + false + true + 4351 + + + Console + true + true + true + true + + + + + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + ../libethereum + MultiThreaded + true + AnySuitable + false + true + 4351 + + + Console + true + true + true + + + + + {3423ec9a-52e4-4a4d-9753-edebc38785ef} + + + {7050c7cf-7551-48be-8e57-92235906c13a} + + + + + + + + + \ No newline at end of file diff --git a/main.cpp b/main.cpp index 35f3fc20d..df9c3ba85 100644 --- a/main.cpp +++ b/main.cpp @@ -142,7 +142,7 @@ int main() Trie t; t.insert("dog", "puppy"); - assert(t.hash256() == hash256({{"dog", "puppy"}})); + assert(t.hash256() == hash256(StringMap({{"dog", "puppy"}}))); assert(t.at("dog") == "puppy"); t.insert("doe", "reindeer"); assert(t.hash256() == hash256({{"dog", "puppy"}, {"doe", "reindeer"}})); @@ -158,7 +158,7 @@ int main() assert(t.at("doe").empty()); assert(t.at("dogglesworth").empty()); assert(t.at("dog") == "puppy"); - assert(t.hash256() == hash256({{"dog", "puppy"}})); + assert(t.hash256() == hash256(StringMap({{"dog", "puppy"}}))); t.insert("horse", "stallion"); t.insert("do", "verb"); t.insert("doge", "coin"); @@ -170,7 +170,7 @@ int main() t.remove("horse"); t.remove("do"); t.remove("doge"); - assert(t.hash256() == hash256({{"dog", "puppy"}})); + assert(t.hash256() == hash256(StringMap({{"dog", "puppy"}}))); assert(t.at("dog") == "puppy"); t.remove("dog");