mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Test an edge case for sample().
This commit is contained in:
parent
8b9aa8dbba
commit
8ec78814c1
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ class TestBasicOps(unittest.TestCase):
|
|||
uniq = dict.fromkeys(s)
|
||||
self.assertEqual(len(uniq), k)
|
||||
self.failIf(None in uniq)
|
||||
self.assertEqual(self.gen.sample([], 0), []) # test edge case N==k==0
|
||||
|
||||
def test_gauss(self):
|
||||
# Ensure that the seed() method initializes all the hidden state. In
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue