mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Persist defs
This commit is contained in:
parent
90e79379cb
commit
f841cdb2c0
2 changed files with 117 additions and 30 deletions
|
@ -16,8 +16,12 @@ fn standalone_annotation() {
|
|||
let mut state = ReplState::new();
|
||||
let mut input = "x : Str".to_string();
|
||||
|
||||
assert_eq!(&state.with_past_defs("test"), "test");
|
||||
|
||||
incomplete(&mut input);
|
||||
complete(&input, &mut state, Ok(""));
|
||||
|
||||
assert_eq!(&state.with_past_defs("test"), "x : Str\ntest");
|
||||
}
|
||||
|
||||
/// validate and step the given input, then check the Result vs the input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue