w00t tests

This commit is contained in:
2021-12-20 18:42:18 -08:00
parent fdef1f627c
commit 9aa75c1170
4 changed files with 76 additions and 0 deletions

17
test/test-run Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
testDefiningALightningFunctionWorks() {
echo '
#!/usr/bin/env bash
hello() { echo "Hello, World!" ; }
' > go
echo "source $(dirname $BASH_SOURCE)/../⚡️" >> go
chmod +x go
try ./go hello
assertEquals "Hello, World!" "$STDOUT"
}
source $(dirname $0)/runner