updated 重写选择器合并方法,支持任意复合计算

This commit is contained in:
PASSER-BY
2021-11-25 22:42:24 +08:00
parent 09dd56ca46
commit 128eb45f46
3 changed files with 44 additions and 20 deletions

View File

@@ -21,6 +21,6 @@ test('relationship.js show to be tested', function (t) {
t.deepEqual(relationship({text:'岳母',target:'女儿',reverse:true}),['外孙女']);
t.deepEqual(relationship({text:'姑妈',target:'舅妈',reverse:true}),['兄弟眷兄妇','兄弟眷弟妇']);
t.deepEqual(relationship({text:'舅妈',target:'女儿',reverse:true}),['姑甥孙女','姑甥外孙女']);
t.deepEqual(relationship({text:'老公的父母',target:'孩子'}),['爷爷','奶奶']);
t.end();
});