Enno Rehling
234eb62226
short and sweet math with fractions.
...
goinf to use this for magres.
2017-02-24 17:51:35 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
8b7dae6977
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-10 16:31:05 +01:00
Enno Rehling
f9fbe60766
add a happy test for mt_new.
...
refactor to not use strncpy.
2017-01-06 20:54:57 +01:00
Enno Rehling
f371a0c5f3
eliminate unused callback module.
...
what was I thinking when I wrote this?
2016-11-17 10:32:20 +01:00
Enno Rehling
264fc0cb6f
test renumbering units and factions.
2016-11-16 20:03:34 +01:00
Enno Rehling
654926fa06
add a failing test for "monsters can guard when unarmed"
2016-10-29 19:18:43 +02:00
Enno Rehling
cd69936922
fix demand in terraformed regions.
...
https://bugs.eressea.de/view.php?id=2249
2016-10-24 13:47:38 +02:00
Enno Rehling
951bf5718e
Merge branch 'develop' into kill-seen-region
2016-09-17 12:41:06 +02:00
Enno Rehling
adfafd51a6
test lighthouses
2016-09-17 12:34:02 +02:00
Enno Rehling
a86e30d014
re-enable report testing, find out that it fails.
2016-09-16 21:17:54 +02:00
Enno Rehling
428f640ba6
disable reports tests. have to sort them by report.test and reports.test first
2016-09-13 19:09:53 +02:00
Enno Rehling
acfb06392a
Everything except report.c compiles.
...
Not that I'm not claiming that it works.
2016-09-13 17:02:51 +02:00
Enno Rehling
5864651b28
WIP: add a simple test for summary, add a simple dtor for them (it is still leaking stuff).
2016-09-09 17:20:09 +02:00
Enno Rehling
a5b3fad67a
skeleton of a language test, try to find init_direction memory leak.
2016-09-04 20:27:36 +01:00
Enno Rehling
1c5fcded9f
allow control over stderr logging from tests.
...
separate test_cleanup from test_setup.
2016-08-29 14:09:47 +01:00
Enno Rehling
020ab942ec
add tests for monster naming functions (existence only).
2016-08-28 17:37:08 +01:00
Enno Rehling
6d5e295678
activate, fix and improve volcano test.
...
reduce number of terrain lookups.
2016-08-26 17:26:26 +01:00
Enno Rehling
238a0e22f2
Merge branch 'test-alliance' of https://github.com/ennorehling/eressea into ennorehling-test-alliance
...
Conflicts:
src/util/CMakeLists.txt
2016-08-08 08:46:09 +02:00
Enno Rehling
c4d31d368e
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/util/log.c
src/util/log.h
2016-05-01 13:47:30 +02:00
Enno Rehling
1fa1693119
test multiple loggers
2016-05-01 13:36:00 +02:00
Enno Rehling
c0acfddb71
test some simple facts about planes
2016-04-09 14:26:10 +02:00
Enno Rehling
80b14048be
remove some unused code from alliances
...
start writing test coverage
2016-04-08 19:45:27 +02:00
Enno Rehling
d1fdd9a89c
fix failing storage test
2016-02-24 11:39:27 +01:00
Enno Rehling
0189111876
update key attribute api
...
prepare to replace at_key. do not return the internals. add basic test.
2016-02-09 06:43:19 +01:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
caac2e65b0
remove unused includes
2016-01-31 21:41:25 +01:00
Enno Rehling
b0bb566f47
clang is picky about the correct name of stdarg.h
2016-01-31 21:40:19 +01:00
Enno Rehling
8f4e6475c7
complete redesign of the log library (almost finished?)
2016-01-31 19:54:49 +01:00
Enno Rehling
729c4ceea1
increase error-logging from unit tests.
...
suppress some unrelated errors.
2016-01-28 16:00:36 +01:00
Enno Rehling
f14ee2adaa
include the password module in the list of unit tests
2016-01-13 12:37:07 +01:00
Steffen Mecke
a366cd4b17
tests for plan_monster
2015-11-17 12:12:06 +01:00
Enno Rehling
ea8721367a
test and fix shock trigger.
...
https://bugs.eressea.de/view.php?id=2154
2015-11-09 19:43:51 +01:00
Enno Rehling
ee02721c21
fix and tests for otherfaction attributes in E2
...
https://bugs.eressea.de/view.php?id=2152
2015-11-09 13:36:52 +01:00
Philipp Dreher
96ccb046ab
added test-suite for flyingship.c
...
some general testing of the spells functionality for future maintenance
purposes
2015-11-02 17:54:23 +01:00
Enno Rehling
203b058166
avoid memory leaks when running with --list
2015-10-14 20:04:03 +02:00
Enno Rehling
47eee29813
correct argument count
2015-10-14 18:40:37 +02:00
Enno Rehling
5d192cb4c9
fix compile: gcc is extra picky about const char** conversions.
2015-10-14 18:38:10 +02:00
Enno Rehling
ba0828afd4
rather complex implementation of selective test running (CuTest does not have this feature).
2015-10-14 18:34:41 +02:00
Enno Rehling
678169d7d4
add skeleton test suite for piracy
2015-10-12 11:54:59 +02:00
Enno Rehling
f1476c2167
refactoring: split out a module for race prefixes
2015-09-12 12:24:10 +02:00
Enno Rehling
d29d38f710
refactor donations into a seaprate code module, add a basic test
2015-09-09 15:45:20 +02:00
Enno Rehling
8562a6d072
add test suite for seen_region logic (empty)
2015-09-08 10:07:29 +02:00
Enno Rehling
71dea1eca7
backfill missing tests for herbsearch (alchemy).
2015-08-27 13:19:58 +02:00
Enno Rehling
a9ecd1f55e
replace all at_travelunit code with travelthru_map calls.
...
welcome to callback hell.
this should stop the buffer for travelthru from running over.
tests for this should be hell, and I still owe writing them.
2015-08-19 14:37:51 +02:00
Enno Rehling
27835dc4e1
unit tests for STUDY and TEACH commands.
2015-07-09 13:24:21 +02:00
Enno Rehling
6abf8f7adb
bug 1692: rewrite of magicresistance curse-info, especially for buildings (homestome spell).
2015-07-08 05:12:26 +02:00
Enno Rehling
e99db198eb
bugfix use_item (use_skillpotion did not use pool).
...
from here on, all use_* functions return the number of items used, and
use_item handles removing them from the unit (or the pool).
2015-05-24 07:17:23 +02:00
Steffen Mecke
b41049da53
test good/bad dreams
2015-05-06 18:15:10 +02:00
Steffen Mecke
2cc8c1f871
trying to solve spy message bug #1604
...
Conflicts:
src/kernel/CMakeLists.txt
2015-05-04 14:30:59 +02:00