Skip to content

Commit 68ad6fa

Browse files
chore: fmt
1 parent 5a46252 commit 68ad6fa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

encoding/utf16le/encode_test.mbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ test "encode" {
2020
encoded,
2121
content=(
2222
#|b"a\x00b\x00c\x00`O}Y=\xd8@\xdc"
23-
2423
),
2524
)
2625
let encoded_with_bom = @utf16le.encode(s, bom=true)
2726
inspect(
2827
encoded_with_bom,
2928
content=(
3029
#|b"\xff\xfea\x00b\x00c\x00`O}Y=\xd8@\xdc"
31-
3230
),
3331
)
3432
}

string/README.mbt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test "string conversion" {
7575
let bytes = @utf8.encode(text) // Use UTF-8 encoding
7676
inspect(bytes.length(), content="12")
7777
inspect(chars, content="['H', 'e', 'l', 'l', 'o', ' ', '你', '好']")
78-
78+
7979
// Convert to bytes (UTF-16 LE encoding)
8080
let bytes = @encoding/utf16le.encode(text)
8181
inspect(bytes.length(), content="16") // 5 chars * 2 bytes each

0 commit comments

Comments
 (0)