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