Jpp 19.3.0
the software that should make you happy
|
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_vector.hpp>
#include "parser.h"
#include <sstream>
#include <fstream>
Go to the source code of this file.
Functions | |
TEST_CASE ("samples string separated by single spaces should not fail", "[parseWaveformSamples]") | |
TEST_CASE ("samples string separated by multiple spaces should not fail", "[parseWaveformSamples]") | |
TEST_CASE ("waveform id can be negative", "[parseWaveformSamples]") | |
TEST_CASE ("if the waveform id is not an integer return std::nullopt", "[parseWaveformSamples]") | |
TEST_CASE ("if the number of samples is not an integer return std::nullopt", "[parseWaveformSamples]") | |
TEST_CASE ("an empty dom config should return std::nullopt", "[parseDOMConfiguration]") | |
TEST_CASE ("an invalid dom config should return std::nullopt", "[parseDOMConfiguration]") | |
TEST_CASE ("a valid dom config should not return std::nullopt", "[parseDOMConfiguration]") | |
TEST_CASE ("check valid dom config", "[parseDOMConfiguration]") | |
Variables | |
const Waveform< float > | expected |
const Waveform< float > | expected_negative |
std::string | valid_dom_config = "813536729 5 27 2000 -28 3001 34 4002 35 5003 48 6004 42" |
TEST_CASE | ( | "samples string separated by single spaces should not fail" | , |
"" | [parseWaveformSamples] ) |
Definition at line 13 of file parser.t.cc.
TEST_CASE | ( | "samples string separated by multiple spaces should not fail" | , |
"" | [parseWaveformSamples] ) |
Definition at line 20 of file parser.t.cc.
TEST_CASE | ( | "waveform id can be negative" | , |
"" | [parseWaveformSamples] ) |
Definition at line 27 of file parser.t.cc.
TEST_CASE | ( | "if the waveform id is not an integer return std::nullopt" | , |
"" | [parseWaveformSamples] ) |
Definition at line 35 of file parser.t.cc.
TEST_CASE | ( | "if the number of samples is not an integer return std::nullopt" | , |
"" | [parseWaveformSamples] ) |
Definition at line 42 of file parser.t.cc.
TEST_CASE | ( | "an empty dom config should return std::nullopt" | , |
"" | [parseDOMConfiguration] ) |
Definition at line 49 of file parser.t.cc.
TEST_CASE | ( | "an invalid dom config should return std::nullopt" | , |
"" | [parseDOMConfiguration] ) |
Definition at line 55 of file parser.t.cc.
TEST_CASE | ( | "a valid dom config should not return std::nullopt" | , |
"" | [parseDOMConfiguration] ) |
Definition at line 73 of file parser.t.cc.
TEST_CASE | ( | "check valid dom config" | , |
"" | [parseDOMConfiguration] ) |
Definition at line 79 of file parser.t.cc.
const Waveform<float> expected |
Definition at line 7 of file parser.t.cc.
const Waveform<float> expected_negative |
Definition at line 10 of file parser.t.cc.
std::string valid_dom_config = "813536729 5 27 2000 -28 3001 34 4002 35 5003 48 6004 42" |
Definition at line 71 of file parser.t.cc.