Extend simulation runtime coverage and kinematics support

This commit is contained in:
2026-08-21 10:57:10 +08:00
parent 554b72dae8
commit 2ef2d82db3
71 changed files with 24232 additions and 1867 deletions

View File

@@ -24,5 +24,12 @@ int main(void) {
assert(sim_event_import(exported, export_size) == SIM_EVENT_OK);
assert(sim_event_count() == 1);
assert(sim_event_import(exported, export_size - 1) == SIM_EVENT_ERR_ARGUMENT);
((sim_event_record *)exported)->seq = 2;
assert(sim_event_import(exported, export_size) == SIM_EVENT_ERR_SEQUENCE);
assert(sim_event_cursor() == 1);
((sim_event_record *)exported)->seq = 1;
((sim_event_record *)exported)->kind[SIM_EVENT_KIND_CAPACITY - 1U] = 'x';
assert(sim_event_import(exported, export_size) == SIM_EVENT_ERR_ARGUMENT);
assert(sim_event_cursor() == 1);
return 0;
}