Skip to content

Commit

Permalink
Fix broken test in Amount
Browse files Browse the repository at this point in the history
This test was erroring out but was accidentally merged due
to the current flakyness of the CI.
  • Loading branch information
Geod24 committed Apr 19, 2021
1 parent 8df303d commit 6da36ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/agora/common/Amount.d
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,9 @@ unittest
assert(amt == Amount(1));
assert(is_valid);

amt = Amount(ulong.max);
is_valid = amt.percentage(2);
assert(is_valid);
amt = Amount.MaxUnitSupply;
assert(amt.percentage(100));
assert(!amt.percentage(101));
}

unittest
Expand Down

0 comments on commit 6da36ce

Please sign in to comment.