@@ -16,7 +16,7 @@ defmodule PointingParty.VoteCalculatorTest do
16
16
end
17
17
18
18
property "winning value is a list or a integer" , % { user: user } do
19
- check all ( users <- user ) do
19
+ check all users <- user do
20
20
{ _event , winner } = PointingParty.VoteCalculator . calculate_votes ( users )
21
21
assert is_list ( winner ) || is_integer ( winner )
22
22
end
@@ -25,7 +25,7 @@ defmodule PointingParty.VoteCalculatorTest do
25
25
property "tie when winning value is a list, winner when winning value is an integer" , % {
26
26
user: user
27
27
} do
28
- check all ( users <- user ) do
28
+ check all users <- user do
29
29
{ event , winner } = PointingParty.VoteCalculator . calculate_votes ( users )
30
30
31
31
cond do
@@ -39,7 +39,7 @@ defmodule PointingParty.VoteCalculatorTest do
39
39
end
40
40
41
41
property "the winning value is not more than the highest point value" , % { user: user } do
42
- check all ( users <- user ) do
42
+ check all users <- user do
43
43
{ _event , winner } = PointingParty.VoteCalculator . calculate_votes ( users )
44
44
45
45
max_vote =
@@ -58,7 +58,7 @@ defmodule PointingParty.VoteCalculatorTest do
58
58
end
59
59
60
60
property "when the winner is a list of two sorted values" , % { user: user } do
61
- check all ( users <- user ) do
61
+ check all users <- user do
62
62
{ _event , winner } = PointingParty.VoteCalculator . calculate_votes ( users )
63
63
64
64
if is_list ( winner ) do
0 commit comments