rix
rix copied to clipboard
Figure out why this assert wasn't failing
assert_eq!(
eval_ok("{a = 1; b = 2;} // {a = 3; c = 1;"),
Value::AttrSet(HashMap::from([
("a".to_owned(), Value::Int(3)),
("b".to_owned(), Value::Int(2)),
("c".to_owned(), Value::Int(1)),
]))
);
(missing a closing curly brace)
Maybe a mistake with parsing code?
Ok yeah it's parsing related I believe
@urbas You are more familiar with the parsing logic, would you be able to look into this one? Minimal repro:
cargo run -- eval --expr "{ a = 1; "