Skip to content

Conversation

@JohnKiro
Copy link

@JohnKiro JohnKiro commented Dec 4, 2025

The scenario that showed the need to add this function:

  • add some experimental test cases, with inconvenient test keys (e.g. a string or an uninterned symbol)
  • tests will be added without getting an error (this would also need to be handled: reject attempts to define tests with bad test key)
  • run test suites as usual, and you'll have some problems: tests with string keys will result in method dispatch errors, and tests with uninterned symbol keys will get stuck in the tests hash table, without being able to modify or clean them up using REM-TEST.

This utility function, REM-TESTS, allows deleting tests like these ones.

Check its docstring for more details.

The scenario that showed the need to add this function:

- add some experimental test cases, with inconvenient test keys (e.g. a string or an
uninterned symbol)
- fiveam will add the tests without signaling any errors (this would also need to be
handled in separate commit; i.e., to reject attempts to define tests with bad test key.
- run test suites as usual, and you'll have some problems: tests with string keys will
result in method dispatch errors, and tests with uninterned symbol keys will get stuck in
the tests hash table, without being able to modify or clean them up using REM-TEST.

This added utility function, REM-TESTS, allows cleaning up tests such as these ones.

Check its docstring for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants