From 36531238fa4ef33f1792c6ea6de5e00dcadf018a Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Fri, 19 Aug 2011 05:39:45 +0200 Subject: pretty (longer) token class names; closes #347 --- test/functional/basic.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/functional/basic.rb') diff --git a/test/functional/basic.rb b/test/functional/basic.rb index 5d82f5f..1702e4e 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -30,8 +30,8 @@ class BasicTest < Test::Unit::TestCase end end - RUBY_TEST_HTML = 'puts "' + - 'Hello, World!"' + RUBY_TEST_HTML = 'puts "' + + 'Hello, World!"' def test_simple_highlight assert_nothing_raised do assert_equal RUBY_TEST_HTML, CodeRay.scan(RUBY_TEST_CODE, :ruby).html @@ -59,7 +59,7 @@ class BasicTest < Test::Unit::TestCase end def test_highlight_file - assert_match "require 'test/unit'\n", CodeRay.highlight_file(__FILE__) + assert_match "require 'test/unit'\n", CodeRay.highlight_file(__FILE__) end def test_duo @@ -147,7 +147,7 @@ more code # and another comment, in-line. assert_kind_of String, css_class, "TokenKinds[%p] == %p" % [kind, css_class] end end - assert_equal 'r', CodeRay::TokenKinds[:reserved] + assert_equal 'reserved', CodeRay::TokenKinds[:reserved] assert_equal false, CodeRay::TokenKinds[:shibboleet] end -- cgit v1.2.1