test/text_test.rb in asciidoctor-1.5.6 vs test/text_test.rb in asciidoctor-1.5.6.1

- old
+ new

@@ -284,19 +284,21 @@ assert_xpath "//strong/em", rendered assert_xpath "//code/strong", rendered end - test "unconstrained quotes" do - rendered_chars = render_string("**B**__I__++M++", :attributes => {'compat-mode' => ''}) - assert_xpath "//strong", rendered_chars - assert_xpath "//em", rendered_chars - assert_xpath "//code", rendered_chars + test 'unconstrained quotes' do + rendered_chars = render_string('**B**__I__++M++[role]++M++', :attributes => {'compat-mode' => ''}) + assert_xpath '//strong', rendered_chars, 1 + assert_xpath '//em', rendered_chars, 1 + assert_xpath '//code[not(@class)]', rendered_chars, 1 + assert_xpath '//code[@class="role"]', rendered_chars, 1 - rendered_chars = render_string("**B**__I__``M``") - assert_xpath "//strong", rendered_chars - assert_xpath "//em", rendered_chars - assert_xpath "//code", rendered_chars + rendered_chars = render_string('**B**__I__``M``[role]``M``') + assert_xpath '//strong', rendered_chars, 1 + assert_xpath '//em', rendered_chars, 1 + assert_xpath '//code[not(@class)]', rendered_chars, 1 + assert_xpath '//code[@class="role"]', rendered_chars, 1 end end test 'should format Asian characters as words' do assert_xpath '//strong', (render_embedded_string 'bold *要* bold')