Page MenuHomeWildfire Games

Adds test in ProductionQueue for the {civ} tech replacement from rP20551
ClosedPublic

Authored by mimo on Dec 7 2017, 7:49 PM.

Details

Summary

Complete the tests in ProductionQueue introduced in rP20603 to also cover the tech replacement from rP20551

Test Plan

Check that the tests run

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mimo created this revision.Dec 7 2017, 7:49 PM
elexis accepted this revision.Dec 7 2017, 8:03 PM
elexis added a subscriber: elexis.

Test succeeds.
A testcase where one can train templates of two different civs might catch some edge case if one wants to add more coverage.

binaries/data/mods/public/simulation/components/tests/test_ProductionQueue.js
16 ↗(On Diff #4633)

classic

21 ↗(On Diff #4633)

(I meant one template per line, so that all start with units/ at the same location)

78 ↗(On Diff #4633)

I guess one of the reviewers could have been more skeptical

118 ↗(On Diff #4633)
foo(
     bar,
     [x1, x2]);

or

foo(
   bar
   [
        x1,
        x2
   ]);

or
not

131 ↗(On Diff #4633)

(Someone could have used arrays or Sets when introducing the thing)

This revision is now accepted and ready to land.Dec 7 2017, 8:03 PM
Vulcan added a subscriber: Vulcan.Dec 7 2017, 8:27 PM

Build failure - The Moirai have given mortals hearts that can endure.

Vulcan added a comment.Dec 7 2017, 8:28 PM
Executing section Default...
Executing section Source...
Executing section JS...
This revision was automatically updated to reflect the committed changes.