diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 05:39:45 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 05:39:45 +0200 |
commit | 36531238fa4ef33f1792c6ea6de5e00dcadf018a (patch) | |
tree | cca387c2b27dc23d71dab6bd928e10fcdc6cd46b /test/functional/basic.rb | |
parent | 5dd7ca65fdb90d6ffe53790abf1fe5a29a66675e (diff) | |
download | coderay-36531238fa4ef33f1792c6ea6de5e00dcadf018a.tar.gz |
pretty (longer) token class names; closes #347
Diffstat (limited to 'test/functional/basic.rb')
-rwxr-xr-x | test/functional/basic.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 <span class="s"><span class="dl">"</span>' + - '<span class="k">Hello, World!</span><span class="dl">"</span></span>' + RUBY_TEST_HTML = 'puts <span class="string"><span class="delimiter">"</span>' + + '<span class="content">Hello, World!</span><span class="delimiter">"</span></span>' 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 <span class=\"s\"><span class=\"dl\">'</span><span class=\"k\">test/unit</span><span class=\"dl\">'</span></span>\n", CodeRay.highlight_file(__FILE__) + assert_match "require <span class=\"string\"><span class=\"delimiter\">'</span><span class=\"content\">test/unit</span><span class=\"delimiter\">'</span></span>\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 |