20 ms

Mocha Tests: 28 total, 28 passed

  • Collapse |
  • Expand
  • 0 ms
    convertToExpressionTree
    • 0 ms
      passedConverting Valid Expression -> a + b
    • 0 ms
      passedConverting Invalid Expression -> a +
    • 0 ms
      passedConverting Expression with Variable Prefix "@" -> a + 2 + 5 * @someQuantity
    • 0 ms
      passedConverting Expression without Variable -> 1 + 2
    • 0 ms
      passedConverting Expression with Nested Variable (Separated by _) and Prefix "@" -> (@Form1_@SomeValue >= 200) || (@Form2_@OtherValue < 500)
  • 20 ms
    evaluateExpression
    • 16 ms
      passedEvaluating Expression (Without Prefix) -> (a + b) * 5
    • 1 ms
      passedEvaluating Expression (Without Prefix) -> a + b / 20
    • 1 ms
      passedEvaluating Expression (Without Prefix) -> isEditable || isAuthor && isAdmin
    • 1 ms
      passedEvaluating Expression (Without Prefix) -> Math.sqrt(a * a)
    • 1 ms
      passedEvaluating Expression (With Prefix) -> (@a + b) * 5
    • 0 ms
      passedEvaluating Expression (With Prefix) -> @a + @b / 20
    • 0 ms
      passedEvaluating Expression (With Prefix) -> @isEditable || @isAuthor && @isAdmin
    • 0 ms
      passedEvaluating Expression (With Prefix) and Nested Variable (Separated by _) -> (@Form1_@SomeValue * 100) + (@Form2_@OtherValue / 10)
  • 0 ms
    isValidExpression
    • 0 ms
      passedChecking Valid Expression -> a + b
    • 0 ms
      passedChecking Valid Expression -> a + b * 100
    • 0 ms
      passedChecking Invalid Expression -> a + b *
    • 0 ms
      passedChecking Invalid Expression -> a + b * 100 ||
    • 0 ms
      passedChecking Valid Expression with Variable Prefix "@" -> (@a + @b + @c) * 55
    • 0 ms
      passedChecking Valid Expression with Variable Prefix "@" -> a + @b * 100
    • 0 ms
      passedChecking Invalid Expression with Variable Prefix "@" -> (@SomeValue >= 200) || (@OtherValue < 500) || || )
    • 0 ms
      passedChecking Invalid Expression with Variable Prefix "@" -> (@SomeValue >= 700) && (@OtherValue == 100))
    • 0 ms
      passedChecking Expression without Variable -> 120 + 25
    • 0 ms
      passedChecking Expression without Variable -> 400 / 200 * 100
    • 0 ms
      passedChecking Expression without Variable -> (50 * 25) + 500
    • 0 ms
      passedChecking Expression With Nested Variables (Separated by _) -> (@Form1_@SomeValue >= 200) || (@Form2_@OtherValue < 500)
    • 0 ms
      passedChecking Expression With Nested Variables (Separated by _) -> (@Form3_@SomeValue * 200) - (@Form4_@OtherValue + 500)
  • 0 ms
    setOptions
    • 0 ms
      passedSetting up Valid Options
    • 0 ms
      passedSetting up Invalid Options

Generated by WebStorm on 9/12/16 9:57 PM