Skip to content

Commit

Permalink
test(rules/abbreviations): sticking with parens
Browse files Browse the repository at this point in the history
  • Loading branch information
moki committed Dec 26, 2023
1 parent 40c23aa commit b2c7ae0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/rules/abbreviations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ describe('pairAbbreviation', () => {
const actual = go(input);
expect(actual).toBe(expected);
});

it('handles sticking with parens', () => {
const input = ['(т.', 'е. кто-то другой)'];
const actual = pairAbbreviation(input);
expect(actual).toStrictEqual(true);
});
});

describe('leftPairsTailAbbreviation', () => {
Expand All @@ -133,6 +139,7 @@ describe('leftPairsTailAbbreviation', () => {
const actual = go(input);
expect(actual).toBe(expected);
});

it('evaluates to false otherwise', () => {
const go = compose(reduce(or, false), map(leftPairsTailAbbreviation));
const input = [
Expand Down

0 comments on commit b2c7ae0

Please sign in to comment.