summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-03-12 16:07:34 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-03-12 16:07:34 -0500
commitf1401f09c59363170f021c4a1676735be2e3cc44 (patch)
tree2b534caed6c1e1dbcca06814f20d603e641f7bdc /tests.sh
parent037361965a14e1899020bf16c9112936e39020e8 (diff)
downloadbfs-f1401f09c59363170f021c4a1676735be2e3cc44.tar.xz
Implement -size.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index a6c40b7..006496b 100755
--- a/tests.sh
+++ b/tests.sh
@@ -267,7 +267,23 @@ function test_0049() {
find_diff "$basic" -newermc "$basic/e/f"
}
-for i in {1..49}; do
+function test_0050() {
+ find_diff "$basic" -size 0
+}
+
+function test_0051() {
+ find_diff "$basic" -size +0
+}
+
+function test_0052() {
+ find_diff "$basic" -size +0c
+}
+
+function test_0053() {
+ find_diff "$basic" -size 9223372036854775807
+}
+
+for i in {1..53}; do
test="test_$(printf '%04d' $i)"
"$test" "$dir"
status=$?