Enno Rehling
19b3b5b35a
change how message types are created (more prep work for expat)
2018-05-18 19:58:49 +02:00
Enno Rehling
2f7637f953
add a unit test for make_movement_order, too.
2018-04-22 18:08:56 +01:00
Enno Rehling
fc4b7ba73d
refactor: extract cycle_route and test it (with PAUSE).
2018-04-22 11:02:05 +01:00
Enno Rehling
05242aaf2d
Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
2018-02-25 17:18:30 +01:00
Enno Rehling
f776450f9b
Replace 0 with NULL (consistency is good).
2018-01-14 09:58:45 +01:00
Enno Rehling
75f41a7169
fix crashes on 64-bit systems (not all 0s are created equal).
2018-01-14 09:38:26 +01:00
Enno Rehling
b83a1ee136
fix more missing_message errors.
2018-01-13 08:51:40 +01:00
Enno Rehling
98678d9fb2
disable the missing_message replacement used in so many tests. fix some tests so they don't need it.
2018-01-12 21:15:21 +01:00
Enno Rehling
cff4e12fbd
celan up tests, rename test_cleanup -> test_teardown.
2017-12-27 19:58:39 +01:00
Enno Rehling
f4e56d1512
bug 2238: respect the dragon speed multiplier.
2017-12-26 06:26:56 +01:00
Enno Rehling
a7c45d31ad
bug 2214: drifting ships in E3 should take no damage.
2017-12-25 23:22:58 +01:00
Enno Rehling
691dde5960
unit test ROUTE.
2017-12-11 16:24:06 +01:00
Enno Rehling
34808a25c5
Merge branch 'develop'
2017-11-09 18:04:41 +01:00
Enno Rehling
9c24fe4b07
fix gcc build
2017-10-30 18:12:24 +01:00
Enno Rehling
35742e8870
BUG 2376: Abtreiben zeigt immer Nordwesten an.
2017-10-30 18:01:33 +01:00
Enno Rehling
333ef06fef
hackish optimization for STUDY orders
2017-10-13 19:33:29 +02:00
Enno Rehling
6265abac74
remove side-effects from movement_speed().
2017-10-06 22:30:44 +02:00
Enno Rehling
fe95ddafa1
reduce "translation not found" warnings in tests.
2017-03-10 21:43:36 +01:00
Enno Rehling
be0b54494e
clean up some tests.
...
the test locale gets some extra strings.
test_create_world is bad, stop using it. unfinished.
2017-03-10 21:29:37 +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
ddc7707cde
add a failing test for bug 2266
2016-12-16 17:16:10 +01:00
Enno Rehling
95954fb386
start writing a test (WIP).
2016-12-16 07:29:43 +01:00
Enno Rehling
19a0c2ddb3
quelling some static analysis complaints.
2016-11-19 20:57:10 +01:00
Enno Rehling
8597e8b16a
move guard test to guard.test.c
2016-10-30 05:39:25 +01:00
Enno Rehling
a42bd9c3bf
remove the BLD_WORKING flag.
...
it's all about BLD_MAINTAINED now.
fix region.blocked (Lua property).
2016-08-21 20:12:28 +02:00
Enno Rehling
78fa6d3a47
remove the SAIL_INTO flag
2016-06-10 20:55:27 +02:00
Enno Rehling
f08957b513
test target selection rules for drifting ships.
2016-06-10 18:24:18 +02:00
Enno Rehling
87b09cd3c6
refactor tests to use test locale where possible
2016-03-24 13:01:47 +01:00
Enno Rehling
267dafcee5
very basic tests for teach and study
2016-03-24 13:01:43 +01:00
Enno Rehling
be6a7a5e39
refactor test_create_locale
...
- create a mostly functional locale for testing
- use it for test factions
refactor learn_skill injection
- use days, not chance
- fix or mutilate broken tests
2016-03-24 13:01:42 +01:00
Enno Rehling
349a67ece3
memory leak: test_create_shiptype and coasts, again
2016-03-11 09:50:18 +01:00
Enno Rehling
5fed36903c
some drmemory fixes
...
some tests leaked.
current test_eressea reports:
41 unique, 41 total, 3778 byte(s) of leak(s)
120 unique, 270 total, 5615 byte(s) of possible leak(s)
2016-02-25 10:16:50 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
eae87bc7f1
fix null pointer access, bug2169
2015-11-29 21:06:35 +01:00
Enno Rehling
4b7cb824bd
Merge branch 'massive_overload' of https://github.com/stm2/server into stm2-massive_overload
...
Conflicts:
src/move.c
src/tests.c
2015-11-27 12:40:17 +01:00
Enno Rehling
0410581907
Merge branch 'market_tests' of https://github.com/stm2/server into stm2-market_tests
...
Conflicts:
src/move.test.c
src/study.c
2015-11-26 18:42:23 +01:00
Enno Rehling
dcfc1d1f15
Merge pull request #406 from ennorehling/critbit-params
...
config_get/config_set refactoring, kill cache logic
2015-11-23 12:25:16 +01:00
Enno Rehling
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +01:00
Steffen Mecke
afd44fc50a
fix test interdependence; set silver weight to 1
2015-11-19 15:29:04 +01:00
Steffen Mecke
a6757ecf9d
Merge branch 'develop' into massive_overload
...
Conflicts:
src/move.test.c
2015-11-19 14:54:14 +01:00
Steffen Mecke
92ee0f24a4
tweaked parameters for massive overload
...
so ... many ... configuration parameters
scrubbed lua test
2015-11-19 12:36:15 +01:00
Steffen Mecke
acb45e079d
test commit for travis
2015-11-17 17:34:03 +01:00
Steffen Mecke
a7a82662b7
reduce maximum overload damage to 38%
2015-11-17 15:47:43 +01:00
Steffen Mecke
b34fca4633
hopefully fixing travis build (thanks, valgrind)
2015-11-16 14:40:18 +01:00
Steffen Mecke
4fdb9e86e7
test for follow ship error msg
2015-11-16 12:51:34 +01:00
Steffen Mecke
5326bbd9e4
refactored inside_building/building_is_active/active_building
2015-11-16 02:13:48 +01:00
Steffen Mecke
3a18384ddb
overfull ships do not drift but take damage
...
http://bugs.eressea.de/view.php?id=2157
removed exploit:
ships more than 2 times over their ship type's capacity do not drift but take 30% to 100% damage
2015-11-15 12:43:05 +01:00
Enno Rehling
acda22ae1b
leak: free route at the end of the test
2015-10-14 12:03:19 +02:00
Enno Rehling
d153846769
test: ageing ship trails works as expected. cannot find a bug here.
...
Conflicts:
src/move.test.c
2015-09-25 14:10:25 +02:00
Enno Rehling
f07802bab5
add a test to check that move_ship creates a trail when given a route
...
Conflicts:
src/move.test.c
2015-09-25 14:09:22 +02:00