Formatting.

This commit is contained in:
Jeff Young 2021-01-12 12:52:15 +00:00
parent 6ed2a831d8
commit f30cea8034
1 changed files with 14 additions and 13 deletions

View File

@ -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 );
}
}