]> Repositorios git - scryer-prolog.git/commit
Add comprehensive tests for -t custom toplevel flag
authorJ.J. Tolton <[email protected]>
Fri, 7 Nov 2025 00:12:09 +0000 (19:12 -0500)
committerJ.J. Tolton <[email protected]>
Sun, 9 Nov 2025 17:44:48 +0000 (12:44 -0500)
commit15d112485cab49b5df41f377835be8bc51ba488f
treef3d5d0d12d1bba0c302fe36239318ab890fb3c50
parent768f7ce9a77db599950288b0d1027b561657c319
Add comprehensive tests for -t custom toplevel flag

- Create Prolog integration tests in src/tests/custom_toplevel.pl
- Add CLI test configuration in tests/scryer/cli/src_tests/custom_toplevel_tests.toml
- Tests verify:
  * -t halt terminates after initialization
  * Custom toplevels can be user-defined predicates
  * Toplevel receives control after initialization completes
  * Default behavior is REPL when no -t specified
- All tests pass successfully

Following TESTING_GUIDE.md three-layer testing approach:
- Layer 2: Prolog integration tests with test_framework
- Layer 3: CLI snapshot tests with .toml configuration

Co-Authored-By: J.J.'s Robot <[email protected]>
src/tests/custom_toplevel.pl [new file with mode: 0644]
tests/scryer/cli/src_tests/custom_toplevel_tests.toml [new file with mode: 0644]