Skip to content

Commit

Permalink
Fix abbrev test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Nov 22, 2022
1 parent a508b95 commit e8df547
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions clink/lib/test/abbrev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ static bool verify_abbrev(lua_state& lua, const testcase_abbrev& t, str_base& ou
TEST_CASE("Abbreviated paths.")
{
static const char* dir_fs[] = {
"xyz/bag/leaf",
"xyz/bookkeeper/leaf",
"xyz/bookkeeping/leaf",
"xyz/box/leaf",
"xyz/boxes/leaf",
"xyz/bag/foo/leaf",
"xyz/bookkeeper/foo/leaf",
"xyz/bookkeeping/foo/leaf",
"xyz/box/foo/leaf",
"xyz/boxes/foo/leaf",
"xyz/repo/.git/leaf",
"xyz/notrepo/leaf",
"xyz/repo/foo/leaf",
"xyz/notrepo/foo/leaf",
nullptr,
};

Expand Down Expand Up @@ -247,7 +248,7 @@ TEST_CASE("Abbreviated paths.")
{ "xyz/box/foo", "<x>\\box\\<f>", true/*all*/ },
{ "xyz/boxes/foo", "<x>\\<boxe>\\<f>", true/*all*/ },
{ "xyz/repo/foo", "<x>\\<r>\\<f>", true/*all*/ },
{ "xyz/repo/foo", "<x>\\repo\\<f>", true/*all*/, true/*git*/ },
{ "xyz/repo/foo", "<x>\\repo\\<f>", true/*all*/, true/*git*/ },
{ "xyz/notrepo/foo", "<x>\\<n>\\<f>", true/*all*/ },
};

Expand Down

0 comments on commit e8df547

Please sign in to comment.