Skip to content

Commit

Permalink
Change default max_length parameter of ParenthesizedSentence
Browse files Browse the repository at this point in the history
  • Loading branch information
takahi-i committed Oct 11, 2017
1 parent 92b1c4a commit b5dcf4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ParenthesizedSentenceValidator extends Validator {
public ParenthesizedSentenceValidator() {
super("max_nesting_level", 1, // the limit on how many parenthesized expressions are permitted
"max_count", 1, // the number of parenthesized expressions allowed
"max_length", 3); // the maximum number of words in a parenthesized expression
"max_length", 10); // the maximum number of words in a parenthesized expression
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void testSingleSentence() throws RedPenException {
List<ValidationError> errors = new ArrayList<>();
validator.setErrorList(errors);
validator.validate(st);
assertEquals(3, errors.size(), st.toString());
assertEquals(1, errors.size(), st.toString());

st = documents.get(0).getLastSection().getParagraph(0).getSentence(1);
errors = new ArrayList<>();
Expand Down

0 comments on commit b5dcf4b

Please sign in to comment.