| 53 | const uint256 HalfL = (OneL << 255); |
| 54 | const uint160 HalfS = (OneS << 159); |
| 55 | std::string ArrayToString(const unsigned char A[], unsigned int width) |
| 56 | { |
| 57 | std::stringstream Stream; |
| 58 | Stream << std::hex; |
| 59 | for (unsigned int i = 0; i < width; ++i) |
| 60 | { |
| 61 | Stream<<std::setw(2)<<std::setfill('0')<<(unsigned int)A[width-i-1]; |
| 62 | } |
| 63 | return Stream.str(); |
| 64 | } |
| 65 | |
| 66 | BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality |
| 67 | { |
no test coverage detected