public void CCEval_Shr() { var exp = new CBinaryExpression { Operation = CTokenType.Shr, Left = new ConstExp { Const = 4 }, Right = new ConstExp { Const = 2 }, }; var result = exp.Accept(eval); Assert.AreEqual(1, result); }
public void CCEval_Shr() { var exp = new CBinaryExpression { Operation = CTokenType.Shr, Left = new ConstExp { Const = 4 }, Right = new ConstExp { Const = 2 }, }; var result = exp.Accept(eval); Assert.AreEqual(1, result); }