summaryrefslogtreecommitdiff
path: root/test/command.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-02-21 22:26:36 +0100
committerAlbert Cervin <albert@acervin.com>2023-02-21 22:26:36 +0100
commit44fd8cde61e3e89e5f83c98900a403e922073727 (patch)
tree22ed65a8b3c766fa21c35fe4d567399e3810454a /test/command.c
parentd7bf8702bf32720d93c4e690937bc8b683926be1 (diff)
downloaddged-44fd8cde61e3e89e5f83c98900a403e922073727.tar.gz
dged-44fd8cde61e3e89e5f83c98900a403e922073727.tar.xz
dged-44fd8cde61e3e89e5f83c98900a403e922073727.zip
Implement support for settings
Settings are a flat "dictionary" containing paths to settings on the format: <category>.<sub-category>.<setting>.
Diffstat (limited to 'test/command.c')
-rw-r--r--test/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/command.c b/test/command.c
index 09de7f4..52a67ac 100644
--- a/test/command.c
+++ b/test/command.c
@@ -2,6 +2,7 @@
#include "test.h"
#include "command.h"
+#include "hash.h"
void test_command_registry_create() {
struct commands cmds = command_registry_create(10);
@@ -66,8 +67,7 @@ void test_lookup_command() {
ASSERT_STR_EQ(cmd->name, "fake",
"Expected the found function to have the correct name");
- struct command *also_cmd =
- lookup_command_by_hash(&cmds, hash_command_name("fake"));
+ struct command *also_cmd = lookup_command_by_hash(&cmds, hash_name("fake"));
ASSERT(cmd != NULL,
"Expected to be able to look up inserted command by hash");
ASSERT_STR_EQ(cmd->name, "fake",