Skip to content

Commit

Permalink
Update test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Jul 31, 2024
1 parent 584ce5f commit 41a7ad7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test.sh
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

0 comments on commit 41a7ad7

Please sign in to comment.