From 36ac4864c29393857395a65377b465696383a924 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 25 Jan 2003 20:01:03 +0000 Subject: [PATCH] More compatibility testing. --- t/output/compat-ftree.ref | 48 +-- t/output/compat-lifelines.ref | 16 +- t/output/write_gom_compat-ftree.ged | 453 ++++++++++++++++++++++++ t/output/write_gom_compat-ftree.ref | 5 + t/output/write_gom_compat-lifelines.ged | 37 ++ t/output/write_gom_compat-lifelines.ref | 6 + t/src/gom_write.c | 5 +- t/write_gom_compat-ftree.test | 3 + t/write_gom_compat-lifelines.test | 3 + 9 files changed, 542 insertions(+), 34 deletions(-) create mode 100644 t/output/write_gom_compat-ftree.ged create mode 100644 t/output/write_gom_compat-ftree.ref create mode 100644 t/output/write_gom_compat-lifelines.ged create mode 100644 t/output/write_gom_compat-lifelines.ref create mode 100755 t/write_gom_compat-ftree.test create mode 100755 t/write_gom_compat-lifelines.test diff --git a/t/output/compat-ftree.ref b/t/output/compat-ftree.ref index 9e0b8a1..217ac34 100644 --- a/t/output/compat-ftree.ref +++ b/t/output/compat-ftree.ref @@ -1024,34 +1024,34 @@ Family start, xref is @F0014@ == 1 HUSB (330) @I0049@ (ctxt is 14, conversion failures: 0) == 1 CHIL (293) @I0048@ (ctxt is 14, conversion failures: 0) Family end, xref is @F0014@ -== 0 NOTE (348) (xref is @N0001@) +== 0 NOTE (348) - (xref is @N0001@) == 1 CONT (300) Took surname Mountbatten in March 1947 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Known as "Phil the Greek" (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0002@) +== 0 NOTE (348) - (xref is @N0002@) == 1 CONT (300) Born at home of Maternal grandparents (ctxt is 348, conversion failures: 0) == 1 CONT (300) Educated privately (ctxt is 348, conversion failures: 0) == 1 CONT (300) Coronation in 1953 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0003@) +== 0 NOTE (348) - (xref is @N0003@) == 1 CONT (300) Succeeded father in 1910, crowned 1911 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0004@) +== 0 NOTE (348) - (xref is @N0004@) == 1 CONT (300) Created Duke of York 1920 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Succeeded to throne on Edward VIII's abdication in 1936, crowned 1937 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0005@) +== 0 NOTE (348) - (xref is @N0005@) == 1 CONT (300) 5 sons and 1 dau (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0006@) +== 0 NOTE (348) - (xref is @N0006@) == 1 CONT (300) Total of 6 children (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0007@) +== 0 NOTE (348) - (xref is @N0007@) == 1 CONT (300) Succeeded to throne in 1901, crowned 1902 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0008@) +== 0 NOTE (348) - (xref is @N0008@) == 1 CONT (300) Created Prince of Wales in 1910 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Succeeded to throne on 20 Jan 1936 - Abdicated 11 Dec 1936 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0009@) +== 0 NOTE (348) - (xref is @N0009@) == 1 CONT (300) Became Queen in 1837 on death of uncle Willian IV (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0010@) +== 0 NOTE (348) - (xref is @N0010@) == 1 CONT (300) German Emperor (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0011@) +== 0 NOTE (348) - (xref is @N0011@) == 1 CONT (300) Died of Typhoid (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0012@) +== 0 NOTE (348) - (xref is @N0012@) == 1 CONT (300) Note on victoria birth date (ctxt is 348, conversion failures: 0) Rec SOUR start, xref is @S0001@ == 1 AUTH (278) glamis family (ctxt is 377, conversion failures: 0) @@ -2084,34 +2084,34 @@ Family start, xref is @F0014@ == 1 HUSB (330) @I0049@ (ctxt is 28, conversion failures: 0) == 1 CHIL (293) @I0048@ (ctxt is 28, conversion failures: 0) Family end, xref is @F0014@ -== 0 NOTE (348) (xref is @N0001@) +== 0 NOTE (348) - (xref is @N0001@) == 1 CONT (300) Took surname Mountbatten in March 1947 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Known as "Phil the Greek" (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0002@) +== 0 NOTE (348) - (xref is @N0002@) == 1 CONT (300) Born at home of Maternal grandparents (ctxt is 348, conversion failures: 0) == 1 CONT (300) Educated privately (ctxt is 348, conversion failures: 0) == 1 CONT (300) Coronation in 1953 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0003@) +== 0 NOTE (348) - (xref is @N0003@) == 1 CONT (300) Succeeded father in 1910, crowned 1911 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0004@) +== 0 NOTE (348) - (xref is @N0004@) == 1 CONT (300) Created Duke of York 1920 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Succeeded to throne on Edward VIII's abdication in 1936, crowned 1937 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0005@) +== 0 NOTE (348) - (xref is @N0005@) == 1 CONT (300) 5 sons and 1 dau (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0006@) +== 0 NOTE (348) - (xref is @N0006@) == 1 CONT (300) Total of 6 children (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0007@) +== 0 NOTE (348) - (xref is @N0007@) == 1 CONT (300) Succeeded to throne in 1901, crowned 1902 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0008@) +== 0 NOTE (348) - (xref is @N0008@) == 1 CONT (300) Created Prince of Wales in 1910 (ctxt is 348, conversion failures: 0) == 1 CONT (300) Succeeded to throne on 20 Jan 1936 - Abdicated 11 Dec 1936 (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0009@) +== 0 NOTE (348) - (xref is @N0009@) == 1 CONT (300) Became Queen in 1837 on death of uncle Willian IV (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0010@) +== 0 NOTE (348) - (xref is @N0010@) == 1 CONT (300) German Emperor (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0011@) +== 0 NOTE (348) - (xref is @N0011@) == 1 CONT (300) Died of Typhoid (ctxt is 348, conversion failures: 0) -== 0 NOTE (348) (xref is @N0012@) +== 0 NOTE (348) - (xref is @N0012@) == 1 CONT (300) Note on victoria birth date (ctxt is 348, conversion failures: 0) Rec SOUR start, xref is @S0001@ == 1 AUTH (278) glamis family (ctxt is 377, conversion failures: 0) diff --git a/t/output/compat-lifelines.ref b/t/output/compat-lifelines.ref index 6c1f5e9..d7cfe69 100644 --- a/t/output/compat-lifelines.ref +++ b/t/output/compat-lifelines.ref @@ -39,7 +39,7 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 1, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 1, conversion failures: 0) == 2 SOUR (377) name@domain.be (reclame voor genealogie boeken) (ctxt is 1, conversion failures: 0) Family end, xref is @F1@ Rec INDI start, xref is @I7@ @@ -67,7 +67,7 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 333, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 333, conversion failures: 0) == 2 SOUR (377) ongeveer 1360 (ctxt is 333, conversion failures: 0) == 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) Contents of the date_value: @@ -90,8 +90,8 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 333, conversion failures: 0) -== 2 SOUR (377) (ctxt is 333, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 333, conversion failures: 0) +== 2 SOUR (377) - (ctxt is 333, conversion failures: 0) == 1 NOTE (348) Hij bouwde het Brusselse stadhuis in 1402. Hij bouwde ook kerken in (ctxt is 333, conversion failures: 0) == 1 NOTE (348) Belgi? en Nederland. Misschien is hij wel het ontstaan van de (ctxt is 333, conversion failures: 1) == 1 NOTE (348) Nederlandse tak ? in 1405 was de oudste vleugen klaar (ctxt is 333, conversion failures: 0) @@ -138,7 +138,7 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 2, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 2, conversion failures: 0) == 2 SOUR (377) name@domain.be (reclame voor genealogie boeken) (ctxt is 2, conversion failures: 0) Family end, xref is @F1@ Rec INDI start, xref is @I7@ @@ -166,7 +166,7 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 333, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 333, conversion failures: 0) == 2 SOUR (377) ongeveer 1360 (ctxt is 333, conversion failures: 0) == 1 DEAT (307) (null) (ctxt is 333, conversion failures: 0) Contents of the date_value: @@ -189,8 +189,8 @@ Contents of the date_value: sdn1: -1 sdn2: -1 phrase: -== 2 PLAC (358) (ctxt is 333, conversion failures: 0) -== 2 SOUR (377) (ctxt is 333, conversion failures: 0) +== 2 PLAC (358) - (ctxt is 333, conversion failures: 0) +== 2 SOUR (377) - (ctxt is 333, conversion failures: 0) == 1 NOTE (348) Hij bouwde het Brusselse stadhuis in 1402. Hij bouwde ook kerken in (ctxt is 333, conversion failures: 0) == 1 NOTE (348) Belgi? en Nederland. Misschien is hij wel het ontstaan van de (ctxt is 333, conversion failures: 1) == 1 NOTE (348) Nederlandse tak ? in 1405 was de oudste vleugen klaar (ctxt is 333, conversion failures: 0) diff --git a/t/output/write_gom_compat-ftree.ged b/t/output/write_gom_compat-ftree.ged new file mode 100644 index 0000000..54950c5 --- /dev/null +++ b/t/output/write_gom_compat-ftree.ged @@ -0,0 +1,453 @@ +0 HEAD +1 CHAR ANSI +1 SOUR ftree +2 NAME Ftree for Linux +2 VERS 1.5 +1 DATE 9 SEP 2001 +2 TIME 02:46:40 +1 SUBM @__COMPAT__SUBM__@ +1 FILE /usr2/cas/src/ftree/real_data/royal.ged +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +0 @__COMPAT__SUBM__@ SUBM +1 NAME Submitter +1 CHAN +2 DATE 9 SEP 2001 +3 TIME 02:46:40 +0 @I0001@ INDI +1 NAME Elizabeth Alexandra Mary /Windsor/ +1 SEX F +1 BIRT +2 DATE 21 Apr 1926 +2 PLAC 17 Bruton Street, London, W1 +1 RESI +2 ADDR Buckingham Palace +1 OCCU Queen +1 FAMC @F0003@ +1 FAMS @F0001@ +1 NOTE @N0002@ +0 @I0002@ INDI +1 NAME Philip /Mountbatten/ +1 SEX M +1 BIRT +2 DATE 1921 +1 FAMC @F0002@ +1 FAMS @F0001@ +1 NOTE @N0001@ +0 @I0003@ INDI +1 NAME Andrew +1 SEX M +1 FAMS @F0002@ +0 @I0004@ INDI +1 NAME Alice +1 SEX F +1 FAMS @F0002@ +0 @I0005@ INDI +1 NAME George VI +1 SEX M +1 BIRT +2 DATE 1895 +1 DEAT +2 DATE 1952 +1 FAMC @F0005@ +1 FAMS @F0003@ +1 NOTE @N0004@ +0 @I0006@ INDI +1 NAME Charles Philip Arthur George /Windsor/ +1 SEX M +1 BIRT +2 DATE 14 Nov 1948 +1 FAMC @F0001@ +1 FAMS @F0004@ +0 @I0007@ INDI +1 NAME Anne Elizabeth Alice Louise +1 SEX F +1 BIRT +2 DATE 15 Aug 1950 +1 FAMC @F0001@ +1 FAMS @F0010@ +0 @I0008@ INDI +1 NAME Andrew Albert Christian Edward +1 SEX M +1 BIRT +2 DATE 19 Feb 1960 +1 FAMC @F0001@ +0 @I0009@ INDI +1 NAME Edward Antony Richard Louis +1 SEX M +1 BIRT +2 DATE 10 Mar 1964 +1 FAMC @F0001@ +0 @I0010@ INDI +1 NAME Diana /Spencer/ +1 SEX F +1 BIRT +2 DATE Jul 1961 +1 DEAT +2 DATE 31 Aug 1997 +1 FAMS @F0004@ +0 @I0011@ INDI +1 NAME William +1 SEX M +1 FAMC @F0004@ +0 @I0012@ INDI +1 NAME Harry +1 SEX M +1 FAMC @F0004@ +0 @I0013@ INDI +1 NAME George V +1 SEX M +1 BIRT +2 DATE 1865 +1 DEAT +2 DATE 1936 +1 FAMC @F0006@ +1 FAMS @F0005@ +1 NOTE @N0003@ +0 @I0014@ INDI +1 NAME Elizabeth /Bowes-Lyon/ +1 SEX F +1 FAMC @F0011@ +1 FAMS @F0003@ +0 @I0015@ INDI +1 NAME Margaret Rose +1 SEX F +1 BIRT +2 DATE 1930 +1 FAMC @F0003@ +0 @I0016@ INDI +1 NAME Edward VII // +1 SEX M +1 BIRT +2 DATE 1841 +2 PLAC Buckinham Palace, London +1 DEAT +2 DATE 1910 +1 FAMC @F0007@ +1 FAMS @F0006@ +1 NOTE @N0007@ +0 @I0017@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0006@ +0 @I0018@ INDI +1 NAME Alexandra of Denmark +1 FAMS @F0006@ +0 @I0019@ INDI +1 NAME May of Teck (Queen Mary) +1 FAMS @F0005@ +0 @I0020@ INDI +1 NAME Victoria +1 SEX F +1 BIRT +2 DATE 24 May 1819 +2 PLAC Kengsington Palace +2 NOTE @N0012@ +1 DEAT +2 DATE 22 Jan 1901 +2 PLAC Osborne House, I of W +1 FAMS @F0007@ +1 NOTE @N0009@ +0 @I0021@ INDI +1 NAME Albert /Saxe-Coburg-Gotha/ +1 BIRT +2 DATE 1819 +1 DEAT +2 DATE 1861 +2 PLAC Windsor +2 NOTE @N0011@ +1 FAMS @F0007@ +0 @I0022@ INDI +1 NAME Edward VIII +1 FAMC @F0005@ +1 FAMS @F0008@ +1 NOTE @N0008@ +0 @I0023@ INDI +1 NAME /Simpson/ +1 FAMS @F0008@ +0 @I0024@ INDI +1 NAME Victoria +1 SEX F +1 BIRT +2 DATE 1840 +1 DEAT +2 DATE 1901 +1 FAMC @F0007@ +1 FAMS @F0009@ +0 @I0025@ INDI +1 NAME Frederick III +1 SEX M +1 FAMS @F0009@ +1 NOTE @N0010@ +0 @I0026@ INDI +1 NAME Alice +1 SEX F +1 FAMC @F0007@ +0 @I0027@ INDI +1 NAME Alfred +1 SEX M +1 FAMC @F0007@ +0 @I0028@ INDI +1 NAME Helena +1 SEX F +1 FAMC @F0007@ +0 @I0029@ INDI +1 NAME Louise +1 SEX F +1 FAMC @F0007@ +0 @I0030@ INDI +1 NAME Arthur +1 SEX M +1 FAMC @F0007@ +0 @I0031@ INDI +1 NAME Leopold +1 SEX M +1 FAMC @F0007@ +0 @I0032@ INDI +1 NAME Beatrice +1 SEX F +1 FAMC @F0007@ +0 @I0033@ INDI +1 NAME mark /Phillips/ +1 SEX M +1 FAMS @F0010@ +0 @I0034@ INDI +1 NAME Zara +1 SEX F +1 FAMC @F0010@ +0 @I0035@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0010@ +0 @I0036@ INDI +1 NAME Claude +1 SEX M +1 BIRT +2 DATE 1855 +1 DEAT +2 DATE 1944 +1 TITL 14th Earl of Strathmore +1 FAMC @F0012@ +1 FAMS @F0011@ +1 SOUR @S0001@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0037@ INDI +1 NAME Nina Cecilia Cavendish /Bentinck/ +1 SEX F +1 FAMS @F0011@ +1 SOUR @S0001@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0038@ INDI +1 NAME Patrick +1 SEX M +1 BIRT +2 DATE 1884 +1 DEAT +2 DATE 1949 +1 TITL 15th Earl of Strathmore +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0039@ INDI +1 NAME Micheal +1 SEX M +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0040@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0041@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0042@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0043@ INDI +1 NAME (male) +1 SEX M +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0044@ INDI +1 NAME (female) +1 SEX F +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0045@ INDI +1 NAME (female) +1 SEX F +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0046@ INDI +1 NAME (female) +1 SEX F +1 FAMC @F0011@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0047@ INDI +1 NAME Claude +1 SEX M +1 TITL 13th Earl of Strathmore +1 FAMC @F0013@ +1 FAMS @F0012@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0048@ INDI +1 NAME Thomas +1 SEX M +1 TITL Lord Glamis +1 FAMC @F0014@ +1 FAMS @F0013@ +1 CHAN +2 DATE 2 Jun 2000 +0 @I0049@ INDI +1 NAME Thomas +1 SEX M +1 BIRT +2 DATE 1773 +1 DEAT +2 DATE 1846 +1 TITL 11th Earl of Strathmore +1 FAMS @F0014@ +1 CHAN +2 DATE 2 Jun 2000 +0 @F0001@ FAM +1 MARR +2 DATE 20 Nov 1947 +2 PLAC Westminster Abbey, London +1 HUSB @I0002@ +1 WIFE @I0001@ +1 CHIL @I0006@ +1 CHIL @I0007@ +1 CHIL @I0008@ +1 CHIL @I0009@ +0 @F0002@ FAM +1 MARR +1 HUSB @I0003@ +1 WIFE @I0004@ +1 CHIL @I0002@ +0 @F0003@ FAM +1 HUSB @I0005@ +1 WIFE @I0014@ +1 CHIL @I0001@ +1 CHIL @I0015@ +0 @F0004@ FAM +1 MARR +2 DATE 28 Jul 1981 +1 HUSB @I0006@ +1 WIFE @I0010@ +1 CHIL @I0011@ +1 CHIL @I0012@ +0 @F0005@ FAM +1 MARR +1 HUSB @I0013@ +1 WIFE @I0019@ +1 CHIL @I0022@ +1 CHIL @I0005@ +1 NOTE @N0005@ +0 @F0006@ FAM +1 MARR +2 DATE 1863 +1 HUSB @I0016@ +1 WIFE @I0018@ +1 CHIL @I0017@ +1 CHIL @I0013@ +1 NOTE @N0006@ +0 @F0007@ FAM +1 HUSB @I0021@ +1 WIFE @I0020@ +1 CHIL @I0024@ +1 CHIL @I0016@ +1 CHIL @I0026@ +1 CHIL @I0027@ +1 CHIL @I0028@ +1 CHIL @I0029@ +1 CHIL @I0030@ +1 CHIL @I0031@ +1 CHIL @I0032@ +0 @F0008@ FAM +1 MARR +2 DATE 3 Jun 1937 +2 PLAC Chateau de Cande, Tours, France +1 HUSB @I0022@ +1 WIFE @I0023@ +0 @F0009@ FAM +1 HUSB @I0025@ +1 WIFE @I0024@ +0 @F0010@ FAM +1 MARR +1 HUSB @I0033@ +1 WIFE @I0007@ +1 CHIL @I0034@ +1 CHIL @I0035@ +0 @F0011@ FAM +1 MARR +1 HUSB @I0036@ +1 WIFE @I0037@ +1 CHIL @I0038@ +1 CHIL @I0039@ +1 CHIL @I0040@ +1 CHIL @I0041@ +1 CHIL @I0042@ +1 CHIL @I0043@ +1 CHIL @I0044@ +1 CHIL @I0045@ +1 CHIL @I0046@ +1 CHIL @I0014@ +0 @F0012@ FAM +1 HUSB @I0047@ +1 CHIL @I0036@ +0 @F0013@ FAM +1 HUSB @I0048@ +1 CHIL @I0047@ +0 @F0014@ FAM +1 HUSB @I0049@ +1 CHIL @I0048@ +0 @N0001@ NOTE - +1 CONT Took surname Mountbatten in March 1947 +1 CONT Known as "Phil the Greek" +0 @N0002@ NOTE - +1 CONT Born at home of Maternal grandparents +1 CONT Educated privately +1 CONT Coronation in 1953 +0 @N0003@ NOTE - +1 CONT Succeeded father in 1910, crowned 1911 +0 @N0004@ NOTE - +1 CONT Created Duke of York 1920 +1 CONT Succeeded to throne on Edward VIII's abdication in 1936, crowned 1937 +0 @N0005@ NOTE - +1 CONT 5 sons and 1 dau +0 @N0006@ NOTE - +1 CONT Total of 6 children +0 @N0007@ NOTE - +1 CONT Succeeded to throne in 1901, crowned 1902 +0 @N0008@ NOTE - +1 CONT Created Prince of Wales in 1910 +1 CONT Succeeded to throne on 20 Jan 1936 - Abdicated 11 Dec 1936 +0 @N0009@ NOTE - +1 CONT Became Queen in 1837 on death of uncle Willian IV +0 @N0010@ NOTE - +1 CONT German Emperor +0 @N0011@ NOTE - +1 CONT Died of Typhoid +0 @N0012@ NOTE - +1 CONT Note on victoria birth date +0 @S0001@ SOUR +1 AUTH glamis family +1 PUBL Glamis Guide +0 TRLR diff --git a/t/output/write_gom_compat-ftree.ref b/t/output/write_gom_compat-ftree.ref new file mode 100644 index 0000000..1af5f09 --- /dev/null +++ b/t/output/write_gom_compat-ftree.ref @@ -0,0 +1,5 @@ +WARNING: Warning on line 4: Enabling compatibility with 'ftree' +WARNING: Warning on line 11: Adding link to submitter record with xref '@__COMPAT__SUBM__@' +Writing file... +Re-parsing file... +Test succeeded diff --git a/t/output/write_gom_compat-lifelines.ged b/t/output/write_gom_compat-lifelines.ged new file mode 100644 index 0000000..bd70a4c --- /dev/null +++ b/t/output/write_gom_compat-lifelines.ged @@ -0,0 +1,37 @@ +0 HEAD +1 CHAR ANSI +1 SOUR LIFELINES 3.0.2 +1 DEST ANY +1 DATE 9 SEP 2001 +2 TIME 02:46:40 +1 SUBM @__COMPAT__SUBM__@ +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +0 @__COMPAT__SUBM__@ SUBM +1 NAME Submitter +1 CHAN +2 DATE 9 SEP 2001 +3 TIME 02:46:40 +0 @I7@ INDI +1 NAME Jacob (Jacques) /Blablabla/ +1 SEX M +1 BIRT +2 DATE 1360 +2 PLAC - +2 SOUR ongeveer 1360 +1 DEAT +2 DATE () +2 PLAC - +2 SOUR - +1 FAMC @F1@ +1 NOTE Hij bouwde het Brusselse stadhuis in 1402. Hij bouwde ook kerken in +1 NOTE Belgiƫ en Nederland. Misschien is hij wel het ontstaan van de +1 NOTE Nederlandse tak ? in 1405 was de oudste vleugen klaar +0 @F1@ FAM +1 MARR +2 DATE () +2 PLAC - +2 SOUR name@@domain.be (reclame voor genealogie boeken) +1 HUSB @I7@ +0 TRLR diff --git a/t/output/write_gom_compat-lifelines.ref b/t/output/write_gom_compat-lifelines.ref new file mode 100644 index 0000000..26ebd18 --- /dev/null +++ b/t/output/write_gom_compat-lifelines.ref @@ -0,0 +1,6 @@ +WARNING: Warning on line 2: Enabling compatibility with 'Lifelines' +WARNING: Warning on line 5: Header change time lost in the compatibility +WARNING: Warning on line 5: Adding link to submitter record with xref '@__COMPAT__SUBM__@' +Writing file... +Re-parsing file... +Test succeeded diff --git a/t/src/gom_write.c b/t/src/gom_write.c index a9f0284..30a45a6 100644 --- a/t/src/gom_write.c +++ b/t/src/gom_write.c @@ -235,8 +235,6 @@ int main(int argc, char* argv[]) gedcom_init(); setlocale(LC_ALL, ""); gedcom_set_message_handler(gedcom_message_handler); - gedcom_write_set_encoding(ENC_MANUAL, encoding, enc, bom); - gedcom_write_set_line_terminator(ENC_MANUAL, end); output_open(outfilename); @@ -244,6 +242,8 @@ int main(int argc, char* argv[]) result = gom_parse_file(infilename); } else { + gedcom_write_set_encoding(ENC_MANUAL, encoding, enc, bom); + gedcom_write_set_line_terminator(ENC_MANUAL, end); result = gom_new_model(); if (result == 0) result |= update_header(encoding); @@ -256,6 +256,7 @@ int main(int argc, char* argv[]) } if (result == 0 && total_conv_fails == 0) { output(1, "Re-parsing file...\n"); + gedcom_set_compat_handling(0); result |= gom_parse_file(gedfilename); } if (result == 0) { diff --git a/t/write_gom_compat-ftree.test b/t/write_gom_compat-ftree.test new file mode 100755 index 0000000..60f9738 --- /dev/null +++ b/t/write_gom_compat-ftree.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_writegom $0 0 LF ANSEL 0 compat-ftree.ged diff --git a/t/write_gom_compat-lifelines.test b/t/write_gom_compat-lifelines.test new file mode 100755 index 0000000..d53ed2c --- /dev/null +++ b/t/write_gom_compat-lifelines.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_writegom $0 0 LF ANSEL 0 compat-lifelines.ged -- 2.30.2