added some tests

This commit is contained in:
LunarAkai 2025-08-09 14:50:24 +02:00
commit 89c554abdb
5 changed files with 58 additions and 29 deletions

View file

@ -118,8 +118,8 @@ pub struct Var {
/// Example: `x++`
#[derive(Clone, Debug, PartialEq)]
pub struct Unary {
pub operand: Box<Expr>,
pub operator: UnaryOp,
pub operand: Box<Expr>,
}
/// Example: `x++`