]> git.pond.sub.org Git - empserver/blob - tests/build/units/02-planes-2
tests/build: New; exercises build command
[empserver] / tests / build / units / 02-planes-2
1 || planes
2 | invalid type
3 build p -1,1 @
4 | insufficient tech
5 build p -1,1 sf
6 | too many
7 build p -1,1 f2 21
8 n
9 | f2 needs 0.8l/0.2h/1m/4av/$40, tech 80
10 | asking for too high and too low tech
11 build p -1,1 f2 1 101
12 build p -1,1 f2 1 79
13 | not an airfield, no materials, inefficient
14 build p -1,1 f2
15 | Note: fractional cms are randomly rounded, which can make build
16 | succeed, upsetting the rest of the test
17 build p 3:5,1 f2
18 | insufficient materials: 1,1 short 1l/1h, 3,1 short 1m
19 | Note: fractional cms are randomly rounded, which can make build
20 | succeed in 1,1, upsetting the rest of the test
21 move m -1,1 1 jh
22 move l -1,1 1 jjh
23 move h -1,1 1 jjh
24 build p 1:3,1 f2
25 | build until out of avail/money
26 | sectors can build 2 each, but out of money after 3 total
27 move m -1,1 3 jh
28 move l -1,1 4 jh
29 move h -1,1 4 jh
30 move m -1,1 4 jjh
31 move l -1,1 3 jjh
32 move h -1,1 3 jjh
33 build
34 p
35 1,1
36 f2
37 build p 1,1 f2
38 build p 1:3,1 f2 3 90
39 || show results
40 plan *
41 cens * ?des=*
42 comm * ?des=*