diff options
Diffstat (limited to 'test/unit/count.rb')
-rw-r--r-- | test/unit/count.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/count.rb b/test/unit/count.rb new file mode 100644 index 0000000..ad61291 --- /dev/null +++ b/test/unit/count.rb @@ -0,0 +1,15 @@ +require 'test/unit' +require 'coderay' + +class CountTest < Test::Unit::TestCase + + def test_count + tokens = CodeRay.scan <<-RUBY.strip, :ruby +#!/usr/bin/env ruby +# a minimal Ruby program +puts "Hello world!" + RUBY + assert_equal 11, tokens.encode_with(:count) + end + +end
\ No newline at end of file |