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

A.

Formerly denoted as 15 % (m/m).

B.

Formerly denoted as 15 % (m/m).

C.

Hello! denoted as 15 % (m/m).

INPUT #{HTML_HDR}

Foreword

A.2

B.2

C.1

OUTPUT end it "processes IsoXML footnotes (Word)" do expect(xmlpp(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")

A.

Formerly denoted as 15 % (m/m).

B.

Formerly denoted as 15 % (m/m).

C.

Hello! denoted as 15 % (m/m).

INPUT