()
| 4275 | |
| 4276 | #[test] |
| 4277 | fn repl_executes_python_code() { |
| 4278 | let result = execute_tool( |
| 4279 | "REPL", |
| 4280 | &json!({"language": "python", "code": "print(1 + 1)", "timeout_ms": 500}), |
| 4281 | ) |
| 4282 | .expect("REPL should succeed"); |
| 4283 | let output: serde_json::Value = serde_json::from_str(&result).expect("json"); |
| 4284 | assert_eq!(output["language"], "python"); |
| 4285 | assert_eq!(output["exitCode"], 0); |
| 4286 | assert!(output["stdout"].as_str().expect("stdout").contains('2')); |
| 4287 | } |
| 4288 | |
| 4289 | #[test] |
| 4290 | fn powershell_runs_via_stub_shell() { |
nothing calls this directly
no test coverage detected