From c9eac585f167788dd590db06776b132923455a93 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 1 Jan 2009 03:19:28 +0000 Subject: 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. --- test/scanners/coderay_suite.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/scanners/coderay_suite.rb') 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 -- cgit v1.2.1