Skip to content

Figure out why this assert wasn't failing #124

Open

Description

@arduano
    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?

Activity

  1. arduano commented on May 27, 2024

    @arduano
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions