We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c01f53 commit 1c72523Copy full SHA for 1c72523
test/pointing_party/vote_calculator_test.exs
@@ -10,8 +10,17 @@ defmodule PointingParty.VoteCalculatorTest do
10
11
describe "winning_vote/1" do
12
test "calculates the card estimate from the votes" do
13
- winning = PointingParty.VoteCalculator.winning_vote(@users)
14
- assert winning == 3
+ # check all str <- string(:printable),
+ # 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
24
end
25
26
0 commit comments