Skip to content

Commit

Permalink
Test some more illegal egg move combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty-D committed Aug 21, 2018
1 parent 009515f commit 02332ce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/application/team-validator.js
Expand Up @@ -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']},
];
Expand Down

2 comments on commit 02332ce

@Zarel
Copy link
Member

@Zarel Zarel commented on 02332ce Aug 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I was about to add this but apparently you already did.

@Zarel
Copy link
Member

@Zarel Zarel commented on 02332ce Aug 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was like "how was this not caught earlier if we have a test for this?"

Please sign in to comment.