mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
fix incorrect counts in tests
This commit is contained in:
parent
f41558fc80
commit
01d26270f6
1 changed files with 6 additions and 5 deletions
|
|
@ -1199,13 +1199,13 @@ test_section_vimode_search_bindings(void)
|
||||||
|
|
||||||
test_invalid_key(&ctx, &parse_section_vimode_search_bindings, "invalid-key");
|
test_invalid_key(&ctx, &parse_section_vimode_search_bindings, "invalid-key");
|
||||||
|
|
||||||
for (int action = 0; action < BIND_ACTION_VIMODE_COUNT; action++) {
|
for (int action = 0; action < BIND_ACTION_VIMODE_SEARCH_COUNT; action++) {
|
||||||
if (vimode_search_binding_action_map[action] == NULL)
|
if (vimode_search_binding_action_map[action] == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
test_key_binding(
|
test_key_binding(
|
||||||
&ctx, &parse_section_vimode_search_bindings,
|
&ctx, &parse_section_vimode_search_bindings,
|
||||||
action, BIND_ACTION_VIMODE_COUNT - 1,
|
action, BIND_ACTION_VIMODE_SEARCH_COUNT - 1,
|
||||||
vimode_search_binding_action_map, &conf.bindings.vimode_search, KEY_BINDING,
|
vimode_search_binding_action_map, &conf.bindings.vimode_search, KEY_BINDING,
|
||||||
false, false);
|
false, false);
|
||||||
}
|
}
|
||||||
|
|
@ -1234,9 +1234,10 @@ test_section_vimode_search_bindings_collisions(void)
|
||||||
struct context ctx = {
|
struct context ctx = {
|
||||||
.conf = &conf, .section = "vimode-search-bindings", .path = "unittest"};
|
.conf = &conf, .section = "vimode-search-bindings", .path = "unittest"};
|
||||||
|
|
||||||
test_binding_collisions(
|
test_binding_collisions(&ctx,
|
||||||
&ctx,
|
BIND_ACTION_VIMODE_SEARCH_COUNT - 1,
|
||||||
BIND_ACTION_VIMODE_COUNT - 1, vimode_search_binding_action_map, KEY_BINDING);
|
vimode_search_binding_action_map,
|
||||||
|
KEY_BINDING);
|
||||||
|
|
||||||
config_free(&conf);
|
config_free(&conf);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue