#include <cmath>
#include <cstddef>
#include <valarray>
#include <rw_driver.h>
#include <rw_valcmp.h>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
◆ TEST
Value: { \
rw_info (0, __FILE__, __LINE__, "template <> std::valarray<%s> " \
"std::" #
fun " (std::valarray<%s>)", tname, tname); \
\
std::valarray<T>
val (10); \
for (std::size_t
i = 0;
i !=
val.size (); ++
i) \
\
const std::valarray<T>
result = std::fun (
val); \
\
bool success = 10 ==
val.size () &&
val.size () ==
result.size (); \
\
for (std::size_t
j = 0; success &&
j !=
result.size (); ++
j) { \
success = false; \
} \
\
rw_assert (success, __FILE__, __LINE__, \
"template <> std::valarray<%s> std::" #
fun \
"(std::valarray<%s>)", tname, tname); \
} (void)0
◆ TEST_2
| #define TEST_2 |
( |
|
fun, |
|
|
|
x |
|
) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |