MCPcopy Create free account
hub / github.com/boostorg/parser / github_issue_312

Function github_issue_312

test/github_issues.cpp:766–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766void github_issue_312()
767{
768 namespace bp = boost::parser;
769 using namespace github_issue_312_;
770
771 auto result = bp::parse("(2 + 3) + 3.1415 * 2", expression_parser, bp::blank);
772 BOOST_TEST(result);
773 BOOST_TEST(result.value()->evaluate() == (2 + 3) + 3.1415 * 2);
774
775 result = bp::parse("((2*0.1) + 33.) * (2 + 3) + 3.1415 * 2", expression_parser, bp::blank);
776 BOOST_TEST(result);
777 BOOST_TEST(result.value()->evaluate() == ((2*0.1) + 33.) * (2 + 3) + 3.1415 * 2);
778}
779
780
781int main()

Callers 1

mainFunction · 0.85

Calls 3

parseFunction · 0.50
evaluateMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected