aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-07-27 18:04:50 +0100
committerGitHub <noreply@github.com>2017-07-27 18:04:50 +0100
commit57d11153188dbe2a0b8f97baffcebcec5b4614fb (patch)
treec9b41d768e67cf45855a40ae0d6c6e05b55db095 /test
parentc64cbce6cf90d39f1144b36e451f9fe1265f1c55 (diff)
downloadYAGE-57d11153188dbe2a0b8f97baffcebcec5b4614fb.tar.gz
YAGE-57d11153188dbe2a0b8f97baffcebcec5b4614fb.zip
Update testbench.cpp
Diffstat (limited to 'test')
-rw-r--r--test/testbench.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/testbench.cpp b/test/testbench.cpp
index b657147f..c83d20b7 100644
--- a/test/testbench.cpp
+++ b/test/testbench.cpp
@@ -47,18 +47,12 @@ void TestBench::endTest(bool pass)
incrementer--;
if(incrementer!=0)
- {
throw std::runtime_error("Start and End don't match");
- }
- if(pass)
- {
+ if(pass)
passed++;
- }
- else
- {
+ else
failed++;
- }
tests_[passed+failed-1].passed=pass;
}