mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
added more plurals/color unit tests
This commit is contained in:
parent
9186858f33
commit
997df5cfc5
@ -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");
|
||||
|
@ -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>
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user