Skip to content

Commit

Permalink
flipped condition oops
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jun 26, 2024
1 parent 9a0a7e3 commit 5ccd4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sys_common/wtf8/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ fn wobbled_wtf8_plus_str_isnt_utf8() {
#[test]
fn unwobbly_wtf8_plus_utf8_is_utf8() {
let mut string: Wtf8Buf = Wtf8Buf::from_str("hello world");
assert!(!string.is_known_utf8);
assert!(string.is_known_utf8);
string.push_str("some utf-8");
assert!(!string.is_known_utf8);
assert!(string.is_known_utf8);
}

0 comments on commit 5ccd4c6

Please sign in to comment.