Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
An invalid variable was logged as a valid codepoint
  • Loading branch information
Dayels committed Sep 23, 2021
1 parent 404100b commit f5151fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ mod test_core {
info!("try valide {}", c);
info!("his code {:#b}", c as u32);
let r = validate_next(&mut it).unwrap();
info!("val code {:#b}", c as u32);
info!("val code {:#b}", r as u32);
let r = unsafe { char::from_u32_unchecked(r) };
assert_eq!(c, r);
}
Expand All @@ -207,7 +207,7 @@ mod test_core {
info!("try valide {}", c);
info!("his code {:#b}", c as u32);
let r = validate_next(&mut it).unwrap();
info!("val code {:#b}", c as u32);
info!("val code {:#b}", r as u32);
let r = unsafe { char::from_u32_unchecked(r) };
assert_eq!(c, r);
}
Expand All @@ -223,7 +223,7 @@ mod test_core {
info!("try valide {}", c);
info!("his code {:#b}", c as u32);
let r = validate_next(&mut it).unwrap();
info!("val code {:#b}", c as u32);
info!("val code {:#b}", r as u32);
let r = unsafe { char::from_u32_unchecked(r) };
assert_eq!(c, r);
}
Expand All @@ -239,7 +239,7 @@ mod test_core {
info!("try valide {}", c);
info!("his code {:#b}", c as u32);
let r = validate_next(&mut it).unwrap();
info!("val code {:#b}", c as u32);
info!("val code {:#b}", r as u32);
let r = unsafe { char::from_u32_unchecked(r) };
assert_eq!(c, r);
}
Expand Down

0 comments on commit f5151fa

Please sign in to comment.