Givaro
4.2.1
tests
Macros
|
Functions
test-rational-class.C File Reference
#include "
./rational/givrational.h
"
Macros
#define
TEST_ASSERT
(cond)
#define
TEST_EQUAL
(a, b)
Functions
int
main
(void)
Macro Definition Documentation
◆
TEST_ASSERT
#define TEST_ASSERT
(
cond
)
Value:
if
(!(cond)) { \
std::cout << #cond <<
" failed!"
<< std::endl; \
return
-1; \
}
◆
TEST_EQUAL
#define TEST_EQUAL
(
a
,
b
)
Value:
if
(!((a) == (b))) { \
std::cout << #a <<
" == "
<< #b <<
" failed! "
<< std::endl; \
std::cout << (a) <<
" == "
<< (b) << std::endl; \
return
-1; \
}
Function Documentation
◆
main()
int main
(
void
)
Generated on Fri Jan 16 2026 00:45:14 for Givaro by
1.13.2