From 2ed8a97ff8dc90efafdc32712e7fd11eda9a3896 Mon Sep 17 00:00:00 2001 From: Leonard Craft III Date: Tue, 6 Oct 2020 18:06:05 -0500 Subject: [PATCH] Add skipped failing event validator tests (#7472) --- test/sim/team-validator.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/sim/team-validator.js b/test/sim/team-validator.js index be5d622466..8cc7432bed 100644 --- a/test/sim/team-validator.js +++ b/test/sim/team-validator.js @@ -528,6 +528,32 @@ describe('Team Validator', function () { assert(illegal); }); + it.skip('should not allow evolutions of Shiny-locked events to be Shiny', function () { + const team = [ + {species: 'urshifu', ability: 'unseenfist', shiny: true, moves: ['snore'], evs: {hp: 1}}, + {species: 'cosmoem', ability: 'sturdy', shiny: true, moves: ['teleport'], evs: {hp: 1}}, + ]; + const illegal = TeamValidator.get('gen8anythinggoes').validateTeam(team); + assert(illegal); + }); + + it.skip('should not allow unreleased Gmax formes', function () { + const team = [ + {species: 'melmetal-gmax', ability: 'ironfist', moves: ['doubleironbash'], evs: {hp: 1}}, + ]; + const illegal = TeamValidator.get('gen8anythinggoes').validateTeam(team); + assert(illegal); + }); + + it.skip('should not allow events to use moves only obtainable in a previous generation', function () { + const team = [ + {species: 'zeraora', ability: 'voltabsorb', shiny: true, moves: ['knockoff'], evs: {hp: 1}}, + ]; + const illegal = TeamValidator.get('gen8anythinggoes').validateTeam(team); + assert(illegal); + }); + + /********************************************************* * Custom rules *********************************************************/