diff options
Diffstat (limited to 'test/unit/text.rb')
-rw-r--r-- | test/unit/text.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/text.rb b/test/unit/text.rb new file mode 100644 index 0000000..025881e --- /dev/null +++ b/test/unit/text.rb @@ -0,0 +1,14 @@ +require 'test/unit' +require 'coderay' + +class TextTest < Test::Unit::TestCase + + def test_count + ruby = <<-RUBY +puts "Hello world!" + RUBY + tokens = CodeRay.scan ruby, :ruby + assert_equal ruby, tokens.encode_with(:text) + end + +end
\ No newline at end of file |