require "spec_helper"
RSpec.describe IsoDoc do
it "processes inline formatting" do
expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
A B C D E
F
example
(#(A)#)
(#(((A)#))) (#((Hello))#)
The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.
ISO 712, Cereals and cereal products
ISO 712 ISO 712 ISO 712, Table 1 ISO 712, Table 1–1 ISO 712, Clause 1, Table 1 ISO 712, Clause 1 ISO 712, 1.5 A ISO 712, A
The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.
ISO 712, Cereals and cereal products