Anton Shestakov <engored@ya.ru>, Mon, 03 Mar 2014 22:17:13 +0900
Keeping comments up-to-date with code.
test/rps3_tests.erl
Permissions: -rw-r--r--
-include_lib("eunit/include/eunit.hrl"). ?assertEqual(3, length(rps3:get_hands())). ?assertEqual(paper, rps3:winning_hand([rock, paper])), ?assertEqual(scissors, rps3:winning_hand([paper, scissors])), ?assertEqual(rock, rps3:winning_hand([scissors, rock])), ?assertEqual(rock, rps3:winning_hand([rock, rock, rock])), ?assertEqual(undefined, rps3:winning_hand([rock, paper, scissors])), ?assertEqual(paper, rps3:winning_hand([rock, paper, paper])), ?assertEqual(paper, rps3:winning_hand([rock, rock, paper])).