tame/tamer/tests
Mike Gerwitz c19ecba6ef tamer: asg::air::object::tpl: Reject multi-expression shape
This enforces the new constraint that templates expanding into an `Expr`
context must only inline a single `Expr`.

Perhaps in the future we'll support explicit splicing, like `,@` in
Lisp.  But this new restriction is intended for two purposes:

  - To make templates more predictable (if you have a list of expressions
    inlined then they will act differently depending on the type of
    expression that they are inlined into, which means that more defensive
    programming would otherwise be required); and
  - To make expansion easier, since we're going to have to set aside an
    expansion workspace ahead of time to ensure ordering (Petgraph can't
    replace edges in-place).  If we support multi-expansion, we'd have to
    handle associativity in all expression contexts.

This'll become more clear in future commits.

It's nice to see all this hard work coming together now, though; it's easy
now to perform static analysis on the system, and any part of the graph
construction can throw errors with rich diagnostic information and still
recover properly.  And, importantly, the system enforces its own state, and
the compiler helps us with that (the previous commits).

DEV-13163
2023-07-26 04:03:52 -04:00
..
xmli tamer: asg::air::object::tpl: Reject multi-expression shape 2023-07-26 04:03:52 -04:00
README.md tamer: tests: System test support 2023-03-10 14:27:58 -05:00
run-tests tamer: tests: System test support 2023-03-10 14:27:58 -05:00

README.md

System and Integration Tests

Rust files in this directory will be recognized by Cargo and will be automatically compiled and run by make check.

Shell scripts prefixed with test- will be recognized by our test harness and run on make check. These scripts should be preferred when confidence in the system end-to-end is required, since they invoke the binaries just the same as the user or build process would.

Unit and integration tests written in Rust are located alongside the modules they test in ../src/. Benchmarks are in ../benches.