Skip to content

Commit

Permalink
Fixed java flags in compressed data
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed Apr 9, 2024
1 parent 02469bc commit ea17add
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
27 changes: 26 additions & 1 deletion gecko-core/src/test/java/gecko/TextCompressorGzipTest.kt
Expand Up @@ -20,7 +20,32 @@ internal class TextCompressorGzipTest : TestBlueprint {
val output = compressor.compress("hello world!".encodeToByteArray())
assertThat(output).isEqualTo(
byteArrayOf(
31, -117, 8, 0, 0, 0, 0, 0, 0, 0, -53, 72, -51, -55, -55, 87, 40, -49, 47, -54, 73, 81, 4, 0, 109, -62,
31,
-117,
8,
0,
0,
0,
0,
0,
0,
-1,
-53,
72,
-51,
-55,
-55,
87,
40,
-49,
47,
-54,
73,
81,
4,
0,
109,
-62,
-76, 3, 12, 0, 0, 0
)
)
Expand Down
Expand Up @@ -19,7 +19,30 @@ internal class ByteDataCompressionDecoratorTest {
fun `compresses data`() {
assertThat(data.value).isEqualTo(
byteArrayOf(
31, -117, 8, 0, 0, 0, 0, 0, 0, 0, 75, 76, 76, 76, 4, 0, 69, -27, -104, -83, 4, 0, 0, 0
31,
-117,
8,
0,
0,
0,
0,
0,
0,
-1,
75,
76,
76,
76,
4,
0,
69,
-27,
-104,
-83,
4,
0,
0,
0
)
)
}
Expand Down

0 comments on commit ea17add

Please sign in to comment.