mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [
git repo
]
Loading...
Searching...
No Matches
ftTypes_test.cpp
Go to the documentation of this file.
1
/** \file ftTypes_test.cpp
2
* \brief Tests Fourier-transform type traits.
3
*/
4
#include "../../../catch2/catch.hpp"
5
6
#include <Eigen/Dense>
7
8
#define MX_NO_ERROR_REPORTS
9
10
#include "
../../../../include/math/ft/ftTypes.hpp
"
11
12
/// Test the ftTypes
13
/** This is just a compilation check.
14
*
15
* \ingroup ftTypes_unit_tests
16
*/
17
TEST_CASE
(
"Test the ftTypes"
,
"[math::ft]"
)
18
{
19
mx::math::ft::dir
F =
mx::math::ft::dir::forward
;
20
21
REQUIRE(F ==
mx::math::ft::dir::forward
);
22
REQUIRE(F !=
mx::math::ft::dir::backward
);
23
24
mx::math::ft::dir
B =
mx::math::ft::dir::backward
;
25
26
REQUIRE(B !=
mx::math::ft::dir::forward
);
27
REQUIRE(B ==
mx::math::ft::dir::backward
);
28
}
ftTypes.hpp
Fourier Transform Types.
TEST_CASE
TEST_CASE("Test the ftTypes", "[math::ft]")
Test the ftTypes.
Definition
ftTypes_test.cpp:17
mx::math::ft::dir
dir
Directions of the Fourier Transform.
Definition
ftTypes.hpp:41
mx::math::ft::dir::backward
@ backward
Specifies the backward transform.
Definition
ftTypes.hpp:42
mx::math::ft::dir::forward
@ forward
Specifies the forward transform.
Definition
ftTypes.hpp:41
tests
include
math
ft
ftTypes_test.cpp
Generated on
for mxlib by
1.15.0