Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
core
test
UnitTest
Int_UnitTests.cpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Teuchos: Common Tools Package
4
//
5
// Copyright 2004 NTESS and the Teuchos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#include "
Teuchos_UnitTestHarness.hpp
"
11
12
13
namespace
{
14
15
16
TEUCHOS_UNIT_TEST
( Int, Basic )
17
{
18
int
i1 = 5;
19
TEST_EQUALITY_CONST
( i1, 5 );
20
}
21
22
23
TEUCHOS_UNIT_TEST
( Int, Assignment )
24
{
25
int
i1 = 4;
26
int
i2 = i1;
27
TEST_EQUALITY
( i2, i1 );
28
}
29
30
31
}
// namespace
TEST_EQUALITY
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
Definition:
Teuchos_LocalTestingHelpers.hpp:55
TEUCHOS_UNIT_TEST
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
Definition:
Teuchos_UnitTestHelpers.hpp:51
Teuchos_UnitTestHarness.hpp
Unit testing support.
TEST_EQUALITY_CONST
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
Definition:
Teuchos_LocalTestingHelpers.hpp:47
Generated on Fri Dec 20 2024 09:21:21 for Teuchos Package Browser (Single Doxygen Collection) by
1.8.5