byte-physics / igortest

Igor Pro Universal Testing Framework
https://docs.byte-physics.de/igor-unit-testing-framework/
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

Output does not contain correct assertion code #321

Closed t-b closed 1 year ago

t-b commented 1 year ago
•runtest("procedure")
  Start of test "Unnamed"
  Entering test suite "Procedure"
  Entering test case "Testcase"
  0: is false. Assertion "" failed in Testcase➔Helper (Proc0, line 8➔6)
  Leaving test case "Testcase"
  Failed with 1 errors
  Leaving test suite "Procedure"
  Test finished with 1 errors
    ▶ Assertion "" failed in Testcase➔Helper (Proc0, line 8➔6)
  End of test "Unnamed"
•// a94242ef (Merge pull request #297 from byte-physics/mb/feature/wave-leak-tracking, 2022-11-17)
•runtest("procedure")
  Error: Please Save experiment first.
•runtest("procedure")
  Start of test "Unnamed"
  Entering test suite "Procedure"
  Entering test case "Testcase"
  0: is false. Assertion "FAIL()" failed in line 6 (8), procedure "Proc0"
  Leaving test case "Testcase"
  Failed with 1 errors
  Leaving test suite "Procedure"
  Test finished with 1 errors
  End of test "Unnamed"
•// HEAD is now at caadc
d6 Merge pull request #267 from byte-physics/fix-too-late-initialization

Experiment.zip

Please also add test for it. You can query the history via HistoryCarbonCopy. If you use WARN(0) the test case itself passes ;)