koara-xml 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ # encoding: utf-8
2
+ require 'test_helper'
3
+ require 'pathname'
4
+
5
+ class ComplianceTest < MiniTest::Unit::TestCase
6
+
7
+ TEST_DIR = 'testsuite'
8
+
9
+ Dir.glob("#{TEST_DIR}/input/*").each do |f|
10
+ if (File.directory?("#{f}"))
11
+ folder = File.basename(f).to_s
12
+ Dir.glob("#{TEST_DIR}/input/#{folder}/*.kd").each do |t|
13
+ testcase = File.basename(t)[0..-4].to_s
14
+
15
+ define_method("test_#{testcase}") do
16
+ kd = File.read("#{TEST_DIR}/input/#{folder}/#{testcase}.kd")
17
+ html = File.read("#{TEST_DIR}/output/xml/#{folder}/#{testcase}.xml")
18
+
19
+ parser = Koara::Parser.new
20
+ document = parser.parse(kd)
21
+ renderer = Koara::Xml::XmlRenderer.new
22
+ document.accept(renderer)
23
+
24
+ assert_equal(html, renderer.output)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,1048 @@
1
+ # encoding: utf-8
2
+ require 'test_helper'
3
+
4
+ class EndToEndTest < MiniTest::Unit::TestCase
5
+
6
+ TEST_DIR = 'testsuite'
7
+
8
+ def setup
9
+ @parser = Koara::Parser.new
10
+ end
11
+
12
+ def test_000001
13
+ assert_output('end2end-000001', %w(paragraphs))
14
+ end
15
+
16
+ def test_000002
17
+ assert_output('end2end-000002', %w(headings))
18
+ end
19
+
20
+ def test_000003
21
+ assert_output('end2end-000003', %w(paragraphs headings))
22
+ end
23
+
24
+ def test_000004
25
+ assert_output('end2end-000004', %w(lists))
26
+ end
27
+
28
+ def test_000005
29
+ assert_output('end2end-000005', %w(paragraphs lists))
30
+ end
31
+
32
+ def test_000006
33
+ assert_output('end2end-000006', %w(headings lists))
34
+ end
35
+
36
+ def test_000007
37
+ assert_output('end2end-000007', %w(paragraphs headings lists))
38
+ end
39
+
40
+ def test_000008
41
+ assert_output('end2end-000008', %w(links))
42
+ end
43
+
44
+ def test_000009
45
+ assert_output('end2end-000009', %w(paragraphs links))
46
+ end
47
+
48
+ def test_000010
49
+ assert_output('end2end-000010', %w(headings links))
50
+ end
51
+
52
+ def test_000011
53
+ assert_output('end2end-000011', %w(paragraphs headings links))
54
+ end
55
+
56
+ def test_000012
57
+ assert_output('end2end-000012', %w(lists links))
58
+ end
59
+
60
+ def test_000013
61
+ assert_output('end2end-000013', %w(paragraphs lists links))
62
+ end
63
+
64
+ def test_000014
65
+ assert_output('end2end-000014', %w(headings lists links))
66
+ end
67
+
68
+ def test_000015
69
+ assert_output('end2end-000015', %w(paragraphs headings lists links))
70
+ end
71
+
72
+ def test_000016
73
+ assert_output('end2end-000016', %w(images))
74
+ end
75
+
76
+ def test_000017
77
+ assert_output('end2end-000017', %w(paragraphs images))
78
+ end
79
+
80
+ def test_000018
81
+ assert_output('end2end-000018', %w(headings images))
82
+ end
83
+
84
+ def test_000019
85
+ assert_output('end2end-000019', %w(paragraphs headings images))
86
+ end
87
+
88
+ def test_000020
89
+ assert_output('end2end-000020', %w(lists images))
90
+ end
91
+
92
+ def test_000021
93
+ assert_output('end2end-000021', %w(paragraphs lists images))
94
+ end
95
+
96
+ def test_000022
97
+ assert_output('end2end-000022', %w(headings lists images))
98
+ end
99
+
100
+ def test_000023
101
+ assert_output('end2end-000023', %w(paragraphs headings lists images))
102
+ end
103
+
104
+ def test_000024
105
+ assert_output('end2end-000024', %w(links images))
106
+ end
107
+
108
+ def test_000025
109
+ assert_output('end2end-000025', %w(paragraphs links images))
110
+ end
111
+
112
+ def test_000026
113
+ assert_output('end2end-000026', %w(headings links images))
114
+ end
115
+
116
+ def test_000027
117
+ assert_output('end2end-000027', %w(paragraphs headings links images))
118
+ end
119
+
120
+ def test_000028
121
+ assert_output('end2end-000028', %w(lists links images))
122
+ end
123
+
124
+ def test_000029
125
+ assert_output('end2end-000029', %w(paragraphs lists links images))
126
+ end
127
+
128
+ def test_000030
129
+ assert_output('end2end-000030', %w(headings lists links images))
130
+ end
131
+
132
+ def test_000031
133
+ assert_output('end2end-000031', %w(paragraphs headings lists links images))
134
+ end
135
+
136
+ def test_000032
137
+ assert_output('end2end-000032', %w(formatting))
138
+ end
139
+
140
+ def test_000033
141
+ assert_output('end2end-000033', %w(paragraphs formatting))
142
+ end
143
+
144
+ def test_000034
145
+ assert_output('end2end-000034', %w(headings formatting))
146
+ end
147
+
148
+ def test_000035
149
+ assert_output('end2end-000035', %w(paragraphs headings formatting))
150
+ end
151
+
152
+ def test_000036
153
+ assert_output('end2end-000036', %w(lists formatting))
154
+ end
155
+
156
+ def test_000037
157
+ assert_output('end2end-000037', %w(paragraphs lists formatting))
158
+ end
159
+
160
+ def test_000038
161
+ assert_output('end2end-000038', %w(headings lists formatting))
162
+ end
163
+
164
+ def test_000039
165
+ assert_output('end2end-000039', %w(paragraphs headings lists formatting))
166
+ end
167
+
168
+ def test_000040
169
+ assert_output('end2end-000040', %w(links formatting))
170
+ end
171
+
172
+ def test_000041
173
+ assert_output('end2end-000041', %w(paragraphs links formatting))
174
+ end
175
+
176
+ def test_000042
177
+ assert_output('end2end-000042', %w(headings links formatting))
178
+ end
179
+
180
+ def test_000043
181
+ assert_output('end2end-000043', %w(paragraphs headings links formatting))
182
+ end
183
+
184
+ def test_000044
185
+ assert_output('end2end-000044', %w(lists links formatting))
186
+ end
187
+
188
+ def test_000045
189
+ assert_output('end2end-000045', %w(paragraphs lists links formatting))
190
+ end
191
+
192
+ def test_000046
193
+ assert_output('end2end-000046', %w(headings lists links formatting))
194
+ end
195
+
196
+ def test_000047
197
+ assert_output('end2end-000047', %w(paragraphs headings lists links formatting))
198
+ end
199
+
200
+ def test_000048
201
+ assert_output('end2end-000048', %w(images formatting))
202
+ end
203
+
204
+ def test_000049
205
+ assert_output('end2end-000049', %w(paragraphs images formatting))
206
+ end
207
+
208
+ def test_000050
209
+ assert_output('end2end-000050', %w(headings images formatting))
210
+ end
211
+
212
+ def test_000051
213
+ assert_output('end2end-000051', %w(paragraphs headings images formatting))
214
+ end
215
+
216
+ def test_000052
217
+ assert_output('end2end-000052', %w(lists images formatting))
218
+ end
219
+
220
+ def test_000053
221
+ assert_output('end2end-000053', %w(paragraphs lists images formatting))
222
+ end
223
+
224
+ def test_000054
225
+ assert_output('end2end-000054', %w(headings lists images formatting))
226
+ end
227
+
228
+ def test_000055
229
+ assert_output('end2end-000055', %w(paragraphs headings lists images formatting))
230
+ end
231
+
232
+ def test_000056
233
+ assert_output('end2end-000056', %w(links images formatting))
234
+ end
235
+
236
+ def test_000057
237
+ assert_output('end2end-000057', %w(paragraphs links images formatting))
238
+ end
239
+
240
+ def test_000058
241
+ assert_output('end2end-000058', %w(headings links images formatting))
242
+ end
243
+
244
+ def test_000059
245
+ assert_output('end2end-000059', %w(paragraphs headings links images formatting))
246
+ end
247
+
248
+ def test_000060
249
+ assert_output('end2end-000060', %w(lists links images formatting))
250
+ end
251
+
252
+ def test_000061
253
+ assert_output('end2end-000061', %w(paragraphs lists links images formatting))
254
+ end
255
+
256
+ def test_000062
257
+ assert_output('end2end-000062', %w(headings lists links images formatting))
258
+ end
259
+
260
+ def test_000063
261
+ assert_output('end2end-000063', %w(paragraphs headings lists links images formatting))
262
+ end
263
+
264
+ def test_000064
265
+ assert_output('end2end-000064', %w(blockquotes))
266
+ end
267
+
268
+ def test_000065
269
+ assert_output('end2end-000065', %w(paragraphs blockquotes))
270
+ end
271
+
272
+ def test_000066
273
+ assert_output('end2end-000066', %w(headings blockquotes))
274
+ end
275
+
276
+ def test_000067
277
+ assert_output('end2end-000067', %w(paragraphs headings blockquotes))
278
+ end
279
+
280
+ def test_000068
281
+ assert_output('end2end-000068', %w(lists blockquotes))
282
+ end
283
+
284
+ def test_000069
285
+ assert_output('end2end-000069', %w(paragraphs lists blockquotes))
286
+ end
287
+
288
+ def test_000070
289
+ assert_output('end2end-000070', %w(headings lists blockquotes))
290
+ end
291
+
292
+ def test_000071
293
+ assert_output('end2end-000071', %w(paragraphs headings lists blockquotes))
294
+ end
295
+
296
+ def test_000072
297
+ assert_output('end2end-000072', %w(links blockquotes))
298
+ end
299
+
300
+ def test_000073
301
+ assert_output('end2end-000073', %w(paragraphs links blockquotes))
302
+ end
303
+
304
+ def test_000074
305
+ assert_output('end2end-000074', %w(headings links blockquotes))
306
+ end
307
+
308
+ def test_000075
309
+ assert_output('end2end-000075', %w(paragraphs headings links blockquotes))
310
+ end
311
+
312
+ def test_000076
313
+ assert_output('end2end-000076', %w(lists links blockquotes))
314
+ end
315
+
316
+ def test_000077
317
+ assert_output('end2end-000077', %w(paragraphs lists links blockquotes))
318
+ end
319
+
320
+ def test_000078
321
+ assert_output('end2end-000078', %w(headings lists links blockquotes))
322
+ end
323
+
324
+ def test_000079
325
+ assert_output('end2end-000079', %w(paragraphs headings lists links blockquotes))
326
+ end
327
+
328
+ def test_000080
329
+ assert_output('end2end-000080', %w(images blockquotes))
330
+ end
331
+
332
+ def test_000081
333
+ assert_output('end2end-000081', %w(paragraphs images blockquotes))
334
+ end
335
+
336
+ def test_000082
337
+ assert_output('end2end-000082', %w(headings images blockquotes))
338
+ end
339
+
340
+ def test_000083
341
+ assert_output('end2end-000083', %w(paragraphs headings images blockquotes))
342
+ end
343
+
344
+ def test_000084
345
+ assert_output('end2end-000084', %w(lists images blockquotes))
346
+ end
347
+
348
+ def test_000085
349
+ assert_output('end2end-000085', %w(paragraphs lists images blockquotes))
350
+ end
351
+
352
+ def test_000086
353
+ assert_output('end2end-000086', %w(headings lists images blockquotes))
354
+ end
355
+
356
+ def test_000087
357
+ assert_output('end2end-000087', %w(paragraphs headings lists images blockquotes))
358
+ end
359
+
360
+ def test_000088
361
+ assert_output('end2end-000088', %w(links images blockquotes))
362
+ end
363
+
364
+ def test_000089
365
+ assert_output('end2end-000089', %w(paragraphs links images blockquotes))
366
+ end
367
+
368
+ def test_000090
369
+ assert_output('end2end-000090', %w(headings links images blockquotes))
370
+ end
371
+
372
+ def test_000091
373
+ assert_output('end2end-000091', %w(paragraphs headings links images blockquotes))
374
+ end
375
+
376
+ def test_000092
377
+ assert_output('end2end-000092', %w(lists links images blockquotes))
378
+ end
379
+
380
+ def test_000093
381
+ assert_output('end2end-000093', %w(paragraphs lists links images blockquotes))
382
+ end
383
+
384
+ def test_000094
385
+ assert_output('end2end-000094', %w(headings lists links images blockquotes))
386
+ end
387
+
388
+ def test_000095
389
+ assert_output('end2end-000095', %w(paragraphs headings lists links images blockquotes))
390
+ end
391
+
392
+ def test_000096
393
+ assert_output('end2end-000096', %w(formatting blockquotes))
394
+ end
395
+
396
+ def test_000097
397
+ assert_output('end2end-000097', %w(paragraphs formatting blockquotes))
398
+ end
399
+
400
+ def test_000098
401
+ assert_output('end2end-000098', %w(headings formatting blockquotes))
402
+ end
403
+
404
+ def test_000099
405
+ assert_output('end2end-000099', %w(paragraphs headings formatting blockquotes))
406
+ end
407
+
408
+ def test_000100
409
+ assert_output('end2end-000100', %w(lists formatting blockquotes))
410
+ end
411
+
412
+ def test_000101
413
+ assert_output('end2end-000101', %w(paragraphs lists formatting blockquotes))
414
+ end
415
+
416
+ def test_000102
417
+ assert_output('end2end-000102', %w(headings lists formatting blockquotes))
418
+ end
419
+
420
+ def test_000103
421
+ assert_output('end2end-000103', %w(paragraphs headings lists formatting blockquotes))
422
+ end
423
+
424
+ def test_000104
425
+ assert_output('end2end-000104', %w(links formatting blockquotes))
426
+ end
427
+
428
+ def test_000105
429
+ assert_output('end2end-000105', %w(paragraphs links formatting blockquotes))
430
+ end
431
+
432
+ def test_000106
433
+ assert_output('end2end-000106', %w(headings links formatting blockquotes))
434
+ end
435
+
436
+ def test_000107
437
+ assert_output('end2end-000107', %w(paragraphs headings links formatting blockquotes))
438
+ end
439
+
440
+ def test_000108
441
+ assert_output('end2end-000108', %w(lists links formatting blockquotes))
442
+ end
443
+
444
+ def test_000109
445
+ assert_output('end2end-000109', %w(paragraphs lists links formatting blockquotes))
446
+ end
447
+
448
+ def test_000110
449
+ assert_output('end2end-000110', %w(headings lists links formatting blockquotes))
450
+ end
451
+
452
+ def test_000111
453
+ assert_output('end2end-000111', %w(paragraphs headings lists links formatting blockquotes))
454
+ end
455
+
456
+ def test_000112
457
+ assert_output('end2end-000112', %w(images formatting blockquotes))
458
+ end
459
+
460
+ def test_000113
461
+ assert_output('end2end-000113', %w(paragraphs images formatting blockquotes))
462
+ end
463
+
464
+ def test_000114
465
+ assert_output('end2end-000114', %w(headings images formatting blockquotes))
466
+ end
467
+
468
+ def test_000115
469
+ assert_output('end2end-000115', %w(paragraphs headings images formatting blockquotes))
470
+ end
471
+
472
+ def test_000116
473
+ assert_output('end2end-000116', %w(lists images formatting blockquotes))
474
+ end
475
+
476
+ def test_000117
477
+ assert_output('end2end-000117', %w(paragraphs lists images formatting blockquotes))
478
+ end
479
+
480
+ def test_000118
481
+ assert_output('end2end-000118', %w(headings lists images formatting blockquotes))
482
+ end
483
+
484
+ def test_000119
485
+ assert_output('end2end-000119', %w(paragraphs headings lists images formatting blockquotes))
486
+ end
487
+
488
+ def test_000120
489
+ assert_output('end2end-000120', %w(links images formatting blockquotes))
490
+ end
491
+
492
+ def test_000121
493
+ assert_output('end2end-000121', %w(paragraphs links images formatting blockquotes))
494
+ end
495
+
496
+ def test_000122
497
+ assert_output('end2end-000122', %w(headings links images formatting blockquotes))
498
+ end
499
+
500
+ def test_000123
501
+ assert_output('end2end-000123', %w(paragraphs headings links images formatting blockquotes))
502
+ end
503
+
504
+ def test_000124
505
+ assert_output('end2end-000124', %w(lists links images formatting blockquotes))
506
+ end
507
+
508
+ def test_000125
509
+ assert_output('end2end-000125', %w(paragraphs lists links images formatting blockquotes))
510
+ end
511
+
512
+ def test_000126
513
+ assert_output('end2end-000126', %w(headings lists links images formatting blockquotes))
514
+ end
515
+
516
+ def test_000127
517
+ assert_output('end2end-000127', %w(paragraphs headings lists links images formatting blockquotes))
518
+ end
519
+
520
+ def test_000128
521
+ assert_output('end2end-000128', %w(code))
522
+ end
523
+
524
+ def test_000129
525
+ assert_output('end2end-000129', %w(paragraphs code))
526
+ end
527
+
528
+ def test_000130
529
+ assert_output('end2end-000130', %w(headings code))
530
+ end
531
+
532
+ def test_000131
533
+ assert_output('end2end-000131', %w(paragraphs headings code))
534
+ end
535
+
536
+ def test_000132
537
+ assert_output('end2end-000132', %w(lists code))
538
+ end
539
+
540
+ def test_000133
541
+ assert_output('end2end-000133', %w(paragraphs lists code))
542
+ end
543
+
544
+ def test_000134
545
+ assert_output('end2end-000134', %w(headings lists code))
546
+ end
547
+
548
+ def test_000135
549
+ assert_output('end2end-000135', %w(paragraphs headings lists code))
550
+ end
551
+
552
+ def test_000136
553
+ assert_output('end2end-000136', %w(links code))
554
+ end
555
+
556
+ def test_000137
557
+ assert_output('end2end-000137', %w(paragraphs links code))
558
+ end
559
+
560
+ def test_000138
561
+ assert_output('end2end-000138', %w(headings links code))
562
+ end
563
+
564
+ def test_000139
565
+ assert_output('end2end-000139', %w(paragraphs headings links code))
566
+ end
567
+
568
+ def test_000140
569
+ assert_output('end2end-000140', %w(lists links code))
570
+ end
571
+
572
+ def test_000141
573
+ assert_output('end2end-000141', %w(paragraphs lists links code))
574
+ end
575
+
576
+ def test_000142
577
+ assert_output('end2end-000142', %w(headings lists links code))
578
+ end
579
+
580
+ def test_000143
581
+ assert_output('end2end-000143', %w(paragraphs headings lists links code))
582
+ end
583
+
584
+ def test_000144
585
+ assert_output('end2end-000144', %w(images code))
586
+ end
587
+
588
+ def test_000145
589
+ assert_output('end2end-000145', %w(paragraphs images code))
590
+ end
591
+
592
+ def test_000146
593
+ assert_output('end2end-000146', %w(headings images code))
594
+ end
595
+
596
+ def test_000147
597
+ assert_output('end2end-000147', %w(paragraphs headings images code))
598
+ end
599
+
600
+ def test_000148
601
+ assert_output('end2end-000148', %w(lists images code))
602
+ end
603
+
604
+ def test_000149
605
+ assert_output('end2end-000149', %w(paragraphs lists images code))
606
+ end
607
+
608
+ def test_000150
609
+ assert_output('end2end-000150', %w(headings lists images code))
610
+ end
611
+
612
+ def test_000151
613
+ assert_output('end2end-000151', %w(paragraphs headings lists images code))
614
+ end
615
+
616
+ def test_000152
617
+ assert_output('end2end-000152', %w(links images code))
618
+ end
619
+
620
+ def test_000153
621
+ assert_output('end2end-000153', %w(paragraphs links images code))
622
+ end
623
+
624
+ def test_000154
625
+ assert_output('end2end-000154', %w(headings links images code))
626
+ end
627
+
628
+ def test_000155
629
+ assert_output('end2end-000155', %w(paragraphs headings links images code))
630
+ end
631
+
632
+ def test_000156
633
+ assert_output('end2end-000156', %w(lists links images code))
634
+ end
635
+
636
+ def test_000157
637
+ assert_output('end2end-000157', %w(paragraphs lists links images code))
638
+ end
639
+
640
+ def test_000158
641
+ assert_output('end2end-000158', %w(headings lists links images code))
642
+ end
643
+
644
+ def test_000159
645
+ assert_output('end2end-000159', %w(paragraphs headings lists links images code))
646
+ end
647
+
648
+ def test_000160
649
+ assert_output('end2end-000160', %w(formatting code))
650
+ end
651
+
652
+ def test_000161
653
+ assert_output('end2end-000161', %w(paragraphs formatting code))
654
+ end
655
+
656
+ def test_000162
657
+ assert_output('end2end-000162', %w(headings formatting code))
658
+ end
659
+
660
+ def test_000163
661
+ assert_output('end2end-000163', %w(paragraphs headings formatting code))
662
+ end
663
+
664
+ def test_000164
665
+ assert_output('end2end-000164', %w(lists formatting code))
666
+ end
667
+
668
+ def test_000165
669
+ assert_output('end2end-000165', %w(paragraphs lists formatting code))
670
+ end
671
+
672
+ def test_000166
673
+ assert_output('end2end-000166', %w(headings lists formatting code))
674
+ end
675
+
676
+ def test_000167
677
+ assert_output('end2end-000167', %w(paragraphs headings lists formatting code))
678
+ end
679
+
680
+ def test_000168
681
+ assert_output('end2end-000168', %w(links formatting code))
682
+ end
683
+
684
+ def test_000169
685
+ assert_output('end2end-000169', %w(paragraphs links formatting code))
686
+ end
687
+
688
+ def test_000170
689
+ assert_output('end2end-000170', %w(headings links formatting code))
690
+ end
691
+
692
+ def test_000171
693
+ assert_output('end2end-000171', %w(paragraphs headings links formatting code))
694
+ end
695
+
696
+ def test_000172
697
+ assert_output('end2end-000172', %w(lists links formatting code))
698
+ end
699
+
700
+ def test_000173
701
+ assert_output('end2end-000173', %w(paragraphs lists links formatting code))
702
+ end
703
+
704
+ def test_000174
705
+ assert_output('end2end-000174', %w(headings lists links formatting code))
706
+ end
707
+
708
+ def test_000175
709
+ assert_output('end2end-000175', %w(paragraphs headings lists links formatting code))
710
+ end
711
+
712
+ def test_000176
713
+ assert_output('end2end-000176', %w(images formatting code))
714
+ end
715
+
716
+ def test_000177
717
+ assert_output('end2end-000177', %w(paragraphs images formatting code))
718
+ end
719
+
720
+ def test_000178
721
+ assert_output('end2end-000178', %w(headings images formatting code))
722
+ end
723
+
724
+ def test_000179
725
+ assert_output('end2end-000179', %w(paragraphs headings images formatting code))
726
+ end
727
+
728
+ def test_000180
729
+ assert_output('end2end-000180', %w(lists images formatting code))
730
+ end
731
+
732
+ def test_000181
733
+ assert_output('end2end-000181', %w(paragraphs lists images formatting code))
734
+ end
735
+
736
+ def test_000182
737
+ assert_output('end2end-000182', %w(headings lists images formatting code))
738
+ end
739
+
740
+ def test_000183
741
+ assert_output('end2end-000183', %w(paragraphs headings lists images formatting code))
742
+ end
743
+
744
+ def test_000184
745
+ assert_output('end2end-000184', %w(links images formatting code))
746
+ end
747
+
748
+ def test_000185
749
+ assert_output('end2end-000185', %w(paragraphs links images formatting code))
750
+ end
751
+
752
+ def test_000186
753
+ assert_output('end2end-000186', %w(headings links images formatting code))
754
+ end
755
+
756
+ def test_000187
757
+ assert_output('end2end-000187', %w(paragraphs headings links images formatting code))
758
+ end
759
+
760
+ def test_000188
761
+ assert_output('end2end-000188', %w(lists links images formatting code))
762
+ end
763
+
764
+ def test_000189
765
+ assert_output('end2end-000189', %w(paragraphs lists links images formatting code))
766
+ end
767
+
768
+ def test_000190
769
+ assert_output('end2end-000190', %w(headings lists links images formatting code))
770
+ end
771
+
772
+ def test_000191
773
+ assert_output('end2end-000191', %w(paragraphs headings lists links images formatting code))
774
+ end
775
+
776
+ def test_000192
777
+ assert_output('end2end-000192', %w(blockquotes code))
778
+ end
779
+
780
+ def test_000193
781
+ assert_output('end2end-000193', %w(paragraphs blockquotes code))
782
+ end
783
+
784
+ def test_000194
785
+ assert_output('end2end-000194', %w(headings blockquotes code))
786
+ end
787
+
788
+ def test_000195
789
+ assert_output('end2end-000195', %w(paragraphs headings blockquotes code))
790
+ end
791
+
792
+ def test_000196
793
+ assert_output('end2end-000196', %w(lists blockquotes code))
794
+ end
795
+
796
+ def test_000197
797
+ assert_output('end2end-000197', %w(paragraphs lists blockquotes code))
798
+ end
799
+
800
+ def test_000198
801
+ assert_output('end2end-000198', %w(headings lists blockquotes code))
802
+ end
803
+
804
+ def test_000199
805
+ assert_output('end2end-000199', %w(paragraphs headings lists blockquotes code))
806
+ end
807
+
808
+ def test_000200
809
+ assert_output('end2end-000200', %w(links blockquotes code))
810
+ end
811
+
812
+ def test_000201
813
+ assert_output('end2end-000201', %w(paragraphs links blockquotes code))
814
+ end
815
+
816
+ def test_000202
817
+ assert_output('end2end-000202', %w(headings links blockquotes code))
818
+ end
819
+
820
+ def test_000203
821
+ assert_output('end2end-000203', %w(paragraphs headings links blockquotes code))
822
+ end
823
+
824
+ def test_000204
825
+ assert_output('end2end-000204', %w(lists links blockquotes code))
826
+ end
827
+
828
+ def test_000205
829
+ assert_output('end2end-000205', %w(paragraphs lists links blockquotes code))
830
+ end
831
+
832
+ def test_000206
833
+ assert_output('end2end-000206', %w(headings lists links blockquotes code))
834
+ end
835
+
836
+ def test_000207
837
+ assert_output('end2end-000207', %w(paragraphs headings lists links blockquotes code))
838
+ end
839
+
840
+ def test_000208
841
+ assert_output('end2end-000208', %w(images blockquotes code))
842
+ end
843
+
844
+ def test_000209
845
+ assert_output('end2end-000209', %w(paragraphs images blockquotes code))
846
+ end
847
+
848
+ def test_000210
849
+ assert_output('end2end-000210', %w(headings images blockquotes code))
850
+ end
851
+
852
+ def test_000211
853
+ assert_output('end2end-000211', %w(paragraphs headings images blockquotes code))
854
+ end
855
+
856
+ def test_000212
857
+ assert_output('end2end-000212', %w(lists images blockquotes code))
858
+ end
859
+
860
+ def test_000213
861
+ assert_output('end2end-000213', %w(paragraphs lists images blockquotes code))
862
+ end
863
+
864
+ def test_000214
865
+ assert_output('end2end-000214', %w(headings lists images blockquotes code))
866
+ end
867
+
868
+ def test_000215
869
+ assert_output('end2end-000215', %w(paragraphs headings lists images blockquotes code))
870
+ end
871
+
872
+ def test_000216
873
+ assert_output('end2end-000216', %w(links images blockquotes code))
874
+ end
875
+
876
+ def test_000217
877
+ assert_output('end2end-000217', %w(paragraphs links images blockquotes code))
878
+ end
879
+
880
+ def test_000218
881
+ assert_output('end2end-000218', %w(headings links images blockquotes code))
882
+ end
883
+
884
+ def test_000219
885
+ assert_output('end2end-000219', %w(paragraphs headings links images blockquotes code))
886
+ end
887
+
888
+ def test_000220
889
+ assert_output('end2end-000220', %w(lists links images blockquotes code))
890
+ end
891
+
892
+ def test_000221
893
+ assert_output('end2end-000221', %w(paragraphs lists links images blockquotes code))
894
+ end
895
+
896
+ def test_000222
897
+ assert_output('end2end-000222', %w(headings lists links images blockquotes code))
898
+ end
899
+
900
+ def test_000223
901
+ assert_output('end2end-000223', %w(paragraphs headings lists links images blockquotes code))
902
+ end
903
+
904
+ def test_000224
905
+ assert_output('end2end-000224', %w(formatting blockquotes code))
906
+ end
907
+
908
+ def test_000225
909
+ assert_output('end2end-000225', %w(paragraphs formatting blockquotes code))
910
+ end
911
+
912
+ def test_000226
913
+ assert_output('end2end-000226', %w(headings formatting blockquotes code))
914
+ end
915
+
916
+ def test_000227
917
+ assert_output('end2end-000227', %w(paragraphs headings formatting blockquotes code))
918
+ end
919
+
920
+ def test_000228
921
+ assert_output('end2end-000228', %w(lists formatting blockquotes code))
922
+ end
923
+
924
+ def test_000229
925
+ assert_output('end2end-000229', %w(paragraphs lists formatting blockquotes code))
926
+ end
927
+
928
+ def test_000230
929
+ assert_output('end2end-000230', %w(headings lists formatting blockquotes code))
930
+ end
931
+
932
+ def test_000231
933
+ assert_output('end2end-000231', %w(paragraphs headings lists formatting blockquotes code))
934
+ end
935
+
936
+ def test_000232
937
+ assert_output('end2end-000232', %w(links formatting blockquotes code))
938
+ end
939
+
940
+ def test_000233
941
+ assert_output('end2end-000233', %w(paragraphs links formatting blockquotes code))
942
+ end
943
+
944
+ def test_000234
945
+ assert_output('end2end-000234', %w(headings links formatting blockquotes code))
946
+ end
947
+
948
+ def test_000235
949
+ assert_output('end2end-000235', %w(paragraphs headings links formatting blockquotes code))
950
+ end
951
+
952
+ def test_000236
953
+ assert_output('end2end-000236', %w(lists links formatting blockquotes code))
954
+ end
955
+
956
+ def test_000237
957
+ assert_output('end2end-000237', %w(paragraphs lists links formatting blockquotes code))
958
+ end
959
+
960
+ def test_000238
961
+ assert_output('end2end-000238', %w(headings lists links formatting blockquotes code))
962
+ end
963
+
964
+ def test_000239
965
+ assert_output('end2end-000239', %w(paragraphs headings lists links formatting blockquotes code))
966
+ end
967
+
968
+ def test_000240
969
+ assert_output('end2end-000240', %w(images formatting blockquotes code))
970
+ end
971
+
972
+ def test_000241
973
+ assert_output('end2end-000241', %w(paragraphs images formatting blockquotes code))
974
+ end
975
+
976
+ def test_000242
977
+ assert_output('end2end-000242', %w(headings images formatting blockquotes code))
978
+ end
979
+
980
+ def test_000243
981
+ assert_output('end2end-000243', %w(paragraphs headings images formatting blockquotes code))
982
+ end
983
+
984
+ def test_000244
985
+ assert_output('end2end-000244', %w(lists images formatting blockquotes code))
986
+ end
987
+
988
+ def test_000245
989
+ assert_output('end2end-000245', %w(paragraphs lists images formatting blockquotes code))
990
+ end
991
+
992
+ def test_000246
993
+ assert_output('end2end-000246', %w(headings lists images formatting blockquotes code))
994
+ end
995
+
996
+ def test_000247
997
+ assert_output('end2end-000247', %w(paragraphs headings lists images formatting blockquotes code))
998
+ end
999
+
1000
+ def test_000248
1001
+ assert_output('end2end-000248', %w(links images formatting blockquotes code))
1002
+ end
1003
+
1004
+ def test_000249
1005
+ assert_output('end2end-000249', %w(paragraphs links images formatting blockquotes code))
1006
+ end
1007
+
1008
+ def test_000250
1009
+ assert_output('end2end-000250', %w(headings links images formatting blockquotes code))
1010
+ end
1011
+
1012
+ def test_000251
1013
+ assert_output('end2end-000251', %w(paragraphs headings links images formatting blockquotes code))
1014
+ end
1015
+
1016
+ def test_000252
1017
+ assert_output('end2end-000252', %w(lists links images formatting blockquotes code))
1018
+ end
1019
+
1020
+ def test_000253
1021
+ assert_output('end2end-000253', %w(paragraphs lists links images formatting blockquotes code))
1022
+ end
1023
+
1024
+ def test_000254
1025
+ assert_output('end2end-000254', %w(headings lists links images formatting blockquotes code))
1026
+ end
1027
+
1028
+ def test_000255
1029
+ assert_output('end2end-000255', %w(paragraphs headings lists links images formatting blockquotes code))
1030
+ end
1031
+
1032
+ def assert_output(file, modules)
1033
+ kd = File.read("#{TEST_DIR}/input/end2end.kd")
1034
+ html = File.read("#{TEST_DIR}/output/xml/end2end/#{file}.xml")
1035
+
1036
+ parser = Koara::Parser.new
1037
+
1038
+ parser.modules = modules
1039
+
1040
+ document = parser.parse_file(File.new("#{TEST_DIR}/input/end2end.kd"))
1041
+ renderer = Koara::Xml::XmlRenderer.new
1042
+ document.accept(renderer)
1043
+
1044
+ assert_equal(html, renderer.output)
1045
+
1046
+ end
1047
+
1048
+ end