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,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../../../fixtures/rational', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative '../../fixtures/rational'
|
||||
|
||||
describe :kernel_Rational, shared: true do
|
||||
describe "passed Integer" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_abs, shared: true do
|
||||
it "returns self's absolute value" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../fixtures/rational', __FILE__)
|
||||
require_relative '../../fixtures/rational'
|
||||
|
||||
describe :rational_arithmetic_exception_in_coerce, shared: true do
|
||||
ruby_version_is ""..."2.5" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_ceil, shared: true do
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_coerce, shared: true do
|
||||
it "returns the passed argument, self as Float, when given a Float" do
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../../../fixtures/rational', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative '../../fixtures/rational'
|
||||
|
||||
describe :rational_cmp_rat, shared: true do
|
||||
it "returns 1 when self is greater than the passed argument" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_denominator, shared: true do
|
||||
it "returns the denominator" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_div_rat, shared: true do
|
||||
it "performs integer division and returns the result" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_divide_rat, shared: true do
|
||||
it "returns self divided by other as a Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_divmod_rat, shared: true do
|
||||
it "returns the quotient as Integer and the remainder as Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_equal_value_rat, shared: true do
|
||||
it "returns true if self has the same numerator and denominator as the passed argument" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_exponent, shared: true do
|
||||
describe "when passed Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_fdiv, shared: true 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 :rational_floor, shared: true do
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_hash, shared: true do
|
||||
# BUG: Rational(2, 3).hash == Rational(3, 2).hash
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_inspect, shared: true do
|
||||
conflicts_with :Prime do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_marshal_dump, shared: true 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 :rational_marshal_load, shared: true 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 :rational_minus_rat, shared: true do
|
||||
it "returns the result of subtracting other from self as a Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_modulo, shared: true do
|
||||
it "returns the remainder when this value is divided by other" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_multiply_rat, shared: true do
|
||||
it "returns self divided by other as a Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_numerator, shared: true do
|
||||
it "returns the numerator" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_plus_rat, shared: true do
|
||||
it "returns the result of subtracting other from self as a Rational" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_quo, shared: true 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 :rational_remainder, shared: true 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 :rational_round, shared: true do
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_to_f, shared: true do
|
||||
it "returns self converted to a Float" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_to_i, shared: true do
|
||||
it "converts self to an Integer by truncation" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_to_r, shared: true do
|
||||
conflicts_with :Prime do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_to_s, shared: true do
|
||||
it "returns a string representation of self" do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe :rational_truncate, shared: true do
|
||||
before do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue