about summary refs log tree commit diff stats
path: root/js/scripting-lang/c/turing_complete_demos/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/c/turing_complete_demos/run_tests.sh')
-rwxr-xr-xjs/scripting-lang/c/turing_complete_demos/run_tests.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/js/scripting-lang/c/turing_complete_demos/run_tests.sh b/js/scripting-lang/c/turing_complete_demos/run_tests.sh
new file mode 100755
index 0000000..ba68567
--- /dev/null
+++ b/js/scripting-lang/c/turing_complete_demos/run_tests.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# Test runner for Baba Yaga Turing Completeness proofs
+
+echo "🧙‍♀️ Baba Yaga Turing Completeness Test Suite"
+echo "=============================================="
+echo
+
+cd "$(dirname "$0")/.."
+
+PASSED=0
+FAILED=0
+
+run_test() {
+    local test_file="$1"
+    local test_name="$2"
+    
+    echo -n "Testing $test_name... "
+    
+    if ./bin/baba-yaga -f "$test_file" >/dev/null 2>&1; then
+        echo "✅ PASS"
+        ((PASSED++))
+    else
+        echo "❌ FAIL"
+        ((FAILED++))
+    fi
+}
+
+run_test "turing_complete_demos/01_basic_proof.txt" "Basic Proof"
+run_test "turing_complete_demos/02_recursion_demo.txt" "Recursion Demo"
+run_test "turing_complete_demos/03_data_demo.txt" "Data Structures Demo"
+run_test "turing_complete_demos/04_simple_functions.txt" "Simple Functions Demo"
+
+echo
+echo "📊 Results: $PASSED passed, $FAILED failed"
+
+if [ $FAILED -eq 0 ]; then
+    echo "🎉 All tests passed! Baba Yaga is TURING COMPLETE!"
+else
+    echo "⚠️  Some tests failed"
+    exit 1
+fi
\ No newline at end of file