DiSMEC++
test.cpp File Reference
#include "io/xmc.h"
#include "io/common.h"
#include "data/data.h"
#include <vector>
#include "doctest.h"

Go to the source code of this file.

Functions

 TEST_CASE ("xmc round trip")
 

Variables

constexpr const char * TEST_FILE
 

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "xmc round trip"  )
Test:
This test case verifies that reading and writing XMC files round-trips.

Definition at line 26 of file test.cpp.

References dismec::io::read_xmc_dataset(), dismec::io::save_xmc_dataset(), and TEST_FILE.

Variable Documentation

◆ TEST_FILE

constexpr const char* TEST_FILE
constexpr
Initial value:
=
R"(4 10 5
2,3 4:1.0 5:-0.5 8:0.25
0 2:1.0
6:-2.0 5:1.5
1, 2 3:-3.0
)"

Definition at line 14 of file test.cpp.

Referenced by TEST_CASE().