Skip to content

Commit 0876f03

Browse files
committed
Update mock input
1 parent c69d266 commit 0876f03

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/tests.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,11 @@ fn test_stdin_input_request(
701701
return TestResult::Unsupported;
702702
}
703703

704-
let mock_input = "test_input_42";
704+
// Mock input includes quotes to ensure validity in languages like
705+
// GNU Octave, where unquoted undefined variables (e.g. `test_input_42`)
706+
// would cause a kernel error.
707+
// TODO: Make mock input language-dependent for robustness.
708+
let mock_input = "\"test_input_42\"";
705709

706710
match kernel.execute_with_stdin(&code, mock_input).await {
707711
Ok((reply, _iopub, received_input_request)) => {

0 commit comments

Comments
 (0)