From 6573fe1f1aa6d87c027d10429ded7e0162e52902 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 9 Jul 2017 14:25:48 -0700 Subject: 3965 - get rid of the teardown() function Instead of setup() and teardown() we'll just use a reset() function from now on, which will bring the machine back to a good state before each test or run, and also before exit (to avoid memory leaks). --- 002test.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '002test.cc') diff --git a/002test.cc b/002test.cc index 1f89b05c..0fa39bf1 100644 --- a/002test.cc +++ b/002test.cc @@ -76,11 +76,10 @@ void run_test(size_t i) { cerr << "no test " << i << '\n'; return; } - setup(); + reset(); // End Test Setup (*Tests[i])(); // End Test Teardown - teardown(); } bool is_integer(const string& s) { -- cgit 1.4.1-2-gfad0