xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 8283029e356d9b90f2235cb463f5dd14f7312171

Add more files to misc/flist_reload tests
Will be useful for a new test.
Author: xaizek
Author date (UTC): 2026-10-04 13:06
Committer name: xaizek
Committer date (UTC): 2026-10-17 15:58
Parent(s): 8966ce24dbe9e9501993b6eac20eb0d9f07692f2
Signing key: 99DC5E4DB05F6BE2
Tree: f4fa6b8bc9fd9fc97d9fa765d276ebd3f7c67986
File Lines added Lines deleted
tests/misc/flist_reload.c 9 5
File tests/misc/flist_reload.c changed (mode: 100644) (index 42606e565..5b721653f)
... ... SETUP()
30 30 assert_success(os_mkdir("1", 0000)); assert_success(os_mkdir("1", 0000));
31 31 assert_success(os_mkdir("2", 0000)); assert_success(os_mkdir("2", 0000));
32 32 assert_success(os_mkdir("3", 0000)); assert_success(os_mkdir("3", 0000));
33 assert_success(os_mkdir("4", 0000));
34 assert_success(os_mkdir("5", 0000));
33 35
34 36 populate_dir_list(view, 0); populate_dir_list(view, 0);
35 37 } }
 
... ... TEARDOWN()
42 44 (void)rmdir("1"); (void)rmdir("1");
43 45 (void)rmdir("2"); (void)rmdir("2");
44 46 (void)rmdir("3"); (void)rmdir("3");
47 (void)rmdir("4");
48 (void)rmdir("5");
45 49 } }
46 50
47 51 TEST(exact_match_is_preferred) TEST(exact_match_is_preferred)
 
... ... TEST(closest_match_below_is_choosen)
68 72
69 73 TEST(closest_match_above_is_choosen) TEST(closest_match_above_is_choosen)
70 74 { {
71 view->list_pos = 3;
72 (void)rmdir("3");
73 (void)rmdir("4");
75 view->list_pos = 5;
76 (void)rmdir("5");
77 (void)rmdir("6");
74 78
75 assert_string_equal("3", view->dir_entry[view->list_pos].name);
79 assert_string_equal("5", view->dir_entry[view->list_pos].name);
76 80 populate_dir_list(view, 1); populate_dir_list(view, 1);
77 assert_string_equal("2", view->dir_entry[view->list_pos].name);
81 assert_string_equal("4", view->dir_entry[view->list_pos].name);
78 82 } }
79 83
80 84 TEST(selection_is_preserved) TEST(selection_is_preserved)
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master