Commit 8ec78814 authored by Raymond Hettinger's avatar Raymond Hettinger

Test an edge case for sample().

parent 8b9aa8db
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment