![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <boost/test/unit_test.hpp>#include <stdint.h>#include <sstream>#include <iomanip>#include <limits>#include <cmath>#include "uint256.h"#include <string>#include "version.h"#include "test/test_pivx.h"Go to the source code of this file.
Functions | |
| std::string | ArrayToString (const unsigned char A[], unsigned int width) |
| uint160 | uint160S (const char *str) |
| uint160 | uint160S (const std::string &str) |
| BOOST_AUTO_TEST_CASE (basics) | |
| BOOST_AUTO_TEST_CASE (comparison) | |
| BOOST_AUTO_TEST_CASE (methods) | |
| BOOST_AUTO_TEST_CASE (conversion) | |
| BOOST_AUTO_TEST_CASE (operator_with_self) | |
| BOOST_AUTO_TEST_CASE (check_ONE) | |
Variables | |
| const unsigned char | R1Array [] |
| const char | R1ArrayHex [] = "7D1DE5EAF9B156D53208F033B5AA8122D2d2355d5e12292b121156cfdb4a529c" |
| const uint256 | R1L = uint256(std::vector<unsigned char>(R1Array,R1Array+32)) |
| const uint160 | R1S = uint160(std::vector<unsigned char>(R1Array,R1Array+20)) |
| const unsigned char | R2Array [] |
| const uint256 | R2L = uint256(std::vector<unsigned char>(R2Array,R2Array+32)) |
| const uint160 | R2S = uint160(std::vector<unsigned char>(R2Array,R2Array+20)) |
| const unsigned char | ZeroArray [] |
| const uint256 | ZeroL = uint256(std::vector<unsigned char>(ZeroArray,ZeroArray+32)) |
| const uint160 | ZeroS = uint160(std::vector<unsigned char>(ZeroArray,ZeroArray+20)) |
| const unsigned char | OneArray [] |
| const uint256 | OneL = uint256(std::vector<unsigned char>(OneArray,OneArray+32)) |
| const uint160 | OneS = uint160(std::vector<unsigned char>(OneArray,OneArray+20)) |
| const unsigned char | MaxArray [] |
| const uint256 | MaxL = uint256(std::vector<unsigned char>(MaxArray,MaxArray+32)) |
| const uint160 | MaxS = uint160(std::vector<unsigned char>(MaxArray,MaxArray+20)) |
| std::string ArrayToString | ( | const unsigned char | A[], |
| unsigned int | width | ||
| ) |
| BOOST_AUTO_TEST_CASE | ( | basics | ) |
| BOOST_AUTO_TEST_CASE | ( | check_ONE | ) |
Definition at line 282 of file uint256_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | comparison | ) |
| BOOST_AUTO_TEST_CASE | ( | conversion | ) |
| BOOST_AUTO_TEST_CASE | ( | methods | ) |
| BOOST_AUTO_TEST_CASE | ( | operator_with_self | ) |
|
inline |
Definition at line 62 of file uint256_tests.cpp.
|
inline |
| const unsigned char MaxArray[] |
Definition at line 45 of file uint256_tests.cpp.
Definition at line 48 of file uint256_tests.cpp.
Definition at line 49 of file uint256_tests.cpp.
| const unsigned char OneArray[] |
Definition at line 39 of file uint256_tests.cpp.
Definition at line 42 of file uint256_tests.cpp.
Definition at line 43 of file uint256_tests.cpp.
| const unsigned char R1Array[] |
Definition at line 20 of file uint256_tests.cpp.
| const char R1ArrayHex[] = "7D1DE5EAF9B156D53208F033B5AA8122D2d2355d5e12292b121156cfdb4a529c" |
Definition at line 23 of file uint256_tests.cpp.
Definition at line 24 of file uint256_tests.cpp.
Definition at line 25 of file uint256_tests.cpp.
| const unsigned char R2Array[] |
Definition at line 27 of file uint256_tests.cpp.
Definition at line 30 of file uint256_tests.cpp.
Definition at line 31 of file uint256_tests.cpp.
| const unsigned char ZeroArray[] |
Definition at line 33 of file uint256_tests.cpp.
Definition at line 36 of file uint256_tests.cpp.