Tests for the C++ parser#

tests.test_parse_cpp.test_parse()[source][source]#

Test the parsing of a C++ expression

tests.test_parse_cpp.test_format()[source][source]#

Test the formatting of a C++ expression after the parsing. It should be the same as the original string.

tests.test_parse_cpp.test_replace()[source][source]#

Test the replacement of a variable in a C++ expression. First parse, then replace, finally format.

tests.test_parse_cpp.test_noreplace()[source][source]#

Test the replacement of a variable not present in a C++ expression. First parse, then replace, finally format. It should be the same as the original string.

tests.test_parse_cpp.test_listOfVariables()[source][source]#

Test the list of variables in a C++ expression. It removes all separator and returns the list of variables.