Skip to content

Commit 1ccc0b5

Browse files
committed
add emojis to utf8 msgpack test
1 parent ec00c87 commit 1ccc0b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/std/src/msgpack.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ mod tests {
7575

7676
fn special_chars_test_vector() -> (SomeMsg, &'static [u8]) {
7777
let msg = SomeMsg::Cowsay {
78-
text: "foo\"bar\\\"bla".to_string(),
78+
text: "foo\"bar\\\"bla🦴👁🦶🏻".to_string(),
7979
};
8080
let serialized = &[
81-
129, 166, 99, 111, 119, 115, 97, 121, 129, 164, 116, 101, 120, 116, 172, 102, 111, 111,
82-
34, 98, 97, 114, 92, 34, 98, 108, 97,
81+
129, 166, 99, 111, 119, 115, 97, 121, 129, 164, 116, 101, 120, 116, 188, 102, 111, 111,
82+
34, 98, 97, 114, 92, 34, 98, 108, 97, 240, 159, 166, 180, 240, 159, 145, 129, 240, 159,
83+
166, 182, 240, 159, 143, 187,
8384
];
85+
8486
(msg, serialized)
8587
}
8688

0 commit comments

Comments
 (0)