MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / test_bounds

Function test_bounds

tests/test_RandomNumberGenerator.py:8–14  ·  view source on GitHub ↗

Tests that the minimum and maximum integer value the RNG can produce corresponds to the underlying type's maximum range.

()

Source from the content-addressed store, hash-verified

6
7
8def test_bounds():
9 """
10 Tests that the minimum and maximum integer value the RNG can produce
11 corresponds to the underlying type's maximum range.
12 """
13 assert_equal(RandomNumberGenerator.min(), 0)
14 assert_equal(RandomNumberGenerator.max(), np.iinfo(np.uint32).max)
15
16
17def test_call():

Callers

nothing calls this directly

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected