Update weirdly failing ui tests
This commit is contained in:
parent
25f17dd825
commit
1ef7585c9e
6 changed files with 6 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ fn main() {
|
|||
let v = 0;
|
||||
&v as *const _ as usize
|
||||
};
|
||||
assert_eq!(a.to_string(), b.to_string());
|
||||
assert_eq!(format!("{a}"), format!("{b}"));
|
||||
assert_eq!(format!("{}", a == b), "true");
|
||||
assert_eq!(format!("{}", cmp_in(a, b)), "true");
|
||||
assert_eq!(format!("{}", cmp(a, b)), "true");
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ fn main() {
|
|||
// It's not zero, which means `a` and `b` are not equal.
|
||||
assert_ne!(i, 0);
|
||||
// But it looks like zero...
|
||||
assert_eq!(i.to_string(), "0");
|
||||
assert_eq!(format!("{i}"), "0");
|
||||
// ...and now it *is* zero?
|
||||
assert_eq!(i, 0);
|
||||
// So `a` and `b` are equal after all?
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ fn main() {
|
|||
let v = 0;
|
||||
ptr::from_ref(&v).expose_provenance()
|
||||
};
|
||||
assert_eq!(a.to_string(), b.to_string());
|
||||
assert_eq!(format!("{a}"), format!("{b}"));
|
||||
assert_eq!(format!("{}", a == b), "true");
|
||||
assert_eq!(format!("{}", cmp_in(a, b)), "true");
|
||||
assert_eq!(format!("{}", cmp(a, b)), "true");
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ fn main() {
|
|||
// It's not zero, which means `a` and `b` are not equal.
|
||||
assert_ne!(i, 0);
|
||||
// But it looks like zero...
|
||||
assert_eq!(i.to_string(), "0");
|
||||
assert_eq!(format!("{i}"), "0");
|
||||
// ...and now it *is* zero?
|
||||
assert_eq!(i, 0);
|
||||
// So `a` and `b` are equal after all?
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ fn main() {
|
|||
let v = 0;
|
||||
ptr::from_ref(&v).addr()
|
||||
};
|
||||
assert_eq!(a.to_string(), b.to_string());
|
||||
assert_eq!(format!("{a}"), format!("{b}"));
|
||||
assert_eq!(format!("{}", a == b), "true");
|
||||
assert_eq!(format!("{}", cmp_in(a, b)), "true");
|
||||
assert_eq!(format!("{}", cmp(a, b)), "true");
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ fn main() {
|
|||
// It's not zero, which means `a` and `b` are not equal.
|
||||
assert_ne!(i, 0);
|
||||
// But it looks like zero...
|
||||
assert_eq!(i.to_string(), "0");
|
||||
assert_eq!(format!("{i}"), "0");
|
||||
// ...and now it *is* zero?
|
||||
assert_eq!(i, 0);
|
||||
// So `a` and `b` are equal after all?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue