Add test that generated usage function is equivalent to original

This commit is contained in:
Eric Levy 2022-01-24 22:24:34 -05:00
parent 5e04b21a70
commit a6771a6fb7
2 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
base base
subshell-usage
subshell-simple subshell-simple
subshell-undeclared subshell-undeclared
subshell-source subshell-source

4
meta-tests/subshell-usage.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
source ./mo
diff <(moUsage) <((moDeclare; echo moUsage) | bash)