1
0
mirror of https://github.com/avitex/elixir-glicko synced 2024-11-24 12:09:58 +00:00
glicko-elixir/test/result_test.exs

23 lines
387 B
Elixir
Raw Normal View History

2017-11-16 11:44:01 +00:00
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)
2017-11-16 11:44:01 +00:00
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