2021-12-21 02:42:18 +00:00
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
testDefiningALightningFunctionWorks() {
|
|
|
|
|
echo '
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
⚡️hello() { echo "Hello, World!" ; }
|
|
|
|
|
' > go
|
|
|
|
|
|
2021-12-21 03:52:28 +00:00
|
|
|
|
echo "source $REPO_ROOT/⚡️" >> go
|
2021-12-21 02:42:18 +00:00
|
|
|
|
chmod +x go
|
|
|
|
|
|
|
|
|
|
try ./go hello
|
|
|
|
|
assertEquals "Hello, World!" "$STDOUT"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source $(dirname $0)/runner
|