Skip to content

Commit 4891a6a

Browse files
committed
Fix utf-8 test when bstr v1.11 switchted to LowerHex
1 parent 4ef0d58 commit 4891a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ fn test_string_fmt_debug() -> Result<()> {
9696
assert_eq!(format!("{:?}", s.as_bytes()), "[104, 101, 108, 108, 111]");
9797

9898
// Invalid utf8
99-
let s = lua.create_string(b"hello\0world\r\n\t\xF0\x90\x80")?;
100-
assert_eq!(format!("{s:?}"), r#"b"hello\0world\r\n\t\xF0\x90\x80""#);
99+
let s = lua.create_string(b"hello\0world\r\n\t\xf0\x90\x80")?;
100+
assert_eq!(format!("{s:?}"), r#"b"hello\0world\r\n\t\xf0\x90\x80""#);
101101

102102
Ok(())
103103
}

0 commit comments

Comments
 (0)