<?php
require_once dirname(__FILE__) . '/../../../../../mind3rd/API/interfaces/inflection.php';
require_once dirname(__FILE__) . '/../../../../../mind3rd/API/languages/pt/Inflect.php';

/**
 * Test class for pt\Inflect.
 * Generated by PHPUnit on 2010-11-06 at 23:55:39.
 */
class InflectTest extends PHPUnit_Framework_TestCase {

	/**
	 * @var pt\Inflect
	 */
	protected $object;

	/**
	 * Sets up the fixture, for example, opens a network connection.
	 * This method is called before a test is executed.
	 */
	protected function setUp() {
		$this->object = new pt\Inflect;
	}

	/**
	 * Tears down the fixture, for example, closes a network connection.
	 * This method is called after a test is executed.
	 */
	protected function tearDown() {

	}

	public function testisSingular() {
		$this->assertTrue(pt\Inflect::isSingular('homem'));
	}
	public function testisSingular1() {
		$this->assertFalse(pt\Inflect::isSingular('homens'));
	}
	public function testisSingular2() {
		$this->assertFalse(pt\Inflect::isSingular('caminhões'));
	}
	public function testisSingular3() {
		$this->assertTrue(pt\Inflect::isSingular('caminhão'));
	}
	public function testisSingular4() {
		$this->assertFalse(pt\Inflect::isSingular('pães'));
	}
	public function testisSingular5() {
		$this->assertTrue(pt\Inflect::isSingular('pão'));
	}
	public function testisSingular6() {
		$this->assertFalse(pt\Inflect::isSingular('carros'));
	}
	public function testisSingular7() {
		$this->assertTrue(pt\Inflect::isSingular('atlas'));
	}
	public function testisSingular8() {
		$this->assertTrue(pt\Inflect::isSingular('professor'));
	}
	public function testisSingular9() {
		$this->assertFalse(pt\Inflect::isSingular('professores'));
	}

	public function testToPlural() {
		$this->assertEquals(pt\Inflect::toPlural('homem'), 'homens');
	}
	public function testToPlural1() {
		$this->assertEquals(pt\Inflect::toPlural('caminhão'), 'caminhões');
	}
	public function testToPlural2() {
		$this->assertEquals(pt\Inflect::toPlural('pão'), 'pães');
	}
	public function testToPlural3() {
		$this->assertEquals(pt\Inflect::toPlural('carro'), 'carros');
	}
	public function testToPlural4() {
		$this->assertEquals(pt\Inflect::toPlural('átlas'), 'átlas');
	}
	public function testToPlural5() {
		$this->assertEquals(pt\Inflect::toPlural('óculos'), 'óculos');
	}
	public function testToPlural6() {
		$this->assertEquals(pt\Inflect::toPlural('peão'), 'peões');
	}
	public function testToPlural7() {
		$this->assertEquals(pt\Inflect::toPlural('aluna'), 'alunas');
	}

	public function testToSingular() {
		$this->assertEquals(pt\Inflect::toSingular('homens'), 'homem');
	}
	public function testToSingular1() {
		$this->assertEquals(pt\Inflect::toSingular('caminhões'), 'caminhão');
	}
	public function testToSingular2() {
		$this->assertEquals(pt\Inflect::toSingular('pães'), 'pão');
	}
	public function testToSingular3() {
		$this->assertEquals(pt\Inflect::toSingular('carros'), 'carro');
	}
	public function testToSingular4() {
		$this->assertEquals(pt\Inflect::toSingular('átlas'), 'átlas');
	}
	public function testToSingular5() {
		$this->assertEquals(pt\Inflect::toSingular('óculos'), 'óculos');
	}
	public function testToSingular6() {
		$this->assertEquals(pt\Inflect::toSingular('peões'), 'peão');
	}
	public function testToSingular7() {
		$this->assertEquals(pt\Inflect::toSingular('alunas'), 'aluna');
	}
	public function testToSingular8() {
		$this->assertEquals(pt\Inflect::toSingular('professores'), 'professor');
	}

	public function testToFemale() {
		$this->assertEquals(pt\Inflect::toFemale('aluno'), 'aluna');
	}
	public function testToFemale1() {
		$this->assertEquals(pt\Inflect::toFemale('réu'), 'ré');
	}
	public function testToFemale2() {
		$this->assertEquals(pt\Inflect::toFemale('gato'), 'gata');
	}
	public function testToFemale3() {
		$this->assertEquals(pt\Inflect::toFemale('leão'), 'leoa');
	}
	public function testToFemale4() {
		$this->assertEquals(pt\Inflect::toFemale('chorão'), 'chorona');
	}
	public function testToFemale5() {
		$this->assertEquals(pt\Inflect::toFemale('mestre'), 'mestra');
	}
	public function testToFemale6() {
		$this->assertEquals(pt\Inflect::toFemale('doutor'), 'doutora');
	}

	public function testToMale1() {
		$this->assertEquals(pt\Inflect::toMale('cada'), 'cada');
	}
	public function testToMale2() {
		$this->assertEquals(pt\Inflect::toMale('aluna'), 'aluno');
	}
	public function testToMale3() {
		$this->assertEquals(pt\Inflect::toMale('ré'), 'réu');
	}
	public function testToMale4() {
		$this->assertEquals(pt\Inflect::toMale('gata'), 'gato');
	}
	public function testToMale5() {
		$this->assertEquals(pt\Inflect::toMale('leoa'), 'leão');
	}
	public function testToMale6() {
		$this->assertEquals(pt\Inflect::toMale('chorona'), 'chorão');
	}
	public function testToMale7() {
		$this->assertEquals(pt\Inflect::toMale('mestra'), 'mestre');
	}
	public function testToMale8() {
		$this->assertEquals(pt\Inflect::toMale('doutora'), 'doutor');
	}
	public function testToMale9() {
		$this->assertEquals(pt\Inflect::toMale('professora'), 'professor');
	}

	public function testIsFemale() {
		$this->assertTrue(pt\Inflect::isFemale('mulher'));
	}
	public function testIsFemale1() {
		$this->assertTrue(pt\Inflect::isFemale('freira'));
	}
	public function testIsFemale2() {
		$this->assertTrue(pt\Inflect::isFemale('casa'));
	}
	public function testIsFemale3() {
		$this->assertTrue(pt\Inflect::isFemale('ré'));
	}
	public function testIsFemale4() {
		$this->assertFalse(pt\Inflect::isFemale('réu'));
	}
	public function testIsFemale5() {
		$this->assertTrue(pt\Inflect::isFemale('amorosa'));
	}
	public function testIsFemale6() {
		$this->assertFalse(pt\Inflect::isFemale('campeão'));
	}
	public function testIsFemale7() {
		$this->assertFalse(pt\Inflect::isFemale('chapél'));
	}
	public function testIsFemale8() {
		$this->assertTrue(pt\Inflect::isFemale('chorona'));
	}
	public function testIsFemale9() {
		$this->assertTrue(pt\Inflect::isFemale('pequenininha'));
	}
	public function testIsFemale10() {
		$this->assertFalse(pt\Inflect::isFemale('professor'));
	}
}
?>