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

Commit 4214c6d7 authored by John Wang's avatar John Wang
Browse files

Fix SimUtilsTest after changing in bcdToString.

After changes in IccUtils.bcdToString() to ignore high nibble 'F'

(see change #55090), the testBasic() need to be changed accordingly.

Change-Id: If52a66b1c80b5d16af5bd3f431284e79012be300
parent 35dc79da
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()
         */