summaryrefslogtreecommitdiff
path: root/test/functional/basic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/basic.rb')
-rwxr-xr-xtest/functional/basic.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/basic.rb b/test/functional/basic.rb
index 2da85e6..5e0e759 100755
--- a/test/functional/basic.rb
+++ b/test/functional/basic.rb
@@ -25,19 +25,26 @@ class BasicTest < Test::Unit::TestCase
def test_duo
assert_equal(RUBY_TEST_CODE,
CodeRay::Duo[:plain, :plain].highlight(RUBY_TEST_CODE))
+ assert_equal(RUBY_TEST_CODE,
+ CodeRay::Duo[:plain => :plain].highlight(RUBY_TEST_CODE))
+ end
+
+ def test_duo_stream
+ assert_equal(RUBY_TEST_CODE,
+ CodeRay::Duo[:plain, :plain].highlight(RUBY_TEST_CODE, :stream => true))
end
ENCODERS_LIST = %w(
count debug div html null page span statistic text tokens xml yaml
)
- def test_list_of_encoders
+ def _test_list_of_encoders
assert_equal(ENCODERS_LIST, CodeRay::Encoders.list.sort)
end
SCANNERS_LIST = %w(
c debug delphi html nitro_xhtml plaintext rhtml ruby xml
)
- def test_list_of_scanners
+ def _test_list_of_scanners
assert_equal(SCANNERS_LIST, CodeRay::Scanners.list.sort)
end