X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Foutput%2Fupdate_gom.ref;h=a9de0054956a7591f1c13fb2c0e2c2b840438b94;hb=2c0db1cd127e0d844f7d36ba909dfb38bdd0aabd;hp=46e346cd0f58a6ea65682fd9e6e4596b0e82ce4e;hpb=99a753ba5102491fe48a11ed85ab07ebf2c4aeaf;p=gedcom-parse.git diff --git a/t/output/update_gom.ref b/t/output/update_gom.ref index 46e346c..a9de005 100644 --- a/t/output/update_gom.ref +++ b/t/output/update_gom.ref @@ -1,11 +1,364 @@ ERROR: Error: The input 'België' is not a valid UTF-8 string ERROR: Error: The input 'België' is not a valid string for the locale + +Initial date value: + type: 0 + 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: '' +ERROR: Error: Date is not normalized: some fields are invalid +String: '' + +Setting only year string: + type: 0 + date1: + calendar type: 0 + day: '', -1 + month: '', -1 + year: '1990', 1990 + year type: 0 + date type: 2 + sdn1: 2447893 + sdn2: 2448257 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +String: '1990' + +Setting only year number: + type: 0 + date1: + calendar type: 0 + day: '', -1 + month: '', -1 + year: '1989', 1989 + year type: 0 + date type: 2 + sdn1: 2447528 + sdn2: 2447892 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +String: '1989' + +Setting only SDN 1: + type: 0 + date1: + calendar type: 0 + day: '31', 31 + month: 'AUG', 8 + year: '2132', 2132 + year type: 0 + date type: 1 + sdn1: 2500000 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +String: '31 AUG 2132' + +Same date in Hebrew calendar: + type: 0 + date1: + calendar type: 2 + day: '19', 19 + month: 'ELL', 13 + year: '5892', 5892 + year type: 0 + date type: 1 + sdn1: 2500000 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +String: '@#DHEBREW@ 19 ELL 5892' +ERROR: Error: SDN 1 isn't a valid date in the given calendar + +Same date in French revolution calendar: + type: 0 + date1: + calendar type: 3 + day: '0', 0 + month: 'ELL', 0 + year: '0', 0 + year type: 0 + date type: 1 + sdn1: 2500000 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +ERROR: Error: Date is not normalized: some fields are invalid +String: '' + +Valid French revolution date: + type: 0 + date1: + calendar type: 3 + day: '16', 16 + month: 'PLUV', 5 + year: '7', 7 + year type: 0 + date type: 1 + sdn1: 2378166 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +String: '@#DFRENCH R@ 16 PLUV 7' +ERROR: Error: Cross-reference key '@FAM1@' is already in use +ERROR: Error: Cross-reference key '@SUBMITTER@' is already in use +Intermediate output: +=== HEADER === +Source: + ID: 'TEST_UPDATE' + Name: '(null)' + Version: '0.20.0' + Corporation: + Name: '(null)' + Address: 0x + Phone 1: '(null)' + Phone 2: '(null)' + Phone 3: '(null)' + Data: + Name: '(null)' + Date: 0x + Copyright: '(null)' +Destination: '(null)' +Date: + type: 0 + date1: + calendar type: 3 + day: '16', 16 + month: 'PLUV', 5 + year: '7', 7 + year type: 0 + date type: 1 + sdn1: 2378166 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' +Time: '(null)' +Submitter: + type: 7 + xref: '@SUBMITTER@' + object: 0x +Submission: 0x +File name: '(null)' +Copyright: '(null)' +Gedcom: + Version: '5.5' + Form: 'LINEAGE-LINKED' +Character set: + Name: 'ASCII' + Version: '(null)' +Language: '(null)' +Place hierarchy: '(null)' +Note: +==== +(null) +==== +User data: 0x +=== SUBMISSION (@SUBMISSION@) === +Submitter: 0x +Family file: '(null)' +Temple code: '(null)' +Nr of ancestor generations: '(null)' +Nr of descendant generations: '(null)' +Ordinance process flag: '(null)' +Record id: '(null)' +User data: 0x +=== FAMILY (@FAM1@) === +Family events: 0x +Husband: 0x +Wife: 0x +Children: 0x +Number of children: '3' +Submitters: 0x +LDS spouse sealings: 0x +citations: 0x +multimedia links: 0x +notes: 0x +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x +=== INDIVIDUAL (@IND1@) === +Restriction notice: '(null)' +names: 0x +Sex: '(null)' +Individual events: 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 +=== MULTIMEDIA (@OBJ1@) === +Form: '(null)' +Title: '(null)' +notes: 0x +Data: '(null)' +Continued: 0x +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x +=== NOTE (@NOTE1@) === +Text: 'This is some text' +citations: 0x +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x +=== REPOSITORY (@REPO1@) === +Name: '(null)' +Address: 0x +Phone 1: '(null)' +Phone 2: '(null)' +Phone 3: '(null)' +notes: 0x +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x +=== SOURCE (@SOUR1@) === +Data: + events: 0x + Agency: '(null)' + notes: 0x +Author: '(null)' +Title: '(null)' +Abbreviation: '(null)' +Publication: '(null)' +Text: '(null)' +Repository: + Link: 0x + notes: 0x + source descriptions: 0x +multimedia links: 0x +notes: 0x +user refs: 0x +Record ID: '(null)' +change date: 0x +User data: 0x +=== SUBMITTER (@SUBMITTER@) === +Name: 'België' +Address: 0x +Phone 1: '(null)' +Phone 2: '(null)' +Phone 3: '(null)' +multimedia links: 0x +Language 1: '(null)' +Language 2: '(null)' +Language 3: '(null)' +Record file nr: '(null)' +Record ID: '(null)' +change date: 0x +User data: 0x +=== SUBMITTER (@SUBM2@) === +Name: '(null)' +Address: 0x +Phone 1: '(null)' +Phone 2: '(null)' +Phone 3: '(null)' +multimedia links: 0x +Language 1: '(null)' +Language 2: '(null)' +Language 3: '(null)' +Record file nr: '(null)' +Record ID: '(null)' +change date: 0x +User data: 0x +=== USER RECORD (@USER1@) === +Tag: '_TAG' +String value: '(null)' +Xref value: 0x +User data: 0x Test succeeded === HEADER === Source: ID: 'TEST_UPDATE' Name: '(null)' - Version: '0.17' + Version: '0.20.0' Corporation: Name: '(null)' Address: 0x @@ -17,7 +370,27 @@ Source: Date: 0x Copyright: '(null)' Destination: '(null)' -Date: 0x +Date: + type: 0 + date1: + calendar type: 3 + day: '16', 16 + month: 'PLUV', 5 + year: '7', 7 + year type: 0 + date type: 1 + sdn1: 2378166 + sdn2: -1 + date2: + calendar type: 4 + day: '', -1 + month: '', -1 + year: '', -1 + year type: 0 + date type: 0 + sdn1: -1 + sdn2: -1 + phrase: '' Time: '(null)' Submitter: type: 7