File: test_named_characters.rb

package info (click to toggle)
ruby-nokogiri 1.10.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,088 kB
  • sloc: xml: 28,081; ruby: 16,687; java: 13,293; ansic: 4,954; yacc: 265; sh: 76; makefile: 19
file content (14 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "helper"

module Nokogiri
  module HTML
    class TestNamedCharacters < Nokogiri::TestCase
      def test_named_character
        copy = NamedCharacters.get('copy')
        assert_equal 169, NamedCharacters['copy']
        assert_equal copy.value, NamedCharacters['copy']
        assert copy.description
      end
    end
  end
end