This commit is contained in:
Tarun Samanta
2023-03-23 18:33:40 +05:30
parent 30d73fb24f
commit cc5e103534

View File

@@ -32,11 +32,11 @@ mod tests {
let file_contents = fs::read_to_string(&file_path).expect("Failed to read file contents");
if let Some(first_line) = file_contents.lines().next() {
if first_line.starts_with("// test_output! ") {
if first_line.starts_with("! test_output("Done") ") {
println!("\nTesting {} ...", file_path.to_str().unwrap());
let output_str = first_line
.split_once("// test_output! ")
.split_once("! test_output("Done") ")
.map(|x| x.1)
.unwrap_or("");