Skip to content

Commit

Permalink
Restructure builtin tests
Browse files Browse the repository at this point in the history
- rename all test files to test_ - I find this very useful when I want
  to open the corresponding test file using my editors fuzzy file search
- place all tests in quite small top level function, which makes it easy
  to look at generate C code
- avoid exceptions for control flow, instead using simple if-checks and
  return - simpler code and we don't rely on working exceptions for most
  code... not that we'd expect exceptions not to work, but it's just
  unnecessary
- overall consolidation of tests and sort into where it makes sense
- more tests for bytes in particular

This is by no means perfect, but it's a start.
  • Loading branch information
plajjan committed Jan 24, 2025
1 parent 75dc71b commit a52cfa6
Show file tree
Hide file tree
Showing 29 changed files with 870 additions and 726 deletions.
7 changes: 0 additions & 7 deletions test/builtins_auto/container_test.act

This file was deleted.

129 changes: 0 additions & 129 deletions test/builtins_auto/dict.act

This file was deleted.

11 changes: 0 additions & 11 deletions test/builtins_auto/dict1805.act

This file was deleted.

Loading

0 comments on commit a52cfa6

Please sign in to comment.