Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Defines
TypeConversions_UnitTest.cpp File Reference
#include "Teuchos_as.hpp"
#include "Teuchos_UnitTestHarness.hpp"
#include <limits>
Include dependency graph for TypeConversions_UnitTest.cpp:

Go to the source code of this file.

Defines

#define TEST_NOTHROW_WITH_MESSAGE(code)
#define UNIT_TEST_GROUP_ANY_INTEGER(AnyIntegerType)
#define UNIT_TEST_GROUP_SIGNED_INTEGER(SignedIntegerType)   TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( asSafe, stringToIntegerNegative, SignedIntegerType )

Define Documentation

#define TEST_NOTHROW_WITH_MESSAGE (   code)
Value:
try { \
    (out) << "Test that code {"#code";} does not throw : "; \
    code; \
    (out) << "passes\n"; \
  } \
  catch (std::exception& theException) {      \
    (success) = false; \
    out << "failed\n"; \
    out << "\nException message for unexpected exception:\n\n"; \
    { \
      Teuchos::OSTab l_tab(out); \
      out << theException.what() << "\n\n"; \
    } \
  }

Definition at line 48 of file TypeConversions_UnitTest.cpp.

#define UNIT_TEST_GROUP_ANY_INTEGER (   AnyIntegerType)
Value:
TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( asSafe, stringToIntegerPositive, AnyIntegerType ) \
  TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( asSafe, stringToIntegerShouldThrow, AnyIntegerType )

Definition at line 993 of file TypeConversions_UnitTest.cpp.

#define UNIT_TEST_GROUP_SIGNED_INTEGER (   SignedIntegerType)    TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( asSafe, stringToIntegerNegative, SignedIntegerType )

Definition at line 997 of file TypeConversions_UnitTest.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines