History

more testcases related to escape chars - still todo

Sidney Douw committed 4 years ago

Commit f6065151 parent c0196fa1 file · +7 −1Browse files

Unified · Split

git-pathspec/tests/pathspec.rs+7−1
@@ -60,6 +60,7 @@ mod succeed { · 59 unmodified lines
6060 ("some/ path", pat_with_path("some/ path")),
6161 ("some/path ", pat_with_path("some/path ")),
6262 (": some/path", pat_with_path(" some/path")),
63+ (": !some/path", pat_with_path(" !some/path")),
6364 (
6465 ":! some/path",
6566 pat_with_path_and_sig(" some/path", MagicSignature::EXCLUDE),
@@ -288,7 +289,12 @@ mod fail { · 222 unmodified lines
288289 ":(attr:+invalidAttr)some/path",
289290 ":(attr:validAttr +invalidAttr)some/path",
290291 ":(attr:+invalidAttr,attr:valid)some/path",
291− ":(attr:inva\\lid)some/path",
292+ r":(attr:inva\lid)some/path",
293+ //TODO: handle these case
294+ // r":(attr:v=invalid\ valid)some/path",
295+ // r":(attr:v=invalid\ )some/path",
296+ // r":(attr:v=invalid\)some/path",
297+ // r":(attr:v=invalid\#)some/path",
292298 ];
293299
294300 for input in inputs {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t