summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-05 07:43:34 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-05 07:43:34 +0000
commitef1d280a4c93e4403ad8b2d0975950ab6e16c44b (patch)
treeb8c2bb030399f8d1b423d416df65844ba389bbb7 /bootstraptest/runner.rb
parent4005af452020c6b0061c67363076f156a145e747 (diff)
* bootstraptest/runner.rb (assert_not_match): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r--bootstraptest/runner.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 7b971dd500..fd921f4675 100644
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -166,6 +166,18 @@ def assert_match(expected_pattern, testsrc, message = '')
}
end
+def assert_not_match(unexpected_pattern, testsrc, message = '')
+ newtest
+ assert_check(testsrc, message) {|result|
+ if unexpected_pattern !~ result
+ nil
+ else
+ desc = "#{unexpected_pattern.inspect} expected to be !~\n#{result.inspect}"
+ pretty(testsrc, desc, result)
+ end
+ }
+end
+
def assert_normal_exit(testsrc, message = '')
newtest
$stderr.puts "\##{@count} #{@location}" if @verbose