1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

添加3个测试用例

This commit is contained in:
程序员小墨 2024-04-03 00:22:11 +08:00
parent 31648a4805
commit af78a1330f

View File

@ -135,7 +135,7 @@ const testGroups: Array<TestCaseGroup> = [
},
// 非英文字符,特殊字符
{
title: 'Chinese input',
title: 'Chinese input 1',
input:
'今天是星期日'
,
@ -148,6 +148,20 @@ const testGroups: Array<TestCaseGroup> = [
pascalCase: '今天是星期日',
},
},
{
title: 'Chinese input 2',
input:
'--担心你dAf_=coffee—爸妈不在家_— '
,
eol: [LF, CRLF],
transformText: [
'担心你|d|af|=|coffee|—爸妈不在家|— ',
],
output: {
camelCase: '担心你dAf=Coffee—爸妈不在家— ',
pascalCase: '担心你DAf=Coffee—爸妈不在家— ',
},
},
{
title: 'Special character with emoji input',
input:
@ -162,6 +176,20 @@ const testGroups: Array<TestCaseGroup> = [
pascalCase: '🥰ACup/OfCoffee🍻,Please!. ',
},
},
{
title: 'Special character with multiple input',
input:
'takeARest😊haPPy,😢triSTE,ENFADADO, 驚きました,❤️, 笑, 😎COol, 😳-Embarrassed'
,
eol: [LF, CRLF],
transformText: [
'take|a|rest|😊|ha|p|py|,😢|tri|ste|,|enfadado|,|驚きました,❤️,|笑,|😎|c|ool|,|😳|embarrassed',
],
output: {
camelCase: 'takeARest😊HaPPy,😢TriSte,Enfadado,驚きました,❤️,笑,😎COol,😳Embarrassed',
pascalCase: 'TakeARest😊HaPPy,😢TriSte,Enfadado,驚きました,❤️,笑,😎COol,😳Embarrassed',
},
},
{
title: 'Random input',
input:
@ -320,6 +348,20 @@ const testGroups: Array<TestCaseGroup> = [
pascalCase: ' ANiceDay',
},
},
{
title: 'Normal input (tom-likes-eat-ice-cream)',
input: [
'TomLikes eat iceCream.',
],
eol: [LF, CRLF],
transformText: [
'tom|likes|eat|ice|cream|.',
],
output: {
camelCase: 'tomLikesEatIceCream.',
pascalCase: 'TomLikesEatIceCream.',
},
},
{
title: 'Normal input (apple-2-Tree)',
input: [