Skip to content

Commit 1c72523

Browse files
wip stream data
1 parent 9c01f53 commit 1c72523

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/pointing_party/vote_calculator_test.exs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ defmodule PointingParty.VoteCalculatorTest do
1010

1111
describe "winning_vote/1" do
1212
test "calculates the card estimate from the votes" do
13-
winning = PointingParty.VoteCalculator.winning_vote(@users)
14-
assert winning == 3
13+
# check all str <- string(:printable),
14+
# times <- integer(),
15+
# times >= 0 do
16+
# new_string = Repeater.duplicate(str, times)
17+
18+
check all users <- map_of(string(:printable), StreamData.fixed_map(%{
19+
metas: list_of(StreamData.fixed_map(%{points: integer()})),
20+
})) do
21+
winning = PointingParty.VoteCalculator.winning_vote(users)
22+
assert winning
23+
end
1524
end
1625
end
1726
end

0 commit comments

Comments
 (0)