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
93be6eb642
Merge branch 'master' into develop
2017-01-29 13:33:30 +01:00
Enno Rehling
6eded43ce9
Merge branch 'master' into hotfix/3_10_5
2017-01-29 13:03:27 +01:00
Enno Rehling
36d884143e
Bug 2278: Neue Magier können nicht gelehrt werden.
...
http://bugs.eressea.de/view.php?id=2278
2017-01-29 11:06:08 +01:00
Enno Rehling
23b211d9e4
fix study.c teacher messaging
2017-01-26 18:58:29 +01:00
Enno Rehling
61f3585ad7
unlimited teachers.
...
quicklist replaces fixed array.
2017-01-26 17:57:21 +01:00
Enno Rehling
d42f1767ff
add a test for teach-messages.
...
vheck that they are generated for students and teachers.
2017-01-26 17:57:21 +01:00
Enno Rehling
ccb1799726
unlimited teachers.
...
quicklist replaces fixed array.
2016-12-11 21:29:07 +01:00
Enno Rehling
0197fce9a1
add a test for teach-messages.
...
vheck that they are generated for students and teachers.
2016-12-11 21:21:50 +01:00
Enno Rehling
a3ad9a0222
I am now calling get_race far too often. Fix this a bit.
2016-09-20 20:27:41 +02:00
Enno Rehling
5dc9ccb03e
do not call log10(0) for new lighthouses.
...
some tests for LEARN MAGIC.
2016-09-11 11:02:04 +02:00
Enno Rehling
a281ace21b
always create test units inside a region (so they can get destroyed in free_gamedata)
2016-09-08 09:11:17 +02:00
Enno Rehling
c032091b39
new rule: call test_setup to begin test, test_cleanup at end.
2016-08-29 14:21:28 +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
2a8013f3f9
fix bug 2194, poorly
2016-03-25 17:05:01 +01:00
Enno Rehling
547532bc63
remove deprecated learn_skill function and configuration
2016-03-24 22:31:07 +01:00
Enno Rehling
f55168e7de
repair the test for academies, make academy bonus use non-deprecated learn_skill
2016-03-24 13:44:29 +01:00
Enno Rehling
796f50bd93
test: teach differnt skills to different units
2016-03-24 13:01:46 +01:00
Enno Rehling
41000fcd5e
test more complex learn/teach combinations
2016-03-24 13:01:45 +01:00
Enno Rehling
36eb36f7a0
new test: one teacher, two student units
2016-03-24 13:01:44 +01:00
Enno Rehling
3aa110cfe6
study/teach: testing some easy edge cases
2016-03-24 13:01:44 +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
0464fb629a
remove some dead declarations
2016-03-24 13:01:41 +01:00
Enno Rehling
e75843e5c1
learn_skill tests were unstable because of random progress (disable it)
2016-03-24 13:01:40 +01:00
Enno Rehling
18c8148b74
narrow down test failure to a unit test.
...
learn_skill doesn't use u->number!
2016-03-24 12:59:51 +01:00
Enno Rehling
c91da12883
refactor demon_skillchange to use learn_skill
...
Also extracting it into the study module. No idea yet how I am going to sense this for a test, so the test currently does nothing.
2016-03-24 12:59:50 +01:00
Enno Rehling
b5a4faa745
deprecate learn_skill taking a double
...
- introduce days-based learn_skill
- add a simple test
2016-03-24 12:51:21 +01:00
Enno Rehling
d43265f937
a new test for the happy case of a working academy
...
dependency injection for learn_skill
memory leak fixes (triggers, armor)
2016-03-09 23:20:05 +01:00
Enno Rehling
3d5c7ba8fb
refactoring: move produceexp from unit.c to study.c
2016-03-09 14:50:54 +01:00
Enno Rehling
e1f27448bc
disable broken test.
...
fix test_study_with_teacher (simple optimization was in the wrong place)
2016-03-09 14:50:04 +01:00
Enno Rehling
13f51ab796
create a test that crashes for bug 2194
2016-03-09 14:50:04 +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
b6d44410b7
make the password pseudo-private to faction.c
2016-01-12 06:46:51 +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
Enno Rehling
04db291c8b
disable random study in test to make it not intermittent
2015-08-06 20:48:14 +02:00
Enno Rehling
27835dc4e1
unit tests for STUDY and TEACH commands.
2015-07-09 13:24:21 +02:00