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

Commit 7e36e0c3 authored by John Wang's avatar John Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix SimUtilsTest after changing in bcdToString."

parents 29c1ac17 4214c6d7
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -40,9 +40,13 @@ public class SimUtilsTest extends TestCase {
        assertEquals("0126045001448486", IccUtils.bcdToString(data, 1, data.length - 2));

        // Stops on invalid BCD value
        data = IccUtils.hexStringToBytes("98F062400510444868f2");
        data = IccUtils.hexStringToBytes("98E062400510444868f2");
        assertEquals("890", IccUtils.bcdToString(data, 0, data.length));

        // skip the high nibble 'F' since some PLMNs have it
        data = IccUtils.hexStringToBytes("98F062400510444868f2");
        assertEquals("890260450014484862", IccUtils.bcdToString(data, 0, data.length));

        /*
         * gsmBcdByteToInt()
         */