Use assert_eq! instead of println! in tests
This commit is contained in:
parent
294916065a
commit
6233d1fee5
2 changed files with 2 additions and 2 deletions
|
|
@ -14,5 +14,5 @@ impl<T: fmt::Debug, const N: usize> fmt::Debug for Array<T, {N}> {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
println!("{:?}", Array([1, 2, 3]));
|
||||
assert_eq!(format!("{:?}", Array([1, 2, 3])), "[1, 2, 3]");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ impl<T: fmt::Debug, const N: usize> fmt::Debug for Array<[T; N]> {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
println!("{:?}", Array([1, 2, 3]));
|
||||
assert_eq!(format!("{:?}", Array([1, 2, 3])), "[1, 2, 3]");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue