Skip to content

Commit

Permalink
test: repl assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Feb 18, 2024
1 parent 5dc6c5b commit b0d2622
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,22 @@ fn pass() {
.stderr(format!("PASS: {file_path}:1\n"));
});
}

#[test]
fn pass_assignment() {
with_eelco(|file, eelco| {
file.write_str(indoc! {"
```nix-repl
nix-repl> a = 1
```
"})
.unwrap();

let file_path = file.path().to_str().unwrap();

eelco
.assert()
.success()
.stderr(format!("PASS: {file_path}:1\n"));
});
}

0 comments on commit b0d2622

Please sign in to comment.