From a6771a6fb7642fb2a801eebb5e6fd0cb3663dcbb Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 22:24:34 -0500 Subject: [PATCH] Add test that generated usage function is equivalent to original --- meta-tests.txt | 1 + meta-tests/subshell-usage.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 meta-tests/subshell-usage.sh diff --git a/meta-tests.txt b/meta-tests.txt index 7a48ab0..e94b65c 100644 --- a/meta-tests.txt +++ b/meta-tests.txt @@ -1,4 +1,5 @@ base +subshell-usage subshell-simple subshell-undeclared subshell-source diff --git a/meta-tests/subshell-usage.sh b/meta-tests/subshell-usage.sh new file mode 100755 index 0000000..32fc9c1 --- /dev/null +++ b/meta-tests/subshell-usage.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +source ./mo +diff <(moUsage) <((moDeclare; echo moUsage) | bash)