Skip to content

Commit d91f9e0

Browse files
committed
ocr-numbers: make rustfmt::skip more specific
1 parent ac98d64 commit d91f9e0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

exercises/ocr-numbers/tests/ocr-numbers.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use ocr_numbers as ocr;
22

33
#[test]
4-
#[rustfmt::skip]
54
fn input_with_lines_not_multiple_of_four_is_error() {
5+
#[rustfmt::skip]
66
let input = " _ \n".to_string() +
77
"| |\n" +
88
" ";
@@ -12,8 +12,8 @@ fn input_with_lines_not_multiple_of_four_is_error() {
1212

1313
#[test]
1414
#[ignore]
15-
#[rustfmt::skip]
1615
fn input_with_columns_not_multiple_of_three_is_error() {
16+
#[rustfmt::skip]
1717
let input = " \n".to_string() +
1818
" |\n" +
1919
" |\n" +
@@ -24,8 +24,8 @@ fn input_with_columns_not_multiple_of_three_is_error() {
2424

2525
#[test]
2626
#[ignore]
27-
#[rustfmt::skip]
2827
fn unrecognized_characters_return_question_mark() {
28+
#[rustfmt::skip]
2929
let input = " \n".to_string() +
3030
" _\n" +
3131
" |\n" +
@@ -36,8 +36,8 @@ fn unrecognized_characters_return_question_mark() {
3636

3737
#[test]
3838
#[ignore]
39-
#[rustfmt::skip]
4039
fn recognizes_0() {
40+
#[rustfmt::skip]
4141
let input = " _ \n".to_string() +
4242
"| |\n" +
4343
"|_|\n" +
@@ -48,8 +48,8 @@ fn recognizes_0() {
4848

4949
#[test]
5050
#[ignore]
51-
#[rustfmt::skip]
5251
fn recognizes_1() {
52+
#[rustfmt::skip]
5353
let input = " \n".to_string() +
5454
" |\n" +
5555
" |\n" +
@@ -60,8 +60,8 @@ fn recognizes_1() {
6060

6161
#[test]
6262
#[ignore]
63-
#[rustfmt::skip]
6463
fn recognizes_2() {
64+
#[rustfmt::skip]
6565
let input = " _ \n".to_string() +
6666
" _|\n" +
6767
"|_ \n" +
@@ -72,8 +72,8 @@ fn recognizes_2() {
7272

7373
#[test]
7474
#[ignore]
75-
#[rustfmt::skip]
7675
fn recognizes_3() {
76+
#[rustfmt::skip]
7777
let input = " _ \n".to_string() +
7878
" _|\n" +
7979
" _|\n" +
@@ -84,8 +84,8 @@ fn recognizes_3() {
8484

8585
#[test]
8686
#[ignore]
87-
#[rustfmt::skip]
8887
fn recognizes_4() {
88+
#[rustfmt::skip]
8989
let input = " \n".to_string() +
9090
"|_|\n" +
9191
" |\n" +
@@ -96,8 +96,8 @@ fn recognizes_4() {
9696

9797
#[test]
9898
#[ignore]
99-
#[rustfmt::skip]
10099
fn recognizes_5() {
100+
#[rustfmt::skip]
101101
let input = " _ \n".to_string() +
102102
"|_ \n" +
103103
" _|\n" +
@@ -108,8 +108,8 @@ fn recognizes_5() {
108108

109109
#[test]
110110
#[ignore]
111-
#[rustfmt::skip]
112111
fn recognizes_6() {
112+
#[rustfmt::skip]
113113
let input = " _ \n".to_string() +
114114
"|_ \n" +
115115
"|_|\n" +
@@ -120,8 +120,8 @@ fn recognizes_6() {
120120

121121
#[test]
122122
#[ignore]
123-
#[rustfmt::skip]
124123
fn recognizes_7() {
124+
#[rustfmt::skip]
125125
let input = " _ \n".to_string() +
126126
" |\n" +
127127
" |\n" +
@@ -132,8 +132,8 @@ fn recognizes_7() {
132132

133133
#[test]
134134
#[ignore]
135-
#[rustfmt::skip]
136135
fn recognizes_8() {
136+
#[rustfmt::skip]
137137
let input = " _ \n".to_string() +
138138
"|_|\n" +
139139
"|_|\n" +
@@ -144,8 +144,8 @@ fn recognizes_8() {
144144

145145
#[test]
146146
#[ignore]
147-
#[rustfmt::skip]
148147
fn recognizes_9() {
148+
#[rustfmt::skip]
149149
let input = " _ \n".to_string() +
150150
"|_|\n" +
151151
" _|\n" +
@@ -156,8 +156,8 @@ fn recognizes_9() {
156156

157157
#[test]
158158
#[ignore]
159-
#[rustfmt::skip]
160159
fn recognizes_110101100() {
160+
#[rustfmt::skip]
161161
let input = " _ _ _ _ \n".to_string() +
162162
" | || | || | | || || |\n" +
163163
" | ||_| ||_| | ||_||_|\n" +
@@ -168,8 +168,8 @@ fn recognizes_110101100() {
168168

169169
#[test]
170170
#[ignore]
171-
#[rustfmt::skip]
172171
fn replaces_only_garbled_numbers_with_question_mark() {
172+
#[rustfmt::skip]
173173
let input = " _ _ _ \n".to_string() +
174174
" | || | || | || || |\n" +
175175
" | | _| ||_| | ||_||_|\n" +
@@ -180,8 +180,8 @@ fn replaces_only_garbled_numbers_with_question_mark() {
180180

181181
#[test]
182182
#[ignore]
183-
#[rustfmt::skip]
184183
fn recognizes_string_of_decimal_numbers() {
184+
#[rustfmt::skip]
185185
let input = " _ _ _ _ _ _ _ _ \n".to_string() +
186186
" | _| _||_||_ |_ ||_||_|| |\n" +
187187
" ||_ _| | _||_| ||_| _||_|\n" +
@@ -192,8 +192,8 @@ fn recognizes_string_of_decimal_numbers() {
192192

193193
#[test]
194194
#[ignore]
195-
#[rustfmt::skip]
196195
fn numbers_across_multiple_lines_are_joined_by_commas() {
196+
#[rustfmt::skip]
197197
let input = " _ _ \n".to_string() +
198198
" | _| _|\n" +
199199
" ||_ _|\n" +

0 commit comments

Comments
 (0)