]> www.git.momoyon.org Git - lang.git/commitdiff
Remove test.sh from tracking.
authorahmedsamyh <ahmedsamyh10@gmail.com>
Mon, 18 Nov 2024 15:53:12 +0000 (20:53 +0500)
committerahmedsamyh <ahmedsamyh10@gmail.com>
Mon, 18 Nov 2024 15:53:12 +0000 (20:53 +0500)
.gitignore [new file with mode: 0644]
test.sh [deleted file]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..73d41de
--- /dev/null
@@ -0,0 +1 @@
+test.sh
diff --git a/test.sh b/test.sh
deleted file mode 100755 (executable)
index afdde63..0000000
--- a/test.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-TESTS_DIR=./tests/
-
-test_file_exists() {
-    filename=$1
-    testfilename=$filename.test
-
-    # TODO: Maybe create the test file with the current output
-    if [ ! -f "$testfilename" ]; then
-        echo "ERROR: test file \"$testfilename\" doesn't exist!"
-        exit 1
-    fi
-}
-
-test_source_file() {
-    filename=$1
-
-    if [ ! -f "$filename" ]; then
-        echo "ERROR: File \"$filename\" doesn't exist!"
-        exit 1
-    fi
-
-    test_file_exists $filename
-
-    printf "INFO: Testing file \"$filename\"... "
-
-    output=$(python3 main.py $filename)
-    expected_output=$(cat $filename.test)
-    if [ "$output" != "$expected_output" ]; then
-        echo "Failed!"
-        echo "Expected: \`$expected_output\`"
-        echo "Got:      \`$output\`"
-    else
-        echo "Success!"
-    fi
-}
-
-# set -xe
-
-test_source_file tests/01-unterminated-string.momo