18 lines
290 B
Bash
18 lines
290 B
Bash
#!/usr/bin/env bash
|
||
|
||
testDefiningALightningFunctionWorks() {
|
||
echo '
|
||
#!/usr/bin/env bash
|
||
|
||
⚡️hello() { echo "Hello, World!" ; }
|
||
' > go
|
||
|
||
echo "source $REPO_ROOT/⚡️" >> go
|
||
chmod +x go
|
||
|
||
try ./go hello
|
||
assertEquals "Hello, World!" "$STDOUT"
|
||
}
|
||
|
||
source $(dirname $0)/runner
|