Files
Toy/tests
Kayne Ruse cc4ff3f6d8 Fixed logical AND and OR operators, read more
The definition of '&&':
  Return the first falsy value, or the last value, skipping the evaluation of other operands.

The definition of '||':
  Return the first truthy value, or the last value, skipping the evaluation of other operands.

Toy now follows these definitions.

Fixed #154
2024-12-26 16:09:16 +11:00
..
2024-12-11 17:07:49 +11:00

Test Instructions

To run these tests, execute one of the following commands from the repo's root:

make tests
make tests-gdb
make tests-valgrind

Benchmarks

For testing and comparing different potential solutions. These may be left in an incomplete state, so they might not work out of the box.

Cases

For testing individual pieces of the source code in isolation. These are essentially the unit tests, and are used by the CI pipeline.

Integrations

For testing Toy's processes as a complete whole. This will automatically build the repl, and is used by the CI pipeline.

Mustfails

These have situations which will raise errors of some kind, to ensure that common user errors are handled gracefully. This is not yet implemented.

Standalone

These are one-file programs that are not intended to test the source directly. Instead, these can cover a number of situations, such as the exact behavior of GitHub's workflow runners, or to generate repetitive code predictably, etc.