1require 'rdoc/test_case' 2 3class TestRDocRubyToken < RDoc::TestCase 4 5 def test_Token_text 6 token = RDoc::RubyToken::Token.new 0, 0, 0, 'text' 7 8 assert_equal 'text', token.text 9 end 10 11 def test_TkOp_name 12 token = RDoc::RubyToken::TkOp.new 0, 0, 0, '&' 13 14 assert_equal '&', token.text 15 assert_equal '&', token.name 16 end 17 18end 19 20