Skip to content

Commit 8a5d2bf

Browse files
committed
diamond: format, with skips
1 parent 86a1672 commit 8a5d2bf

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

exercises/diamond/tests/diamond.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use diamond::*;
32

43
#[test]
@@ -9,21 +8,37 @@ fn test_a() {
98
#[test]
109
#[ignore]
1110
fn test_b() {
12-
assert_eq!(get_diamond('B'), vec![" A ", "B B", " A "]);
11+
#[rustfmt::skip]
12+
assert_eq!(
13+
get_diamond('B'),
14+
vec![
15+
" A ",
16+
"B B",
17+
" A ",
18+
]
19+
);
1320
}
1421

1522
#[test]
1623
#[ignore]
1724
fn test_c() {
25+
#[rustfmt::skip]
1826
assert_eq!(
1927
get_diamond('C'),
20-
vec![" A ", " B B ", "C C", " B B ", " A "]
28+
vec![
29+
" A ",
30+
" B B ",
31+
"C C",
32+
" B B ",
33+
" A ",
34+
]
2135
);
2236
}
2337

2438
#[test]
2539
#[ignore]
2640
fn test_d() {
41+
#[rustfmt::skip]
2742
assert_eq!(
2843
get_diamond('D'),
2944
vec![

0 commit comments

Comments
 (0)