# Path: moonlight/util/more_iter_tools.py
# def iter_sample(iterator, count, rand=None):


import random
import numpy as np
from absl.testing import absltest
from moonlight.util import more_iter_tools
from six import moves
"""Tests for more_iter_tools."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




class MoreIterToolsTest(absltest.TestCase):

  def testSample_count_0(self):
    self.assertEqual([], more_iter_tools.iter_sample(moves.range(100), 0))

  def testSample_iter_empty(self):
    self.assertEqual([], more_iter_tools.iter_sample(moves.range(0), 10))

  def testSample_distribution(self):

# Path: moonlight/util/more_iter_tools.py
# def iter_sample(iterator, count, rand=None):


# Path: moonlight/util/more_iter_tools_test.py
import random
import numpy as np
from absl.testing import absltest
from moonlight.util import more_iter_tools
from six import moves

"""Tests for more_iter_tools."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




class MoreIterToolsTest(absltest.TestCase):

  def testSample_count_0(self):
    self.assertEqual([], more_iter_tools.iter_sample(moves.range(100), 0))

  def testSample_iter_empty(self):
    self.assertEqual([], more_iter_tools.iter_sample(moves.range(0), 10))

  def testSample_distribution(self):

    sample = more_iter_tools.iter_sample(