mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@e829fb0
This commit is contained in:
parent
ce888bfa23
commit
3f6c0a6d74
27 changed files with 296 additions and 134 deletions
12
spec/ruby/core/complex/to_c_spec.rb
Normal file
12
spec/ruby/core/complex/to_c_spec.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Complex#to_c" do
|
||||
it "returns self" do
|
||||
value = Complex(1, 5)
|
||||
value.to_c.should equal(value)
|
||||
end
|
||||
|
||||
it 'returns the same value' do
|
||||
Complex(1, 5).to_c.should == Complex(1, 5)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue