Skip to content

Commit

Permalink
Fix utf-8 test when bstr v1.11 switchted to LowerHex
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Nov 17, 2024
1 parent 4ef0d58 commit 4891a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ fn test_string_fmt_debug() -> Result<()> {
assert_eq!(format!("{:?}", s.as_bytes()), "[104, 101, 108, 108, 111]");

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

Ok(())
}
Expand Down

0 comments on commit 4891a6a

Please sign in to comment.