mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a15857a7f
commit
401b64c4e8
3689 changed files with 6095 additions and 6096 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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, :==
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "MatchData#inspect" do
|
||||
before :each do
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "MatchData#names" do
|
||||
it "returns an Array" do
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue