7 #include <gtest/gtest.h>
17 R
"({"result_code": 0, "n_simulations": 1000, "error": 0.001000, "result": 1.250000})");
22 R"({"result_code": 1, "n_simulations": 100000, "error": 0.000001, "result": 1.253000})");
A container for storing the result of a Monte-Carlo simulation.
std::string to_json() const
A function that converts a MonteCarloResult to a JSON string.
The main header file for the FTQlib library.
TEST(MonteCarloResult, to_json)
Unit test for MonteCarloResult::to_json().