mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 05:24:15 +00:00
Update emit header
This commit is contained in:
parent
a10ce77584
commit
d39a329e28
2 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ parseInput = \{} ->
|
|||
|
||||
main = parseInput {} == ""
|
||||
|
||||
# emit:can_decls
|
||||
# -emit:can_decls
|
||||
v1 = {}
|
||||
|
||||
v2 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue