add modulo koan (Kernel.rem/2)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user