raw
experimental-genesis    1 //  /****************************\
experimental-genesis 2 // * EXPERIMENTAL BRANCH. *
experimental-genesis 3 // * FOR LABORATORY USE ONLY. *
experimental-genesis 4 // ********************************
experimental-genesis 5 // ************
experimental-genesis 6 // **************
experimental-genesis 7 // ****************
experimental-genesis 8 // **** **** ****
experimental-genesis 9 // *** *** ***
experimental-genesis 10 // *** *** ***
experimental-genesis 11 // *** * * **
experimental-genesis 12 // ******** ********
experimental-genesis 13 // ******* ******
experimental-genesis 14 // *** **
experimental-genesis 15 // * ******* **
experimental-genesis 16 // ** * * * * *
experimental-genesis 17 // ** * * ***
experimental-genesis 18 // **** * * * * ****
experimental-genesis 19 // **** *** * * ** ***
experimental-genesis 20 // **** ********* ******
experimental-genesis 21 // ******* ***** *******
experimental-genesis 22 // ********* ****** **
experimental-genesis 23 // ** ****** ******
experimental-genesis 24 // ** ******* **
experimental-genesis 25 // ** ******* ***
experimental-genesis 26 // **** ******** ************
experimental-genesis 27 // ************ ************
experimental-genesis 28 // ******** *******
experimental-genesis 29 // ****** ****
experimental-genesis 30 // *** ***
experimental-genesis 31 // ********************************
experimental-genesis 32 #include <boost/test/unit_test.hpp>
experimental-genesis 33
experimental-genesis 34 #include "../uint256.h"
experimental-genesis 35
experimental-genesis 36 BOOST_AUTO_TEST_SUITE(uint160_tests)
experimental-genesis 37
experimental-genesis 38 BOOST_AUTO_TEST_CASE(uint160_equality)
experimental-genesis 39 {
experimental-genesis 40 uint160 num1 = 10;
experimental-genesis 41 uint160 num2 = 11;
experimental-genesis 42 BOOST_CHECK(num1+1 == num2);
experimental-genesis 43
experimental-genesis 44 uint64 num3 = 10;
experimental-genesis 45 BOOST_CHECK(num1 == num3);
experimental-genesis 46 BOOST_CHECK(num1+num2 == num3+num2);
experimental-genesis 47 }
experimental-genesis 48
experimental-genesis 49 BOOST_AUTO_TEST_SUITE_END()