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/block_reward.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/block_reward.cpp')
-rw-r--r-- | tests/unit_tests/block_reward.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/unit_tests/block_reward.cpp b/tests/unit_tests/block_reward.cpp index bf6cc8c84..7ae088d97 100644 --- a/tests/unit_tests/block_reward.cpp +++ b/tests/unit_tests/block_reward.cpp @@ -53,23 +53,24 @@ namespace TEST_F(block_reward_and_already_generated_coins, handles_first_values) { - TEST_ALREADY_GENERATED_COINS(0, 70368744177663); - TEST_ALREADY_GENERATED_COINS(m_block_reward, 70368475742208); - TEST_ALREADY_GENERATED_COINS(UINT64_C(2756434948434199641), 59853779316998); + // 17592186044415 from neozaru, confirmed by fluffypony + TEST_ALREADY_GENERATED_COINS(0, 17592186044415); + TEST_ALREADY_GENERATED_COINS(m_block_reward, 17592169267200); + TEST_ALREADY_GENERATED_COINS(UINT64_C(2756434948434199641), 14963444829249); } TEST_F(block_reward_and_already_generated_coins, correctly_steps_from_2_to_1) { - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((2 << 18) + 1), 2); - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - (2 << 18) , 2); - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((2 << 18) - 1), 1); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((2 << 20) + 1), 2); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - (2 << 20) , 2); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((2 << 20) - 1), 1); } TEST_F(block_reward_and_already_generated_coins, handles_max) { - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((1 << 18) + 1), 1); - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - (1 << 18) , 1); - TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((1 << 18) - 1), 0); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((1 << 20) + 1), 1); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - (1 << 20) , 1); + TEST_ALREADY_GENERATED_COINS(MONEY_SUPPLY - ((1 << 20) - 1), 0); } //-------------------------------------------------------------------------------------------------------------------- |