Anton Shestakov <engored@ya.ru>, Thu, 06 Mar 2014 19:39:46 +0900
Use ~p instead of ~w for win stats, overall more human-friendly format in printer.
test/rps5_tests.erl
Permissions: -rw-r--r--
-include_lib("eunit/include/eunit.hrl"). ?assertEqual(5, length(rps5:get_hands())). ?assertEqual(paper, rps5:winning_hand([rock, paper])), ?assertEqual(scissors, rps5:winning_hand([paper, scissors])), ?assertEqual(rock, rps5:winning_hand([scissors, rock])), ?assertEqual(rock, rps5:winning_hand([rock, rock, rock])), ?assertEqual(undefined, rps5:winning_hand([rock, paper, scissors])), ?assertEqual(paper, rps5:winning_hand([rock, paper, paper])), ?assertEqual(paper, rps5:winning_hand([rock, rock, paper])).