Skip to content

Completed assignment#82

Open
rlchn wants to merge 18 commits into
vikingeducation:masterfrom
rlchn:master
Open

Completed assignment#82
rlchn wants to merge 18 commits into
vikingeducation:masterfrom
rlchn:master

Conversation

@rlchn

@rlchn rlchn commented Feb 23, 2017

Copy link
Copy Markdown

No description provided.

Comment thread spec/calculator_spec.rb
expect(c.divide(0, -3.0)).to eq(0.0)
end

it "raises an ArgumentError when the second argument is zero" do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it raises an Argument Error when the second argument is less than zero

Comment thread spec/calculator_spec.rb
end

it "returns a 2-digit decimal float for non-round roots" do
expect(c.sqrt(4.5)).to eq(2.12)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if the result has 2 decimal places exactly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants