| 
    KiCad PCB EDA Suite
    
   | 
 
Test suite for SEXPR::PARSER. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <sexpr/sexpr_parser.h>#include "sexpr_test_utils.h"Go to the source code of this file.
Classes | |
| class | TEST_SEXPR_PARSER_FIXTURE | 
| struct | TEST_SEXPR_CASE | 
| Collection of test cases for use when multiple cases can be handled in the same test case.  More... | |
| struct | TEST_SEXPR_ROUNDTRIPPING | 
| Test for roundtripping (valid) s-expression back to strings.  More... | |
Functions | |
| BOOST_AUTO_TEST_CASE (Empty) | |
| Declare the test suite.   | |
| BOOST_AUTO_TEST_CASE (Words) | |
| This comes out as a single symbol.   | |
| BOOST_AUTO_TEST_CASE (ParseExceptions) | |
| This comes out as a single symbol.   | |
| BOOST_AUTO_TEST_CASE (EmptyParens) | |
| This comes out as an empty list.   | |
| BOOST_AUTO_TEST_CASE (SimpleSymbol) | |
| Single symbol in parens.   | |
| BOOST_AUTO_TEST_CASE (SymbolString) | |
| Test several atoms in a list, including nested lists.   | |
| BOOST_AUTO_TEST_CASE (StringRoundtrip) | |
Test suite for SEXPR::PARSER.
Definition in file test_sexpr_parser.cpp.
| BOOST_AUTO_TEST_CASE | ( | Empty | ) | 
Declare the test suite.
Cases that result in no s-expr object
Definition at line 70 of file test_sexpr_parser.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and BOOST_TEST_CONTEXT().
| BOOST_AUTO_TEST_CASE | ( | EmptyParens | ) | 
This comes out as an empty list.
Definition at line 149 of file test_sexpr_parser.cpp.
References BOOST_CHECK_PREDICATE(), and KI_TEST::SexprIsListOfLength().
| BOOST_AUTO_TEST_CASE | ( | ParseExceptions | ) | 
This comes out as a single symbol.
Definition at line 108 of file test_sexpr_parser.cpp.
References BOOST_TEST_CONTEXT().
| BOOST_AUTO_TEST_CASE | ( | SimpleSymbol | ) | 
Single symbol in parens.
Definition at line 161 of file test_sexpr_parser.cpp.
References BOOST_CHECK_PREDICATE(), SEXPR::SEXPR::GetChild(), KI_TEST::SexprIsListOfLength(), and KI_TEST::SexprIsSymbolWithValue().
| BOOST_AUTO_TEST_CASE | ( | StringRoundtrip | ) | 
Definition at line 210 of file test_sexpr_parser.cpp.
References BOOST_CHECK_PREDICATE(), BOOST_TEST_CONTEXT(), and KI_TEST::SexprConvertsToString().
| BOOST_AUTO_TEST_CASE | ( | SymbolString | ) | 
Test several atoms in a list, including nested lists.
Definition at line 176 of file test_sexpr_parser.cpp.
References BOOST_CHECK_PREDICATE(), SEXPR::SEXPR::GetChild(), KI_TEST::SexprIsDoubleWithValue(), KI_TEST::SexprIsIntegerWithValue(), KI_TEST::SexprIsListOfLength(), KI_TEST::SexprIsStringWithValue(), and KI_TEST::SexprIsSymbolWithValue().
| BOOST_AUTO_TEST_CASE | ( | Words | ) | 
This comes out as a single symbol.
Definition at line 96 of file test_sexpr_parser.cpp.
References BOOST_CHECK_PREDICATE(), and KI_TEST::SexprIsSymbolWithValue().