Fix warnings in ExtraTests and Examples

This commit is contained in:
Martin Hořeňovský
2020-02-25 12:39:40 +01:00
parent 33b47f7309
commit d1ffaf55a1
8 changed files with 27 additions and 12 deletions

View File

@@ -10,6 +10,8 @@
#include <random>
namespace {
// This class shows how to implement a simple generator for Catch tests
class RandomIntGenerator : public Catch::Generators::IGenerator<int> {
std::minstd_rand m_rand;
@@ -45,6 +47,8 @@ Catch::Generators::GeneratorWrapper<int> random(int low, int high) {
);
}
} // end anonymous namespaces
// The two sections in this test case are equivalent, but the first one
// is much more readable/nicer to use
TEST_CASE("Generating random ints", "[example][generator]") {