updated 区分伯媳和叔嫂关系的差异

This commit is contained in:
PASSER-BY
2023-02-25 10:52:08 +08:00
parent 074c314604
commit bd71b41d16
4 changed files with 9 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ test('[type:chain]', function (t) {
test('[type:pair]', function (t) {
t.deepEqual(relationship({text:'舅妈',target:'哥哥',type:'pair'}),['舅甥']);
t.deepEqual(relationship({text:'舅妈',target:'外婆',type:'pair'}),['婆媳']);
t.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['叔嫂','夫妻']);
t.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['伯媳','叔嫂','夫妻']);
t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['伯侄', '叔侄', '父子']);
t.end();
});
@@ -62,7 +62,7 @@ test('[age]', function (t) {
t.deepEqual(relationship({text:'姑姑',target:'叔叔',optimal:true}),['姐姐','妹妹']);
t.deepEqual(relationship({text:'大舅',target:'二舅的儿子'}),['伯父']);
t.deepEqual(relationship({text:'二舅妈',target:'二舅',type:'pair'}),['夫妻']);
t.deepEqual(relationship({text:'二舅妈',target:'大舅',type:'pair'}),['叔嫂']);
t.deepEqual(relationship({text:'二舅妈',target:'大舅',type:'pair'}),['伯媳']);
t.end();
});
test('[expression]', function (t) {