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