require "spec_helper"
RSpec.describe IsoDoc::Iec do
it "processes IsoXML bibliographies" do
expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
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. This is an annotation of ISO 20483:2013-2014 This is an annotation of document ISSN. This is another annotation of document ISSN.
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.
[110], ISO 712, Cereals and cereal products
ISO 16634:-- (all parts) 1 , Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs
ISO 20483:2013-2014, Cereals and pulses
ICC 167, Standard No I.C.C 167 . Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method (see http://www.icc.or.at )
NOTE This is an annotation of ISO 20483:2013-2014
[5], Title 5
[1], Chemicals for analytical laboratory use
[2], Instruments for analytical laboratory use
NOTE This is an annotation of document ISSN.
NOTE This is another annotation of document ISSN.
ISO 3696, Water for analytical laboratory use
[10], Standard No I.C.C 167 . Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method (see http://www.icc.or.at )
IETF RFC 10, Internet Calendaring and Scheduling Core Object Specification (iCalendar)
Citn, IETF RFC 20, CitationWorks. 2019. How to cite a reference .