diff options
| author | 2022-03-28 23:23:30 +0200 | |
|---|---|---|
| committer | 2022-04-13 15:40:42 +0200 | |
| commit | c1dca21057dd81c66bf1e164f401b161c2d883ea (patch) | |
| tree | d2813bd30c81c610c1509809eb8a8c782c0568ed /tests | |
| parent | 70c279ab847883046ef0a951e4d2ccbf6170d19a (diff) | |
| download | OneRoll-c1dca21057dd81c66bf1e164f401b161c2d883ea.tar.gz OneRoll-c1dca21057dd81c66bf1e164f401b161c2d883ea.zip | |
update to new cmake
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dice/tst_dice.cpp | 4 | ||||
| -rw-r--r-- | tests/fuzzer/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp index c3168f4..9c9085a 100644 --- a/tests/dice/tst_dice.cpp +++ b/tests/dice/tst_dice.cpp @@ -492,7 +492,7 @@ void TestDice::scopeDF() m_diceParser->start(); auto results= m_diceParser->scalarResultsFromEachInstruction(); - for(auto result : results) + for(auto const& result : qAsConst(results)) QVERIFY(result >= min && result <= max); } @@ -556,7 +556,7 @@ void TestDice::severalInstruction() results << 3; int i= 0; - for(auto cmd : commands) + for(auto const& cmd : qAsConst(commands)) { auto test= m_diceParser->parseLine(cmd); QVERIFY2(test, cmd.toStdString().c_str()); diff --git a/tests/fuzzer/CMakeLists.txt b/tests/fuzzer/CMakeLists.txt index c6d94ca..a3d4e7c 100644 --- a/tests/fuzzer/CMakeLists.txt +++ b/tests/fuzzer/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.16) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") set(CMAKE_AUTOMOC ON) |