IronRuby.Tests.Tests.RegexCondition2 C# (CSharp) Method

RegexCondition2() public method

public RegexCondition2 ( ) : void
return void
        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
");
        }
        
Tests