From: Peter Verthez Date: Sun, 26 Jan 2003 08:52:58 +0000 (+0000) Subject: Put invalid date in phrase member. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=f2e03cf5a721a279ee74cf8300d99c5f05ab356b;p=gedcom-parse.git Put invalid date in phrase member. --- diff --git a/t/input/dates.ged b/t/input/dates.ged index edbdf70..3d3887d 100644 --- a/t/input/dates.ged +++ b/t/input/dates.ged @@ -51,4 +51,8 @@ 1 NAME /Annunciation style/ 1 BIRT 2 DATE 20 MAR 1677/78 +0 @PERS11@ INDI +1 NAME /Invalid date/ +1 BIRT +2 DATE 29 FEB 1739 0 TRLR diff --git a/t/output/dates.ref b/t/output/dates.ref index a7f6d1d..cbbfde0 100644 --- a/t/output/dates.ref +++ b/t/output/dates.ref @@ -267,10 +267,36 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: +Rec INDI start, xref is @PERS11@ +== 1 NAME (342) /Invalid date/ (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +WARNING: Warning on line 57: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 57: Putting date in 'phrase' member +Contents of the date_value: + raw value: 29 FEB 1739 + type: 11 + date1: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: 29 FEB 1739 WARNING: Warning: Cross-reference @PERS07@ defined on line 38 is never used WARNING: Warning: Cross-reference @PERS02@ defined on line 18 is never used WARNING: Warning: Cross-reference @PERS00@ defined on line 10 is never used WARNING: Warning: Cross-reference @PERS10@ defined on line 50 is never used +WARNING: Warning: Cross-reference @PERS11@ defined on line 54 is never used WARNING: Warning: Cross-reference @PERS01@ defined on line 14 is never used WARNING: Warning: Cross-reference @PERS04@ defined on line 26 is never used WARNING: Warning: Cross-reference @PERS09@ defined on line 46 is never used @@ -549,10 +575,36 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: +Rec INDI start, xref is @PERS11@ +== 1 NAME (342) /Invalid date/ (ctxt is 333, conversion failures: 0) +== 1 BIRT (283) (null) (ctxt is 333, conversion failures: 0) +WARNING: Warning on line 57: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 57: Putting date in 'phrase' member +Contents of the date_value: + raw value: 29 FEB 1739 + type: 11 + date1: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + date2: + calendar type: 4 + day: + month: + year: + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: 29 FEB 1739 WARNING: Warning: Cross-reference @PERS07@ defined on line 38 is never used WARNING: Warning: Cross-reference @PERS02@ defined on line 18 is never used WARNING: Warning: Cross-reference @PERS00@ defined on line 10 is never used WARNING: Warning: Cross-reference @PERS10@ defined on line 50 is never used +WARNING: Warning: Cross-reference @PERS11@ defined on line 54 is never used WARNING: Warning: Cross-reference @PERS01@ defined on line 14 is never used WARNING: Warning: Cross-reference @PERS04@ defined on line 26 is never used WARNING: Warning: Cross-reference @PERS09@ defined on line 46 is never used diff --git a/t/output/dates_gom.ref b/t/output/dates_gom.ref index 73cbbf8..fb8a002 100644 --- a/t/output/dates_gom.ref +++ b/t/output/dates_gom.ref @@ -3,10 +3,13 @@ Warning on line 37: Unknown calendar type Warning on line 37: parse error Warning on line 37: Putting date in 'phrase' member +Warning on line 57: Error converting date: year 1739, month 2, day 29 +Warning on line 57: Putting date in 'phrase' member Warning: Cross-reference @PERS07@ defined on line 38 is never used Warning: Cross-reference @PERS02@ defined on line 18 is never used Warning: Cross-reference @PERS00@ defined on line 10 is never used Warning: Cross-reference @PERS10@ defined on line 50 is never used +Warning: Cross-reference @PERS11@ defined on line 54 is never used Warning: Cross-reference @PERS01@ defined on line 14 is never used Warning: Cross-reference @PERS04@ defined on line 26 is never used Warning: Cross-reference @PERS09@ defined on line 46 is never used @@ -867,6 +870,80 @@ user refs: 0x Record ID: '(null)' change date: 0x User data: 0x +=== INDIVIDUAL (@PERS11@) === +Restriction notice: '(null)' +names: + Name: + Name: '/Invalid date/' + Prefix: '(null)' + Given: '(null)' + Nickname: '(null)' + Surname prefix: '(null)' + Surname: '(null)' + Suffix: '(null)' + citations: 0x + notes: 0x + User data: 0x +Sex: '(null)' +Individual events: + Event: 283 (BIRT) + Value: '(null)' + Type: '(null)' + Date: + type: 11 + date1: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '29 FEB 1739' + Place: 0x + Address: 0x + Phone 1: '(null)' + Phone 2: '(null)' + Phone 3: '(null)' + Age: 0x + Agency: '(null)' + Cause: '(null)' + citations: 0x + multimedia links: 0x + notes: 0x + Age of husband: 0x + Age of wife: 0x + Family: 0x + Adoption parent: '(null)' + User data: 0x +Individual attributes: 0x +LDS individual ordinance: 0x +Child to family links: 0x +Spouse to family links: 0x +Submitters: 0x +Associations: 0x +Aliases: 0x +Ancestor interest: 0x +Descendant interest: 0x +citations: 0x +multimedia links: 0x +notes: 0x +Record file nr: '(null)' +Ancestral file nr: '(null)' +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x === SUBMITTER (@SUBMITTER@) === Name: 'Peter /Verthez/' Address: 0x diff --git a/t/output/update_gom.ref b/t/output/update_gom.ref index 46075ac..9f486e5 100644 --- a/t/output/update_gom.ref +++ b/t/output/update_gom.ref @@ -116,7 +116,7 @@ Same date in Hebrew calendar: sdn2: -1 phrase: '' String: '@#DHEBREW@ 19 ELL 5892' -ERROR: Error: SDN 1 isn't a valid date in the given calendar +WARNING: Warning: SDN 1 isn't a valid date in the given calendar Same date in French revolution calendar: type: 0 diff --git a/t/output/write_gom_dates.ged b/t/output/write_gom_dates.ged index 46a9360..49dd53a 100644 --- a/t/output/write_gom_dates.ged +++ b/t/output/write_gom_dates.ged @@ -56,4 +56,8 @@ 1 NAME /Annunciation style/ 1 BIRT 2 DATE 20 MAR 1677/78 +0 @PERS11@ INDI +1 NAME /Invalid date/ +1 BIRT +2 DATE (29 FEB 1739) 0 TRLR diff --git a/t/output/write_gom_dates.ref b/t/output/write_gom_dates.ref index c6af0d1..4aca811 100644 --- a/t/output/write_gom_dates.ref +++ b/t/output/write_gom_dates.ref @@ -1,10 +1,13 @@ WARNING: Warning on line 37: Unknown calendar type WARNING: Warning on line 37: parse error WARNING: Warning on line 37: Putting date in 'phrase' member +WARNING: Warning on line 57: Error converting date: year 1739, month 2, day 29 +WARNING: Warning on line 57: Putting date in 'phrase' member WARNING: Warning: Cross-reference @PERS07@ defined on line 38 is never used WARNING: Warning: Cross-reference @PERS02@ defined on line 18 is never used WARNING: Warning: Cross-reference @PERS00@ defined on line 10 is never used WARNING: Warning: Cross-reference @PERS10@ defined on line 50 is never used +WARNING: Warning: Cross-reference @PERS11@ defined on line 54 is never used WARNING: Warning: Cross-reference @PERS01@ defined on line 14 is never used WARNING: Warning: Cross-reference @PERS04@ defined on line 26 is never used WARNING: Warning: Cross-reference @PERS09@ defined on line 46 is never used @@ -18,6 +21,7 @@ WARNING: Warning: Cross-reference @PERS07@ defined on line 43 is never used WARNING: Warning: Cross-reference @PERS02@ defined on line 23 is never used WARNING: Warning: Cross-reference @PERS00@ defined on line 15 is never used WARNING: Warning: Cross-reference @PERS10@ defined on line 55 is never used +WARNING: Warning: Cross-reference @PERS11@ defined on line 59 is never used WARNING: Warning: Cross-reference @PERS01@ defined on line 19 is never used WARNING: Warning: Cross-reference @PERS04@ defined on line 31 is never used WARNING: Warning: Cross-reference @PERS09@ defined on line 51 is never used