go: en-tests ens-tests true ens-tests: shellcheck expand-nicely.sh (printf 'ab\tde\tfg\thij\n'; printf 'klmn\top'; printf 'qr\t\tst') | ./expand-nicely > actual-a diff -u expected-2 actual-a en-tests: python3 -m mypy --strict expand-nicely ! ./expand-nicely --foo > /dev/null 2>&1 ./expand-nicely --help > /dev/null 2>&1 printf 'ab\tde\tfg\n' | ./expand-nicely > actual-1 diff -u expected-1 actual-1 (printf 'ab\tde\tfg\thij\n'; printf 'klmn\top'; printf 'qr\t\tst') | ./expand-nicely > actual-2 diff -u expected-2 actual-2 ./expand-nicely --input-separator ':' < ./passwd > actual-3 diff -u expected-3 actual-3 (printf '1\t23\t456\ta\tb\n'; printf '7\t9\t10\tcd\tef\n'; printf '11\t12\t13\tghi\tjkl\tmno\n') | ./expand-nicely --input-separator '\t' > actual-4 diff -u expected-4 actual-4 (printf '1\t23\t456\ta\tb\n'; printf '7\t9\t10\tcd\tef\n'; printf '11\t12\t13\tghi\tjkl\tmno\n') | ./expand-nicely --maxsplit 3 --input-separator '\t' > actual-5 diff -u expected-5 actual-5 (printf '1\t23\t456\t9999\n'; printf '7\t9\t10\t8765\n'; printf '11\t12\t13\t1234\n') | ./expand-nicely --input-separator '\t' > actual-6 diff -u expected-6 actual-6 # I deleted test #7, because it was looking at a file in /etc that was varied, system to system. Also, in some cases it had # comments in it. printf 'ab\tde\tfg\n' | ./expand-nicely --output-separator \| > actual-8 diff -u expected-8 actual-8 printf 'ab\tde\tfg\n' | ./expand-nicely --output-separator " | " > actual-9 diff -u expected-9 actual-9 printf 'ab\tcd\tde\nfg\t\tjk\nlm\tno\tpq\n\nrs\ttu\tvw\n' | ./expand-nicely --input-separator '\t' > actual-10 diff -u expected-10 actual-10 @echo All tests passed. install: ./install-file --file expand-nicely --directory /usr/local/bin/. clean: rm -rf .mypy_cache rm -f actual-*