Back to home page

Bitcoin sources

 
 

    


0001 #include <boost/test/unit_test.hpp>
0002 
0003 #include "../uint256.h"
0004 
0005 BOOST_AUTO_TEST_SUITE(uint160_tests)
0006 
0007 BOOST_AUTO_TEST_CASE(uint160_equality)
0008 {
0009     uint160 num1 = 10;
0010     uint160 num2 = 11;
0011     BOOST_CHECK(num1+1 == num2);
0012 
0013     uint64 num3 = 10;
0014     BOOST_CHECK(num1 == num3);
0015     BOOST_CHECK(num1+num2 == num3+num2);
0016 }
0017 
0018 BOOST_AUTO_TEST_SUITE_END()