Skip to content

Commit

Permalink
A test for the exclude globs
Browse files Browse the repository at this point in the history
This is based on #11

- Handle an exclude glob with a path.
- Handle an exclude glob without a path.

I am unsure whether we want to maintain compatibility for exclude globs
without a path.
  • Loading branch information
mike-burns committed Dec 23, 2016
1 parent bc0d5b6 commit 08db863
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/lsrc-excludes.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ Should accept directory:file syntax
/*/.example:/*/.dotfiles/example (glob)
/*/.excluded:/*/.dotfiles/excluded (glob)
/*/.included:/*/.other-dotfiles/included (glob)

Should handle excludes with globs

$ mkdir -p fresh/hola/chao
> touch fresh/hola/chao/wo
> touch fresh/hola/chao/nemo
> touch fresh/hola/tossala
> touch fresh/hola/s
> touch fresh/s

$ lsrc -d fresh -x 'hola/chao/*' -x s
/*/.hola/tossala:/*/.dotfiles/hola/tossala (glob)

0 comments on commit 08db863

Please sign in to comment.