-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from milosimpson/dupeSpecLinesBug
Bug in duplicate spec line logic.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
jolt-core/src/test/resources/json/shiftr/pollaxman_218_duplicate_speclines_bug.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"input" : { | ||
"clone1_Physician" : "Physician_10000", | ||
"clone2_Physician" : "Physician_10000", | ||
"clone1_GCPerProIdenInfoPhyInfoStreet" : "Street", | ||
"clone1_GCPerProIdenInfoPhyInfoAddLin2" : "Address1", | ||
"clone1_GCPerProIdenInfoPhyInfoAddLin3" : "Address3", | ||
"clone2_GCPerProIdenInfoPhyInfoStreet" : "Address1", | ||
"clone2_GCPerProIdenInfoPhyInfoAddLin2" : "addresdd" | ||
}, | ||
"spec" : { | ||
// match clone1_Physician and clone2_Physician | ||
"clone*_Physician" : { | ||
// match the RHS of Physician_10000 | ||
"Physician_1000*" : { | ||
// if we matched then grab the "number" of the physician and use that to process the address | ||
"@(2,clone&(1,1)_GCPerProIdenInfoPhyInfoStreet)" : "Physician&(2,1).street", | ||
"@(2,clone&(1,1)_GCPerProIdenInfoPhyInfoAddLin2)" : "Physician&(2,1).adderLin2", | ||
"@(2,clone&(1,1)_GCPerProIdenInfoPhyInfoAddLin3)" : "Physician&(2,1).adderLin3" | ||
} | ||
} | ||
}, | ||
"expected" : { | ||
"Physician1" : { | ||
"street" : "Street", | ||
"adderLin2" : "Address1", | ||
"adderLin3" : "Address3" | ||
}, | ||
"Physician2" : { | ||
"street" : "Address1", | ||
"adderLin2" : "addresdd" | ||
} | ||
} | ||
} |