* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
Our string_id constants were a mixture of temporaries, locals, and
globals. Pull them all out as globals, for consistency and efficiency.
The efficiency comes from the fact that each string_id instance caches
its respective int_id, and sharing one instance means that value need
not be recomputed.
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
* Change _ctype.h and __locale to cctype and clocale
* Change _wctype.h to cwctype in game.cpp
* Change __functional_base to functional
* Remove libcxx internal headers
* Remove UNIX system headers
* Fix clang-tidy error with -nostdinc++
Includes test cases for `Creature` effects, covering functions:
- add_effect, remove_effect
- has_effect, has_effect_with_flag
- resists_effect, is_immune_effect
Behaviors exercised:
- characters may have an effect on a body part, or all-body
- monsters may only have all-body effects (not having body parts)
- monsters immune to an effect can still be forced to have it
- fleshy, warm-blooded monsters can bleed and be poisoned
- bony, non-warm monsters are immune to bleeding and poison
- fleshy, non-warm-blooded monsters are immune to bleeding and poison
- Slimy mutation gives immunity to corroding effect
- Tentacle bracing mutation gives immunity to downing
- Strong Stomach mutation gives immunity to nausea