Skip to content

Commit

Permalink
#405 Fix fix spark-cobol unit tests related to the change in layout g…
Browse files Browse the repository at this point in the history
…eneration
  • Loading branch information
yruslan committed Aug 2, 2021
1 parent 9fef3c5 commit 41bd83e
Show file tree
Hide file tree
Showing 15 changed files with 1,172 additions and 1,173 deletions.
26 changes: 13 additions & 13 deletions data/test11_expected/test11_layout.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

COMPANY_DETAILS 1 64 64
5 SEGMENT_ID 1 1 5 5
5 COMPANY_ID 2 6 15 10
5 STATIC_DETAILS r 9 16 64 49
10 COMPANY_NAME 4 16 30 15
10 ADDRESS 5 31 55 25
10 TAXPAYER 9 56 64 9
15 TAXPAYER_TYPE 7 56 56 1
15 TAXPAYER_STR r 8 57 64 8
15 TAXPAYER_NUM R 9 57 64 8
5 CONTACTS R 12 16 64 49
10 PHONE_NUMBER 11 16 32 17
10 CONTACT_PERSON 12 33 60 28
1 COMPANY_DETAILS 13 1 64 64
5 SEGMENT_ID 2 1 5 5
5 COMPANY_ID 3 6 15 10
5 STATIC_DETAILS r 10 16 64 49
10 COMPANY_NAME 5 16 30 15
10 ADDRESS 6 31 55 25
10 TAXPAYER 10 56 64 9
15 TAXPAYER_TYPE 8 56 56 1
15 TAXPAYER_STR r 9 57 64 8
15 TAXPAYER_NUM R 10 57 64 8
5 CONTACTS R 13 16 64 49
10 PHONE_NUMBER 12 16 32 17
10 CONTACT_PERSON 13 33 60 28
14 changes: 7 additions & 7 deletions data/test13_expected/test13a_layout.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

TRANSDATA 1 45 45
5 CURRENCY 1 1 3 3
5 SIGNATURE 2 4 11 8
5 COMPANY_NAME 3 12 26 15
5 COMPANY_ID 4 27 36 10
5 WEALTH_QFY 5 37 37 1
5 AMOUNT 6 38 45 8
1 TRANSDATA 7 1 45 45
5 CURRENCY 2 1 3 3
5 SIGNATURE 3 4 11 8
5 COMPANY_NAME 4 12 26 15
5 COMPANY_ID 5 27 36 10
5 WEALTH_QFY 6 37 37 1
5 AMOUNT 7 38 45 8
26 changes: 13 additions & 13 deletions data/test13_expected/test13b_layout.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

COMPANY_DETAILS 1 64 64
5 SEGMENT_ID 1 1 5 5
5 COMPANY_ID 2 6 15 10
5 STATIC_DETAILS r 9 16 64 49
10 COMPANY_NAME 4 16 30 15
10 ADDRESS 5 31 55 25
10 TAXPAYER 9 56 64 9
15 TAXPAYER_TYPE 7 56 56 1
15 TAXPAYER_STR r 8 57 64 8
15 TAXPAYER_NUM R 9 57 64 8
5 CONTACTS R 12 16 64 49
10 PHONE_NUMBER 11 16 32 17
10 CONTACT_PERSON 12 33 60 28
1 COMPANY_DETAILS 13 1 64 64
5 SEGMENT_ID 2 1 5 5
5 COMPANY_ID 3 6 15 10
5 STATIC_DETAILS r 10 16 64 49
10 COMPANY_NAME 5 16 30 15
10 ADDRESS 6 31 55 25
10 TAXPAYER 10 56 64 9
15 TAXPAYER_TYPE 8 56 56 1
15 TAXPAYER_STR r 9 57 64 8
15 TAXPAYER_NUM R 10 57 64 8
5 CONTACTS R 13 16 64 49
10 PHONE_NUMBER 12 16 32 17
10 CONTACT_PERSON 13 33 60 28
28 changes: 14 additions & 14 deletions data/test16_expected/test16_layout.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

ENTITY 1 64 64
5 SEGMENT_ID 1 1 1 1
5 COMPANY r 5 2 64 63
10 COMPANY_NAME 3 2 21 20
10 ADDRESS 4 22 51 30
10 TAXPAYER 5 52 59 8
5 PERSON rR 10 2 64 63
10 FIRST_NAME 7 2 17 16
10 LAST_NAME 8 18 33 16
10 ADDRESS 9 34 53 20
10 PHONE_NUM 10 54 64 11
5 PO_BOX R 13 2 64 63
10 PO_NUMBER 12 2 13 12
10 BRANCH_ADDRESS 13 14 33 20
1 ENTITY 14 1 64 64
5 SEGMENT_ID 2 1 1 1
5 COMPANY r 6 2 64 63
10 COMPANY_NAME 4 2 21 20
10 ADDRESS 5 22 51 30
10 TAXPAYER 6 52 59 8
5 PERSON rR 11 2 64 63
10 FIRST_NAME 8 2 17 16
10 LAST_NAME 9 18 33 16
10 ADDRESS 10 34 53 20
10 PHONE_NUM 11 54 64 11
5 PO_BOX R 14 2 64 63
10 PO_NUMBER 13 2 13 12
10 BRANCH_ADDRESS 14 14 33 20
64 changes: 32 additions & 32 deletions data/test17_expected/test17a_layout.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

