Skip to content

Commit

Permalink
fix test error ...
Browse files Browse the repository at this point in the history
  • Loading branch information
astinz committed Oct 6, 2023
1 parent 219a663 commit 5b42ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/commonTest/kotlin/xyz/mcxross/bcs/Serde.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class Serde {

@Test
fun testBoolean() {
val encoding = bcs.encodeToBinary(true)
val encoding = bcs.encodeToByteArray(true)
assertContentEquals(byteArrayOf(1.toByte()), encoding)
}

@Test
fun testUTF() {
val encoding = bcs.encodeToBinary("çå∞≠¢õß∂ƒ∫")
val encoding = bcs.encodeToByteArray("çå∞≠¢õß∂ƒ∫")
val expected = byteArrayOf(
24.toByte(),
0xc3.toByte(), 0xa7.toByte(), 0xc3.toByte(), 0xa5.toByte(),
Expand Down

0 comments on commit 5b42ab8

Please sign in to comment.