w00t tests
This commit is contained in:
17
test/test-run
Normal file
17
test/test-run
Normal 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
|
||||
Reference in New Issue
Block a user