1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-09-17 11:42:26 +02:00
parent ce888bfa23
commit 3f6c0a6d74
27 changed files with 296 additions and 134 deletions

View 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