openfoam/applications/test/dictionary
Mark Olesen efd1ac4b5f ENH: adjust token in preparation for separate expression tokenization
- minor simplification of #if/#endif handling

ENH: improve input robustness with negative-prefixed expansions (#2095)

- especially in blockMeshDict it is useful to negate an value directly.
  Eg,
  ```
     xmax  100;
     xmin  -$xmax;
  ```
  However, this fails since the dictionary expansion is a two-step
  process of tokenization followed by expansion. After the expansion
  the given input would now be the following:
  ```
     xmax  100;
     xmin  - 100;
  ```
  and retrieving a scalar value for 'xmin' fails.

  Counteract this by being more generous on tokenized input when
  attempting to retrieve a label or scalar value.
  If a '-' is found where a number is expected, use it to negate the
  subsequent value.

  The previous solution was to invoke an 'eval':
  ```
     xmax  100;
     xmin  #eval{-$xmax};
  ```
  which adds additional clutter.
2021-05-18 15:30:00 +02:00
..
Make STYLE: uniform 'Test-' prefix for all applications/test 2010-11-23 16:26:04 +01:00
blockMeshDict1.calc ENH: support use of 'vector' in #calc directive (fixes #2039) 2021-03-29 16:00:11 +02:00
blockMeshDict1.eval ENH: support use of 'vector' in #calc directive (fixes #2039) 2021-03-29 16:00:11 +02:00
Test-dictionary.C ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
testDict ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDict2 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictAPI ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictCalc1 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictEval1 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictEval2 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictEval3 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictEval4 ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictInc
testDictList ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testDictRegex ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testPrimitiveEntry ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
testSubkeyword ENH: adjust token in preparation for separate expression tokenization 2021-05-18 15:30:00 +02:00
value