From 1bce3b33acbfcfbfa03f1174d6e00c125cd8625d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 7 Jun 2020 14:04:20 -0400 Subject: Implement -exclude, a special form for convenient exclusions Fixes #8. --- tests.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index c84907c..c428c65 100755 --- a/tests.sh +++ b/tests.sh @@ -596,6 +596,12 @@ bfs_tests=( test_S_dfs test_S_ids + # Special forms + + test_exclude_name + test_exclude_depth + test_exclude_mindepth + # Primaries test_color @@ -2630,6 +2636,18 @@ function test_S_ids() { test_S ids } +function test_exclude_name() { + bfs_diff basic -exclude -name foo +} + +function test_exclude_depth() { + bfs_diff basic -depth -exclude -name foo +} + +function test_exclude_mindepth() { + bfs_diff basic -mindepth 3 -exclude -name foo +} + BOL= EOL='\n' -- cgit v1.2.3