mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-28 12:44:34 +01:00
Enforce upper bound on MobileCoin/fiat entry.
This commit is contained in:
@@ -336,6 +336,11 @@ public final class MoneyTest_MobileCoin {
|
||||
assertSame(Money.MobileCoin.ZERO, mobileCoin.toZero());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void max_long_value() {
|
||||
assertEquals("MOB:18446744073709551615", Money.MobileCoin.MAX_VALUE.serialize());
|
||||
}
|
||||
|
||||
private static Money.MobileCoin mobileCoin2(double value) {
|
||||
return Money.mobileCoin(BigDecimal.valueOf(value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user