unittests #9

Merged
omicron merged 7 commits from unittests into main 2025-04-06 07:28:52 +00:00
Owner
No description provided.
omicron added 7 commits 2025-04-06 07:28:40 +00:00
- Exposes all errors in the header file so any user of the api can test
   for the specific error conditions
 - Mark all static error pointers as const
 - Move generic errors into error.h
 - Name all errors err_modulename_* for errors that belong to a specific
   module and err_* for generic errors.
- Add µnit source and header files
- Add test target to the build system
- Implement a thorough lexer test suite
- Implement a minimal AST test suite
Fix bug in lexer_next_number not correctly tracking character number
All checks were successful
Validate the build / validate-build (push) Successful in 28s
f1f4c93a8e
When a number has a suffix the lexer state didn't record the number of
characters consumed for this suffix. This made the lexer state be 2-3
characters short in its line location reporting until it encountered a
newline character. It did not otherwise corrupt the state of the lexer.
Run tests in the validate gitea action
All checks were successful
Validate the build / validate-build (push) Successful in 29s
2bea87b39a
omicron merged commit 2bea87b39a into main 2025-04-06 07:28:52 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: omicron/oas#9
No description provided.