@@ -47,7 +47,13 @@ describe(`Deterministic system name`, () => {
4747 test ( 'Basic name with underscore' , ( ) => {
4848 expect ( getSystemNameFromPath ( `ab_cd` ) ) . toBe ( `AB_CD` ) ;
4949 } )
50- test ( 'Long form name' , ( ) => {
50+ test ( 'Long form lowercase' , ( ) => {
51+ expect ( getSystemNameFromPath ( `thisisasuperlongname` ) ) . toBe ( `THISISASUP` ) ;
52+ } )
53+ test ( 'Long form uppercase' , ( ) => {
54+ expect ( getSystemNameFromPath ( `THISISASUPERLONGNAME` ) ) . toBe ( `THISISASUP` ) ;
55+ } )
56+ test ( 'Long form camel case' , ( ) => {
5157 expect ( getSystemNameFromPath ( `thisIsASuperLongName` ) ) . toBe ( `TIASLN` ) ;
5258 } )
5359 test ( 'With capitals' , ( ) => {
@@ -56,6 +62,9 @@ describe(`Deterministic system name`, () => {
5662 test ( 'With underscore' , ( ) => {
5763 expect ( getSystemNameFromPath ( `ua_fetchUserData` ) ) . toBe ( `UAFUD` ) ;
5864 } )
65+ test ( 'With long underscore' , ( ) => {
66+ expect ( getSystemNameFromPath ( `abcdefhijkl_fetchUserData` ) ) . toBe ( `ABCDEFHIJK` ) ;
67+ } )
5968 test ( 'Bob prefix name A' , ( ) => {
6069 expect ( getSystemNameFromPath ( `ART200-Work_with_article` ) ) . toBe ( `ART200` ) ;
6170 } )
@@ -64,6 +73,39 @@ describe(`Deterministic system name`, () => {
6473 } )
6574} ) ;
6675
76+ describe ( `Deterministic test system name` , ( ) => {
77+ test ( 'Basic name' , ( ) => {
78+ expect ( getSystemNameFromPath ( `abcd.test` ) ) . toBe ( `TABCD` ) ;
79+ } )
80+ test ( 'Basic name with underscore' , ( ) => {
81+ expect ( getSystemNameFromPath ( `ab_cd.test` ) ) . toBe ( `TAB_CD` ) ;
82+ } )
83+ test ( 'Long form lowercase' , ( ) => {
84+ expect ( getSystemNameFromPath ( `thisisasuperlongname.test` ) ) . toBe ( `TTHISISASU` ) ;
85+ } )
86+ test ( 'Long form uppercase' , ( ) => {
87+ expect ( getSystemNameFromPath ( `THISISASUPERLONGNAME.test` ) ) . toBe ( `TTHISISASU` ) ;
88+ } )
89+ test ( 'Long form camel case' , ( ) => {
90+ expect ( getSystemNameFromPath ( `thisIsASuperLongName.test` ) ) . toBe ( `TTIASLN` ) ;
91+ } )
92+ test ( 'With capitals' , ( ) => {
93+ expect ( getSystemNameFromPath ( `FetchUserData.test` ) ) . toBe ( `TFUD` ) ;
94+ } )
95+ test ( 'With underscore' , ( ) => {
96+ expect ( getSystemNameFromPath ( `ua_fetchUserData.test` ) ) . toBe ( `TUAFUD` ) ;
97+ } )
98+ test ( 'With long underscore' , ( ) => {
99+ expect ( getSystemNameFromPath ( `abcdefhijkl_fetchUserData.test` ) ) . toBe ( `TABCDEFHIJ` ) ;
100+ } )
101+ test ( 'Bob prefix name A' , ( ) => {
102+ expect ( getSystemNameFromPath ( `ART200-Work_with_article.test` ) ) . toBe ( `TART200` ) ;
103+ } )
104+ test ( 'Bob prefix name B' , ( ) => {
105+ expect ( getSystemNameFromPath ( `ART200D-Work_with_Article.test` ) ) . toBe ( `TART200D` ) ;
106+ } )
107+ } ) ;
108+
67109describe ( `CL parser` , ( ) => {
68110 test ( 'Basic command' , ( ) => {
69111 const cl = `CRTCLPGM PGM(MYLIB/MYCL) SRCFILE(MYLIB/QCLSRC) SRCMBR(MYCL)` ;
0 commit comments