test/test_idgxmlbuilder.rb in review-5.3.0 vs test/test_idgxmlbuilder.rb in review-5.4.0

- old
+ new

@@ -346,19 +346,19 @@ //#{type}[#{type}2]{ //} EOS - if type == 'notice' # exception pattern - expected = <<-EOS.chomp + expected = if type == 'notice' # exception pattern + <<-EOS.chomp <#{type}-t><title aid:pstyle='#{type}-title'>#{type}1</title></#{type}-t><#{type}-t><title aid:pstyle='#{type}-title'>#{type}2</title></#{type}-t> EOS - else - expected = <<-EOS.chomp + else + <<-EOS.chomp <#{type}><title aid:pstyle='#{type}-title'>#{type}1</title></#{type}><#{type}><title aid:pstyle='#{type}-title'>#{type}2</title></#{type}> EOS - end + end assert_equal expected, compile_block(src) src = <<-EOS //#{type}[#{type}2]{ @@ -410,20 +410,20 @@ //} //#{type}[OMITEND2]{ //} EOS - if type == 'notice' # exception pattern - expected = <<-EOS.chomp + expected = if type == 'notice' # exception pattern + <<-EOS.chomp <#{type}><ul><li aid:pstyle="ul-item">A</li></ul><ol><li aid:pstyle="ol-item" olnum="1" num="1">B</li></ol></#{type}><#{type}-t><title aid:pstyle='#{type}-title'>OMITEND1</title><list type='emlist'><pre>LIST </pre></list></#{type}-t><#{type}-t><title aid:pstyle='#{type}-title'>OMITEND2</title></#{type}-t> EOS - else - expected = <<-EOS.chomp + else + <<-EOS.chomp <#{type}><ul><li aid:pstyle="ul-item">A</li></ul><ol><li aid:pstyle="ol-item" olnum="1" num="1">B</li></ol></#{type}><#{type}><title aid:pstyle='#{type}-title'>OMITEND1</title><list type='emlist'><pre>LIST </pre></list></#{type}><#{type}><title aid:pstyle='#{type}-title'>OMITEND2</title></#{type}> EOS - end + end assert_equal expected, compile_block(src) end end def test_minicolumn_blocks_nest_error1