Add assignment parsing
This commit is contained in:
parent
3080313e8c
commit
22083ae1f2
2 changed files with 17 additions and 2 deletions
|
@ -150,6 +150,12 @@ fn test_assignment_chain() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn test_assignment_invalid() {
|
||||
parse(&tokenize("a ="));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unary_basic() {
|
||||
let result = parse(&tokenize("not x"));
|
||||
|
|
Reference in a new issue