require "spec_helper"
RSpec.describe IsoDoc do
it "processes section names" do
expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
This is a preamble This is patent boilerplate Text
This is a preamble
This is patent boilerplate
Text
There are no normative references in this document.
For the purposes of this document, the following terms and definitions apply.
ISO and IEC maintain terminological databases for use in standardization at the following addresses:
ISO Online browsing platform: available at http://www.iso.org/obp
IEC Electropedia: available at http://www.electropedia.org
3.1.1
Term2
Symbol
Symbol