seven1m/30-days-of-elixir

02 assertion text is incorrect

Closed this issue · 1 comments

Line 29-33:

test "assert_in_delta asserts that val1 and val2 differ by no more than delta." do
  assert_in_delta 1, # actual
                  5, # expected
                  6  # delta
end

The text should says "val1 and val2 differ by less than delta".

If you change val2 to 7 you get this error (instead of passing as the text implies you would):
Expected the difference between 1 and 7 (6) to be less than 6

PRs welcome :-)