Expand description
Test framework support for Seq
Provides assertion primitives and test context management for the seqc test runner.
Assertions collect failures instead of panicking, allowing all tests to run and
report comprehensive results.
These functions are exported with C ABI for LLVM codegen to call.
Structs§
- Test
Context - Test context that tracks assertion results
- Test
Failure - A single test failure with context
Functions§
- patch_
seq_ ⚠test_ assert - Assert that a value is truthy (non-zero)
- patch_
seq_ ⚠test_ assert_ eq - Assert that two integers are equal
- patch_
seq_ ⚠test_ assert_ eq_ str - Assert that two strings are equal
- patch_
seq_ ⚠test_ assert_ not - Assert that a value is falsy (zero)
- patch_
seq_ ⚠test_ fail - Explicitly fail a test with a message
- patch_
seq_ ⚠test_ fail_ count - Get the number of failed assertions
- patch_
seq_ ⚠test_ finish - Finalize test and print results
- patch_
seq_ ⚠test_ has_ failures - Check if any assertions failed
- patch_
seq_ ⚠test_ init - Initialize test context for a new test
- patch_
seq_ ⚠test_ pass_ count - Get the number of passed assertions