mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Fix crash in custom boost input.
This commit is contained in:
committed by
Greyson Parrelli
parent
98fab95683
commit
510a295198
@@ -61,6 +61,16 @@ class BoostTest__MoneyFilter {
|
||||
assertEquals("5", result)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Given USD, when I enter 00005dot00, then I expect 5 from text change`() {
|
||||
val testSubject = Boost.MoneyFilter(usd)
|
||||
val editable = SpannableStringBuilder("00005.00")
|
||||
|
||||
testSubject.afterTextChanged(editable)
|
||||
|
||||
assertEquals("$5", editable.toString())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Given USD, when I enter 5dot000, then I expect successful filter`() {
|
||||
val testSubject = Boost.MoneyFilter(yen)
|
||||
|
||||
Reference in New Issue
Block a user