Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out why this assert wasn't failing #124

Open
arduano opened this issue May 9, 2024 · 1 comment
Open

Figure out why this assert wasn't failing #124

arduano opened this issue May 9, 2024 · 1 comment

Comments

@arduano
Copy link
Collaborator

arduano commented May 9, 2024

    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
Copy link
Collaborator Author

arduano commented May 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant