diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/snapshots/success-single-file | 1 | ||||
-rwxr-xr-x | tests/stateless-journey.sh | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/snapshots/success-single-file b/tests/snapshots/success-single-file new file mode 100644 index 0000000..8321cbf --- /dev/null +++ b/tests/snapshots/success-single-file @@ -0,0 +1 @@ +[32m 4.10 KB[39m a
\ No newline at end of file diff --git a/tests/stateless-journey.sh b/tests/stateless-journey.sh index 37a32c2..2557f3a 100755 --- a/tests/stateless-journey.sh +++ b/tests/stateless-journey.sh @@ -31,6 +31,12 @@ WITH_FAILURE=1 expect_run ${SUCCESSFULLY} "$exe" aggregate } ) + (with "a single file argument" + it "produces a human-readable (metric) size display of that file" && { + WITH_SNAPSHOT="$snapshot/success-single-file" \ + expect_run ${SUCCESSFULLY} "$exe" aggregate a + } + ) (with "sorting disabled" it "produces a human-readable (metric) aggregate of everything within the current directory, alphabetically sorted, with total" && { WITH_SNAPSHOT="$snapshot/success-no-arguments-no-sort" \ |