mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-05 20:18:19 -04:00
(test)(pronouns) ensure that pronouns.null.morphemes contains known morphemes
This commit is contained in:
parent
755b9d16cd
commit
75c7b8889a
@ -23,11 +23,7 @@ pronouns:
|
|||||||
description: '대명사 없음 / 무효 대명사 / 자기 이름'
|
description: '대명사 없음 / 무효 대명사 / 자기 이름'
|
||||||
history: '어떤 사람들은 대명사를 사용하지 않고 대신 이름, 이니셜 또는 수동태로 대명사를 생략하는 것을 선호합니다({https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=널 의례적인}.'
|
history: '어떤 사람들은 대명사를 사용하지 않고 대신 이름, 이니셜 또는 수동태로 대명사를 생략하는 것을 선호합니다({https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=널 의례적인}.'
|
||||||
morphemes:
|
morphemes:
|
||||||
pronoun_subject: '#'
|
pronoun: '#'
|
||||||
pronoun_object: '#'
|
|
||||||
possessive_determiner: '#것'
|
|
||||||
possessive_pronoun: '#꺼'
|
|
||||||
reflexive: '#자기'
|
|
||||||
examples: [':안드레아', ':S']
|
examples: [':안드레아', ':S']
|
||||||
emoji:
|
emoji:
|
||||||
description: '이모티콘 자체 대명사'
|
description: '이모티콘 자체 대명사'
|
||||||
|
@ -24,7 +24,6 @@ pronouns:
|
|||||||
accusative: '#'
|
accusative: '#'
|
||||||
pronominal_poss: '#'
|
pronominal_poss: '#'
|
||||||
predicative_poss: '#e'
|
predicative_poss: '#e'
|
||||||
reflexive: '#zelf'
|
|
||||||
examples: [':Andrea', ':S']
|
examples: [':Andrea', ':S']
|
||||||
emoji:
|
emoji:
|
||||||
description: 'Emojizelf voornaamwoorden'
|
description: 'Emojizelf voornaamwoorden'
|
||||||
@ -34,7 +33,6 @@ pronouns:
|
|||||||
accusative: '#'
|
accusative: '#'
|
||||||
pronominal_poss: '#'
|
pronominal_poss: '#'
|
||||||
predicative_poss: '#e'
|
predicative_poss: '#e'
|
||||||
reflexive: '#zelf'
|
|
||||||
examples: ['💫', '💙']
|
examples: ['💫', '💙']
|
||||||
others: 'Andere voornaamwoorden'
|
others: 'Andere voornaamwoorden'
|
||||||
threeForms: true
|
threeForms: true
|
||||||
|
@ -20,12 +20,6 @@ pronouns:
|
|||||||
null:
|
null:
|
||||||
description: 'No pronouns / null pronouns / pronounless / nameself'
|
description: 'No pronouns / null pronouns / pronounless / nameself'
|
||||||
history: 'Some people prefer not using any pronouns, instead being referred by name, initial, or by omitting pronouns with passive voice, see: {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=nullpronominal}.'
|
history: 'Some people prefer not using any pronouns, instead being referred by name, initial, or by omitting pronouns with passive voice, see: {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=nullpronominal}.'
|
||||||
morphemes:
|
|
||||||
pronoun_subject: '#'
|
|
||||||
pronoun_object: '#'
|
|
||||||
possessive_determiner: '#''s'
|
|
||||||
possessive_pronoun: '#''s'
|
|
||||||
reflexive: '#self'
|
|
||||||
examples: [':Andrea', ':S']
|
examples: [':Andrea', ':S']
|
||||||
emoji: false
|
emoji: false
|
||||||
others: 'Other pronouns'
|
others: 'Other pronouns'
|
||||||
|
17
test/locales/config.test.ts
Normal file
17
test/locales/config.test.ts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { describe, expect, test } from 'vitest';
|
||||||
|
import type { Config } from '~/locale/config.ts';
|
||||||
|
import allLocales from '~/locale/locales.ts';
|
||||||
|
import { loadSumlFromBase } from '~/server/loader.ts';
|
||||||
|
|
||||||
|
describe.each(allLocales)('config for $code', async ({ code }) => {
|
||||||
|
const config = loadSumlFromBase(`locale/${code}/config`) as Config;
|
||||||
|
|
||||||
|
const { default: morphemes } = await import(`../../locale/${code}/pronouns/morphemes.ts`);
|
||||||
|
|
||||||
|
test('pronouns.null.morphemes contain valid morphemes', () => {
|
||||||
|
if (!config.pronouns.null || config.pronouns.null.morphemes === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
expect(morphemes).toEqual(expect.arrayContaining(Object.keys(config.pronouns.null.morphemes)));
|
||||||
|
});
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user