Split RNG related things into its own file

This further removes 2 function declarations from the common path
This commit is contained in:
Martin Hořeňovský 2017-08-30 15:32:44 +02:00
parent 48db47c737
commit 0673b9be35
9 changed files with 76 additions and 29 deletions

View file

@ -10,6 +10,7 @@
#include "catch_context.h"
#include "catch_enforce.h"
#include "catch_interfaces_registry_hub.h"
#include "catch_random_number_generator.h"
#include "catch_string_manip.h"
#include "catch_test_case_info.h"
@ -17,9 +18,6 @@
namespace Catch {
RandomNumberGenerator::result_type RandomNumberGenerator::operator()( result_type n ) const { return std::rand() % n; }
RandomNumberGenerator::result_type RandomNumberGenerator::operator()() const { return std::rand() % max(); }
std::vector<TestCase> sortTests( IConfig const& config, std::vector<TestCase> const& unsortedTestCases ) {
std::vector<TestCase> sorted = unsortedTestCases;