()
| 4046 | |
| 4047 | #[test] |
| 4048 | fn repl_executes_python_code() { |
| 4049 | let result = execute_tool( |
| 4050 | "REPL", |
| 4051 | &json!({"language": "python", "code": "print(1 + 1)", "timeout_ms": 500}), |
| 4052 | ) |
| 4053 | .expect("REPL should succeed"); |
| 4054 | let output: serde_json::Value = serde_json::from_str(&result).expect("json"); |
| 4055 | assert_eq!(output["language"], "python"); |
| 4056 | assert_eq!(output["exitCode"], 0); |
| 4057 | assert!(output["stdout"].as_str().expect("stdout").contains('2')); |
| 4058 | } |
| 4059 | |
| 4060 | #[test] |
| 4061 | fn powershell_runs_via_stub_shell() { |
nothing calls this directly
no test coverage detected