G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsSpectra_test.cpp File Reference

Provides unittests for the gsSpectra class. More...

+ Include dependency graph for gsSpectra_test.cpp:

Functions

gsSparseMatrix< real_t > sprand (index_t size, real_t prob=0.5)
 Auxiliary functions.
 

Detailed Description

Provides unittests for the gsSpectra class.

== BASIC REFERENCE ==

  • TEST(NAME_OF_TEST) { body_of_test }
  • TEST_FIXTURE(NAME_OF_FIXTURE,NAME_OF_TEST){ body_of_test }

== CHECK MACRO REFERENCE ==

  • CHECK(EXPR);
  • CHECK_EQUAL(EXPECTED,ACTUAL);
  • CHECK_CLOSE(EXPECTED,ACTUAL,EPSILON);
  • CHECK_ARRAY_EQUAL(EXPECTED,ACTUAL,LENGTH);
  • CHECK_ARRAY_CLOSE(EXPECTED,ACTUAL,LENGTH,EPSILON);
  • CHECK_ARRAY2D_EQUAL(EXPECTED,ACTUAL,ROWCOUNT,COLCOUNT);
  • CHECK_ARRAY2D_CLOSE(EXPECTED,ACTUAL,ROWCOUNT,COLCOUNT,EPSILON);
  • CHECK_THROW(EXPR,EXCEPTION_TYPE_EXPECTED);

== TIME CONSTRAINTS ==

  • UNITTEST_TIME_CONSTRAINT(TIME_IN_MILLISECONDS);
  • UNITTEST_TIME_CONSTRAINT_EXEMPT();

== MORE INFO == See: https://unittest-cpp.github.io/

Author(s): H.M.Verhelst (2019 - ..., TU Delft, 2023 - ... UniFi)