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 ++++---- test/functional/examples.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/functional') 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 diff --git a/test/functional/examples.rb b/test/functional/examples.rb index 3de8be5..b13cb55 100755 --- a/test/functional/examples.rb +++ b/test/functional/examples.rb @@ -22,7 +22,7 @@ end CODE assert_equal <<-DIV, div - @@ -38,9 +38,9 @@ end
1
+  
1
 2
 3
 
- - +
+  
 
puts "Hello, world!"
puts "Hello, world!"
@@ -90,7 +90,7 @@ Token Types (7): div = tokens.div(:css => :class) assert_equal <<-DIV, div
-
{ "just": "an", "example": 42 }
+
{ "just": "an", "example": 42 }
DIV -- cgit v1.2.1