Make colors work!

This commit is contained in:
2021-12-20 20:51:18 -08:00
parent d0c783a421
commit e8bc9f0655
3 changed files with 83 additions and 1 deletions

35
test/test-sugar Normal file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
testGoodMessageShouldBeGreen() {
echo '
#!/usr/bin/env bash
hello() {
_good-message "hello"
}
' > go
echo "source $REPO_ROOT/⚡️" >> go
chmod +x go
try ./go hello
assertEquals "hello" "$STDOUT"
}
testBadMessageShouldBeRed() {
echo '
#!/usr/bin/env bash
hello() {
_bad-message "hello"
}
' > go
echo "source $REPO_ROOT/⚡️" >> go
chmod +x go
try ./go hello
assertEquals "hello" "$STDOUT"
}
source $(dirname $0)/runner