genesis 1 #include <boost/test/unit_test.hpp>
genesis 2
genesis 3 #include "../uint256.h"
genesis 4
genesis 5 BOOST_AUTO_TEST_SUITE(uint160_tests)
genesis 6
genesis 7 BOOST_AUTO_TEST_CASE(uint160_equality)
genesis 8 {
genesis 9 uint160 num1 = 10;
genesis 10 uint160 num2 = 11;
genesis 11 BOOST_CHECK(num1+1 == num2);
genesis 12
genesis 13 uint64 num3 = 10;
genesis 14 BOOST_CHECK(num1 == num3);
genesis 15 BOOST_CHECK(num1+num2 == num3+num2);
genesis 16 }
genesis 17
genesis 18 BOOST_AUTO_TEST_SUITE_END()