metanorma-iso 1.6.0 → 1.6.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +17 -0
- data/lib/asciidoctor/iso/isodoc.rng +26 -3
- data/lib/asciidoctor/iso/isostandard-amd.rng +8 -4
- data/lib/asciidoctor/iso/isostandard.rng +16 -10
- data/lib/asciidoctor/iso/validate.rb +12 -0
- data/lib/asciidoctor/iso/validate_section.rb +12 -9
- data/lib/isodoc/iso/iso.amendment.xsl +18 -2
- data/lib/isodoc/iso/iso.international-standard.xsl +18 -2
- data/lib/isodoc/iso/sections.rb +1 -1
- data/lib/isodoc/iso/xref.rb +28 -12
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- data/spec/asciidoctor-iso/amd_spec.rb +14 -14
- data/spec/asciidoctor-iso/base_spec.rb +16 -16
- data/spec/asciidoctor-iso/blocks_spec.rb +21 -21
- data/spec/asciidoctor-iso/cleanup_spec.rb +25 -25
- data/spec/asciidoctor-iso/inline_spec.rb +7 -7
- data/spec/asciidoctor-iso/lists_spec.rb +3 -3
- data/spec/asciidoctor-iso/refs_spec.rb +4 -4
- data/spec/asciidoctor-iso/section_spec.rb +7 -7
- data/spec/asciidoctor-iso/table_spec.rb +4 -4
- data/spec/asciidoctor-iso/validate_spec.rb +384 -85
- data/spec/isodoc/amd_spec.rb +13 -13
- metadata +4 -4
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Asciidoctor::ISO do
|
4
4
|
it "removes empty text elements" do
|
5
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
5
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
7
7
|
== {blank}
|
8
8
|
INPUT
|
@@ -17,7 +17,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it "processes stem-only terms as admitted" do
|
20
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
20
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
21
21
|
#{ASCIIDOC_BLANK_HDR}
|
22
22
|
== Terms and Definitions
|
23
23
|
|
@@ -53,7 +53,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
it "moves term domains out of the term definition paragraph" do
|
56
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
56
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
57
57
|
#{ASCIIDOC_BLANK_HDR}
|
58
58
|
== Terms and Definitions
|
59
59
|
|
@@ -77,7 +77,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
77
77
|
end
|
78
78
|
|
79
79
|
it "permits multiple blocks in term definition paragraph" do
|
80
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
80
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
81
81
|
= Document title
|
82
82
|
Author
|
83
83
|
:docfile: test.adoc
|
@@ -125,7 +125,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
125
125
|
end
|
126
126
|
|
127
127
|
it "keeps any initial boilerplate from terms and definitions" do
|
128
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
128
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
129
129
|
#{ASCIIDOC_BLANK_HDR}
|
130
130
|
== Terms and Definitions
|
131
131
|
|
@@ -158,7 +158,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
158
158
|
end
|
159
159
|
|
160
160
|
it "moves notes inside preceding blocks, if they are not at clause end, and the blocks are not delimited" do
|
161
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
161
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
162
162
|
#{ASCIIDOC_BLANK_HDR}
|
163
163
|
[stem]
|
164
164
|
++++
|
@@ -183,7 +183,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
183
183
|
end
|
184
184
|
|
185
185
|
it "does not move notes inside preceding blocks, if they are at clause end" do
|
186
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
186
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
187
187
|
#{ASCIIDOC_BLANK_HDR}
|
188
188
|
[source,ruby]
|
189
189
|
[1...x].each do |y|
|
@@ -204,7 +204,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
204
204
|
end
|
205
205
|
|
206
206
|
it "converts xrefs to references into erefs" do
|
207
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
207
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
208
208
|
#{ASCIIDOC_BLANK_HDR}
|
209
209
|
<<iso216>>
|
210
210
|
|
@@ -244,7 +244,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
244
244
|
end
|
245
245
|
|
246
246
|
it "extracts localities from erefs" do
|
247
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
247
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
248
248
|
#{ASCIIDOC_BLANK_HDR}
|
249
249
|
<<iso216,whole,clause=3,example=9-11,locality:prelude=33,locality:entirety:the reference>>
|
250
250
|
|
@@ -285,7 +285,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
285
285
|
|
286
286
|
|
287
287
|
it "strips type from xrefs" do
|
288
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
288
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
289
289
|
#{ASCIIDOC_BLANK_HDR}
|
290
290
|
<<iso216>>
|
291
291
|
|
@@ -321,7 +321,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
321
321
|
end
|
322
322
|
|
323
323
|
it "processes localities in term sources" do
|
324
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
324
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
325
325
|
#{ASCIIDOC_BLANK_HDR}
|
326
326
|
== Terms and Definitions
|
327
327
|
|
@@ -352,7 +352,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
352
352
|
end
|
353
353
|
|
354
354
|
it "removes extraneous material from Normative References" do
|
355
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
355
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
356
356
|
#{ASCIIDOC_BLANK_HDR}
|
357
357
|
[bibliography]
|
358
358
|
== Normative References
|
@@ -384,7 +384,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
384
384
|
end
|
385
385
|
|
386
386
|
it "inserts IDs into paragraphs" do
|
387
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
387
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
388
388
|
#{ASCIIDOC_BLANK_HDR}
|
389
389
|
Paragraph
|
390
390
|
INPUT
|
@@ -397,7 +397,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
397
397
|
end
|
398
398
|
|
399
399
|
it "inserts IDs into notes" do
|
400
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
400
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
401
401
|
#{ASCIIDOC_BLANK_HDR}
|
402
402
|
[example]
|
403
403
|
====
|
@@ -417,7 +417,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
417
417
|
end
|
418
418
|
|
419
419
|
it "moves table key inside table" do
|
420
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
420
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
421
421
|
#{ASCIIDOC_BLANK_HDR}
|
422
422
|
|===
|
423
423
|
|a |b |c
|
@@ -449,7 +449,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
449
449
|
end
|
450
450
|
|
451
451
|
it "processes headerrows attribute for table without header rows" do
|
452
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
452
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
453
453
|
#{ASCIIDOC_BLANK_HDR}
|
454
454
|
[headerrows=3]
|
455
455
|
|===
|
@@ -488,7 +488,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
488
488
|
end
|
489
489
|
|
490
490
|
it "processes headerrows attribute for table with header rows" do
|
491
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
491
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
492
492
|
#{ASCIIDOC_BLANK_HDR}
|
493
493
|
[headerrows=3]
|
494
494
|
|===
|
@@ -533,7 +533,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
533
533
|
end
|
534
534
|
|
535
535
|
it "moves table notes inside table" do
|
536
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
536
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
537
537
|
#{ASCIIDOC_BLANK_HDR}
|
538
538
|
|===
|
539
539
|
|a |b |c
|
@@ -564,7 +564,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
564
564
|
end
|
565
565
|
|
566
566
|
it "moves formula key inside formula" do
|
567
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
567
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
568
568
|
#{ASCIIDOC_BLANK_HDR}
|
569
569
|
[stem]
|
570
570
|
++++
|
@@ -591,7 +591,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
591
591
|
end
|
592
592
|
|
593
593
|
it "moves footnotes inside figures" do
|
594
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
594
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
595
595
|
#{ASCIIDOC_BLANK_HDR}
|
596
596
|
image::spec/examples/rice_images/rice_image1.png[]
|
597
597
|
|
@@ -615,7 +615,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
615
615
|
end
|
616
616
|
|
617
617
|
it "moves figure key inside figure" do
|
618
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
618
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
619
619
|
#{ASCIIDOC_BLANK_HDR}
|
620
620
|
image::spec/examples/rice_images/rice_image1.png[]
|
621
621
|
|
@@ -640,7 +640,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
640
640
|
end
|
641
641
|
|
642
642
|
it "numbers bibliographic notes and footnotes sequentially" do
|
643
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
643
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
644
644
|
#{ASCIIDOC_BLANK_HDR}
|
645
645
|
footnote:[Footnote]
|
646
646
|
|
@@ -693,7 +693,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
693
693
|
end
|
694
694
|
|
695
695
|
it "defaults section obligations" do
|
696
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
696
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
697
697
|
#{ASCIIDOC_BLANK_HDR}
|
698
698
|
|
699
699
|
== Clause
|
@@ -718,7 +718,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
718
718
|
end
|
719
719
|
|
720
720
|
it "extends clause levels past 5" do
|
721
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
721
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
722
722
|
#{ASCIIDOC_BLANK_HDR}
|
723
723
|
|
724
724
|
== Clause1
|
@@ -781,7 +781,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
781
781
|
end
|
782
782
|
|
783
783
|
it "reorders references in bibliography, and renumbers citations accordingly" do
|
784
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
784
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
785
785
|
#{ASCIIDOC_BLANK_HDR}
|
786
786
|
|
787
787
|
== Clause 1
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Asciidoctor::ISO do
|
4
4
|
it "processes inline_quoted formatting" do
|
5
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
5
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
7
7
|
_emphasis_
|
8
8
|
*strong*
|
@@ -47,7 +47,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "processes breaks" do
|
50
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
50
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
51
51
|
#{ASCIIDOC_BLANK_HDR}
|
52
52
|
Line break +
|
53
53
|
line break
|
@@ -66,7 +66,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
66
66
|
end
|
67
67
|
|
68
68
|
it "processes links" do
|
69
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
69
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
70
70
|
#{ASCIIDOC_BLANK_HDR}
|
71
71
|
mailto:fred@example.com
|
72
72
|
http://example.com[]
|
@@ -83,7 +83,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
83
83
|
end
|
84
84
|
|
85
85
|
it "processes bookmarks" do
|
86
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
86
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
87
87
|
#{ASCIIDOC_BLANK_HDR}
|
88
88
|
Text [[bookmark]] Text
|
89
89
|
INPUT
|
@@ -96,7 +96,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
96
96
|
end
|
97
97
|
|
98
98
|
it "processes crossreferences" do
|
99
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
99
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
100
100
|
#{ASCIIDOC_BLANK_HDR}
|
101
101
|
[[reference]]
|
102
102
|
== Section
|
@@ -121,7 +121,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
121
121
|
end
|
122
122
|
|
123
123
|
it "processes bibliographic anchors" do
|
124
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
124
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
125
125
|
#{ASCIIDOC_BLANK_HDR}
|
126
126
|
[bibliography]
|
127
127
|
== Normative References
|
@@ -152,7 +152,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
152
152
|
end
|
153
153
|
|
154
154
|
it "processes footnotes" do
|
155
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
155
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
156
156
|
#{ASCIIDOC_BLANK_HDR}
|
157
157
|
Hello!footnote:[Footnote text]
|
158
158
|
INPUT
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Asciidoctor::ISO do
|
4
4
|
it "processes simple lists" do
|
5
|
-
output = Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
5
|
+
output = Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
7
7
|
* List 1
|
8
8
|
* List 2
|
@@ -57,7 +57,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
57
57
|
end
|
58
58
|
|
59
59
|
it "processes complex lists" do
|
60
|
-
output = Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
60
|
+
output = Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
61
61
|
#{ASCIIDOC_BLANK_HDR}
|
62
62
|
[[id]]
|
63
63
|
* First
|
@@ -165,7 +165,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
165
165
|
end
|
166
166
|
|
167
167
|
it "anchors lists and list items" do
|
168
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
168
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
169
169
|
#{ASCIIDOC_BLANK_HDR}
|
170
170
|
[[id1]]
|
171
171
|
* [[id2]] List item
|
@@ -6,7 +6,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
6
6
|
it "processes draft ISO reference" do
|
7
7
|
mock_fdis
|
8
8
|
#mock_isobib_get_123
|
9
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
9
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
10
10
|
#{ISOBIB_BLANK_HDR}
|
11
11
|
== Clause
|
12
12
|
<<iso123>>
|
@@ -182,7 +182,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
182
182
|
it "processes all-parts ISO reference" do
|
183
183
|
#stub_fetch_ref(all_parts: true)
|
184
184
|
|
185
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
185
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
186
186
|
#{ASCIIDOC_BLANK_HDR}
|
187
187
|
|
188
188
|
== Clause
|
@@ -229,7 +229,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
229
229
|
end
|
230
230
|
|
231
231
|
it "processes non-ISO reference in Normative References" do
|
232
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
232
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
233
233
|
#{ASCIIDOC_BLANK_HDR}
|
234
234
|
[bibliography]
|
235
235
|
== Normative References
|
@@ -256,7 +256,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
256
256
|
end
|
257
257
|
|
258
258
|
it "processes non-ISO reference in Bibliography" do
|
259
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
259
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
260
260
|
#{ASCIIDOC_BLANK_HDR}
|
261
261
|
[bibliography]
|
262
262
|
== Bibliography
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Asciidoctor::ISO do
|
4
4
|
it "processes sections" do
|
5
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
5
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
7
7
|
== Foreword
|
8
8
|
|
@@ -156,7 +156,7 @@ standardization at the following addresses:</p>
|
|
156
156
|
end
|
157
157
|
|
158
158
|
it "processes section obligations" do
|
159
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
159
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
160
160
|
#{ASCIIDOC_BLANK_HDR}
|
161
161
|
[obligation=informative]
|
162
162
|
== Clause 1
|
@@ -187,7 +187,7 @@ standardization at the following addresses:</p>
|
|
187
187
|
end
|
188
188
|
|
189
189
|
it "processes inline headers" do
|
190
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
190
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
191
191
|
#{ASCIIDOC_BLANK_HDR}
|
192
192
|
== Clause 1
|
193
193
|
|
@@ -218,7 +218,7 @@ standardization at the following addresses:</p>
|
|
218
218
|
end
|
219
219
|
|
220
220
|
it "processes blank headers" do
|
221
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
221
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
222
222
|
#{ASCIIDOC_BLANK_HDR}
|
223
223
|
== Clause 1
|
224
224
|
|
@@ -238,7 +238,7 @@ standardization at the following addresses:</p>
|
|
238
238
|
end
|
239
239
|
|
240
240
|
it "processes terms & definitions with external source" do
|
241
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
241
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
242
242
|
#{ASCIIDOC_BLANK_HDR}
|
243
243
|
|
244
244
|
Foreword
|
@@ -277,7 +277,7 @@ standardization at the following addresses:</p>
|
|
277
277
|
end
|
278
278
|
|
279
279
|
it "processes empty terms & definitions" do
|
280
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
280
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
281
281
|
#{ASCIIDOC_BLANK_HDR}
|
282
282
|
|
283
283
|
Foreword
|
@@ -323,7 +323,7 @@ standardization at the following addresses:</p>
|
|
323
323
|
end
|
324
324
|
|
325
325
|
it "processes empty terms & definitions with external source" do
|
326
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
326
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
327
327
|
#{ASCIIDOC_BLANK_HDR}
|
328
328
|
|
329
329
|
Foreword
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Asciidoctor::ISO do
|
4
4
|
it "processes basic tables" do
|
5
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
5
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
7
7
|
.Table Name
|
8
8
|
|===
|
@@ -36,7 +36,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
it "inserts header rows in a table with a name and no header" do
|
39
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
39
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
40
40
|
#{ASCIIDOC_BLANK_HDR}
|
41
41
|
[headerrows=2]
|
42
42
|
.Table Name
|
@@ -76,7 +76,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
76
76
|
|
77
77
|
|
78
78
|
it "inserts header rows in a table without a name and no header" do
|
79
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
79
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
80
80
|
#{ASCIIDOC_BLANK_HDR}
|
81
81
|
[headerrows=2]
|
82
82
|
|===
|
@@ -112,7 +112,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
it "processes complex tables" do
|
115
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
115
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
116
116
|
#{ASCIIDOC_BLANK_HDR}
|
117
117
|
[cols="<,^,^,^,^",options="header,footer",headerrows=2]
|
118
118
|
.Maximum permissible mass fraction of defects
|
@@ -25,7 +25,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
25
25
|
|
26
26
|
it "Warns of missing scope" do
|
27
27
|
FileUtils.rm_f "test.err"
|
28
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
28
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
29
29
|
= Document title
|
30
30
|
Author
|
31
31
|
:docfile: test.adoc
|
@@ -36,8 +36,9 @@ it "Warns of missing scope" do
|
|
36
36
|
text
|
37
37
|
INPUT
|
38
38
|
expect(File.read("test.err")).to include "Scope clause missing"
|
39
|
+
|
39
40
|
FileUtils.rm_f "test.err"
|
40
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
41
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
41
42
|
= Document title
|
42
43
|
Author
|
43
44
|
:docfile: test.adoc
|
@@ -49,11 +50,23 @@ it "Warns of missing scope" do
|
|
49
50
|
INPUT
|
50
51
|
expect(File.read("test.err")).not_to include "Scope clause missing"
|
51
52
|
|
53
|
+
FileUtils.rm_f "test.err"
|
54
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
55
|
+
= Document title
|
56
|
+
Author
|
57
|
+
:docfile: test.adoc
|
58
|
+
:nodoc:
|
59
|
+
:no-isobib:
|
60
|
+
:doctype: amendment
|
61
|
+
|
62
|
+
text
|
63
|
+
INPUT
|
64
|
+
expect(File.read("test.err")).not_to include "Scope clause missing"
|
52
65
|
end
|
53
66
|
|
54
67
|
it "Warns of missing normative references" do
|
55
68
|
FileUtils.rm_f "test.err"
|
56
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
69
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
57
70
|
= Document title
|
58
71
|
Author
|
59
72
|
:docfile: test.adoc
|
@@ -64,8 +77,9 @@ it "Warns of missing normative references" do
|
|
64
77
|
text
|
65
78
|
INPUT
|
66
79
|
expect(File.read("test.err")).to include "Normative references missing"
|
80
|
+
|
67
81
|
FileUtils.rm_f "test.err"
|
68
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
82
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
69
83
|
= Document title
|
70
84
|
Author
|
71
85
|
:docfile: test.adoc
|
@@ -78,11 +92,24 @@ it "Warns of missing normative references" do
|
|
78
92
|
INPUT
|
79
93
|
expect(File.read("test.err")).not_to include "Normative references missing"
|
80
94
|
|
95
|
+
FileUtils.rm_f "test.err"
|
96
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
97
|
+
= Document title
|
98
|
+
Author
|
99
|
+
:docfile: test.adoc
|
100
|
+
:nodoc:
|
101
|
+
:no-isobib:
|
102
|
+
:doctype: amendment
|
103
|
+
|
104
|
+
text
|
105
|
+
INPUT
|
106
|
+
expect(File.read("test.err")).not_to include "Normative references missing"
|
107
|
+
|
81
108
|
end
|
82
109
|
|
83
110
|
it "Warns of missing terms & definitions" do
|
84
111
|
FileUtils.rm_f "test.err"
|
85
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
112
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
86
113
|
= Document title
|
87
114
|
Author
|
88
115
|
:docfile: test.adoc
|
@@ -93,8 +120,9 @@ it "Warns of missing terms & definitions" do
|
|
93
120
|
text
|
94
121
|
INPUT
|
95
122
|
expect(File.read("test.err")).to include "Terms & definitions missing"
|
123
|
+
|
96
124
|
FileUtils.rm_f "test.err"
|
97
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
125
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
98
126
|
= Document title
|
99
127
|
Author
|
100
128
|
:docfile: test.adoc
|
@@ -107,12 +135,23 @@ it "Warns of missing terms & definitions" do
|
|
107
135
|
INPUT
|
108
136
|
expect(File.read("test.err")).not_to include "Terms & definitions missing"
|
109
137
|
|
110
|
-
|
138
|
+
FileUtils.rm_f "test.err"
|
139
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
140
|
+
= Document title
|
141
|
+
Author
|
142
|
+
:docfile: test.adoc
|
143
|
+
:nodoc:
|
144
|
+
:no-isobib:
|
145
|
+
:doctype: amendment
|
111
146
|
|
147
|
+
text
|
148
|
+
INPUT
|
149
|
+
expect(File.read("test.err")).not_to include "Terms & definitions missing"
|
150
|
+
end
|
112
151
|
|
113
152
|
it "Warns of illegal doctype" do
|
114
153
|
FileUtils.rm_f "test.err"
|
115
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
154
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
116
155
|
= Document title
|
117
156
|
Author
|
118
157
|
:docfile: test.adoc
|
@@ -127,7 +166,7 @@ end
|
|
127
166
|
|
128
167
|
it "Warns of illegal script" do
|
129
168
|
FileUtils.rm_f "test.err"
|
130
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
169
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
131
170
|
= Document title
|
132
171
|
Author
|
133
172
|
:docfile: test.adoc
|
@@ -142,7 +181,7 @@ end
|
|
142
181
|
|
143
182
|
it "Warns of illegal stage" do
|
144
183
|
FileUtils.rm_f "test.err"
|
145
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
184
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
146
185
|
= Document title
|
147
186
|
Author
|
148
187
|
:docfile: test.adoc
|
@@ -157,7 +196,7 @@ end
|
|
157
196
|
|
158
197
|
it "Warns of illegal substage" do
|
159
198
|
FileUtils.rm_f "test.err"
|
160
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
199
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
161
200
|
= Document title
|
162
201
|
Author
|
163
202
|
:docfile: test.adoc
|
@@ -173,7 +212,7 @@ end
|
|
173
212
|
|
174
213
|
it "Warns of illegal iteration" do
|
175
214
|
FileUtils.rm_f "test.err"
|
176
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
215
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
177
216
|
= Document title
|
178
217
|
Author
|
179
218
|
:docfile: test.adoc
|
@@ -189,7 +228,7 @@ end
|
|
189
228
|
|
190
229
|
it "Warns of illegal script" do
|
191
230
|
FileUtils.rm_f "test.err"
|
192
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
231
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
193
232
|
= Document title
|
194
233
|
Author
|
195
234
|
:docfile: test.adoc
|
@@ -204,7 +243,7 @@ end
|
|
204
243
|
|
205
244
|
it "warns that technical report may contain requirement" do
|
206
245
|
FileUtils.rm_f "test.err"
|
207
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
246
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
208
247
|
= Document title
|
209
248
|
Author
|
210
249
|
:docfile: test.adoc
|
@@ -222,7 +261,7 @@ end
|
|
222
261
|
|
223
262
|
it "warns that introduction may contain requirement" do
|
224
263
|
FileUtils.rm_f "test.err"
|
225
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
264
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
226
265
|
#{VALIDATING_BLANK_HDR}
|
227
266
|
== Introduction
|
228
267
|
|
@@ -233,7 +272,7 @@ end
|
|
233
272
|
|
234
273
|
it "warns that foreword may contain recommendation" do
|
235
274
|
FileUtils.rm_f "test.err"
|
236
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
275
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
237
276
|
#{VALIDATING_BLANK_HDR}
|
238
277
|
|
239
278
|
It is not recommended that widgets should be larger than 15 cm.
|
@@ -245,7 +284,7 @@ end
|
|
245
284
|
|
246
285
|
it "warns that foreword may contain permission" do
|
247
286
|
FileUtils.rm_f "test.err"
|
248
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
287
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
249
288
|
#{VALIDATING_BLANK_HDR}
|
250
289
|
|
251
290
|
No widget is required to be larger than 15 cm.
|
@@ -257,7 +296,7 @@ end
|
|
257
296
|
|
258
297
|
it "warns that scope may contain recommendation" do
|
259
298
|
FileUtils.rm_f "test.err"
|
260
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
299
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
261
300
|
#{VALIDATING_BLANK_HDR}
|
262
301
|
|
263
302
|
== Scope
|
@@ -268,7 +307,7 @@ end
|
|
268
307
|
|
269
308
|
it "warns that definition may contain requirement" do
|
270
309
|
FileUtils.rm_f "test.err"
|
271
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
310
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
272
311
|
#{VALIDATING_BLANK_HDR}
|
273
312
|
|
274
313
|
== Terms and Definitions
|
@@ -283,7 +322,7 @@ end
|
|
283
322
|
|
284
323
|
it "warns that term example may contain recommendation" do
|
285
324
|
FileUtils.rm_f "test.err"
|
286
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
325
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
287
326
|
#{VALIDATING_BLANK_HDR}
|
288
327
|
|
289
328
|
== Terms and Definitions
|
@@ -298,7 +337,7 @@ end
|
|
298
337
|
|
299
338
|
it "warns that note may contain recommendation" do
|
300
339
|
FileUtils.rm_f "test.err"
|
301
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
340
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
302
341
|
#{VALIDATING_BLANK_HDR}
|
303
342
|
|
304
343
|
NOTE: It is not recommended that widgets should be larger than 15 cm.
|
@@ -308,7 +347,7 @@ end
|
|
308
347
|
|
309
348
|
it "warns that footnote may contain recommendation" do
|
310
349
|
FileUtils.rm_f "test.err"
|
311
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
350
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
312
351
|
#{VALIDATING_BLANK_HDR}
|
313
352
|
|
314
353
|
footnote:[It is not recommended that widgets should be larger than 15 cm.]
|
@@ -318,7 +357,7 @@ end
|
|
318
357
|
|
319
358
|
it "warns that term source is not in expected format" do
|
320
359
|
FileUtils.rm_f "test.err"
|
321
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
360
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
322
361
|
#{VALIDATING_BLANK_HDR}
|
323
362
|
|
324
363
|
[.source]
|
@@ -329,7 +368,7 @@ end
|
|
329
368
|
|
330
369
|
it "warns that figure does not have title" do
|
331
370
|
FileUtils.rm_f "test.err"
|
332
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
371
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
333
372
|
#{VALIDATING_BLANK_HDR}
|
334
373
|
|
335
374
|
image::spec/examples/rice_images/rice_image1.png[]
|
@@ -339,7 +378,7 @@ end
|
|
339
378
|
|
340
379
|
it "warns that callouts do not match annotations" do
|
341
380
|
FileUtils.rm_f "test.err"
|
342
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
381
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
343
382
|
#{VALIDATING_BLANK_HDR}
|
344
383
|
[source,ruby]
|
345
384
|
--
|
@@ -356,7 +395,7 @@ end
|
|
356
395
|
|
357
396
|
it "warns that term source is not a real reference" do
|
358
397
|
FileUtils.rm_f "test.err"
|
359
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
398
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
360
399
|
#{VALIDATING_BLANK_HDR}
|
361
400
|
|
362
401
|
[.source]
|
@@ -367,7 +406,7 @@ end
|
|
367
406
|
|
368
407
|
it "warns that undated reference has locality" do
|
369
408
|
FileUtils.rm_f "test.err"
|
370
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
409
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
371
410
|
#{VALIDATING_BLANK_HDR}
|
372
411
|
|
373
412
|
== Scope
|
@@ -382,7 +421,7 @@ end
|
|
382
421
|
|
383
422
|
it "do not warn that undated reference which is a bibliographic reference has locality" do
|
384
423
|
FileUtils.rm_f "test.err"
|
385
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
424
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
386
425
|
#{VALIDATING_BLANK_HDR}
|
387
426
|
|
388
427
|
== Scope
|
@@ -397,7 +436,7 @@ end
|
|
397
436
|
|
398
437
|
it "do not warn that undated IEV reference has locality" do
|
399
438
|
FileUtils.rm_f "test.err"
|
400
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
439
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
401
440
|
#{VALIDATING_BLANK_HDR}
|
402
441
|
|
403
442
|
== Scope
|
@@ -412,7 +451,7 @@ end
|
|
412
451
|
|
413
452
|
it "do not warn that in print has locality" do
|
414
453
|
FileUtils.rm_f "test.err"
|
415
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
454
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
416
455
|
#{VALIDATING_BLANK_HDR}
|
417
456
|
|
418
457
|
== Scope
|
@@ -427,7 +466,7 @@ end
|
|
427
466
|
|
428
467
|
it "warns of Non-reference in bibliography" do
|
429
468
|
FileUtils.rm_f "test.err"
|
430
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
469
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
431
470
|
#{VALIDATING_BLANK_HDR}
|
432
471
|
|
433
472
|
== Normative References
|
@@ -438,7 +477,7 @@ end
|
|
438
477
|
|
439
478
|
it "warns of Non-ISO reference in Normative References" do
|
440
479
|
FileUtils.rm_f "test.err"
|
441
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
480
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
442
481
|
#{VALIDATING_BLANK_HDR}
|
443
482
|
|
444
483
|
[bibliography]
|
@@ -450,7 +489,7 @@ end
|
|
450
489
|
|
451
490
|
it "warns that Scope contains subclauses" do
|
452
491
|
FileUtils.rm_f "test.err"
|
453
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
492
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
454
493
|
#{VALIDATING_BLANK_HDR}
|
455
494
|
|
456
495
|
== Scope
|
@@ -463,7 +502,7 @@ end
|
|
463
502
|
|
464
503
|
it "warns that Table should have title" do
|
465
504
|
FileUtils.rm_f "test.err"
|
466
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
505
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
467
506
|
#{VALIDATING_BLANK_HDR}
|
468
507
|
|
469
508
|
|===
|
@@ -475,7 +514,7 @@ end
|
|
475
514
|
|
476
515
|
it "gives Style warning if number not broken up in threes" do
|
477
516
|
FileUtils.rm_f "test.err"
|
478
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
517
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
479
518
|
#{VALIDATING_BLANK_HDR}
|
480
519
|
|
481
520
|
== Clause
|
@@ -486,7 +525,7 @@ end
|
|
486
525
|
|
487
526
|
it "gives No style warning if number not broken up in threes is ISO reference" do
|
488
527
|
FileUtils.rm_f "test.err"
|
489
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
528
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
490
529
|
#{VALIDATING_BLANK_HDR}
|
491
530
|
|
492
531
|
== Clause
|
@@ -497,7 +536,7 @@ end
|
|
497
536
|
|
498
537
|
it "Style warning if decimal point" do
|
499
538
|
FileUtils.rm_f "test.err"
|
500
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
539
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
501
540
|
#{VALIDATING_BLANK_HDR}
|
502
541
|
|
503
542
|
== Clause
|
@@ -508,7 +547,7 @@ end
|
|
508
547
|
|
509
548
|
it "Style warning if billion used" do
|
510
549
|
FileUtils.rm_f "test.err"
|
511
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
550
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
512
551
|
#{VALIDATING_BLANK_HDR}
|
513
552
|
|
514
553
|
== Clause
|
@@ -519,7 +558,7 @@ end
|
|
519
558
|
|
520
559
|
it "Style warning if no space before percent sign" do
|
521
560
|
FileUtils.rm_f "test.err"
|
522
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
561
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
523
562
|
#{VALIDATING_BLANK_HDR}
|
524
563
|
|
525
564
|
== Clause
|
@@ -530,7 +569,7 @@ end
|
|
530
569
|
|
531
570
|
it "Style warning if unbracketed tolerance before percent sign" do
|
532
571
|
FileUtils.rm_f "test.err"
|
533
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
572
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
534
573
|
#{VALIDATING_BLANK_HDR}
|
535
574
|
|
536
575
|
== Clause
|
@@ -541,7 +580,7 @@ end
|
|
541
580
|
|
542
581
|
it "Style warning if dots in abbreviation" do
|
543
582
|
FileUtils.rm_f "test.err"
|
544
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
583
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
545
584
|
#{VALIDATING_BLANK_HDR}
|
546
585
|
|
547
586
|
== Clause
|
@@ -552,7 +591,7 @@ end
|
|
552
591
|
|
553
592
|
it "No Style warning if dots in abbreviation are e.g." do
|
554
593
|
FileUtils.rm_f "test.err"
|
555
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
594
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
556
595
|
#{VALIDATING_BLANK_HDR}
|
557
596
|
|
558
597
|
== Clause
|
@@ -563,7 +602,7 @@ end
|
|
563
602
|
|
564
603
|
it "Style warning if ppm used" do
|
565
604
|
FileUtils.rm_f "test.err"
|
566
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
605
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
567
606
|
#{VALIDATING_BLANK_HDR}
|
568
607
|
|
569
608
|
== Clause
|
@@ -574,7 +613,7 @@ end
|
|
574
613
|
|
575
614
|
it "Style warning if space between number and degree" do
|
576
615
|
FileUtils.rm_f "test.err"
|
577
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
616
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
578
617
|
#{VALIDATING_BLANK_HDR}
|
579
618
|
|
580
619
|
== Clause
|
@@ -585,7 +624,7 @@ end
|
|
585
624
|
|
586
625
|
it "Style warning if no space between number and SI unit" do
|
587
626
|
FileUtils.rm_f "test.err"
|
588
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
627
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
589
628
|
#{VALIDATING_BLANK_HDR}
|
590
629
|
|
591
630
|
== Clause
|
@@ -596,7 +635,7 @@ end
|
|
596
635
|
|
597
636
|
it "Style warning if mins used" do
|
598
637
|
FileUtils.rm_f "test.err"
|
599
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
638
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
600
639
|
#{VALIDATING_BLANK_HDR}
|
601
640
|
|
602
641
|
== Clause
|
@@ -607,7 +646,7 @@ end
|
|
607
646
|
|
608
647
|
# can't test: our asciidoc template won't allow this to be generated
|
609
648
|
# it "Style warning if foreword contains subclauses" do
|
610
|
-
# expect { Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true) }.to output(%r{non-standard unit}).to_stderr
|
649
|
+
# expect { Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true) }.to output(%r{non-standard unit}).to_stderr
|
611
650
|
# #{VALIDATING_BLANK_HDR}
|
612
651
|
#
|
613
652
|
# INPUT
|
@@ -615,7 +654,7 @@ end
|
|
615
654
|
|
616
655
|
# can't test: we strip out any such content from Normative references preemptively
|
617
656
|
#it "Style warning if Normative References contains subclauses" do
|
618
|
-
#expect { Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true) }.to output(%r{normative references contains subclauses}).to_stderr
|
657
|
+
#expect { Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true) }.to output(%r{normative references contains subclauses}).to_stderr
|
619
658
|
##{VALIDATING_BLANK_HDR}
|
620
659
|
#
|
621
660
|
#[bibliography]
|
@@ -627,7 +666,7 @@ end
|
|
627
666
|
|
628
667
|
it "Style warning if two Symbols and Abbreviated Terms sections" do
|
629
668
|
FileUtils.rm_f "test.err"
|
630
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
669
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
631
670
|
#{VALIDATING_BLANK_HDR}
|
632
671
|
|
633
672
|
== Terms and Abbreviations
|
@@ -641,7 +680,7 @@ end
|
|
641
680
|
|
642
681
|
it "Style warning if Symbols and Abbreviated Terms contains extraneous matter" do
|
643
682
|
FileUtils.rm_f "test.err"
|
644
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
683
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
645
684
|
#{VALIDATING_BLANK_HDR}
|
646
685
|
|
647
686
|
== Symbols and Abbreviated Terms
|
@@ -653,7 +692,7 @@ end
|
|
653
692
|
|
654
693
|
it "Warning if missing foreword" do
|
655
694
|
FileUtils.rm_f "test.err"
|
656
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
695
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
657
696
|
#{VALIDATING_BLANK_HDR}
|
658
697
|
|
659
698
|
== Symbols and Abbreviated Terms
|
@@ -661,11 +700,27 @@ it "Warning if missing foreword" do
|
|
661
700
|
Paragraph
|
662
701
|
INPUT
|
663
702
|
expect(File.read("test.err")).to include "Initial section must be (content) Foreword"
|
703
|
+
|
704
|
+
FileUtils.rm_f "test.err"
|
705
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
706
|
+
= Document title
|
707
|
+
Author
|
708
|
+
:docfile: test.adoc
|
709
|
+
:nodoc:
|
710
|
+
:no-isobib:
|
711
|
+
:doctype: amendment
|
712
|
+
|
713
|
+
== Symbols and Abbreviated Terms
|
714
|
+
|
715
|
+
Paragraph
|
716
|
+
INPUT
|
717
|
+
expect(File.read("test.err")).not_to include "Initial section must be (content) Foreword"
|
718
|
+
|
664
719
|
end
|
665
720
|
|
666
721
|
it "Warning if do not start with scope or introduction" do
|
667
722
|
FileUtils.rm_f "test.err"
|
668
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
723
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
669
724
|
#{VALIDATING_BLANK_HDR}
|
670
725
|
Foreword
|
671
726
|
|
@@ -674,11 +729,29 @@ it "Warning if do not start with scope or introduction" do
|
|
674
729
|
Paragraph
|
675
730
|
INPUT
|
676
731
|
expect(File.read("test.err")).to include "Prefatory material must be followed by (clause) Scope"
|
732
|
+
|
733
|
+
FileUtils.rm_f "test.err"
|
734
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
735
|
+
= Document title
|
736
|
+
Author
|
737
|
+
:docfile: test.adoc
|
738
|
+
:nodoc:
|
739
|
+
:no-isobib:
|
740
|
+
:doctype: amendment
|
741
|
+
|
742
|
+
Foreword
|
743
|
+
|
744
|
+
== Symbols and Abbreviated Terms
|
745
|
+
|
746
|
+
Paragraph
|
747
|
+
INPUT
|
748
|
+
expect(File.read("test.err")).not_to include "Prefatory material must be followed by (clause) Scope"
|
749
|
+
|
677
750
|
end
|
678
751
|
|
679
752
|
it "Warning if introduction not followed by scope" do
|
680
753
|
FileUtils.rm_f "test.err"
|
681
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
754
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
682
755
|
#{VALIDATING_BLANK_HDR}
|
683
756
|
|
684
757
|
.Foreword
|
@@ -691,11 +764,32 @@ it "Warning if introduction not followed by scope" do
|
|
691
764
|
Paragraph
|
692
765
|
INPUT
|
693
766
|
expect(File.read("test.err")).to include "Prefatory material must be followed by (clause) Scope"
|
767
|
+
|
768
|
+
FileUtils.rm_f "test.err"
|
769
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
770
|
+
= Document title
|
771
|
+
Author
|
772
|
+
:docfile: test.adoc
|
773
|
+
:nodoc:
|
774
|
+
:no-isobib:
|
775
|
+
:doctype: amendment
|
776
|
+
|
777
|
+
.Foreword
|
778
|
+
Foreword
|
779
|
+
|
780
|
+
== Introduction
|
781
|
+
|
782
|
+
== Symbols and Abbreviated Terms
|
783
|
+
|
784
|
+
Paragraph
|
785
|
+
INPUT
|
786
|
+
expect(File.read("test.err")).not_to include "Prefatory material must be followed by (clause) Scope"
|
787
|
+
|
694
788
|
end
|
695
789
|
|
696
790
|
it "Warning if normative references not followed by terms and definitions" do
|
697
791
|
FileUtils.rm_f "test.err"
|
698
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
792
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
699
793
|
#{VALIDATING_BLANK_HDR}
|
700
794
|
|
701
795
|
.Foreword
|
@@ -711,11 +805,35 @@ it "Warning if normative references not followed by terms and definitions" do
|
|
711
805
|
Paragraph
|
712
806
|
INPUT
|
713
807
|
expect(File.read("test.err")).to include "Normative References must be followed by Terms and Definitions"
|
808
|
+
|
809
|
+
FileUtils.rm_f "test.err"
|
810
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
811
|
+
= Document title
|
812
|
+
Author
|
813
|
+
:docfile: test.adoc
|
814
|
+
:nodoc:
|
815
|
+
:no-isobib:
|
816
|
+
:doctype: amendment
|
817
|
+
|
818
|
+
.Foreword
|
819
|
+
Foreword
|
820
|
+
|
821
|
+
== Scope
|
822
|
+
|
823
|
+
[bibliography]
|
824
|
+
== Normative References
|
825
|
+
|
826
|
+
== Symbols and Abbreviated Terms
|
827
|
+
|
828
|
+
Paragraph
|
829
|
+
INPUT
|
830
|
+
expect(File.read("test.err")).not_to include "Normative References must be followed by Terms and Definitions"
|
831
|
+
|
714
832
|
end
|
715
833
|
|
716
834
|
it "Warning if there are no clauses in the document" do
|
717
835
|
FileUtils.rm_f "test.err"
|
718
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
836
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
719
837
|
#{VALIDATING_BLANK_HDR}
|
720
838
|
|
721
839
|
.Foreword
|
@@ -732,11 +850,35 @@ it "Warning if there are no clauses in the document" do
|
|
732
850
|
|
733
851
|
INPUT
|
734
852
|
expect(File.read("test.err")).to include "Document must contain at least one clause"
|
853
|
+
|
854
|
+
FileUtils.rm_f "test.err"
|
855
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
856
|
+
= Document title
|
857
|
+
Author
|
858
|
+
:docfile: test.adoc
|
859
|
+
:nodoc:
|
860
|
+
:no-isobib:
|
861
|
+
:doctype: amendment
|
862
|
+
|
863
|
+
.Foreword
|
864
|
+
Foreword
|
865
|
+
|
866
|
+
== Scope
|
867
|
+
|
868
|
+
[bibliography]
|
869
|
+
== Normative References
|
870
|
+
|
871
|
+
== Terms and Definitions
|
872
|
+
|
873
|
+
== Symbols and Abbreviated Terms
|
874
|
+
|
875
|
+
INPUT
|
876
|
+
expect(File.read("test.err")).not_to include "Document must contain at least one clause"
|
735
877
|
end
|
736
878
|
|
737
879
|
it "Warning if scope occurs after Terms and Definitions" do
|
738
880
|
FileUtils.rm_f "test.err"
|
739
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
881
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
740
882
|
#{VALIDATING_BLANK_HDR}
|
741
883
|
|
742
884
|
.Foreword
|
@@ -755,11 +897,38 @@ it "Warning if scope occurs after Terms and Definitions" do
|
|
755
897
|
|
756
898
|
INPUT
|
757
899
|
expect(File.read("test.err")).to include "Scope must occur before Terms and Definitions"
|
900
|
+
|
901
|
+
FileUtils.rm_f "test.err"
|
902
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
903
|
+
= Document title
|
904
|
+
Author
|
905
|
+
:docfile: test.adoc
|
906
|
+
:nodoc:
|
907
|
+
:no-isobib:
|
908
|
+
:doctype: amendment
|
909
|
+
|
910
|
+
.Foreword
|
911
|
+
Foreword
|
912
|
+
|
913
|
+
== Scope
|
914
|
+
|
915
|
+
[bibliography]
|
916
|
+
== Normative References
|
917
|
+
|
918
|
+
== Terms and Definitions
|
919
|
+
|
920
|
+
== Clause
|
921
|
+
|
922
|
+
== Scope
|
923
|
+
|
924
|
+
INPUT
|
925
|
+
expect(File.read("test.err")).not_to include "Scope must occur before Terms and Definitions"
|
926
|
+
|
758
927
|
end
|
759
928
|
|
760
929
|
it "Warning if Symbols and Abbreviated Terms does not occur immediately after Terms and Definitions" do
|
761
930
|
FileUtils.rm_f "test.err"
|
762
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
931
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
763
932
|
#{VALIDATING_BLANK_HDR}
|
764
933
|
|
765
934
|
.Foreword
|
@@ -778,11 +947,39 @@ it "Warning if Symbols and Abbreviated Terms does not occur immediately after Te
|
|
778
947
|
|
779
948
|
INPUT
|
780
949
|
expect(File.read("test.err")).to include "Only annexes and references can follow clauses"
|
950
|
+
|
951
|
+
FileUtils.rm_f "test.err"
|
952
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
953
|
+
= Document title
|
954
|
+
Author
|
955
|
+
:docfile: test.adoc
|
956
|
+
:nodoc:
|
957
|
+
:no-isobib:
|
958
|
+
:doctype: amendment
|
959
|
+
|
960
|
+
|
961
|
+
.Foreword
|
962
|
+
Foreword
|
963
|
+
|
964
|
+
== Scope
|
965
|
+
|
966
|
+
[bibliography]
|
967
|
+
== Normative References
|
968
|
+
|
969
|
+
== Terms and Definitions
|
970
|
+
|
971
|
+
== Clause
|
972
|
+
|
973
|
+
== Symbols and Abbreviated Terms
|
974
|
+
|
975
|
+
INPUT
|
976
|
+
expect(File.read("test.err")).not_to include "Only annexes and references can follow clauses"
|
977
|
+
|
781
978
|
end
|
782
979
|
|
783
980
|
it "Warning if no normative references" do
|
784
981
|
FileUtils.rm_f "test.err"
|
785
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
982
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
786
983
|
#{VALIDATING_BLANK_HDR}
|
787
984
|
|
788
985
|
.Foreword
|
@@ -805,11 +1002,42 @@ it "Warning if no normative references" do
|
|
805
1002
|
|
806
1003
|
INPUT
|
807
1004
|
expect(File.read("test.err")).to include "Document must include (references) Normative References"
|
1005
|
+
|
1006
|
+
FileUtils.rm_f "test.err"
|
1007
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1008
|
+
= Document title
|
1009
|
+
Author
|
1010
|
+
:docfile: test.adoc
|
1011
|
+
:nodoc:
|
1012
|
+
:no-isobib:
|
1013
|
+
:doctype: amendment
|
1014
|
+
|
1015
|
+
.Foreword
|
1016
|
+
Foreword
|
1017
|
+
|
1018
|
+
== Scope
|
1019
|
+
|
1020
|
+
== Terms and Definitions
|
1021
|
+
|
1022
|
+
== Clause
|
1023
|
+
|
1024
|
+
[appendix]
|
1025
|
+
== Appendix A
|
1026
|
+
|
1027
|
+
[appendix]
|
1028
|
+
== Appendix B
|
1029
|
+
|
1030
|
+
[appendix]
|
1031
|
+
== Appendix C
|
1032
|
+
|
1033
|
+
INPUT
|
1034
|
+
expect(File.read("test.err")).not_to include "Document must include (references) Normative References"
|
1035
|
+
|
808
1036
|
end
|
809
1037
|
|
810
1038
|
it "Warning if final section is not named Bibliography" do
|
811
1039
|
FileUtils.rm_f "test.err"
|
812
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1040
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
813
1041
|
#{VALIDATING_BLANK_HDR}
|
814
1042
|
|
815
1043
|
.Foreword
|
@@ -838,11 +1066,48 @@ it "Warning if final section is not named Bibliography" do
|
|
838
1066
|
|
839
1067
|
INPUT
|
840
1068
|
expect(File.read("test.err")).to include "There are sections after the final Bibliography"
|
1069
|
+
|
1070
|
+
FileUtils.rm_f "test.err"
|
1071
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1072
|
+
= Document title
|
1073
|
+
Author
|
1074
|
+
:docfile: test.adoc
|
1075
|
+
:nodoc:
|
1076
|
+
:no-isobib:
|
1077
|
+
:doctype: amendment
|
1078
|
+
|
1079
|
+
.Foreword
|
1080
|
+
Foreword
|
1081
|
+
|
1082
|
+
== Scope
|
1083
|
+
|
1084
|
+
[bibliography]
|
1085
|
+
== Normative References
|
1086
|
+
|
1087
|
+
== Terms and Definitions
|
1088
|
+
|
1089
|
+
== Clause
|
1090
|
+
|
1091
|
+
[appendix]
|
1092
|
+
== Appendix A
|
1093
|
+
|
1094
|
+
[appendix]
|
1095
|
+
== Appendix B
|
1096
|
+
|
1097
|
+
[bibliography]
|
1098
|
+
== Bibliography
|
1099
|
+
|
1100
|
+
[bibliography]
|
1101
|
+
== Appendix C
|
1102
|
+
|
1103
|
+
INPUT
|
1104
|
+
expect(File.read("test.err")).not_to include "There are sections after the final Bibliography"
|
1105
|
+
|
841
1106
|
end
|
842
1107
|
|
843
1108
|
it "Warning if final section is not styled Bibliography" do
|
844
1109
|
FileUtils.rm_f "test.err"
|
845
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1110
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
846
1111
|
#{VALIDATING_BLANK_HDR}
|
847
1112
|
|
848
1113
|
.Foreword
|
@@ -867,11 +1132,45 @@ it "Warning if final section is not styled Bibliography" do
|
|
867
1132
|
|
868
1133
|
INPUT
|
869
1134
|
expect(File.read("test.err")).to include "Section not marked up as [bibliography]"
|
1135
|
+
|
1136
|
+
|
1137
|
+
FileUtils.rm_f "test.err"
|
1138
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1139
|
+
= Document title
|
1140
|
+
Author
|
1141
|
+
:docfile: test.adoc
|
1142
|
+
:nodoc:
|
1143
|
+
:no-isobib:
|
1144
|
+
:doctype: amendment
|
1145
|
+
|
1146
|
+
.Foreword
|
1147
|
+
Foreword
|
1148
|
+
|
1149
|
+
== Scope
|
1150
|
+
|
1151
|
+
[bibliography]
|
1152
|
+
== Normative References
|
1153
|
+
|
1154
|
+
== Terms and Definitions
|
1155
|
+
|
1156
|
+
== Clause
|
1157
|
+
|
1158
|
+
[appendix]
|
1159
|
+
== Appendix A
|
1160
|
+
|
1161
|
+
[appendix]
|
1162
|
+
== Appendix B
|
1163
|
+
|
1164
|
+
== Bibliography
|
1165
|
+
|
1166
|
+
INPUT
|
1167
|
+
expect(File.read("test.err")).not_to include "Section not marked up as [bibliography]"
|
1168
|
+
|
870
1169
|
end
|
871
1170
|
|
872
1171
|
it "Warning if English title intro and no French title intro" do
|
873
1172
|
FileUtils.rm_f "test.err"
|
874
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1173
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
875
1174
|
= Document title
|
876
1175
|
Author
|
877
1176
|
:docfile: test.adoc
|
@@ -885,7 +1184,7 @@ end
|
|
885
1184
|
|
886
1185
|
it "Warning if French title intro and no English title intro" do
|
887
1186
|
FileUtils.rm_f "test.err"
|
888
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1187
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
889
1188
|
= Document title
|
890
1189
|
Author
|
891
1190
|
:docfile: test.adoc
|
@@ -900,7 +1199,7 @@ end
|
|
900
1199
|
|
901
1200
|
it "Warning if English title and no French intro" do
|
902
1201
|
FileUtils.rm_f "test.err"
|
903
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1202
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
904
1203
|
= Document title
|
905
1204
|
Author
|
906
1205
|
:docfile: test.adoc
|
@@ -914,7 +1213,7 @@ end
|
|
914
1213
|
|
915
1214
|
it "Warning if French title and no English title" do
|
916
1215
|
FileUtils.rm_f "test.err"
|
917
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1216
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
918
1217
|
= Document title
|
919
1218
|
Author
|
920
1219
|
:docfile: test.adoc
|
@@ -928,7 +1227,7 @@ end
|
|
928
1227
|
|
929
1228
|
it "Warning if English title part and no French title part" do
|
930
1229
|
FileUtils.rm_f "test.err"
|
931
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1230
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
932
1231
|
= Document title
|
933
1232
|
Author
|
934
1233
|
:docfile: test.adoc
|
@@ -942,7 +1241,7 @@ end
|
|
942
1241
|
|
943
1242
|
it "Warning if French title part and no English title part" do
|
944
1243
|
FileUtils.rm_f "test.err"
|
945
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1244
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
946
1245
|
= Document title
|
947
1246
|
Author
|
948
1247
|
:docfile: test.adoc
|
@@ -956,7 +1255,7 @@ end
|
|
956
1255
|
|
957
1256
|
it "Warning if non-IEC document with subpart" do
|
958
1257
|
FileUtils.rm_f "test.err"
|
959
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1258
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
960
1259
|
= Document title
|
961
1260
|
Author
|
962
1261
|
:docfile: test.adoc
|
@@ -972,7 +1271,7 @@ end
|
|
972
1271
|
|
973
1272
|
it "No warning if joint IEC/non-IEC document with subpart" do
|
974
1273
|
FileUtils.rm_f "test.err"
|
975
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1274
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
976
1275
|
= Document title
|
977
1276
|
Author
|
978
1277
|
:docfile: test.adoc
|
@@ -988,7 +1287,7 @@ end
|
|
988
1287
|
|
989
1288
|
it "Warning if main title contains document type" do
|
990
1289
|
FileUtils.rm_f "test.err"
|
991
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1290
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
992
1291
|
= Document title
|
993
1292
|
Author
|
994
1293
|
:docfile: test.adoc
|
@@ -1002,7 +1301,7 @@ end
|
|
1002
1301
|
|
1003
1302
|
it "Warning if intro title contains document type" do
|
1004
1303
|
FileUtils.rm_f "test.err"
|
1005
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1304
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1006
1305
|
= Document title
|
1007
1306
|
Author
|
1008
1307
|
:docfile: test.adoc
|
@@ -1016,7 +1315,7 @@ end
|
|
1016
1315
|
|
1017
1316
|
it "Each first-level subclause must have a title" do
|
1018
1317
|
FileUtils.rm_f "test.err"
|
1019
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1318
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1020
1319
|
#{VALIDATING_BLANK_HDR}
|
1021
1320
|
== Clause
|
1022
1321
|
|
@@ -1027,7 +1326,7 @@ end
|
|
1027
1326
|
|
1028
1327
|
it "All subclauses must have a title, or none" do
|
1029
1328
|
FileUtils.rm_f "test.err"
|
1030
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1329
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1031
1330
|
#{VALIDATING_BLANK_HDR}
|
1032
1331
|
== Clause
|
1033
1332
|
|
@@ -1042,7 +1341,7 @@ end
|
|
1042
1341
|
|
1043
1342
|
it "Warning if subclause is only child of its parent, or none" do
|
1044
1343
|
FileUtils.rm_f "test.err"
|
1045
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1344
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1046
1345
|
#{VALIDATING_BLANK_HDR}
|
1047
1346
|
== Clause
|
1048
1347
|
|
@@ -1054,7 +1353,7 @@ end
|
|
1054
1353
|
|
1055
1354
|
it "Warning if invalid technical committee type" do
|
1056
1355
|
FileUtils.rm_f "test.err"
|
1057
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1356
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1058
1357
|
= Document title
|
1059
1358
|
Author
|
1060
1359
|
:docfile: test.adoc
|
@@ -1068,7 +1367,7 @@ end
|
|
1068
1367
|
|
1069
1368
|
it "Warning if invalid subcommittee type" do
|
1070
1369
|
FileUtils.rm_f "test.err"
|
1071
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1370
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1072
1371
|
= Document title
|
1073
1372
|
Author
|
1074
1373
|
:docfile: test.adoc
|
@@ -1082,7 +1381,7 @@ end
|
|
1082
1381
|
|
1083
1382
|
it "Warning if invalid subcommittee type" do
|
1084
1383
|
FileUtils.rm_f "test.err"
|
1085
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1384
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1086
1385
|
= Document title
|
1087
1386
|
Author
|
1088
1387
|
:docfile: test.adoc
|
@@ -1096,7 +1395,7 @@ end
|
|
1096
1395
|
|
1097
1396
|
it "Warning if 'see' crossreference points to normative section" do
|
1098
1397
|
FileUtils.rm_f "test.err"
|
1099
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1398
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1100
1399
|
#{VALIDATING_BLANK_HDR}
|
1101
1400
|
[[terms]]
|
1102
1401
|
== Terms and Definitions
|
@@ -1109,7 +1408,7 @@ end
|
|
1109
1408
|
|
1110
1409
|
it "Warning if 'see' reference points to normative reference" do
|
1111
1410
|
FileUtils.rm_f "test.err"
|
1112
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1411
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1113
1412
|
#{VALIDATING_BLANK_HDR}
|
1114
1413
|
[bibliography]
|
1115
1414
|
== Normative References
|
@@ -1123,7 +1422,7 @@ end
|
|
1123
1422
|
|
1124
1423
|
it "Warning if term definition starts with article" do
|
1125
1424
|
FileUtils.rm_f "test.err"
|
1126
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1425
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1127
1426
|
#{VALIDATING_BLANK_HDR}
|
1128
1427
|
== Terms and Definitions
|
1129
1428
|
|
@@ -1136,7 +1435,7 @@ end
|
|
1136
1435
|
|
1137
1436
|
it "Warning if term definition ends with period" do
|
1138
1437
|
FileUtils.rm_f "test.err"
|
1139
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1438
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1140
1439
|
#{VALIDATING_BLANK_HDR}
|
1141
1440
|
== Terms and Definitions
|
1142
1441
|
|
@@ -1149,7 +1448,7 @@ end
|
|
1149
1448
|
|
1150
1449
|
it "validates document against ISO XML schema" do
|
1151
1450
|
FileUtils.rm_f "test.err"
|
1152
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1451
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1153
1452
|
#{VALIDATING_BLANK_HDR}
|
1154
1453
|
|
1155
1454
|
[align=mid-air]
|
@@ -1160,7 +1459,7 @@ end
|
|
1160
1459
|
|
1161
1460
|
it "Warn if more than 7 levels of subclause" do
|
1162
1461
|
FileUtils.rm_f "test.err"
|
1163
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1462
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1164
1463
|
= Document title
|
1165
1464
|
Author
|
1166
1465
|
:docfile: test.adoc
|
@@ -1193,7 +1492,7 @@ end
|
|
1193
1492
|
|
1194
1493
|
it "Do not warn if not more than 7 levels of subclause" do
|
1195
1494
|
FileUtils.rm_f "test.err"
|
1196
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1495
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1197
1496
|
= Document title
|
1198
1497
|
Author
|
1199
1498
|
:docfile: test.adoc
|
@@ -1223,7 +1522,7 @@ end
|
|
1223
1522
|
|
1224
1523
|
it "Warn if term citation in Terms & Definitions not preceded with italicised term" do
|
1225
1524
|
FileUtils.rm_f "test.err"
|
1226
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1525
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1227
1526
|
#{VALIDATING_BLANK_HDR}
|
1228
1527
|
== Terms and Definitions
|
1229
1528
|
|
@@ -1237,7 +1536,7 @@ end
|
|
1237
1536
|
|
1238
1537
|
it "Warn if an undated reference has no associated footnote" do
|
1239
1538
|
FileUtils.rm_f "test.err"
|
1240
|
-
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
|
1539
|
+
Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
|
1241
1540
|
#{VALIDATING_BLANK_HDR}
|
1242
1541
|
|
1243
1542
|
[bibliography]
|