1
1
use ocr_numbers as ocr;
2
2
3
3
#[ test]
4
- #[ rustfmt:: skip]
5
4
fn input_with_lines_not_multiple_of_four_is_error ( ) {
5
+ #[ rustfmt:: skip]
6
6
let input = " _ \n " . to_string ( ) +
7
7
"| |\n " +
8
8
" " ;
@@ -12,8 +12,8 @@ fn input_with_lines_not_multiple_of_four_is_error() {
12
12
13
13
#[ test]
14
14
#[ ignore]
15
- #[ rustfmt:: skip]
16
15
fn input_with_columns_not_multiple_of_three_is_error ( ) {
16
+ #[ rustfmt:: skip]
17
17
let input = " \n " . to_string ( ) +
18
18
" |\n " +
19
19
" |\n " +
@@ -24,8 +24,8 @@ fn input_with_columns_not_multiple_of_three_is_error() {
24
24
25
25
#[ test]
26
26
#[ ignore]
27
- #[ rustfmt:: skip]
28
27
fn unrecognized_characters_return_question_mark ( ) {
28
+ #[ rustfmt:: skip]
29
29
let input = " \n " . to_string ( ) +
30
30
" _\n " +
31
31
" |\n " +
@@ -36,8 +36,8 @@ fn unrecognized_characters_return_question_mark() {
36
36
37
37
#[ test]
38
38
#[ ignore]
39
- #[ rustfmt:: skip]
40
39
fn recognizes_0 ( ) {
40
+ #[ rustfmt:: skip]
41
41
let input = " _ \n " . to_string ( ) +
42
42
"| |\n " +
43
43
"|_|\n " +
@@ -48,8 +48,8 @@ fn recognizes_0() {
48
48
49
49
#[ test]
50
50
#[ ignore]
51
- #[ rustfmt:: skip]
52
51
fn recognizes_1 ( ) {
52
+ #[ rustfmt:: skip]
53
53
let input = " \n " . to_string ( ) +
54
54
" |\n " +
55
55
" |\n " +
@@ -60,8 +60,8 @@ fn recognizes_1() {
60
60
61
61
#[ test]
62
62
#[ ignore]
63
- #[ rustfmt:: skip]
64
63
fn recognizes_2 ( ) {
64
+ #[ rustfmt:: skip]
65
65
let input = " _ \n " . to_string ( ) +
66
66
" _|\n " +
67
67
"|_ \n " +
@@ -72,8 +72,8 @@ fn recognizes_2() {
72
72
73
73
#[ test]
74
74
#[ ignore]
75
- #[ rustfmt:: skip]
76
75
fn recognizes_3 ( ) {
76
+ #[ rustfmt:: skip]
77
77
let input = " _ \n " . to_string ( ) +
78
78
" _|\n " +
79
79
" _|\n " +
@@ -84,8 +84,8 @@ fn recognizes_3() {
84
84
85
85
#[ test]
86
86
#[ ignore]
87
- #[ rustfmt:: skip]
88
87
fn recognizes_4 ( ) {
88
+ #[ rustfmt:: skip]
89
89
let input = " \n " . to_string ( ) +
90
90
"|_|\n " +
91
91
" |\n " +
@@ -96,8 +96,8 @@ fn recognizes_4() {
96
96
97
97
#[ test]
98
98
#[ ignore]
99
- #[ rustfmt:: skip]
100
99
fn recognizes_5 ( ) {
100
+ #[ rustfmt:: skip]
101
101
let input = " _ \n " . to_string ( ) +
102
102
"|_ \n " +
103
103
" _|\n " +
@@ -108,8 +108,8 @@ fn recognizes_5() {
108
108
109
109
#[ test]
110
110
#[ ignore]
111
- #[ rustfmt:: skip]
112
111
fn recognizes_6 ( ) {
112
+ #[ rustfmt:: skip]
113
113
let input = " _ \n " . to_string ( ) +
114
114
"|_ \n " +
115
115
"|_|\n " +
@@ -120,8 +120,8 @@ fn recognizes_6() {
120
120
121
121
#[ test]
122
122
#[ ignore]
123
- #[ rustfmt:: skip]
124
123
fn recognizes_7 ( ) {
124
+ #[ rustfmt:: skip]
125
125
let input = " _ \n " . to_string ( ) +
126
126
" |\n " +
127
127
" |\n " +
@@ -132,8 +132,8 @@ fn recognizes_7() {
132
132
133
133
#[ test]
134
134
#[ ignore]
135
- #[ rustfmt:: skip]
136
135
fn recognizes_8 ( ) {
136
+ #[ rustfmt:: skip]
137
137
let input = " _ \n " . to_string ( ) +
138
138
"|_|\n " +
139
139
"|_|\n " +
@@ -144,8 +144,8 @@ fn recognizes_8() {
144
144
145
145
#[ test]
146
146
#[ ignore]
147
- #[ rustfmt:: skip]
148
147
fn recognizes_9 ( ) {
148
+ #[ rustfmt:: skip]
149
149
let input = " _ \n " . to_string ( ) +
150
150
"|_|\n " +
151
151
" _|\n " +
@@ -156,8 +156,8 @@ fn recognizes_9() {
156
156
157
157
#[ test]
158
158
#[ ignore]
159
- #[ rustfmt:: skip]
160
159
fn recognizes_110101100 ( ) {
160
+ #[ rustfmt:: skip]
161
161
let input = " _ _ _ _ \n " . to_string ( ) +
162
162
" | || | || | | || || |\n " +
163
163
" | ||_| ||_| | ||_||_|\n " +
@@ -168,8 +168,8 @@ fn recognizes_110101100() {
168
168
169
169
#[ test]
170
170
#[ ignore]
171
- #[ rustfmt:: skip]
172
171
fn replaces_only_garbled_numbers_with_question_mark ( ) {
172
+ #[ rustfmt:: skip]
173
173
let input = " _ _ _ \n " . to_string ( ) +
174
174
" | || | || | || || |\n " +
175
175
" | | _| ||_| | ||_||_|\n " +
@@ -180,8 +180,8 @@ fn replaces_only_garbled_numbers_with_question_mark() {
180
180
181
181
#[ test]
182
182
#[ ignore]
183
- #[ rustfmt:: skip]
184
183
fn recognizes_string_of_decimal_numbers ( ) {
184
+ #[ rustfmt:: skip]
185
185
let input = " _ _ _ _ _ _ _ _ \n " . to_string ( ) +
186
186
" | _| _||_||_ |_ ||_||_|| |\n " +
187
187
" ||_ _| | _||_| ||_| _||_|\n " +
@@ -192,8 +192,8 @@ fn recognizes_string_of_decimal_numbers() {
192
192
193
193
#[ test]
194
194
#[ ignore]
195
- #[ rustfmt:: skip]
196
195
fn numbers_across_multiple_lines_are_joined_by_commas ( ) {
196
+ #[ rustfmt:: skip]
197
197
let input = " _ _ \n " . to_string ( ) +
198
198
" | _| _|\n " +
199
199
" ||_ _|\n " +
0 commit comments