Sha256: e3ace528cefb407d83868b864d87de981e646ddf60594873c453320cc3ffb729

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

# encoding: UTF-8

require './test_helper'


class TestHtmlParserContext < Minitest::Test
  def test_default_options
    context = XML::HTMLParser::Context.new
    assert_equal(0, context.options)
  end

  def test_no_options
    context = XML::HTMLParser::Context.new
    context.options = 0
    assert_equal(0, context.options)
  end

  def test_options
    context = XML::HTMLParser::Context.new
    context.options = XML::HTMLParser::Options::NOERROR
    assert_equal(XML::HTMLParser::Options::NOERROR, context.options)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libxml-ruby-3.0.0-x64-mingw32 test/tc_html_parser_context.rb
libxml-ruby-3.0.0 test/tc_html_parser_context.rb
libxml-ruby-2.9.0-x64-mingw32 test/tc_html_parser_context.rb
libxml-ruby-2.9.0 test/tc_html_parser_context.rb