Skip to content

Commit

Permalink
🚨 test(scriptor): add tests for the comparative, superlative, and adv…
Browse files Browse the repository at this point in the history
…erb forms of adjectives
  • Loading branch information
hugo-t-b committed Jun 26, 2024
1 parent 901f662 commit 5a7856b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions scriptor/tests/adjectives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import scriptor from "..";

const aeger = "aeger, aegra, aegrum";
const celer = "celer, celeris, celere";
const felix = "felix, felicis";
const fortis = "fortis, forte";
const ingens = "ingens, ingentis";
const laetus = "laetus, laeta, laetum";
const liber = "liber, libera, liberum";
const omnis = "omnis, omne";
const sapiens = "sapiens, sapientis";
const scribens = "scribens, scribentis";
const scriptus = "scriptus, scripta, scriptum";

Expand Down Expand Up @@ -427,3 +432,38 @@ describe("Neuter plural", () => {
expect(scriptor(scriptus, ...form)).toBe("scriptis");
});
});

test.todo("Comparative", () => {
const form = "comparative";

expect(scriptor(aeger, form)).toBe("aegrior, aegrius");
expect(scriptor(celer, form)).toBe("celerior, celerius");
expect(scriptor(fortis, form)).toBe("fortior, fortius");
expect(scriptor(ingens, form)).toBe("ingentior, ingentius");
expect(scriptor(laetus, form)).toBe("laetior, laetius");
expect(scriptor(liber, form)).toBe("liberior, liberius");
});

test.todo("Superlative", () => {
const form = "superlative";

expect(scriptor(aeger, form)).toBe("aegerrimus, aegerrima, aegerrimum");
expect(scriptor(celer, form)).toBe("celerrimus, celerrima, celerrimum");
expect(scriptor(fortis, form)).toBe("fortissimus, fortissima, fortissimum");
expect(scriptor(ingens, form)).toBe("ingentissimus, ingentissima, ingentissimum");
expect(scriptor(laetus, form)).toBe("laetissimus, laetissima, laetissimum");
expect(scriptor(liber, form)).toBe("liberrimus, liberrima, liberrimum");
});


test.todo("Adverb", () => {
const form = "adverb";

expect(scriptor(aeger, form)).toBe("aegre");
expect(scriptor(celer, form)).toBe("celeriter");
expect(scriptor(felix, form)).toBe("feliciter");
expect(scriptor(fortis, form)).toBe("fortiter");
expect(scriptor(laetus, form)).toBe("laete");
expect(scriptor(liber, form)).toBe("libere");
expect(scriptor(sapiens, form)).toBe("sapienter");
});

0 comments on commit 5a7856b

Please sign in to comment.