Skip to content

Conversation

@rob-ross
Copy link
Owner

@rob-ross rob-ross commented Jul 9, 2025

Merge test cleanup improvements into main. Closes #5

rob-ross added 9 commits June 27, 2025 22:16
…between the SLICE token name and the slice parameters, which caused confusion since slice uses colons for delimiting fields. Now enclosing the slice parameters in brackets [].
…out before function expressions were implemented. These paths can now be used to test function expressions.
Refactored lexer test case generation to output a json file.
Converted previous multiple text files into a single json test file (lexer_tests.json).
Implemented new tests in test_lexer_rfc9535_tables.py.
Refactored function argument validation.
Cleaned up grammar and spelling.
Changed to using forward references so that nested declarations are shorter when dynamically getting type hints.
Improved grammar, added documentation for try_register().
- **Evaluator Updates:**
  - Resolved bugs in `evaluator.py` causing strings to be misinterpreted as arrays.
  - Enhanced `ValueError` in `evaluator_types.py` with clearer escaped path details.

- **Test Enhancements:**
  - Added unit test generation for `create_subparser_test_files()`.
  - Generated `evaluator_test_cases.json` and updated `parser_test_cases.json` and `lexer_test_cases.json` after uncommenting tests for `match()` and `search()` in `table_12.jpathl`.
  - Introduced two new tests in `test_helper.py` to verify escaping path fixes.
  - Ensured no log warnings in Cycle query test.

- **Code Cleanup:**
  - Removed unused `_write_to_json_file` method in `test_cts.py`.
  - Polished grammar, comments, and removed redundancy in test files.
@rob-ross rob-ross self-assigned this Jul 9, 2025
@rob-ross rob-ross added the enhancement New feature or request label Jul 9, 2025
Copy link
Owner Author

@rob-ross rob-ross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@rob-ross rob-ross merged commit 8b5be34 into main Jul 9, 2025
1 check passed
@rob-ross rob-ross deleted the feature/test-cleanup branch July 9, 2025 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup unit tests

2 participants