Sha256: 2d24f0c24434f395ed61d99d74731af304f30bac1871b3c2da3aae737dd17d9f

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestBasics < Minitest::Test
  def setup
    @doc = CommonMarker.render_doc('Hi *there*')
  end

  def test_to_html
    assert_equal "<p>Hi <em>there</em></p>\n", @doc.to_html
  end

  def test_markdown_to_html
    html = CommonMarker.render_html('Hi *there*')
    assert_equal "<p>Hi <em>there</em></p>\n", html
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
commonmarker-0.23.0 test/test_basics.rb
commonmarker-0.22.0 test/test_basics.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/commonmarker-0.21.2/test/test_basics.rb
commonmarker-0.21.2 test/test_basics.rb
commonmarker-0.21.1 test/test_basics.rb
commonmarker-0.21.0 test/test_basics.rb
commonmarker-0.20.2 test/test_basics.rb
commonmarker-0.20.1 test/test_basics.rb
commonmarker-0.20.0 test/test_basics.rb
commonmarker-0.19.0 test/test_basics.rb