require "spec_helper" RSpec.describe IsoDoc::BSI do it "processes notes" do expect(xmlpp(IsoDoc::BSI::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT") NOTE

Only use paddy or parboiled rice for the determination of husked rice yield.

Para 2.

INPUT #{HTML_HDR}

FOREWORD

#{IEC_TITLE1}
OUTPUT end it "processes commentaries" do input = <<~INPUT Reagents

This is a commentary on the reagents

This is a commentary on the reagents

This is a commentary on the reagents

Reagents in use
A B
Reagents

This is a commentary on the reagents

Reagents in use
A B
INPUT presxml = <<~OUTPUT 1<tab/>Reagents COMMENTARY ON ???

This is a commentary on the reagents

COMMENTARY 1 ON CLAUSE 1

This is a commentary on the reagents

COMMENTARY 2 ON CLAUSE 1

This is a commentary on the reagents

Table 1 — Reagents in use
A B
2<tab/>Reagents COMMENTARY ON TABLE 2

This is a commentary on the reagents

Table 2 — Reagents in use
A B
OUTPUT html = <<~OUTPUT #{HTML_HDR}

FOREWORD

 

1 Reagents

COMMENTARY ON ???

This is a commentary on the reagents

This is a commentary on the reagents

COMMENTARY 1 ON CLAUSE 1

This is a commentary on the reagents

This is a commentary on the reagents

COMMENTARY 2 ON CLAUSE 1

This is a commentary on the reagents

This is a commentary on the reagents

Table 1 — Reagents in use

A B

2 Reagents

COMMENTARY ON TABLE 2

This is a commentary on the reagents

This is a commentary on the reagents

Table 2 — Reagents in use

A B
OUTPUT expect(xmlpp(IsoDoc::BSI::PresentationXMLConvert.new({}) .convert("test", input, true))) .to be_equivalent_to xmlpp(presxml) expect(xmlpp(IsoDoc::BSI::HtmlConvert.new({}) .convert("test", presxml, true))) .to be_equivalent_to xmlpp(html) end it "processes admonitions" do expect(xmlpp(IsoDoc::BSI::HtmlConvert.new({}) .convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")

Only use paddy or parboiled rice for the determination of husked rice yield.

Para 2.

INPUT #{HTML_HDR}

FOREWORD

#{IEC_TITLE1}
OUTPUT end it "processes admonitions with titles" do expect(xmlpp(IsoDoc::BSI::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT") Title
  • List

Only use paddy or parboiled rice for the determination of husked rice yield.

INPUT #{HTML_HDR}

FOREWORD

#{IEC_TITLE1}
OUTPUT end end