Skip to content

Commit

Permalink
toBytes() is deprecated, use code property instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tempoz committed Sep 11, 2024
1 parent 9c835af commit bb2398c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class ByteStringsTest {
@Test
fun byteAt() {
val str = "abc".toByteStringUtf8()
assertThat(str[0]).isEqualTo('a'.toByte())
assertThat(str[2]).isEqualTo('c'.toByte())
assertThat(str[0]).isEqualTo('a'.code)
assertThat(str[2]).isEqualTo('c'.code)
}

@Test
Expand Down

0 comments on commit bb2398c

Please sign in to comment.