require "spec_helper"
RSpec.describe IsoDoc do
it "processes introductions under IEV" do
input = <<~INPUT
IEC/PWI 60050-871 ED 2
60050
Foreword
This is a preamble
Introduction
Introduction Subsection
INPUT
presxml = <<~OUTPUT
IEC/PWI 60050-871 ED 2
60050
IEC/PWI 60050-871 ED 2
60050
Foreword
This is a preamble
Introduction
Introduction Subsection
OUTPUT
html = <<~OUTPUT
#{HTML_HDR}
FOREWORD
This is a preamble
Introduction
Introduction Subsection
#{IEC_TITLE1}