Files
marqdo/tests/cli_m0.rs
T
cflmyandCursor 63d7866d06 Scaffold Rust M0 interpreter crate and document local setup.
Add clap-based CLI that loads .mq.md and fails loudly until eval exists; pin deps for Cargo 1.81 and verify with an integration test.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 11:19:32 +08:00

20 lines
555 B
Rust

use std::process::Command;
#[test]
fn cli_runs_and_reports_unimplemented() {
let output = Command::new(env!("CARGO_BIN_EXE_marqdo"))
.args(["run", "examples/hello.mq.md"])
.output()
.expect("failed to run marqdo");
assert!(
!output.status.success(),
"M0 should exit non-zero until eval exists"
);
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
stderr.contains("not implemented") || stderr.contains("evaluation not implemented"),
"stderr was: {stderr}"
);
}