updated 区分伯侄和叔侄关系
This commit is contained in:
parent
84ad926d9a
commit
fbbd224d4f
2
dist/relationship.min.js
vendored
2
dist/relationship.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/relationship.zh-HK.min.js
vendored
2
dist/relationship.zh-HK.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,8 +16,10 @@ export default {
|
|||||||
'h,f#s,w':['翁媳'],
|
'h,f#s,w':['翁媳'],
|
||||||
'h,m#s,w':['婆媳'],
|
'h,m#s,w':['婆媳'],
|
||||||
'[f|m],[f|m]#[s|d],[s|d]':['祖孙'],
|
'[f|m],[f|m]#[s|d],[s|d]':['祖孙'],
|
||||||
'f,xb#xb,[s|d]':['叔侄'],
|
'f,ob#lb,[s|d]':['伯侄'],
|
||||||
'f,xb,w#h,xb,[s|d]':['婶侄'],
|
'f,ob,w#h,lb,[s|d]':['伯侄'],
|
||||||
|
'f,lb#ob,[s|d]':['叔侄'],
|
||||||
|
'f,lb,w#h,ob,[s|d]':['婶侄'],
|
||||||
'f,xs#xb,[s|d]':['姑侄'],
|
'f,xs#xb,[s|d]':['姑侄'],
|
||||||
'f,xs,h#w,xb,[s|d]':['姑侄'],
|
'f,xs,h#w,xb,[s|d]':['姑侄'],
|
||||||
'm,xb#xs,[s|d]':['舅甥'],
|
'm,xb#xs,[s|d]':['舅甥'],
|
||||||
|
@ -51,7 +51,7 @@ 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.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['叔嫂','夫妻']);
|
||||||
t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['叔侄','父子']);
|
t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['伯侄', '叔侄', '父子']);
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
test('[age]', function (t) {
|
test('[age]', function (t) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user