Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/scripts/float_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
output = with_captured_stdout { require_relative('../../float_find_hypotenuse')}
output = "empty" if output.empty?
expect(output.match?(/5.3/i)).to be(true),
"Expected float_find_hypotenuse.rb output to be '5.3\n', but was #{output}."
"Expected float_find_hypotenuse.rb output to be:\n5.3\nbut was:\n#{output}"

end
end
Expand All @@ -32,7 +32,7 @@
output = with_captured_stdout { require_relative('../../float_round')}
output = "empty" if output.empty?
expect(output.match?(/3.333\n/i)).to be(true),
"Expected float_round.rb output to be '3.333\n', but was #{output}."
"Expected float_round.rb output to be\n3.333\nbut was\n#{output}"

end
end
Expand Down