Skip to content

Commit

Permalink
Add tests for isInConstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Loder committed Dec 30, 2023
1 parent 26a3ca8 commit b99c98c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/word.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,14 @@ describe.each`
});
});
});

describe.each`
description | heb | isInConstructArray
${"with maqqef"} | ${"בֶּן־אָדָ֕ם"} | ${[true, false]}
${"now maqqef"} | ${"בֶּן אָדָ֕ם"} | ${[false, false]}
`("isInConstruct:", ({ description, heb, isInConstructArray }) => {
const text = new Text(heb);
test(`${description}`, () => {
expect(text.words.map((word) => word.isInConstruct)).toEqual(isInConstructArray);
});
});

0 comments on commit b99c98c

Please sign in to comment.