-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
#!/bin/sh | ||
|
||
echo "Python Tests" | ||
|
||
echo "Running Python Reverse Words Test" | ||
echo 'load py tests/python/test.py\ninspect\ncall reverse_words("hello world")\nexit' | metacall | grep "dlrow olleh" | ||
echo 'load py tests/python/test.py\ninspect\ncall reverse_words("hello world")\nexit' | metacall | grep "dlrow olleh" || exit 1 | ||
|
||
echo "Running Python Factorial Test" | ||
echo "load py tests/python/test.py\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" | ||
echo "load py tests/python/test.py\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" || exit 1 | ||
|
||
echo "NodeJS Tests" | ||
|
||
echo "Running NodeJS Reverse Words Test" | ||
echo 'load node tests/node/test.js\ninspect\ncall reverseWord("hello world")\nexit' | metacall | grep "dlrow olleh" | ||
echo 'load node tests/node/test.js\ninspect\ncall reverseWord("hello world")\nexit' | metacall | grep "dlrow olleh" || exit 1 | ||
|
||
echo "Running NodeJS Factorial Test" | ||
echo "load node tests/node/test.js\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" | ||
echo "load node tests/node/test.js\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" || exit 1 |