rix icon indicating copy to clipboard operation
rix copied to clipboard

Figure out why this assert wasn't failing

Open arduano opened this issue 1 year ago • 1 comments

    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?

arduano avatar May 09 '24 21:05 arduano

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; "

arduano avatar May 27 '24 02:05 arduano