| File tests/misc/filtering.c changed (mode: 100644) (index 21748f933..37da39b84) |
| ... |
... |
TEST(cursor_is_not_moved_from_parent_dir_initially) |
| 256 |
256 |
cfg.dot_dirs = 0; |
cfg.dot_dirs = 0; |
| 257 |
257 |
} |
} |
| 258 |
258 |
|
|
|
259 |
|
TEST(remaining_parent_dir_not_matching_is_not_counted_by_local_filter) |
|
260 |
|
{ |
|
261 |
|
cfg.dot_dirs = DD_NONROOT_PARENT; |
|
262 |
|
|
|
263 |
|
make_abs_path(lwin.curr_dir, sizeof(lwin.curr_dir), TEST_DATA_PATH, "read", |
|
264 |
|
cwd); |
|
265 |
|
load_dir_list(&lwin, /*reload=*/0); |
|
266 |
|
|
|
267 |
|
/* local_filter_set() returns 1 when everything is filtered, but parent dir is |
|
268 |
|
* an exception. */ |
|
269 |
|
assert_int_equal(1, local_filter_set(&lwin, "nothing matches this")); |
|
270 |
|
local_filter_update_view(&lwin, 0); |
|
271 |
|
assert_int_equal(1, lwin.list_rows); |
|
272 |
|
assert_string_equal("..", lwin.dir_entry[0].name); |
|
273 |
|
local_filter_cancel(&lwin); |
|
274 |
|
|
|
275 |
|
cfg.dot_dirs = 0; |
|
276 |
|
} |
|
277 |
|
|
| 259 |
278 |
TEST(cursor_is_moved_to_nearest_neighbour) |
TEST(cursor_is_moved_to_nearest_neighbour) |
| 260 |
279 |
{ |
{ |
| 261 |
280 |
char path[PATH_MAX + 1]; |
char path[PATH_MAX + 1]; |