1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-03-04 15:09:32 +00:00
parent 8a15857a7f
commit 401b64c4e8
3689 changed files with 6095 additions and 6096 deletions

View file

@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#begin" do
it "returns the offset of the start of the nth element" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#captures" do
it "returns an array of the match captures" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#[]" do
it "acts as normal array indexing [index]" do

View file

@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#end" do
it "returns the offset of the end of the nth element" do

View file

@ -1,5 +1,5 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/eql', __FILE__)
require_relative '../../spec_helper'
require_relative 'shared/eql'
describe "MatchData#eql?" do
it_behaves_like :matchdata_eql, :eql?

View file

@ -1,5 +1,5 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/eql', __FILE__)
require_relative '../../spec_helper'
require_relative 'shared/eql'
describe "MatchData#==" do
it_behaves_like :matchdata_eql, :==

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#hash" do
it "needs to be reviewed for spec completeness"

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#inspect" do
before :each do

View file

@ -1,5 +1,5 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/length', __FILE__)
require_relative '../../spec_helper'
require_relative 'shared/length'
describe "MatchData#length" do
it_behaves_like :matchdata_length, :length

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
ruby_version_is '2.4' do
describe 'MatchData#named_captures' do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#names" do
it "returns an Array" do

View file

@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#offset" do
it "returns a two element array with the begin and end of the nth match" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#post_match" do
it "returns the string after the match equiv. special var $'" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#pre_match" do
it "returns the string before the match, equiv. special var $`" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#regexp" do
it "returns a Regexp object" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../../spec_helper', __FILE__)
require_relative '../../../spec_helper'
describe :matchdata_eql, shared: true do
it "returns true if both operands have equal target strings, patterns, and match positions" do

View file

@ -1,5 +1,5 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/length', __FILE__)
require_relative '../../spec_helper'
require_relative 'shared/length'
describe "MatchData#size" do
it_behaves_like :matchdata_length, :size

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#string" do
it "returns a copy of the match string" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#to_a" do
it "returns an array of matches" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#to_s" do
it "returns the entire matched string" do

View file

@ -1,4 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require_relative '../../spec_helper'
describe "MatchData#values_at" do
it "returns an array of the matching value" do