Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 582e21e4 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "hidl_test: update expression test" am: 9dc12843 am: eed76d6f

am: 23072f6c

Change-Id: I854241b90ba0c4002244cc0a2071aaa2d7ecfd7d
parents 5af077d7 23072f6c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -92,8 +92,10 @@ interface IExpression {
    hexLong2 = 0xfffffffff,
    simpleArithmetic = 4 + 1,
    simpleArithmetic2 = 2 + 3 - 4,
    simpleArithmetic3 = 2 - 3 + 4,
    simpleBoolExpr = 1 == 4,
    simpleLogical = 1 && 1,
    simpleLogical2 = 1 || 1 && 0,  // && higher than ||
    simpleComp = 1 < 2,
    boolExpr1 = !((3 != 4 || (2 < 3 <= 3 > 4)) >= 0),
    boolExpr = 1 == 7 && !((3 != 4 || (2 < 3 <= 3 > 4)) >= 0),
@@ -102,6 +104,7 @@ interface IExpression {
    simpleBitShiftNeg = 4 << -1,
    simpleArithmeticRightShift = 1 << 31 >> 31,
    simpleBitExpr = 1 | 16 >> 2,
    simpleBitExpr2 = 0x0f ^ 0x33 & 0x99, // & higher than ^
    bitExpr = ~42 & (1 << 3 | 16 >> 2) ^ 7,
    arithmeticExpr = 2 + 3 - 4 * -7 / (10 % 3),
    messyExpr = 2 + (-3&4 / 7),