Skip to content

Commit

Permalink
Add regression test.
Browse files Browse the repository at this point in the history
Fixes #106.
  • Loading branch information
BurntSushi committed Sep 26, 2016
1 parent 20ccd44 commit f27aa3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gitignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,10 @@ mod tests {
not_ignored!(ignot11, ROOT, "#foo", "#foo");
not_ignored!(ignot12, ROOT, "\n\n\n", "foo");
not_ignored!(ignot13, ROOT, "foo/**", "foo", true);

// See: https://github.com/BurntSushi/ripgrep/issues/106
#[test]
fn regression_106() {
Gitignore::from_str("/", " ").unwrap();
}
}

0 comments on commit f27aa3f

Please sign in to comment.