require "spec_helper" RSpec.describe IsoDoc do it "processes unordered lists" do expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
  • updated normative references;

  • deletion of 4.3.

INPUT #{HTML_HDR}

Foreword

OUTPUT end it "processes ordered lists" do expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")

  1. all information necessary for the complete identification of the sample;

    1. a reference to this document (i.e. ISO 17301-1);

      1. the sampling method used;

INPUT #{HTML_HDR}

Foreword

  1. all information necessary for the complete identification of the sample;

    1. a reference to this document (i.e. ISO 17301-1);

      1. the sampling method used;

OUTPUT end it "processes Roman Upper ordered lists" do expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")

  1. all information necessary for the complete identification of the sample;

  2. a reference to this document (i.e. ISO 17301-1);

  3. the sampling method used;

INPUT #{HTML_HDR}

Foreword

  1. all information necessary for the complete identification of the sample;

  2. a reference to this document (i.e. ISO 17301-1);

  3. the sampling method used;

OUTPUT end it "processes definition lists" do expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")

W

mass fraction of gelatinized kernels, expressed in per cent

w

??

This is a note

INPUT #{HTML_HDR}

Foreword

W

mass fraction of gelatinized kernels, expressed in per cent

(#(w)#)

??

NOTE  This is a note

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

W

mass fraction of gelatinized kernels, expressed in per cent

w

??

This is a note

INPUT