KiCad PCB EDA Suite
|
Test suite for NUMERIC_EVALUATOR. More...
Go to the source code of this file.
Classes | |
struct | NUM_EVAL_FIXTURE |
struct | EVAL_CASE |
Declares the struct as the Boost test fixture. More... | |
struct | EVAL_INVALID_CASE |
Functions | |
BOOST_AUTO_TEST_CASE (Basic) | |
Basic class ops: set one up, trivial input, tear it down. | |
BOOST_AUTO_TEST_CASE (SetVar) | |
Check that getting/setting vars works. | |
BOOST_AUTO_TEST_CASE (Results) | |
Run through a set of test strings, clearing in between. | |
BOOST_AUTO_TEST_CASE (UnicodeDegree) | |
Test unicode parsing of the degree symbol. | |
BOOST_AUTO_TEST_CASE (ResultsInvalid) | |
Run through a set of invalid test strings, clearing in between. | |
Variables | |
static const std::vector< EVAL_CASE > | eval_cases_valid |
A list of valid test strings and the expected results. | |
static const std::vector< EVAL_INVALID_CASE > | eval_cases_invalid |
A list of invalid test strings. | |
Test suite for NUMERIC_EVALUATOR.
Definition in file test_numeric_evaluator.cpp.
BOOST_AUTO_TEST_CASE | ( | Basic | ) |
Basic class ops: set one up, trivial input, tear it down.
Definition at line 62 of file test_numeric_evaluator.cpp.
BOOST_AUTO_TEST_CASE | ( | Results | ) |
Run through a set of test strings, clearing in between.
Definition at line 164 of file test_numeric_evaluator.cpp.
References eval_cases_valid.
BOOST_AUTO_TEST_CASE | ( | ResultsInvalid | ) |
Run through a set of invalid test strings, clearing in between.
Definition at line 246 of file test_numeric_evaluator.cpp.
References eval_cases_invalid.
BOOST_AUTO_TEST_CASE | ( | SetVar | ) |
Check that getting/setting vars works.
Definition at line 71 of file test_numeric_evaluator.cpp.
BOOST_AUTO_TEST_CASE | ( | UnicodeDegree | ) |
Test unicode parsing of the degree symbol.
Definition at line 189 of file test_numeric_evaluator.cpp.
References DEGREES.
|
static |
A list of invalid test strings.
Definition at line 218 of file test_numeric_evaluator.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
A list of valid test strings and the expected results.
Definition at line 111 of file test_numeric_evaluator.cpp.
Referenced by BOOST_AUTO_TEST_CASE().