diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-11-04 05:55:37 -0800 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-11-04 05:55:37 -0800 |
| commit | bac72640ee4fbf32c639901229dcd714defa1baa (patch) | |
| tree | 78ea27076d3d41c62d7ad873335c34a80f8343b9 /src/test/bignum_tests.cpp | |
| parent | Merge pull request #3180 from pstratem/processgetdata (diff) | |
| parent | Make util phexdigit array reusable (diff) | |
| download | discoin-bac72640ee4fbf32c639901229dcd714defa1baa.tar.xz discoin-bac72640ee4fbf32c639901229dcd714defa1baa.zip | |
Merge pull request #3076 from lano1106/uint256_util
Make util phexdigit array reusable
Diffstat (limited to 'src/test/bignum_tests.cpp')
| -rw-r--r-- | src/test/bignum_tests.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/bignum_tests.cpp b/src/test/bignum_tests.cpp index 196b7274f..f16c26fd1 100644 --- a/src/test/bignum_tests.cpp +++ b/src/test/bignum_tests.cpp @@ -175,4 +175,12 @@ BOOST_AUTO_TEST_CASE(bignum_SetCompact) BOOST_CHECK_EQUAL(num.GetCompact(), 0xff123456U); } +BOOST_AUTO_TEST_CASE(bignum_SetHex) +{ + std::string hexStr = "deecf97fd890808b9cc0f1b6a3e7a60b400f52710e6ad075b1340755bfa58cc9"; + CBigNum num; + num.SetHex(hexStr); + BOOST_CHECK_EQUAL(num.GetHex(), hexStr); +} + BOOST_AUTO_TEST_SUITE_END() |