(test)(pronouns) ensure that pronouns.emoji.morphemes contains known morphemes

This commit is contained in:
Valentyne Stigloher 2024-10-07 14:58:10 +02:00
parent 75c7b8889a
commit 94f4c0435a
5 changed files with 9 additions and 13 deletions

View File

@ -79,12 +79,7 @@ pronouns:
emoji:
description: 'Pronomi con le emoji'
history: '{https://lgbta.wikia.org/wiki/Emojiself_Pronouns=Emojiself} pronouns are intended for online communication and not supposed to be pronounced.'
morphemes:
pronoun_subject: '#'
pronoun_object: '#'
possessive_determiner: 'di''#'
possessive_pronoun: 'di''#'
reflexive: '#stesso'
morphemes: {}
examples: ['💫', '💙']
mirror:
route: 'specchio'

View File

@ -29,11 +29,7 @@ pronouns:
description: '이모티콘 자체 대명사'
history: '{https://lgbta.wikia.org/wiki/Emojiself_Pronouns=이모티콘 자체 대명사}는 온라인 커뮤니케이션을 위한 것이며 발음해서는 안 됩니다.'
morphemes:
pronoun_subject: '#'
pronoun_object: '#'
possessive_determiner: '#것'
possessive_pronoun: '#꺼'
reflexive: '#자기'
pronoun: '#'
examples: ['💫', '💙']
others: '기타 대명사'

View File

@ -36,7 +36,6 @@ pronouns:
pronoun_l: '#'
pronoun_all: ''
adjective_n: '#'
adjective_n_alt: '#'
adjective_ll: ''
adjective_middle: ''
verb_end_inter: '#'

View File

@ -75,7 +75,7 @@ pronouns:
morphemes:
pronoun_n: '#'
pronoun_dg: 'lui #'
strenghtening: 'însuși'
strengthening: 'însuși'
first_article: 'L-am'
second_article: ''
examples: ['💫', '💙']

View File

@ -14,4 +14,10 @@ describe.each(allLocales)('config for $code', async ({ code }) => {
}
expect(morphemes).toEqual(expect.arrayContaining(Object.keys(config.pronouns.null.morphemes)));
});
test('pronouns.null.emoji contain valid morphemes', () => {
if (!config.pronouns.emoji) {
return;
}
expect(morphemes).toEqual(expect.arrayContaining(Object.keys(config.pronouns.emoji.morphemes)));
});
});