HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/htmlentities-4.3.4/test/entities_test.rb
# encoding: UTF-8
require_relative "./test_helper"

class HTMLEntities::EntitiesTest < Test::Unit::TestCase

  def test_should_raise_exception_when_unknown_flavor_specified
    assert_raises HTMLEntities::UnknownFlavor do
      HTMLEntities.new('foo')
    end
  end

  def test_should_allow_symbol_for_flavor
    assert_nothing_raised do
      HTMLEntities.new(:xhtml1)
    end
  end

  def test_should_allow_upper_case_flavor
    assert_nothing_raised do
      HTMLEntities.new('XHTML1')
    end
  end

end