Skip to content

Commit bd5ba55

Browse files
authored
Use lower case letters for hex-formatted ByteStrings (#160)
1 parent 742fc26 commit bd5ba55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bytestring/common/src/ByteString.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class ByteString private constructor(
7979

8080
internal fun wrap(byteArray: ByteArray): ByteString = ByteString(byteArray, null)
8181

82-
private val HEX_DIGITS = "0123456789ABCDEF".toCharArray()
82+
private val HEX_DIGITS = "0123456789abcdef".toCharArray()
8383
}
8484

8585
/**

bytestring/common/test/ByteStringTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class ByteStringTest {
379379
assertEquals("ByteString(size=0)", ByteString().toString())
380380
assertEquals("ByteString(size=1 hex=00)", ByteString(0).toString())
381381
assertEquals(
382-
"ByteString(size=16 hex=000102030405060708090A0B0C0D0E0F)",
382+
"ByteString(size=16 hex=000102030405060708090a0b0c0d0e0f)",
383383
ByteString(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15).toString()
384384
)
385385
assertEquals(

0 commit comments

Comments
 (0)