mirror of
https://github.com/avitex/elixir-glicko
synced 2024-11-22 03:09:57 +00:00
e22c34f2ff
Add formatter configuration and run `mix format`. Additionally, manually replace leading tabs in documentation examples with four spaces.
23 lines
406 B
Elixir
23 lines
406 B
Elixir
defmodule Glicko.ResultTest do
|
|
use ExUnit.Case
|
|
|
|
alias Glicko.{
|
|
Player,
|
|
Result
|
|
}
|
|
|
|
doctest Result
|
|
|
|
@opponent Player.new_v2()
|
|
|
|
@valid_game_result Result.new(@opponent, 0.0)
|
|
|
|
test "create game result" do
|
|
assert @valid_game_result == Result.new(@opponent, 0.0)
|
|
end
|
|
|
|
test "create game result with shortcut" do
|
|
assert @valid_game_result == Result.new(@opponent, :loss)
|
|
end
|
|
end
|