Skip to content

Commit c6c2a87

Browse files
authored
Add test for Debug impl on Array (#207)
1 parent 81196f2 commit c6c2a87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ fn cast_slice_to_core_mut() {
155155
assert_eq!(slice[1], [3, 4]);
156156
}
157157

158+
#[test]
159+
fn debug() {
160+
let arr: Array<u8, U3> = Array([1, 2, 3]);
161+
assert_eq!(format!("{arr:?}"), "Array([1, 2, 3])");
162+
}
163+
158164
#[test]
159165
fn from_hybrid_array_for_core_array() {
160166
let hybrid_arr: Array<u8, U2> = Array([1, 2]);

0 commit comments

Comments
 (0)