Skip to content

Commit

Permalink
rename *.output to *.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
xffxff committed Sep 19, 2023
1 parent b41936e commit 5de9456
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct TestCase {
lox: PathBuf,
syntax: PathBuf,
bytecode: PathBuf,
output: PathBuf,
execute: PathBuf,
text: String,
}

Expand All @@ -31,13 +31,13 @@ impl TestCase {
let lox = path;
let syntax = lox.with_extension("syntax");
let bytecode = lox.with_extension("bytecode");
let output = lox.with_extension("output");
let execute = lox.with_extension("execute");
let text = fs::read_to_string(&lox).unwrap();
res.push(TestCase {
lox,
syntax,
bytecode,
output,
execute,
text,
});
}
Expand Down Expand Up @@ -120,6 +120,6 @@ fn main() {
buf.push('\n');
};
lox_execute::execute_file(&db, input_file, Some(step_inspect));
expect_file![case.output].assert_eq(&buf);
expect_file![case.execute].assert_eq(&buf);
}
}

0 comments on commit 5de9456

Please sign in to comment.