mirror of
https://github.com/revanced/Apktool.git
synced 2025-04-30 14:14:25 +02:00
add additional tests for (json/png) deflated unknown files
This commit is contained in:
parent
f9c091f54b
commit
a1cb15d721
@ -85,6 +85,24 @@ public class UnknownCompressionTest {
|
||||
assertEquals(new Integer(0), rebuilt);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void confirmJsonFileIsDeflatedTest() throws BrutException, IOException {
|
||||
Integer control = sOriginalFile.getDirectory().getCompressionLevel("test.json");
|
||||
Integer rebuilt = sOriginalFile.getDirectory().getCompressionLevel("test.json");
|
||||
|
||||
assertEquals(control, rebuilt);
|
||||
assertEquals(new Integer(8), rebuilt);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void confirmPngFileIsCorrectlyDeflatedTest() throws BrutException, IOException {
|
||||
Integer control = sOriginalFile.getDirectory().getCompressionLevel("950x150.png");
|
||||
Integer rebuilt = sOriginalFile.getDirectory().getCompressionLevel("950x150.png");
|
||||
|
||||
assertEquals(control, rebuilt);
|
||||
assertEquals(new Integer(8), rebuilt);
|
||||
}
|
||||
|
||||
private static ExtFile sTmpDir;
|
||||
|
||||
private static ExtFile sOriginalFile;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user