diff options
author | murphy <murphy@rubychan.de> | 2010-06-29 06:32:30 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-29 06:32:30 +0000 |
commit | 93dfad17309f46d00d1043592efdb282d13963fe (patch) | |
tree | 60cbfc2fbc3497f95f5d02de1e9ec8c7b10515ff /test/unit/null.rb | |
parent | 87764c224cc8c808688e83d7c1f93c8dbbbd9b4f (diff) | |
download | coderay-93dfad17309f46d00d1043592efdb282d13963fe.tar.gz |
Added lots of unit tests.
Theses actually come from the library files; now they are included. Also, rake test and test:all don't test the scanners now; you have to start them using rake test:scanners.
Diffstat (limited to 'test/unit/null.rb')
-rw-r--r-- | test/unit/null.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/null.rb b/test/unit/null.rb new file mode 100644 index 0000000..ea516d8 --- /dev/null +++ b/test/unit/null.rb @@ -0,0 +1,14 @@ +require 'test/unit' +require 'coderay' + +class NullTest < Test::Unit::TestCase + + def test_null + ruby = <<-RUBY +puts "Hello world!" + RUBY + tokens = CodeRay.scan ruby, :ruby + assert_equal '', tokens.encode_with(:null) + end + +end
\ No newline at end of file |