Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"incomplete_code": "if true",
"complete_code": "x = 1;",
"syntax_error": "1 +",
"input_prompt": "% Octave stdin doesn't support Jupyter input protocol",
"input_prompt": "name = input(\"Enter: \")",
"sleep_code": "pause(2)",
"completion_var": "test_variable_for_completion",
"completion_setup": "test_variable_for_completion = 42;",
Expand Down
6 changes: 5 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,11 @@ fn test_stdin_input_request(
return TestResult::Unsupported;
}

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

match kernel.execute_with_stdin(&code, mock_input).await {
Ok((reply, _iopub, received_input_request)) => {
Expand Down
Loading