Skip to content

Instantly share code, notes, and snippets.

@wende
Created May 29, 2017 22:40
Show Gist options
  • Save wende/44c063392357415d166df933d5ec21f2 to your computer and use it in GitHub Desktop.
Save wende/44c063392357415d166df933d5ec21f2 to your computer and use it in GitHub Desktop.
test "Sum of lists" do
assert Hello.sum([]) == 0
assert Hello.sum([2]) == 2
assert Hello.sum([1, 2, 3, -1, -2, -3]) == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment