frizbog / gedcom4j

Java library for reading/writing genealogy files in GEDCOM format
http://gedcom4j.org
53 stars 36 forks source link

unit test to ensure CONT lines have no ID #200

Closed cmosher01 closed 1 year ago

cmosher01 commented 4 years ago

Test to show invalid CONT lines. See sample/willis-ascii.ged for examples of the effects of the defect:

$ grep N149 sample/willis-ascii.ged
1 NOTE @N149@
0 @N149@ NOTE 
1 @N149@ CONT 
1 @N149@ CONT 1880 Census Place: Elizabeth, Lawrence, Ohio: Plas WILLIS, Self, M, W, W, 44, Ohio, Occ: Laborer, Fa: VA, Mo: VA, 

Expected:

1 NOTE @N149@
0 @N149@ NOTE 
1 CONT 
1 CONT 1880 Census Place: Elizabeth, Lawrence, Ohio: Plas WILLIS, Self, M, W, W, 44, Ohio, Occ: Laborer, Fa: VA, Mo: VA,