Skip to content

Commit

Permalink
Reinsert modified decode_dec to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano committed Sep 22, 2024
1 parent 858ff41 commit d6cbeb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/core_test/uint256_union.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ TEST (uint128_union, decode_decimal)
ASSERT_TRUE (amount.decode_dec ("0.", nano::nano_ratio));
ASSERT_FALSE (amount.decode_dec ("9.999999999999999999999999999999", nano::nano_ratio));
ASSERT_EQ (nano::uint128_t ("9999999999999999999999999999999"), amount.number ());
ASSERT_FALSE (amount.decode_dec ("170141183.460469231731687303715884105727", nano::nano_ratio));
ASSERT_EQ (nano::uint128_t ("170141183460469231731687303715884105727"), amount.number ());
ASSERT_FALSE (amount.decode_dec ("1230", nano::Knano_ratio));
ASSERT_EQ (1230 * nano::Knano_ratio, amount.number ());
Expand Down

0 comments on commit d6cbeb0

Please sign in to comment.