Skip to content

Commit

Permalink
Add test for encoding classpath.txt V2
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Aug 21, 2024
1 parent 801039c commit 3b45124
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/kotlin/korge/util/PluginClasspathRebuilderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import kotlin.test.*

class PluginClasspathRebuilderTest {
@Test
fun test() {
fun testV1() {
val bytes = PluginClasspathRebuilderTest::class.java.getResource("/plugin-classpath.txt")!!.readBytes()
val parsed = PluginClasspath.parse(bytes)
val encoded = parsed.encode()
Expand All @@ -16,6 +16,9 @@ class PluginClasspathRebuilderTest {
fun testV2() {
val bytes = PluginClasspathRebuilderTest::class.java.getResource("/plugin-classpath.2024-02.txt")!!.readBytes()
val parsed = PluginClasspath.parse(bytes)
val encoded = parsed.encode()
assertEquals(bytes.size, encoded.size)
assertContentEquals(bytes, encoded)
//println(parsed.mainPluginDescriptorContent)
//for (entry in parsed.entries) {
// println(entry)
Expand Down

0 comments on commit 3b45124

Please sign in to comment.