Extend simulation runtime coverage and kinematics support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user