corrections to the verbalizer and tests added
Esse commit está contido em:
@@ -93,6 +93,40 @@ class ConjugatorTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertFalse(Conjugator::isVerb('violão'));
|
||||
}
|
||||
|
||||
public function testIsVerb21() {
|
||||
$this->assertTrue(Conjugator::isVerb('falhar'));
|
||||
}
|
||||
public function testIsVerb22() {
|
||||
$this->assertTrue(Conjugator::isVerb('falhei'));
|
||||
}
|
||||
public function testIsVerb23() {
|
||||
$this->assertTrue(Conjugator::isVerb('falharei'));
|
||||
}
|
||||
public function testIsVerb24() {
|
||||
$this->assertTrue(Conjugator::isVerb('falhou'));
|
||||
}
|
||||
public function testIsVerb25() {
|
||||
$this->assertTrue(Conjugator::isVerb('falhamos'));
|
||||
}
|
||||
public function testIsVerb26() {
|
||||
$this->assertTrue(Conjugator::isVerb('falharei'));
|
||||
}
|
||||
public function testIsVerb27() {
|
||||
$this->assertTrue(Conjugator::isVerb('falharemos'));
|
||||
}
|
||||
public function testIsVerb28() {
|
||||
$this->assertTrue(Conjugator::isVerb('correu'));
|
||||
}
|
||||
public function testIsVerb29() {
|
||||
$this->assertTrue(Conjugator::isVerb('correrás'));
|
||||
}
|
||||
public function testIsVerb30() {
|
||||
$this->assertTrue(Conjugator::isVerb('falhará'));
|
||||
}
|
||||
public function testIsVerb31() {
|
||||
$this->assertTrue(Conjugator::isVerb('comeu'));
|
||||
}
|
||||
|
||||
// testing the toInfinitive method
|
||||
// NOTICE that its goas is about the present/future words...
|
||||
// past is not supported
|
||||
|
||||
Arquivo binário não exibido.
|
Antes Largura: | Altura: | Tamanho: 122 KiB Depois Largura: | Altura: | Tamanho: 144 KiB |
Arquivo binário não exibido.
Arquivo binário não exibido.
Arquivo binário não exibido.
@@ -44,7 +44,14 @@ class Conjugator {
|
||||
'/em$/' => 'er',
|
||||
'/remos$/' => 'r',
|
||||
'/emos$/' => 'er',
|
||||
'/mos$/' => 'r'
|
||||
'/mos$/' => 'r',
|
||||
'/ei$/' => '',
|
||||
'/.ei$/' => 'ar',
|
||||
'/(.)ei$/' => '$1er',
|
||||
'/ou$/' => 'ar',
|
||||
'/eu$/' => 'er',
|
||||
'/ás$/' => '',
|
||||
'/á$/' => '',
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário