updated 排序和无排序优先问题调整及部分别称添加

This commit is contained in:
mumuy
2022-10-08 08:42:27 +08:00
parent 96b1f3d07b
commit e2b9a4e139
5 changed files with 18 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ test('relationship.js show to be tested', function (t) {
t.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['叔嫂','夫妻']);
t.deepEqual(relationship({text:'二舅妈',target:'三舅'}),['二嫂']);
t.deepEqual(relationship({text:'爸爸的二爸'}),['二爷爷']);
t.deepEqual(relationship({text:'大舅',target:'二舅的儿子'}),['伯']);
t.deepEqual(relationship({text:'大舅',target:'二舅的儿子'}),['伯']);
t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['叔侄','父子']);
t.end();
});