Skip to content

Commit 6233d1f

Browse files
committed
Use assert_eq! instead of println! in tests
1 parent 2949160 commit 6233d1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ impl<T: fmt::Debug, const N: usize> fmt::Debug for Array<T, {N}> {
1414
}
1515

1616
fn main() {
17-
println!("{:?}", Array([1, 2, 3]));
17+
assert_eq!(format!("{:?}", Array([1, 2, 3])), "[1, 2, 3]");
1818
}

src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ impl<T: fmt::Debug, const N: usize> fmt::Debug for Array<[T; N]> {
1414
}
1515

1616
fn main() {
17-
println!("{:?}", Array([1, 2, 3]));
17+
assert_eq!(format!("{:?}", Array([1, 2, 3])), "[1, 2, 3]");
1818
}

0 commit comments

Comments
 (0)