Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 27 deletions.
8 changes: 0 additions & 8 deletions spec/truffle/tags/core/regexp/match_tags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
fails:Regexp#match resets $~ if passed nil
fails:Regexp#match with [string, position] when given a positive position matches the input at a given position
fails:Regexp#match with [string, position] when given a positive position uses the start as a character offset
fails:Regexp#match with [string, position] when given a negative position matches the input at a given position
fails:Regexp#match with [string, position] when given a negative position uses the start as a character offset
fails:Regexp#match with [string, position] when passed a block yields the MatchData
fails:Regexp#match with [string, position] when passed a block returns the block result
fails:Regexp#~ matches against the contents of $_
fails:Regexp#match returns a MatchData object, when argument is a Symbol
Original file line number Diff line number Diff line change
@@ -107,25 +107,6 @@ public int hash(RubyRegexp regexp) {

}

@CoreMethod(names = "match", required = 1, taintFromSelf = true)
public abstract static class MatchNode extends CoreMethodArrayArgumentsNode {

public MatchNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

@Specialization
public Object match(RubyRegexp regexp, RubyString string) {
return regexp.matchCommon(string, false, false);
}

@Specialization(guards = "isNil(nil)")
public Object match(RubyRegexp regexp, Object nil) {
return nil();
}

}

@RubiniusOnly
@CoreMethod(names = "match_start", required = 2)
public abstract static class MatchStartNode extends CoreMethodArrayArgumentsNode {

0 comments on commit 393e64f

Please sign in to comment.