Classes | Macros | Functions
testSparseMatrix.cc File Reference
#include <iostream>
#include <numeric>
#include <utl/SparseMatrix.h>
#include <tst/Verify.h>
#include <cppunit/extensions/HelperMacros.h>

Go to the source code of this file.

Classes

class  TestSparseMatrix
 

Macros

#define ASSERT_CLOSE(x, y)   CPPUNIT_ASSERT(Verify<CloseTo>(x, y))
 
#define ASSERT_CLOSE_EPS(x, y, eps)   CPPUNIT_ASSERT(Verify<CloseTo>(x, y, eps))
 
#define ASSERT_EQUAL(x, y)   CPPUNIT_ASSERT(Verify<Equal>(x, y))
 
#define ASSERT_ITERATOR_EQUAL(it, e, r, c, v)
 
#define ASSERT_NOT_EQUAL(x, y)   CPPUNIT_ASSERT(Verify<Not<Equal> >(x, y))
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (TestSparseMatrix)
 

Macro Definition Documentation

#define ASSERT_CLOSE (   x,
 
)    CPPUNIT_ASSERT(Verify<CloseTo>(x, y))

Definition at line 13 of file testSparseMatrix.cc.

#define ASSERT_CLOSE_EPS (   x,
  y,
  eps 
)    CPPUNIT_ASSERT(Verify<CloseTo>(x, y, eps))

Definition at line 14 of file testSparseMatrix.cc.

#define ASSERT_EQUAL (   x,
 
)    CPPUNIT_ASSERT(Verify<Equal>(x, y))
#define ASSERT_ITERATOR_EQUAL (   it,
  e,
  r,
  c,
 
)
Value:
CPPUNIT_ASSERT(it != e); \
ASSERT_EQUAL(it.GetRow(), r); \
ASSERT_EQUAL(it.GetColumn(), c); \
ASSERT_EQUAL(it(), v)
#define ASSERT_EQUAL(x, y)

Definition at line 17 of file testSparseMatrix.cc.

Referenced by TestSparseMatrix::TestIterators().

#define ASSERT_NOT_EQUAL (   x,
 
)    CPPUNIT_ASSERT(Verify<Not<Equal> >(x, y))

Definition at line 16 of file testSparseMatrix.cc.

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( TestSparseMatrix  )

, generated on Tue Sep 26 2023.