<commit_before>var assert = require('assert');
var battle;

describe('Most status moves', function () {
	afterEach(function () {
		battle.destroy();
	});

	it('should ignore type immunities', function () {
		battle = BattleEngine.Battle.construct();
		battle.join('p1', 'Guest 1', 1, [{species: "Smeargle", ability: 'prankster', item: 'leftovers', moves: ['gastroacid', 'glare', 'confuseray', 'sandattack']}]);
		battle.join('p2', 'Guest 2', 1, [
			{species: "Klefki", ability: 'magician', happiness: 0, moves: ['return']},
			{species: "Dusknoir", ability: 'frisk', moves: ['shadowpunch']},
			{species: "Slaking", ability: 'truant', moves: ['shadowclaw']},
			{species: "Tornadus", ability: 'prankster', moves: ['tailwind']},
			{species: "Unown", ability: 'levitate', moves: ['hiddenpower']}
		]);
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].item, '');
		battle.choose('p1', 'move 2');
		battle.choose('p2', 'switch 2');
		assert.strictEqual(battle.p2.active[0].status, 'par');
		battle.choose('p1', 'move 3');
		battle.choose('p2', 'switch 3');
		assert.ok(battle.p2.active[0].volatiles['confusion']);
		battle.choose('p1', 'move 4');
		battle.choose('p2', 'switch 4');
		assert.strictEqual(battle.p2.active[0].boosts['accuracy'], -1);
		battle.choose('p1', 'move 4');
		battle.choose('p2', 'switch 5');
		assert.strictEqual(battle.p2.active[0].boosts['accuracy'], -1);
	});
});
<commit_msg>Update statuses test<commit_after>var assert = require('assert');
var battle;

describe('Most status moves', function () {
	afterEach(function () {
		battle.destroy();
	});

	it('should ignore type immunities', function () {
		battle = BattleEngine.Battle.construct();
		battle.join('p1', 'Guest 1', 1, [{species: "Smeargle", ability: 'prankster', item: 'leftovers', moves: ['gastroacid', 'glare', 'confuseray', 'sandattack', 'thunderwave']}]);
		battle.join('p2', 'Guest 2', 1, [
			{species: "Klefki", ability: 'magician', happiness: 0, moves: ['return']},
			{species: "Dusknoir", ability: 'frisk', moves: ['shadowpunch']},
			{species: "Slaking", ability: 'truant', moves: ['shadowclaw']},
			{species: "Tornadus", ability: 'prankster', moves: ['tailwind']},
			{species: "Unown", ability: 'levitate', moves: ['hiddenpower']},
			{species: "Landorus", ability: 'sandforce', moves: ['bulkup']}
		]);
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].item, '');
		battle.choose('p1', 'move 2');
		battle.choose('p2', 'switch 2');
		assert.strictEqual(battle.p2.active[0].status, 'par');
		battle.choose('p1', 'move 3');
		battle.choose('p2', 'switch 3');
		assert.ok(battle.p2.active[0].volatiles['confusion']);
		battle.choose('p1', 'move 4');
		battle.choose('p2', 'switch 4');
		assert.strictEqual(battle.p2.active[0].boosts['accuracy'], -1);
		battle.choose('p1', 'move 4');
		battle.choose('p2', 'switch 5');
		assert.strictEqual(battle.p2.active[0].boosts['accuracy'], -1);
		battle.choose('p1', 'move 5');
		battle.choose('p2', 'switch 6');
		assert.strictEqual(battle.p2.active[0].status, '');
	});
});

{'fraction_non_alphanumeric': 0.22895512610547003, 'fraction_numerical': 0.024893547330494595, 'mean_word_length': 5.712087912087912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4720301', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1122, 'n_words': 220}