Update emit header

This commit is contained in:
Ayaz Hafiz 2023-03-31 14:35:10 -05:00
parent a10ce77584
commit d39a329e28
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ fn run_test(path: PathBuf) -> Result<(), Failed> {
Ok(())
}
const EMIT_HEADER: &str = "# emit:";
const EMIT_HEADER: &str = "# -emit:";
struct TestCase {
infer_options: InferOptions,
@ -115,7 +115,7 @@ struct PrintOptions {
impl TestCase {
fn parse(mut data: String) -> Result<Self, Failed> {
// Drop anything following `# emit:` header lines; that's the output.
// Drop anything following `# -emit:` header lines; that's the output.
if let Some(drop_at) = data.find(EMIT_HEADER) {
data.truncate(drop_at);
data.truncate(data.trim_end().len());

View file

@ -26,7 +26,7 @@ parseInput = \{} ->
main = parseInput {} == ""
# emit:can_decls
# -emit:can_decls
v1 = {}
v2 = ""