Skip to content
Snippets Groups Projects
Commit 3565a612 authored by vitawrap's avatar vitawrap
Browse files

tests: allouer task_ids dynamiquement

parent 7cd5c8c3
No related branches found
No related tags found
No related merge requests found
......@@ -206,10 +206,10 @@ void test_instance_remove_task() {
void test_schedule_creation_view() {
Instance I = new_list(view_task, delete_task);
struct task_t* task1 = new_task("T1", 5, 3);
struct task_t* task2 = new_task("T2", 3, 0);
struct task_t* task3 = new_task("T3", 2, 2);
struct task_t* task4 = new_task("T4", 1, 0);
struct task_t* task1 = new_task(strdup("T1"), 5, 3);
struct task_t* task2 = new_task(strdup("T2"), 3, 0);
struct task_t* task3 = new_task(strdup("T3"), 2, 2);
struct task_t* task4 = new_task(strdup("T4"), 1, 0);
list_insert_last(I, task1);
list_insert_last(I, task2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment