dumb-kevin
05ab42807e
tests/: wrap TU-local test fixture types in anon namespaces
...
- addiction_test: wrap addict_effect_totals
- battery_density_test: wrap battery_chemistry_family
- comestible_test: wrap all_stats
- encumbrance_test: wrap add_trait
- invlet_test: fuse inventory_location + invlet_state + test_action enums
- throwing_test: fuse throw_test_data + throw_test_pstats, move operator<< inside anon-ns
- vehicle_test: wrap vehicle_preset, damage_preset, folded_item_damage_preset, fuse rack_activation + rack_preset
- vision_test: wrap vision_test_case
- water_movement_test: fuse 6 swimmer/swim structs into one block
- weakpoint_test: wrap weakpoint_test_data, weakpoint_expectation, weakpoint_report
2026-05-12 10:53:28 +04:00
thaelina
ecb7ed024c
Tests
...
Removed x_max x_cur x_bonus accesses outside of setters and getters in the character namespace
2026-03-02 03:17:11 -06:00
moxian
2ee44002fd
Mechanically IWYU the tests
...
python3 ~/github/include-what-you-use/iwyu_tool.py -j5 -p build $( find
src/ tests/ -maxdepth 1 -name '*.cpp' | grep -v -f
tools/iwyu/bad_files.txt ) -- -Xiwyu --comment_style=long -Xiwyu -
-max_line_length=1000 -Xiwyu --cxx17ns -Xiwyu
--mapping_file=../tools/iwyu/cata.imp | tee out/iwyu/f-a-01.txt >
/dev/null
followed by
cat out/iwyu/f-a-02.txt | python3
~/github/include-what-you-use/fix_includes.py --reorder --nosafe_headers
followed by manual fixups of <stddef.h> -> <cstddef> and similar.
tests/generic_factory_test.cpp gets mangled very badly (IWYU bug) so
it's excluded from the list.
Code size:
includes:
$ cat obj/tiles/*.inc | wc
288068 576136 17898260
$ cat tests/obj/tiles/*.inc | wc
167044 334088 10465766
post-processed source (clang -E):
./make_preproc.sh src/
68567896 177775140 2134075721
./make_preproc.sh tests/
39341957 102891720 1243323710
2025-02-10 00:46:57 -08:00
Procyonae
982df19d0f
Change /tests remaining uses of raw string item initialisation to use itype_id s
...
"remaining uses" being somewhat of an understatement -_-
2025-01-10 15:31:15 +00:00
I-am-Erk
0898a35860
Rename fatigue to sleepiness ( #72708 )
...
* Rename fatigue to sleepiness
I feel like this is going to break some stuff?
* seems my upstream was not up to date. fun.
* A few more I missed
* astyle, json style
gangnam style? Is that still a thing?
* docs
* rename fatigue.json
also catches a few bad f+r I missed
* Update itemgroups.json
* fd_fatigue --> fd_reality_tear
* Update data/mods/MindOverMatter/mapgen/microlab_rooms.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* missed some fd_sleepiness
* fd_sleepines in tests
I really thought I got these already gr.
* Update doc/MAGIC.md
* some clang fizes
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-04 20:36:46 -05:00
RenechCDDA
b0882ee2eb
Update tests for protected moves variable
2024-03-09 16:33:12 -05:00
irwiss
056e16173c
Raise margin on nicotine addiction test
2023-08-27 17:39:22 +03:00
Alexey
07356b65a5
Normalize TEST_CASE names ( #66241 )
...
* 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)
2023-06-17 13:57:19 -03:00
David Seguin
2acc6f404f
Allow comestibles to inflict multiple addictions ( #65480 )
...
* allow defining multiple addictions per item
* multi-addiction unit test
* multi-addiction documentation
2023-05-05 09:33:54 -03:00
Alexey
c25b0ffa37
Widen test margins ( #61509 )
2022-10-08 20:25:05 -04:00
Fris0uman
51599d5088
Implement Daily health vs Lifestyle system ( #57331 )
2022-06-19 17:07:54 -07:00
David Seguin
8947c007b3
Make the mutagen addiction focus check less strict ( #57053 )
2022-04-24 00:37:22 -03:00
David Seguin
96744e4930
Jsonify addictions: unit tests (verify existing effects)
2022-04-17 13:19:01 -04:00
David Seguin
f9c425f767
Jsonify addictions: unit tests (JSON vs hardcoded effects)
2022-04-17 13:19:00 -04:00