blob: 9ea594d8bf615893f1931cebd3ff0b5cb42560b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
Test 1. Should print "abc" rendered in PBM plain format
P1
17 15
00000000000000000
00000000000000000
00000000000000000
00000011000000000
00000001000000000
00000001000000000
00110001110000110
01001001001001001
00111001001001000
01001001001001000
01001001001001001
00110101110000110
00000000000000000
00000000000000000
00000000000000000
Test 2. "ABC" in PBM plain format
P1
48 30
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000001100000000111111111110000000000111100011
000000001100000000111111111111100000011111110011
000000001100000000011110000111100000011110011111
000000011110000000001100000011110000111100001111
000000010010000000001100000000110000111000000111
000000110011000000001100000000110001110000000011
000000110011000000001100000011110001100000000000
000001100001100000001110000111100011000000000000
000001000000100000001111111111000011000000000000
000011000000110000001111111111000011000000000000
000011111111110000001110000001100011000000000000
000011111111110000001100000000110001100000000000
000011100001110000001100000000110001110000000011
000111000000111000001100000001110000111000000111
001100000000001100001100000011110000111100001111
011100000000001110011110000111100000011110011110
111111000000111111111111111111100000011111111110
111111000000111111111111111110000000000111111000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
Test 3. "D.!" in PBM plain format
P1
42 45
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
111111111111111110000000000000000000000111
111111111111111111000000000000000000000111
111111111111111111100000000000000000000111
001111100000001111110000000000000000000111
000111000000000111111000000000000000000111
000111000000000111111000000000000000000111
000111000000000001111000000000000000000111
000111000000000000111000000000000000000111
000111000000000000111100000000000000000111
000111000000000000001110000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000000111000000000000000111
000111000000000000001110000000000000000111
000111000000000000111100000000000000000111
000111000000000000111000000000000000000111
000111000000000001111000000000000000000111
000111000000000111111000000000000000000000
000111000000000111111000000000000000000000
001111100000001111110000000000000000000000
111111111111111111100000000000111000000111
111111111111111111000000000000111000000111
111111111111111110000000000000111000000111
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
000000000000000000000000000000000000000000
Test 3. "E,?" in PBM plain format
P1
60 60
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
011111111111111111111111110000000000000000000000011111100000
111111111111111111111111111000000000000000000000111111110000
111111111111111111111111111100000000000000000001111111111000
011111111111111111111111111100000000000000000011111111111100
001111111100000000000011111100000000000000000111110000111110
000111111000000000000001111100000000000000001111100000011111
000011110000000000000000111100000000000000001111000000001111
000011110000000000000000011000000000000000000110000000001111
000011110000000000000000000000000000000000000000000000001111
000011110000000000000000000000000000000000000000000000001111
000011110000000000000000000000000000000000000000000000011111
000011110000000000000000000000000000000000000000000000111110
000011110000000000000110000000000000000000000000000001111100
000011110000000000001111000000000000000000000000000011111000
000011111000000000011111000000000000000000000000000111110000
000011111100000000111111000000000000000000000000001111100000
000011111111111111111111000000000000000000000000011111000000
000011111111111111111111000000000000000000000000111110000000
000011111111111111111111000000000000000000000000111100000000
000011111111111111111111000000000000000000000000111100000000
000011111100000000111111000000000000000000000000111100000000
000011111000000000011111000000000000000000000000111100000000
000011110000000000001111000000000000000000000000111100000000
000011110000000000000110000000000000000000000000111100000000
000011110000000000000000000000000000000000000000111100000000
000011110000000000000000000000000000000000000000111100000000
000011110000000000000000000000000000000000000000111100000000
000011110000000000000000000000000000000000000000011000000000
000011110000000000000000011000000000000000000000000000000000
000011110000000000000000111100000000000000000000000000000000
000111111000000000000001111100000000000000000000000000000000
001111111100000000000011111100000000000000000000000000000000
011111111111111111111111111100000000011000000000011000000000
111111111111111111111111111100000000111100000000111100000000
111111111111111111111111111000000000111100000000111100000000
011111111111111111111111110000000000111100000000011000000000
000000000000000000000000000000000000111100000000000000000000
000000000000000000000000000000000000111100000000000000000000
000000000000000000000000000000000001111100000000000000000000
000000000000000000000000000000000011111000000000000000000000
000000000000000000000000000000000111110000000000000000000000
000000000000000000000000000000001111100000000000000000000000
000000000000000000000000000000001111000000000000000000000000
000000000000000000000000000000000110000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
Test 5. Should print 576003211 10631
576003211 10631
Test 6. Should print 3501321825 369
3501321825 369
Test 7. Should print 1588181271 535
1588181271 535
Test 8. Should print 2843090781 610
2843090781 610
Test 9. Should print 146160766 820
146160766 820
Test 10. Should print 3327221668 2111
3327221668 2111
Test Invalid
Expected failure 1 1
Expected failure 2 1
Expected failure 3 1
|