Serenity BDD Report
Home > Mathjs-api > Expressions > Basic expressions
Report generated 19-07-2024 15:28

Expressions

  Mathjs-Api (capability)   Under 1 Second (Duration)

Basic expressions

Single expression requests can be evaluated using the GET endpoint.

Scenario Outline

When Sandra requests evaluation of <expression>
Then she should get <expected_result>

Examples: Basic operators

# Expression Expected Result
1 2 + 3 5
2 2 - 3 -1

Examples: Order of operations

# Expression Expected Result
3 2 * 2 + 2 6
4 2 + 2 * 2 6
Steps Outcome
SUCCESS 333ms
SUCCESS 098ms
SUCCESS 100ms
SUCCESS 095ms
SUCCESS 0.64s
Serenity BDD version 4.1.6