This is based on the way that BRAVO currently handles it, but I think a good argument can be made to return 1 instead, perhaps in a single response as the ASN.
I don't know of any way that the current Arlo version could call get_sample_size with one candidate, but that may well change, and the various methods should handle it in a consistent way.
What should
get_sample_size
return for a single candidate contest?A test case in https://github.com/votingworks/arlo/pull/868/ currently says:
This is based on the way that BRAVO currently handles it, but I think a good argument can be made to return 1 instead, perhaps in a single response as the ASN. I don't know of any way that the current Arlo version could call
get_sample_size
with one candidate, but that may well change, and the various methods should handle it in a consistent way.