Skip to content

Commit e51b5c8

Browse files
committed
test(decoder): use the created decoder
1 parent b618282 commit e51b5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonTest/kotlin/space/iseki/bencoding/MetaTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MetaTest {
1717
doubleStrategy = FloatNumberStrategy.Disallow
1818
binaryStringStrategy = BinaryStringStrategy.Base64 // but it's configured to ISO8859-1 on the pieces field
1919
}
20-
val meta = Bencode.decodeFromByteArray<Meta>(Meta.serializer(), Meta.sampleTorrent)
20+
val meta = bencode.decodeFromByteArray(Meta.serializer(), Meta.sampleTorrent)
2121
println(meta.info.pieces.length)
2222
println(meta)
2323
assertEquals(0, meta.info.pieces.length % 20)

0 commit comments

Comments
 (0)