From 02332ce2faef154027e80893aeedfb2ebf111ea0 Mon Sep 17 00:00:00 2001 From: Marty-D Date: Tue, 21 Aug 2018 13:47:21 -0400 Subject: [PATCH] Test some more illegal egg move combinations --- test/application/team-validator.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/application/team-validator.js b/test/application/team-validator.js index c915899ede..3b3b3141fb 100644 --- a/test/application/team-validator.js +++ b/test/application/team-validator.js @@ -126,6 +126,24 @@ describe('Team Validator', function () { illegal = TeamValidator('gen2ou').validateTeam(team); assert.strictEqual(illegal, null); + team = [ + {species: 'skarmory', ability: 'keeneye', moves: ['curse', 'drillpeck']}, + ]; + illegal = TeamValidator('gen3ou').validateTeam(team); + assert(illegal); + + team = [ + {species: 'skarmory', ability: 'keeneye', moves: ['whirlwind', 'drillpeck']}, + ]; + illegal = TeamValidator('gen3ou').validateTeam(team); + assert(illegal); + + team = [ + {species: 'armaldo', ability: 'battlearmor', moves: ['knockoff', 'rapidspin']}, + ]; + illegal = TeamValidator('gen3ou').validateTeam(team); + assert(illegal); + team = [ {species: 'snorlax', ability: 'immunity', moves: ['curse', 'pursuit']}, ];