Skip to content

Commit

Permalink
Fix CStr validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djkoloski committed Aug 30, 2022
1 parent 0e3cffa commit 632d95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytecheck_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ mod tests {
b"hello world\0", Ok(_),
b"hello world", Err(CStrCheckError::MissingNullTerminator),
b"", Err(CStrCheckError::MissingNullTerminator),
[0xc3, 0x28, 0x00], Err(CStrCheckError::Utf8Error(_)),
[0xc3u8, 0x28u8, 0x00u8], Err(CStrCheckError::Utf8Error(_)),
}
}
}
Expand Down

0 comments on commit 632d95d

Please sign in to comment.