Orthogonal Array Library  1.0.0
Libray for generating orthogonal arrays based on Art Owen's oa library
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
matrixTest.cpp File Reference
#include "matrixTest.h"

Namespaces

 oaTest
 Orthogonal Array Test.
 

Macros

#define ASSERT_THROW_RANGE(X)
 Macro to assert that an out of range error was thrown. More...
 

Detailed Description

Author
Robert Carnell

License GNU General Public License (GPL v3) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Macro Definition Documentation

◆ ASSERT_THROW_RANGE

#define ASSERT_THROW_RANGE (   X)
Value:
try \
{ \
X; \
bclib::Assert(false, "not executed if above throws"); \
} \
catch (std::out_of_range &) \
{ \
bclib::Assert(true, "correct item thrown"); \
} \
catch (...) \
{ \
bclib::Assert(false, "any other throw is incorrect"); \
}

Macro to assert that an out of range error was thrown.