expected.tsv 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Expected results for tests/fixtures/*.pas - one line per fixture:
  2. #
  3. # <fixture-basename> OK <code> <data>
  4. # <fixture-basename> ERR <tp3-error-no> <relative-pos>
  5. #
  6. # Both the verdict AND the numbers are asserted by run_compile_tests.sh, so a
  7. # regression in the *reported error position* fails the suite just like a
  8. # regression in the generated code. That matters: error positions were once
  9. # silently wrong (a multi-character string literal swallowed the rest of the
  10. # source, so every later error pointed at end-of-file), and nothing caught it
  11. # because the old harness only printed the position for a human to squint at.
  12. #
  13. # Re-baseline deliberately, never to make a red test go green: if a fixture's
  14. # expectation has to change because the compiler legitimately improved, change
  15. # it in the same commit as the fix and say why in the message.
  16. #
  17. # ERR 102 = ENoLib, the original's "not implemented" path. The five ERR rows
  18. # below are all unimplemented features, not parser bugs:
  19. # t02 t03 t05 t17 multi-character string literal (string runtime pending)
  20. # t14 'array [..] of <type>' at its point of use
  21. # uierror deliberate syntax error, pinned by the editor UI test
  22. t01_minimal OK 26 260
  23. t02_writeln ERR 102 33
  24. t03_inline_comment ERR 102 41
  25. t04_var OK 45 262
  26. t05_own_line_comment ERR 102 65
  27. t06_two_args OK 49 260
  28. t07_big OK 99 262
  29. t08_const OK 32 262
  30. t09_if OK 64 262
  31. t10_while OK 72 262
  32. t11_for OK 66 262
  33. t12_repeat OK 69 262
  34. t13_proc OK 50 262
  35. t14_types ERR 102 83
  36. t15_label OK 35 262
  37. t16_str1 OK 39 260
  38. t17_two_str ERR 102 34
  39. t18_writeln_bare OK 29 260
  40. t19_int1 OK 39 260
  41. t20_str3 OK 59 260
  42. t21_mixed OK 59 260
  43. t22_case OK 93 262
  44. uierror ERR 41 331