Skip to content

Commit

Permalink
Use assert_eq! instead of println! in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed May 28, 2019
1 parent 2949160 commit 6233d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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]");
}

0 comments on commit 6233d1f

Please sign in to comment.