JQ-Calculation

  1. addFormula(): {{left0}} + {{right0}} (0, 2, 2)
    1. sum0 must be empty
      Expected:
      ""
    2. sum0 must be 5 + 5
      Expected:
      10
      Result:
      "10.0000"
      Diff:
      10 "10.0000" 
  2. addFormula(): {{left1}} + {{right1}} (0, 1, 1)
    1. sum1 must be 3 + 7
      Expected:
      10
      Result:
      "10.0000"
      Diff:
      10 "10.0000" 
  3. sum(): [name = "valX"] (0, 2, 2)
    1. aggregation must contain 10
      Expected:
      10
      Result:
      "10.0000"
      Diff:
      10 "10.0000" 
    2. aggregation must contain 10 + 3 + 7
      Expected:
      20
      Result:
      "20.0000"
      Diff:
      20 "20.0000" 
  4. sum(): [name = "valY"] (0, 2, 2)
    1. aggregation must contain 5
      Expected:
      5
      Result:
      "5.0000"
      Diff:
      5 "5.0000" 
    2. aggregation must contain 12
      Expected:
      12
      Result:
      "12.0000"
      Diff:
      12 "12.0000" 
  5. .avg(): .avg(); (0, 4, 4)
    1. AVG must be 1 so far.
      Expected:
      1
      Result:
      "1.0000"
      Diff:
      1 "1.0000" 
    2. AVG must be 1 so far.
      Expected:
      1
      Result:
      "1.0000"
      Diff:
      1 "1.0000" 
    3. AVG must be 1 so far.
      Expected:
      1
      Result:
      "1.0000"
      Diff:
      1 "1.0000" 
    4. AVG must be 2 now.
      Expected:
      2
      Result:
      "2.0000"
      Diff:
      2 "2.0000" 
  6. .addFormulae(): .addFormulae(); (0, 2, 2)
    1. sum1 must be 5 * 5
      Expected:
      25
      Result:
      "25.0000"
      Diff:
      25 "25.0000" 
    2. sum1 must be 3 * 7
      Expected:
      21
      Result:
      "21.0000"
      Diff:
      21 "21.0000" 
  7. .removeCalculation(): .removeCalculation(); (0, 4, 4)
    1. sum0 must be empty
      Expected:
      ""
    2. aggregation must not contain a value
      Expected:
      ""
    3. sum1 must be empty
      Expected:
      ""
    4. aggregation must not contain a value
      Expected:
      ""

Tests completed in 77 milliseconds.
17 tests of 17 passed, 0 failed.

test markup, will be hidden