Formatting.
This commit is contained in:
parent
6ed2a831d8
commit
f30cea8034
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2019-2020 KiCad Developers, see CHANGELOG.TXT for contributors.
|
||||
* Copyright (C) 2019-2021 KiCad Developers, see CHANGELOG.TXT for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -86,7 +86,8 @@ const static std::vector<EXPR_TO_TEST> introspectionExpressions = {
|
|||
|
||||
|
||||
static bool testEvalExpr( const wxString& expr, LIBEVAL::VALUE expectedResult,
|
||||
bool expectError = false, BOARD_ITEM* itemA = nullptr, BOARD_ITEM* itemB = nullptr )
|
||||
bool expectError = false, BOARD_ITEM* itemA = nullptr,
|
||||
BOARD_ITEM* itemB = nullptr )
|
||||
{
|
||||
PCB_EXPR_COMPILER compiler;
|
||||
PCB_EXPR_UCODE ucode;
|
||||
|
@ -139,7 +140,7 @@ BOOST_AUTO_TEST_CASE( SimpleExpressions )
|
|||
{
|
||||
for( const auto& expr : simpleExpressions )
|
||||
{
|
||||
bool ok = testEvalExpr( expr.expression, expr.expectedResult, expr.expectError );
|
||||
testEvalExpr( expr.expression, expr.expectedResult, expr.expectError );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -174,7 +175,7 @@ BOOST_AUTO_TEST_CASE( IntrospectedProperties )
|
|||
|
||||
for( const auto& expr : introspectionExpressions )
|
||||
{
|
||||
bool ok = testEvalExpr( expr.expression, expr.expectedResult, expr.expectError, &trackA, &trackB );
|
||||
testEvalExpr( expr.expression, expr.expectedResult, expr.expectError, &trackA, &trackB );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue