correctly handle incorrect type labeled <array>'s

This commit is contained in:
Connor Tumbleson
2013-11-23 08:34:33 -06:00
parent 4b180bd13c
commit e91790e676
4 changed files with 27 additions and 5 deletions

View File

@ -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

View File

@ -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>