Test that a choice item picks anew on each draw, counting only renders drawing it twice, and that a rows weight too close to 0 is refused
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ func TestAChoiceItemKeepsTheNamesItBinds(t *testing.T) {
|
||||
t.Fatalf("render %q holds %q, want each draw of the item to read one pick twice", got, h)
|
||||
}
|
||||
}
|
||||
apart = apart || halves[0] != halves[1]
|
||||
apart = apart || halves[0] != "c" && halves[1] != "c" && halves[0] != halves[1]
|
||||
}
|
||||
if !apart {
|
||||
t.Error("100 renders of {x}|{x} never drew two different halves, want a pick per draw of the item")
|
||||
|
||||
Reference in New Issue
Block a user