ENTITY 1 108 108
5 SEGMENT_ID 1 1 1 1
5 COMPANY r 5 2 108 107
10 COMPANY_NAME 3 2 21 20
10 ADDRESS 4 22 51 30
10 TAXPAYER 5 52 55 4
5 DEPT rR 8 2 108 107
10 DEPT_NAME 7 2 23 22
10 EXTENSION 8 24 29 6
5 EMPLOYEE rR 14 2 108 107
10 FIRST_NAME 10 2 17 16
10 LAST_NAME 11 18 33 16
10 ROLE 12 34 51 18
10 HOME_ADDRESS 13 52 91 40
10 PHONE_NUM 14 92 108 17
5 OFFICE rR 18 2 108 107
10 ADDRESS 16 2 31 30
10 FLOOR 17 32 34 3
10 ROOM_NUMBER 18 35 38 4
5 CUSTOMER rR 22 2 108 107
10 CUSTOMER_NAME 20 2 21 20
10 POSTAL_ADDRESS 21 22 51 30
10 ZIP 22 52 61 10
5 CONTACT rR 26 2 108 107
10 FIRST_NAME 24 2 17 16
10 LAST_NAME 25 18 33 16
10 PHONE_NUM 26 34 50 17
5 CONTRACT R 31 2 108 107
10 CONTRACT_NUMBER 28 2 16 15
10 STATE 29 17 24 8
10 DUE_DATE 30 25 34 10
10 AMOUNT 31 35 41 7
1 ENTITY 32 1 108 108
5 SEGMENT_ID 2 1 1 1
5 COMPANY r 6 2 108 107
10 COMPANY_NAME 4 2 21 20
10 ADDRESS 5 22 51 30
10 TAXPAYER 6 52 55 4
5 DEPT rR 9 2 108 107
10 DEPT_NAME 8 2 23 22
10 EXTENSION 9 24 29 6
5 EMPLOYEE rR 15 2 108 107
10 FIRST_NAME 11 2 17 16
10 LAST_NAME 12 18 33 16
10 ROLE 13 34 51 18
10 HOME_ADDRESS 14 52 91 40
10 PHONE_NUM 15 92 108 17
5 OFFICE rR 19 2 108 107
10 ADDRESS 17 2 31 30
10 FLOOR 18 32 34 3
10 ROOM_NUMBER 19 35 38 4
5 CUSTOMER rR 23 2 108 107
10 CUSTOMER_NAME 21 2 21 20
10 POSTAL_ADDRESS 22 22 51 30
10 ZIP 23 52 61 10
5 CONTACT rR 27 2 108 107
10 FIRST_NAME 25 2 17 16
10 LAST_NAME 26 18 33 16
10 PHONE_NUM 27 34 50 17
5 CONTRACT R 32 2 108 107
10 CONTRACT_NUMBER 29 2 16 15
10 STATE 30 17 24 8
10 DUE_DATE 31 25 34 10
10 AMOUNT 32 35 41 7
64 changes: 32 additions & 32 deletions data/test18 special_char_expected/test18a_layout.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
-------- FIELD LEVEL/NAME --------- --ATTRIBS-- FLD START END LENGTH

ENTITY 1 108 108
5 SEGMENT_ID 1 1 1 1
5 COMPANY r 5 2 108 107
10 COMPANY_NAME 3 2 21 20
10 ADDRESS 4 22 51 30
10 TAXPAYER 5 52 55 4
5 DEPT rR 8 2 108 107
10 DEPT_NAME 7 2 23 22
10 EXTENSION 8 24 29 6
5 EMPLOYEE rR 14 2 108 107
10 FIRST_NAME 10 2 17 16
10 LAST_NAME 11 18 33 16
10 ROLE 12 34 51 18
10 HOME_ADDRESS 13 52 91 40
10 PHONE_NUM 14 92 108 17
5 OFFICE rR 18 2 108 107
10 ADDRESS 16 2 31 30
10 FLOOR 17 32 34 3
10 ROOM_NUMBER 18 35 38 4
5 CUSTOMER rR 22 2 108 107
10 CUSTOMER_NAME 20 2 21 20
10 POSTAL_ADDRESS 21 22 51 30
10 ZIP 22 52 61 10
5 CONTACT rR 26 2 108 107
10 FIRST_NAME 24 2 17 16
10 LAST_NAME 25 18 33 16
10 PHONE_NUM 26 34 50 17
5 CONTRACT R 31 2 108 107
10 CONTRACT_NUMBER 28 2 16 15
10 STATE 29 17 24 8
10 DUE_DATE 30 25 34 10
10 AMOUNT 31 35 41 7
1 ENTITY 32 1 108 108
5 SEGMENT_ID 2 1 1 1
5 COMPANY r 6 2 108 107
10 COMPANY_NAME 4 2 21 20
10 ADDRESS 5 22 51 30
10 TAXPAYER 6 52 55 4
5 DEPT rR 9 2 108 107
10 DEPT_NAME 8 2 23 22
10 EXTENSION 9 24 29 6
5 EMPLOYEE rR 15 2 108 107
10 FIRST_NAME 11 2 17 16
10 LAST_NAME 12 18 33 16
10 ROLE 13 34 51 18
10 HOME_ADDRESS 14 52 91 40
10 PHONE_NUM 15 92 108 17
5 OFFICE rR 19 2 108 107
10 ADDRESS 17 2 31 30
10 FLOOR 18 32 34 3
10 ROOM_NUMBER 19 35 38 4
5 CUSTOMER rR 23 2 108 107
10 CUSTOMER_NAME 21 2 21 20
10 POSTAL_ADDRESS 22 22 51 30
10 ZIP 23 52 61 10
5 CONTACT rR 27 2 108 107
10 FIRST_NAME 25 2 17 16
10 LAST_NAME 26 18 33 16
10 PHONE_NUM 27 34 50 17
5 CONTRACT R 32 2 108 107
10 CONTRACT_NUMBER 29 2 16 15
10 STATE 30 17 24 8
10 DUE_DATE 31 25 34 10
10 AMOUNT 32 35 41 7
Loading

0 comments on commit 41bd83e

Please sign in to comment.