diff options
author | murphy <murphy@rubychan.de> | 2009-01-01 03:19:28 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-01-01 03:19:28 +0000 |
commit | c9eac585f167788dd590db06776b132923455a93 (patch) | |
tree | e4f8ade4d74b66fba6062f9d7be20c9454d777fc /test/scanners/coderay_suite.rb | |
parent | b9c0dd7c02467e633e195ef97e0f4748e588e799 (diff) | |
download | coderay-c9eac585f167788dd590db06776b132923455a93.tar.gz |
Completed YAML Scanner (closes #34).
YAML Scanner:
* Added another example (multiline).
* Added multiline string recognition.
* This should be enough for most people.
Else:
* New method: Scanner#column (very useful and fast!)
* Added new token type :doctype, used also by HTML scanner.
* coderay_suite: minor output tweaks.
Diffstat (limited to 'test/scanners/coderay_suite.rb')
-rw-r--r-- | test/scanners/coderay_suite.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb index 751b8b7..f5fb7fe 100644 --- a/test/scanners/coderay_suite.rb +++ b/test/scanners/coderay_suite.rb @@ -143,7 +143,7 @@ module CodeRay def test_ALL puts - puts ' >> Testing '.magenta + self.class.name.cyan + + puts ' >> Testing '.magenta + self.class.name[/\w+$/].cyan + ' scanner <<'.magenta puts @@ -230,7 +230,9 @@ module CodeRay begin scanner.tokenize rescue - flunk "Random test failed at #{size} #{RUBY_VERSION < '1.9' ? 'bytes' : 'chars'}" if ENV['assert'] + assert_nothing_raised "Random test failed at #{size} #{RUBY_VERSION < '1.9' ? 'bytes' : 'chars'}" do + raise + end if ENV['assert'] okay = false break end |