diff options
author | jhuntley <jhuntley@houghtonassociates.com> | 2015-02-10 00:31:04 +0800 |
---|---|---|
committer | jhuntley <jhuntley@houghtonassociates.com> | 2015-03-05 00:17:46 +0800 |
commit | 5ae585f7cf21ae281f564d0edbad1251129f256d (patch) | |
tree | 14c0030e81631ca06fb21a67aa20bf1d2957348e /hexPrefix.cpp | |
parent | b6b80b020006e269c877faee85f6664a1cd925a0 (diff) | |
download | dexon-solidity-5ae585f7cf21ae281f564d0edbad1251129f256d.tar.gz dexon-solidity-5ae585f7cf21ae281f564d0edbad1251129f256d.tar.zst dexon-solidity-5ae585f7cf21ae281f564d0edbad1251129f256d.zip |
asio.h and windows.h build comments as per request.
Diffstat (limited to 'hexPrefix.cpp')
-rw-r--r-- | hexPrefix.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hexPrefix.cpp b/hexPrefix.cpp index c96e9e98..5875d62f 100644 --- a/hexPrefix.cpp +++ b/hexPrefix.cpp @@ -21,8 +21,11 @@ */ #include <fstream> + +// Make sure boost/asio.hpp is included before windows.h. #include <boost/asio.hpp> #include <boost/test/unit_test.hpp> + #include "JsonSpiritHeaders.h" #include <libdevcore/Log.h> #include <libdevcore/CommonIO.h> @@ -54,8 +57,8 @@ BOOST_AUTO_TEST_CASE(hexPrefix_test) for (auto& i: o["seq"].get_array()) v.push_back((byte)i.get_int()); auto e = hexPrefixEncode(v, o["term"].get_bool()); - BOOST_REQUIRE( ! o["out"].is_null() ); - BOOST_CHECK( o["out"].get_str() == toHex(e) ); + BOOST_REQUIRE( ! o["out"].is_null() ); + BOOST_CHECK( o["out"].get_str() == toHex(e) ); } } |