mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-13 13:27:37 +02:00
correctly handle incorrect type labeled <array>'s
This commit is contained in:
@ -23,6 +23,8 @@ import java.io.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.sun.corba.se.impl.orb.ParserTable;
|
||||
import org.custommonkey.xmlunit.*;
|
||||
import org.junit.*;
|
||||
import static org.junit.Assert.*;
|
||||
@ -76,7 +78,12 @@ public class BuildAndDecodeTest {
|
||||
@Test
|
||||
public void valuesArraysTest() throws BrutException {
|
||||
compareValuesFiles("values-mcc001/arrays.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesArraysCastingTest() throws BrutException {
|
||||
compareValuesFiles("values-mcc002/arrays.xml");
|
||||
compareValuesFiles("values-mcc003/arrays.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="test_array4">
|
||||
<item>3.0in</item>
|
||||
</string-array>
|
||||
<string-array name="test_array5">
|
||||
<item>65.0%</item>
|
||||
<item>65%</item>
|
||||
</string-array>
|
||||
</resources>
|
Reference in New Issue
Block a user