diff --git a/collect_app/src/test/java/org/odk/collect/android/widgets/DecimalWidgetTest.java b/collect_app/src/test/java/org/odk/collect/android/widgets/DecimalWidgetTest.java index f13d813473b..5bd7e6be2c5 100644 --- a/collect_app/src/test/java/org/odk/collect/android/widgets/DecimalWidgetTest.java +++ b/collect_app/src/test/java/org/odk/collect/android/widgets/DecimalWidgetTest.java @@ -178,7 +178,7 @@ public void fifteenDigitDecimalValueShouldDisplayAllDigits() { @Test // This should never be possible because the EditText has a limit on it - public void digitsAboveLimitOfFifteenShouldBeTruncatedFromLeft() { + public void digitsAboveLimitOfFifteenShouldBeTruncatedFromRight() { Double eighteenDigitDouble = 9999999999999994.; String fifteenDigitString = "999999999999994"; assertSame(15, fifteenDigitString.length()); diff --git a/collect_app/src/test/java/org/odk/collect/android/widgets/ExDecimalWidgetTest.java b/collect_app/src/test/java/org/odk/collect/android/widgets/ExDecimalWidgetTest.java index 387f1979f64..77c8daabd0d 100644 --- a/collect_app/src/test/java/org/odk/collect/android/widgets/ExDecimalWidgetTest.java +++ b/collect_app/src/test/java/org/odk/collect/android/widgets/ExDecimalWidgetTest.java @@ -56,7 +56,7 @@ public void setUp() throws Exception { @Test // This should never be possible because the EditText has a limit on it - public void digitsAboveLimitOfFifteenShouldBeTruncatedFromLeft() { + public void digitsAboveLimitOfFifteenShouldBeTruncatedFromRight() { Double eighteenDigitDouble = 9999999999999994.; String fifteenDigitString = "999999999999994"; assertSame(15, fifteenDigitString.length()); diff --git a/collect_app/src/test/java/org/odk/collect/android/widgets/ExIntegerWidgetTest.java b/collect_app/src/test/java/org/odk/collect/android/widgets/ExIntegerWidgetTest.java index f73843e7fb9..c11244e1072 100644 --- a/collect_app/src/test/java/org/odk/collect/android/widgets/ExIntegerWidgetTest.java +++ b/collect_app/src/test/java/org/odk/collect/android/widgets/ExIntegerWidgetTest.java @@ -39,7 +39,7 @@ private int randomInteger() { } @Test - public void digitsAboveLimitOfNineShouldBeTruncatedFromLeft() { + public void digitsAboveLimitOfNineShouldBeTruncatedFromRight() { getActualWidget().answerText.setText("123456789123"); assertEquals("123456789", getActualWidget().getAnswerText()); } diff --git a/collect_app/src/test/java/org/odk/collect/android/widgets/IntegerWidgetTest.java b/collect_app/src/test/java/org/odk/collect/android/widgets/IntegerWidgetTest.java index c3c0ead84c4..f4af6eaf640 100644 --- a/collect_app/src/test/java/org/odk/collect/android/widgets/IntegerWidgetTest.java +++ b/collect_app/src/test/java/org/odk/collect/android/widgets/IntegerWidgetTest.java @@ -32,7 +32,7 @@ private int randomInteger() { } @Test - public void digitsAboveLimitOfNineShouldBeTruncatedFromLeft() { + public void digitsAboveLimitOfNineShouldBeTruncatedFromRight() { getActualWidget().answerText.setText("123456789123"); assertEquals("123456789", getActualWidget().getAnswerText()); }