修复正则匹配bug

This commit is contained in:
PASSER-BY
2021-11-11 00:26:23 +08:00
parent cd06399c7a
commit c8269b5770
4 changed files with 11 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ test('relationship.js show to be tested', function (t) {
t.deepEqual(relationship({text:'哥哥的弟弟的爸爸的儿子',sex:1}),['兄弟','自己']);
t.deepEqual(relationship({text:'爸爸的舅舅',sex:0,reverse:true}),['甥孙女']);
t.deepEqual(relationship({text:'舅爷爷',type:'chain'}),['爸爸的妈妈的兄弟']);
t.deepEqual(relationship({text:'堂兄弟的孩子',sex:1}),['堂侄','堂侄女']);
t.end();
});