From 934b23c97148e51b8a7fe14cec186ddc80f13831 Mon Sep 17 00:00:00 2001 From: Dave Thaler Date: Thu, 7 Mar 2024 08:42:49 -0800 Subject: [PATCH] Update age.ged Signed-off-by: Dave Thaler --- _pages/tools.md | 1 - testfiles/gedcom70/age-all.ged | 119 -------------------------- testfiles/gedcom70/age.ged | 151 +++++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+), 120 deletions(-) delete mode 100644 testfiles/gedcom70/age-all.ged diff --git a/_pages/tools.md b/_pages/tools.md index fda7616..b5e1416 100644 --- a/_pages/tools.md +++ b/_pages/tools.md @@ -44,7 +44,6 @@ The following files are provided for testing. | File | Notes | |----------|------------------------| | [age.ged](/testfiles/gedcom70/age.ged) | This file contains various test cases for `AGE` payloads. | -| [age-all.ged](/testfiles/gedcom70/age-all.ged) | This file contains many different `AGE` payloads. | | [escapes.ged](/testfiles/gedcom70/escapes.ged) | This file contains @ characters that are doubled only when they appear at the start of a line string. | | [date-all.ged](/testfiles/gedcom70/date-all.ged) | This file contains many different `DATE` payloads. | | [extension-record.ged](/testfiles/gedcom70/extension-record.ged) | This file contains a `_LOC` record, which is referenced from an individual with a _LOC tag. | diff --git a/testfiles/gedcom70/age-all.ged b/testfiles/gedcom70/age-all.ged deleted file mode 100644 index cd86e79..0000000 --- a/testfiles/gedcom70/age-all.ged +++ /dev/null @@ -1,119 +0,0 @@ -0 HEAD -1 GEDC -2 VERS 7.0 -0 @SIMPLE@ INDI -1 EVEN when 0y -2 AGE 0y -1 EVEN when <0y -2 AGE < 0y -1 EVEN when >0y -2 AGE > 0y -1 EVEN when 99y -2 AGE 99y -1 EVEN when >99y -2 AGE > 99y -1 EVEN when <99y -2 AGE < 99y -1 EVEN when 0m -2 AGE 0m -1 EVEN when <0m -2 AGE < 0m -1 EVEN when >0m -2 AGE > 0m -1 EVEN when 11m -2 AGE 11m -1 EVEN when >11m -2 AGE > 11m -1 EVEN when <11m -2 AGE < 11m -1 EVEN when 0w -2 AGE 0w -1 EVEN when <0w -2 AGE < 0w -1 EVEN when >0w -2 AGE > 0w -1 EVEN when 8w -2 AGE 8w -1 EVEN when >8w -2 AGE > 8w -1 EVEN when <8w -2 AGE < 8w -1 EVEN when 0d -2 AGE 0d -1 EVEN when <0d -2 AGE < 0d -1 EVEN when >0d -2 AGE > 0d -1 EVEN when 30d -2 AGE 30d -1 EVEN when >30d -2 AGE > 30d -1 EVEN when <30d -2 AGE < 30d -1 EVEN when 99y11m -2 AGE 99y 11m -1 EVEN when >99y11m -2 AGE > 99y 11m -1 EVEN when <99y11m -2 AGE < 99y 11m -1 EVEN when 99y8w -2 AGE 99y 8w -1 EVEN when >99y8w -2 AGE > 99y 8w -1 EVEN when <99y8w -2 AGE < 99y 8w -1 EVEN when 99y30d -2 AGE 99y 30d -1 EVEN when >99y30d -2 AGE > 99y 30d -1 EVEN when <99y30d -2 AGE < 99y 30d -1 EVEN when 11m8w -2 AGE 11m 8w -1 EVEN when >11m8w -2 AGE > 11m 8w -1 EVEN when <11m8w -2 AGE < 11m 8w -1 EVEN when 11m30d -2 AGE 11m 30d -1 EVEN when >11m30d -2 AGE > 11m 30d -1 EVEN when <11m30d -2 AGE < 11m 30d -1 EVEN when 8w30d -2 AGE 8w 30d -1 EVEN when >8w30d -2 AGE > 8w 30d -1 EVEN when <8w30d -2 AGE < 8w 30d -1 EVEN when 99y11m8w -2 AGE 99y 11m 8w -1 EVEN when >99y11m8w -2 AGE > 99y 11m 8w -1 EVEN when <99y11m8w -2 AGE < 99y 11m 8w -1 EVEN when 99y11m30d -2 AGE 99y 11m 30d -1 EVEN when >99y11m30d -2 AGE > 99y 11m 30d -1 EVEN when <99y11m30d -2 AGE < 99y 11m 30d -1 EVEN when 99y11w30d -2 AGE 99y 11w 30d -1 EVEN when >99y11w30d -2 AGE > 99y 11w 30d -1 EVEN when <99y11w30d -2 AGE < 99y 11w 30d -1 EVEN when 99m11w30d -2 AGE 99m 11w 30d -1 EVEN when >99m11w30d -2 AGE > 99m 11w 30d -1 EVEN when <99m11w30d -2 AGE < 99m 11w 30d -1 EVEN when 99y11m2w3d -2 AGE 99y 11m 2w 3d -1 EVEN when >99y11m2w3d -2 AGE > 99y 11m 2w 3d -1 EVEN when <99y11m2w3d -2 AGE < 99y 11m 2w 3d -0 TRLR diff --git a/testfiles/gedcom70/age.ged b/testfiles/gedcom70/age.ged index 5d3c9a4..5f40ec8 100644 --- a/testfiles/gedcom70/age.ged +++ b/testfiles/gedcom70/age.ged @@ -6,36 +6,187 @@ 1 CHR 2 AGE 0y 1 CHR +2 AGE < 0y +1 CHR 2 AGE 0m 1 CHR +2 AGE < 0m +1 CHR 2 AGE 0w 1 CHR +2 AGE < 0w +1 CHR 2 AGE 0d 1 CHR +2 AGE < 0d +1 CHR 2 AGE 0y 0m 1 CHR +2 AGE < 0y 0m +1 CHR 2 AGE 0y 0w 1 CHR +2 AGE < 0y 0w +1 CHR 2 AGE 0y 0d 1 CHR +2 AGE < 0y 0d +1 CHR 2 AGE 0m 0w 1 CHR +2 AGE < 0m 0w +1 CHR 2 AGE 0m 0d 1 CHR +2 AGE < 0m 0d +1 CHR 2 AGE 0w 0d 1 CHR +2 AGE < 0w 0d +1 CHR 2 AGE 0y 0m 0w 1 CHR +2 AGE < 0y 0m 0w +1 CHR 2 AGE 0y 0m 0d 1 CHR +2 AGE < 0y 0m 0d +1 CHR 2 AGE 0y 0w 0d 1 CHR +2 AGE < 0y 0w 0d +1 CHR 2 AGE 0m 0w 0d 1 CHR +2 AGE < 0m 0w 0d +1 CHR 2 AGE 0y 0m 0w 0d 1 CHR +2 AGE < 0y 0m 0w 0d +1 CHR 2 AGE 3 PHRASE Zero +1 NOTE Various combinations of non-zero ages and age ranges. +1 CHR +2 AGE > 0y +1 CHR +2 AGE 99y +1 CHR +2 AGE > 99y +1 CHR +2 AGE < 99y +1 CHR +2 AGE > 0m +1 CHR +2 AGE 11m +1 CHR +2 AGE > 11m +1 CHR +2 AGE < 11m +1 CHR +2 AGE > 0w +1 CHR +2 AGE 3w +1 CHR +2 AGE > 3w +1 CHR +2 AGE < 3w +1 CHR +2 AGE > 0d +1 CHR +2 AGE 6d +1 CHR +2 AGE > 6d +1 CHR +2 AGE < 6d +1 CHR +2 AGE > 0y 0m +1 CHR +2 AGE 99y 11m +1 CHR +2 AGE > 99y 11m +1 CHR +2 AGE < 99y 11m +1 CHR +2 AGE > 0y 0w +1 CHR +2 AGE 99y 3w +1 CHR +2 AGE > 99y 3w +1 CHR +2 AGE < 99y 3w +1 CHR +2 AGE > 0y 0d +1 CHR +2 AGE 99y 6d +1 CHR +2 AGE > 99y 6d +1 CHR +2 AGE < 99y 6d +1 CHR +2 AGE > 0m 0w +1 CHR +2 AGE 11m 3w +1 CHR +2 AGE > 11m 3w +1 CHR +2 AGE < 11m 3w +1 CHR +2 AGE > 0m 0d +1 CHR +2 AGE 11m 6d +1 CHR +2 AGE > 11m 6d +1 CHR +2 AGE < 11m 6d +1 CHR +2 AGE > 0w 0d +1 CHR +2 AGE 3w 6d +1 CHR +2 AGE > 3w 6d +1 CHR +2 AGE < 3w 6d +1 CHR +2 AGE > 0y 0m 0w +1 CHR +2 AGE 99y 11m 3w +1 CHR +2 AGE > 99y 11m 3w +1 CHR +2 AGE < 99y 11m 3w +1 CHR +2 AGE > 0y 0m 0d +1 CHR +2 AGE 99y 11m 6d +1 CHR +2 AGE > 99y 11m 6d +1 CHR +2 AGE < 99y 11m 6d +1 CHR +2 AGE > 0y 0w 0d +1 CHR +2 AGE 99y 3w 6d +1 CHR +2 AGE > 99y 3w 6d +1 CHR +2 AGE < 99y 3w 6d +1 CHR +2 AGE > 0m 0w 0d +1 CHR +2 AGE 99m 3w 6d +1 CHR +2 AGE > 99m 3w 6d +1 CHR +2 AGE < 99m 3w 6d +1 CHR +2 AGE > 0y 0m 0w 0d +1 CHR +2 AGE 99y 11m 3w 6d +1 CHR +2 AGE > 99y 11m 3w 6d +1 CHR +2 AGE < 99y 11m 3w 6d 1 NOTE Age payloads do not have range restrictions. 1 CHR 2 AGE 1y 30m