Skip to content

Commit

Permalink
[ADDITIVE] Add test for unary minus parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
hagantsa committed Jul 16, 2024
1 parent bbea2de commit 581c6e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Core/tst_SystemVerilogExpressionParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ void tst_SystemVerilogExpressionParser::testParseMultipleOperations_data()
QTest::newRow("clog2() precedes power operation") << "2**$clog2(4) + 1" << "5";

QTest::newRow("Value of clog2() preceds other operations") << "(2 + 2)*3*$clog2(4*2*2) + 2" << "50";

QTest::newRow("Unary minus in expression") << "-$clog2(32)-($sqrt(25)-(-$pow(2,2)))" << "-14";
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 581c6e9

Please sign in to comment.