Datasets:

Modalities:
Image
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
File size: 679 Bytes
5b89cb9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
////////////////////////////////////////////////////////////////////////////////
// Keep this file empty, and implement unit tests in separate compilation units!
////////////////////////////////////////////////////////////////////////////////

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>


// TODO: Fix floating point exceptions raised in debug mode before re-enabling this.
// #ifndef NDEBUG
// #ifdef __linux__
// #include <fenv.h>
// #endif
// #endif

// #ifndef NDEBUG
// #ifdef __linux__
// void beforeMain (void) __attribute__((constructor));
// void beforeMain (void)
// {
//     feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
// }
// #endif
// #endif