added more plurals/color unit tests

This commit is contained in:
Connor Tumbleson 2013-05-11 12:50:59 -05:00
parent 9186858f33
commit 997df5cfc5
3 changed files with 25 additions and 0 deletions

View File

@ -98,6 +98,11 @@ public class BuildAndDecodeTest {
compareValuesFiles("values-mcc001/integers.xml");
}
@Test
public void xmlPluralsTest() throws BrutException {
compareValuesFiles("values-mcc001/plurals.xml");
}
@Test
public void valuesStringsTest() throws BrutException {
compareValuesFiles("values-mcc001/strings.xml");

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="test_color1">#ff123456</color>
<item type="color" name="test_color2">@*android:color/white</item>
</resources>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<plurals name="test_plurals1">
<item quantity="other">%1$s, %2$d foo(s)</item>
<item quantity="one">%1$s, %2$d foo</item>
</plurals>
<plurals name="test_plurals2">
<item quantity="other">%d foos</item>
<item quantity="one">%d foo</item>
</plurals>
<plurals name="test_plurals3">
<item quantity="other">foo %d moos</item>
<item quantity="one">foo %d moo</item>
</plurals>
<plurals name="test_plurals4">
<item quantity="other">foo %d</item>
<item quantity="one">foo 1</item>
</plurals>
</resources>