
- Run mix credo --all to identify possible code optimizations - Resolve most of the errors generated by credo such as: - Numbers larger than 9999 should be written with underscores: 58_127 - Modules should have a @moduledoc tag - Comparison will always return true
13 lines
172 B
Elixir
13 lines
172 B
Elixir
defmodule SingleArity do
|
|
@moduledoc false
|
|
use Koans
|
|
|
|
@intro """
|
|
A koan with single arity testing
|
|
"""
|
|
|
|
koan "Only one" do
|
|
assert match?(:foo, ___)
|
|
end
|
|
end
|