Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a92b9962 authored by Austin Tankiang's avatar Austin Tankiang Committed by Android (Google) Code Review
Browse files

Merge "Fix incorrect assert" into main

parents 386b938e 8fdac674
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -203,8 +203,8 @@ public abstract class AbstractCopyJobTest<T extends CopyJob> extends AbstractJob
        String copyPercentage = progressNotification.extras.getString(Notification.EXTRA_SUB_TEXT);

        // the percentage representation should not be NaN.
        assertNotEquals(copyPercentage.equals(NumberFormat.getPercentInstance().format(Double.NaN)),
                "Percentage representation should not be NaN.");
        assertNotEquals("Percentage representation should not be NaN.",
                NumberFormat.getPercentInstance().format(Double.NaN), copyPercentage);

        mDocs.assertChildCount(mDestRoot, 1);
        mDocs.assertHasDirectory(mDestRoot, "emptyDir");
@@ -221,8 +221,8 @@ public abstract class AbstractCopyJobTest<T extends CopyJob> extends AbstractJob
        String copyPercentage = progressNotification.extras.getString(Notification.EXTRA_SUB_TEXT);

        // the percentage representation should not be NaN.
        assertNotEquals(copyPercentage.equals(NumberFormat.getPercentInstance().format(Double.NaN)),
                "Percentage representation should not be NaN.");
        assertNotEquals("Percentage representation should not be NaN.",
                NumberFormat.getPercentInstance().format(Double.NaN), copyPercentage);

        mDocs.assertChildCount(mDestRoot, 1);
        mDocs.assertHasDirectory(mDestRoot, "emptyDir");