Add uniform_integer_distribution

This commit is contained in:
Martin Hořeňovský
2023-12-08 22:01:36 +01:00
parent 04a829b0e1
commit ed9d672b5c
22 changed files with 624 additions and 18 deletions

View File

@@ -18237,6 +18237,22 @@ InternalBenchmark.tests.cpp:<line number>: PASSED:
with expansion:
0.95 == 0.95
-------------------------------------------------------------------------------
uniform_integer_distribution can return the bounds
-------------------------------------------------------------------------------
RandomNumberGeneration.tests.cpp:<line number>
...............................................................................
RandomNumberGeneration.tests.cpp:<line number>: PASSED:
REQUIRE( dist.a() == -10 )
with expansion:
-10 == -10
RandomNumberGeneration.tests.cpp:<line number>: PASSED:
REQUIRE( dist.b() == 10 )
with expansion:
10 == 10
-------------------------------------------------------------------------------
unique_ptr reimplementation: basic functionality
Default constructed unique_ptr is empty
@@ -18724,6 +18740,6 @@ Misc.tests.cpp:<line number>
Misc.tests.cpp:<line number>: PASSED:
===============================================================================
test cases: 416 | 311 passed | 85 failed | 6 skipped | 14 failed as expected
assertions: 2258 | 2077 passed | 146 failed | 35 failed as expected
test cases: 417 | 312 passed | 85 failed | 6 skipped | 14 failed as expected
assertions: 2260 | 2079 passed | 146 failed | 35 failed as expected