From a8e6015bd5d46132f62a64e62f80a199260dc62d Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 6 Apr 2023 21:28:23 +0200 Subject: failed to update tests on last one --- test/settings.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/settings.c') diff --git a/test/settings.c b/test/settings.c index 181cd73..dc448a5 100644 --- a/test/settings.c +++ b/test/settings.c @@ -1,11 +1,14 @@ #include "assert.h" #include "test.h" +#include "command.h" #include "settings.h" + #include void test_get() { - settings_init(10); + struct commands commands = command_registry_create(10); + settings_init(10, &commands); settings_register_setting( "my.setting", (struct setting_value){.type = Setting_Bool, .bool_value = false}); @@ -37,7 +40,8 @@ void test_get() { } void test_set() { - settings_init(10); + struct commands commands = command_registry_create(10); + settings_init(10, &commands); settings_register_setting( "my.setting", (struct setting_value){.type = Setting_Bool, .bool_value = false}); -- cgit v1.2.3