Closed ms609 closed 5 months ago
Yes, this is inconsistent. I have changed it so the tests now throughout return false on an error of a simulation not initialising correctly, but failed tests will just make the flag false. There are several ways I could do these tests, but this way when it returns it should be obvious at which point of initialising a simulation the test failed from the return point.
Not particularly consequential, but in
testOne
(and others) an error triggers areturn false
and the test to abort, whereas intestZero
an error sets the flag to false but subsequent tests continue to run. The lineif (testFlag) out << "\nMask initiation tests passed.\n";
hints that this, rather than an immediatereturn
is the intention for this test.