package core.test
T :: struct {
current_test_case: &Test_Case;
}
Testing context
Methods
Test_Case :: struct {
name: [] u8;
runner: (&T) -> void;
passed: bool;
assertions: [..] Test_Case.Assertion;
}
test :: struct {
name: [] u8;
}
Test tag. Use this to mark a function as a test.
You can either use just the type name:
@core.test.test
(t: &core.test.T) {
}
Or you can specify a name using the full struct literal:
@core.test.test.{"Important test name"}
(t: &core.test.T) {
}