From ee0c578adc5902308225f1a15ba6f6a55f760418 Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Wed, 16 Jun 2021 07:09:49 -0600 Subject: [PATCH] Add test cases for logical operators with no spaces to opening parenth (#274) --- test/python_utils/lower_case_cmake_UnitTests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/python_utils/lower_case_cmake_UnitTests.py b/test/python_utils/lower_case_cmake_UnitTests.py index b943f3bed..395aeb3da 100644 --- a/test/python_utils/lower_case_cmake_UnitTests.py +++ b/test/python_utils/lower_case_cmake_UnitTests.py @@ -160,15 +160,21 @@ def test_no_match_logical_operators(self): cmakeCodeStrIn = "\n"+\ "FUNCTION(SOME_FUNCTION)\n"+\ " IF ( (VAR1) AND (VAR2) )\n"+\ + " IF ((VAR1)AND(VAR2))\n"+\ " IF ( (VAR1) OR (VAR2) )\n"+\ + " IF ( (VAR1)OR(VAR2) )\n"+\ " IF ( (VAR1) AND NOT (VAR2) )\n"+\ + " IF ( (VAR1)AND NOT(VAR2) )\n"+\ "ENDFUNCTION()\n"+\ "\n" cmakeCodeStrOut_expected = "\n"+\ "function(some_function)\n"+\ " if ( (VAR1) AND (VAR2) )\n"+\ + " if ((VAR1)AND(VAR2))\n"+\ " if ( (VAR1) OR (VAR2) )\n"+\ + " if ( (VAR1)OR(VAR2) )\n"+\ " if ( (VAR1) AND NOT (VAR2) )\n"+\ + " if ( (VAR1)AND NOT(VAR2) )\n"+\ "endfunction()\n"+\ "\n" cmakeCodeStrOut = LCC.makeCmndsLowerCaseInCMakeStr(cmakeCodeStrIn)