Skip to content

Commit

Permalink
fix: update PortugueseTest
Browse files Browse the repository at this point in the history
- specify onlyRunCode as pt-PT

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Oct 5, 2023
1 parent f83b76b commit 5eb598e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void testLanguage() throws IOException {
"HUNSPELL_RULE", "UNPAIRED_BRACKETS", "DOUBLE_PUNCTUATION", "PHRASE_REPETITION", "GENTILICOS_LINGUAS", "GENTILICOS_LINGUAS", "ARTICLES_PRECEDING_LOCATIONS", //"REPEATED_WORDS",
"PARONYM_ANALISE_363", "DOUBLE_PUNCTUATION", "POSSESSIVE_WITHOUT_ARTICLE", "EQUIPES", "DATE_WEEKDAY")
);
runTests(ptPT, null, "õș");
runTests(ptPT, "pt-PT", "õș");
BrazilianPortuguese ptBR = new BrazilianPortuguese();
String s2 = "Cole aqui seu texto...ou verifique esta texto, afim de revelar alguns dos dos problemas que o LanguageTool consegue detectar. Isto tal vez permita corrigir os seus erro. Nós prometo ajudá-lo. para testar a grafia e as regrs do antigo) Acordo Ortográfico,, verifique o mesmo texto mesmo texto em Português de Angola ou Português do Moçambique e faça a analise dos resultados.. Nossa equipe anuncia a versão 4.5, que será lançada sexta-feira, 26 de março de 2019.";
testDemoText(ptBR, s2,
Expand All @@ -48,8 +48,5 @@ public void testLanguage() throws IOException {
"PARONYM_ANALISE_363", "DOUBLE_PUNCTUATION", "DATE_WEEKDAY")
);
testReplaceRuleReplacements(ptBR);
Language lang = new MozambiquePortuguese();
lang = new Portuguese();
lang = new AngolaPortuguese();
}
}

0 comments on commit 5eb598e

Please sign in to comment.