add modulo koan (Kernel.rem/2)

This commit is contained in:
Cohen Carlisle
2018-03-02 12:49:55 -05:00
parent 0111b0451c
commit dd85c85b65
2 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ defmodule Numbers do
assert div(5, 2) == ___
end
koan "What remains or: The Case of the Missing Modulo Operator (%)" do
assert rem(5, 2) == ___
end
koan "Other math operators may produce this" do
assert 2 * 2 === ___
end