public void RegexCondition2() { AssertOutput(delegate() { CompilerTest(@" z = /foo/ puts(z =~ 'xxxfoo') class Regexp def =~ a '=~' end end z = /foo/ puts(z =~ 'foo') puts(/foo/ =~ 'xxxfoo') "); }, @" 3 =~ 3 "); }