diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-10-23 16:43:34 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-10-23 16:43:39 +0200 |
commit | 699d93246105d004a0377f5df587d3ad4b20dc4b (patch) | |
tree | f4f4b39db0a3d6c94089d1e5fd578a99d0af242b /tests/unit_tests/test_format_utils.cpp | |
parent | Apple and BSD don't need malloc.h (diff) | |
parent | fixed unit tests (diff) | |
download | monero-699d93246105d004a0377f5df587d3ad4b20dc4b.tar.xz |
Merge pull request #182
1795c38 fixed unit tests (Riccardo Spagni)
bc537ac miniupnpc static define change (Riccardo Spagni)
Diffstat (limited to 'tests/unit_tests/test_format_utils.cpp')
-rw-r--r-- | tests/unit_tests/test_format_utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/test_format_utils.cpp b/tests/unit_tests/test_format_utils.cpp index 857b5b09f..9fa09b4e9 100644 --- a/tests/unit_tests/test_format_utils.cpp +++ b/tests/unit_tests/test_format_utils.cpp @@ -165,11 +165,11 @@ TEST(validate_parse_amount_case, validate_parse_amount) uint64_t res = 0; bool r = cryptonote::parse_amount(res, "0.0001"); ASSERT_TRUE(r); - ASSERT_EQ(res, 10000); + ASSERT_EQ(res, 100000000); r = cryptonote::parse_amount(res, "100.0001"); ASSERT_TRUE(r); - ASSERT_EQ(res, 10000010000); + ASSERT_EQ(res, 100000100000000); r = cryptonote::parse_amount(res, "000.0000"); ASSERT_TRUE(r); @@ -182,11 +182,11 @@ TEST(validate_parse_amount_case, validate_parse_amount) r = cryptonote::parse_amount(res, " 100.0001 "); ASSERT_TRUE(r); - ASSERT_EQ(res, 10000010000); + ASSERT_EQ(res, 100000100000000); r = cryptonote::parse_amount(res, " 100.0000 "); ASSERT_TRUE(r); - ASSERT_EQ(res, 10000000000); + ASSERT_EQ(res, 100000000000000); r = cryptonote::parse_amount(res, " 100. 0000 "); ASSERT_FALSE(r); |