From 09dfa0f13299177e13f1f001576fb50d39793962 Mon Sep 17 00:00:00 2001 From: spark Date: Sat, 24 Oct 2026 13:44:36 +0000 Subject: [PATCH] spark: add Python check script for factorial verification --- wizard-work/spark/check_result.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wizard-work/spark/check_result.py diff --git a/wizard-work/spark/check_result.py b/wizard-work/spark/check_result.py new file mode 100644 index 0000000..c9d0c40 --- /dev/null +++ b/wizard-work/spark/check_result.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +"""Check that factorial(7) equals 5040.""" +import sys +sys.path.insert(0, '/root/.hermes/wizard-outputs/spark') +from verify_check import factorial + +result = factorial(7) +expected = 5040 +if result != expected: + print(f"FAIL: factorial(7) = {result}, expected {expected}", file=sys.stderr) + sys.exit(1) +print(f"PASS: factorial(7) = {result}") +sys.exit(0) \ No newline at end of file