Passing test for #1587

- fixes #1587
 - refs: 0fa6418553
This commit is contained in:
Connor Tumbleson 2017-12-07 17:10:30 -05:00
parent 5734c68156
commit 23486830a9
2 changed files with 12 additions and 0 deletions

View File

@ -165,6 +165,17 @@ public class BuildAndDecodeTest {
compareValuesFiles("values-en/strings.xml");
}
@Test
public void valuesExtraLongExactLengthTest() throws BrutException {
Map<String, String> strs = TestUtils.parseStringsXml(new File(sTestNewDir, "res/values-en/strings.xml"));
// long_string6 should be exactly 0x8888 chars of "a"
// the valuesExtraLongTest() should handle this
// but such an edge case, want a specific test
String aaaa = strs.get("long_string6");
assertEquals(0x8888, aaaa.length());
}
@Test
public void crossTypeTest() throws BrutException {
compareValuesFiles("values-mcc003/strings.xml");