java.lang.AssertionError

English: Did not expect e rror in: The last token gets a postag in parentheses: Tests Matching Rule: POSTAG_REPLACE[1]

Samebug tips1

Check your pattern declaration or check your assert declaration.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3568

  • via GitHub by MikeUnwalla
    ,
  • Stack trace

    • java.lang.AssertionError: English: Did not expect e rror in: The last token gets a postag in parentheses: Tests Matching Rule: POSTAG_REPLACE[1] at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertFalse(Assert.java:64) at org.languagetool.rules.patterns.PatternRuleTest.testCorrectSentences(PatternRuleTest.java:472) at org.languagetool.rules.patterns.PatternRuleTest.testGrammarRulesFromXML(PatternRuleTest.java:272) at org.languagetool.rules.patterns.PatternRuleTest.runTestForLanguage(PatternRuleTest.java:198) at org.languagetool.rules.patterns.PatternRuleTest.runGrammarRulesFromXmlTestIgnoringLanguages(PatternRuleTest.java:149) at org.languagetool.rules.patterns.PatternRuleTest.main(PatternRuleTest.java:558)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown UserUnknown User
    14 times, last one
    osvzsosvzs
    Once,
    marcbouvierdavmarcbouvierdav
    Once,
    richard77richard77
    Once,
    andyglickandyglick
    Once,
    98 more bugmates