ROOT
ROOT project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PolynomialParserTester Class Reference

Test fixture class for PolynomialParser unit tests. More...

#include <polynomial_parser_tester.hpp>

Inheritance diagram for PolynomialParserTester:
Inheritance graph
Collaboration diagram for PolynomialParserTester:
Collaboration graph

Public Member Functions

void testParseTokenAsPolyTerm (const std::string &input, const std::function< double(double)> &expected)
 Test the parseTokenAsPolyTerm method of PolynomialParser.
 
void testParse (const std::string &input, const std::function< double(double)> &expected)
 Test the parse method of PolynomialParser.
 

Detailed Description

Test fixture class for PolynomialParser unit tests.

Member Function Documentation

◆ testParse()

void PolynomialParserTester::testParse ( const std::string &  input,
const std::function< double(double)> &  expected 
)
inline

Test the parse method of PolynomialParser.

Parameters
inputThe input polynomial function string to be parsed.
expectedA std::function<double(double)> representing the expected parsed polynomial function.
Here is the call graph for this function:

◆ testParseTokenAsPolyTerm()

void PolynomialParserTester::testParseTokenAsPolyTerm ( const std::string &  input,
const std::function< double(double)> &  expected 
)
inline

Test the parseTokenAsPolyTerm method of PolynomialParser.

Parameters
inputThe input token string to be parsed.
expectedA std::function<double(double)> representing the expected parsed term.
Here is the call graph for this function:

The documentation for this class was generated from the following file: