Skip to content

Commit

Permalink
Add test cases for logical operators with no spaces to opening parenth (
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Jun 16, 2021
1 parent 595683f commit ee0c578
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/python_utils/lower_case_cmake_UnitTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee0c578

Please sign in to comment.