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

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

classic

21

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

78

I guess one of the reviewers could have been more skeptical

118
foo(
     bar,
     [x1, x2]);

or

foo(
   bar
   [
        x1,
        x2
   ]);

or
not

131

(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.