Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add age.ged sample file with AGE payload test cases #143

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _pages/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ The following files are provided for testing.

| File | Notes |
|----------|------------------------|
| [age.ged](/testfiles/gedcom70/age.ged) | This file contains various test cases for `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. |
| [extension-record.ged](/testfiles/gedcom70/extension-record.ged) | This file contains a _LOC record, which is referenced from an individual with a _LOC tag. |
| [extension-record.ged](/testfiles/gedcom70/extension-record.ged) | This file contains a `_LOC` record, which is referenced from an individual with a _LOC tag. |
| [long-url.ged](/testfiles/gedcom70/long-url.ged) | This file contains a URL of a submitter that is very long, to test the ability to parse very long lines. |
| [maximal70.ged](/testfiles/gedcom70/maximal70.ged) | This file attempts to exercise all standard tags in various locations, and all standard enumeration values. |
| [maximal70.gdz](/testfiles/gedcom70/maximal70.gdz) | This FamilySearch GEDZIP 7.0 file attempts to exercise all standard tags in various locations, and all standard enumeration values, and also includes a minimal local audio file.
Expand All @@ -53,7 +54,7 @@ The following files are provided for testing.
| [remarriage1.ged](/testfiles/gedcom70/remarriage1.ged) | This file contains a couple who married, divorced, and then later remarried, stored as one family. |
| [remarriage2.ged](/testfiles/gedcom70/remarriage2.ged) | This file contains a couple who married, divorced, and then later remarried, stored as two separate families. |
| [same-sex-marriage.ged](/testfiles/gedcom70/same-sex-marriage.ged) | This file contains a same sex marriage. |
| [voidptr.ged](/testfiles/gedcom70/voidptr.ged) | This file contains several @VOID@ references. |
| [voidptr.ged](/testfiles/gedcom70/voidptr.ged) | This file contains several `@VOID@` references. |
| [xref.ged](/testfiles/gedcom70/xref.ged) | This file contains a number of different cross-reference identifier formats. |

## Extension Registry
Expand Down
54 changes: 54 additions & 0 deletions testfiles/gedcom70/age.ged
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
0 HEAD
1 GEDC
2 VERS 7.0
0 @I1@ INDI
1 NOTE There are many ways to express an age of "zero".
1 CHR
2 AGE 0y
1 CHR
2 AGE 0m
1 CHR
2 AGE 0w
1 CHR
2 AGE 0d
1 CHR
2 AGE 0y 0m
1 CHR
2 AGE 0y 0w
1 CHR
2 AGE 0y 0d
1 CHR
2 AGE 0m 0w
1 CHR
2 AGE 0m 0d
1 CHR
2 AGE 0w 0d
1 CHR
2 AGE 0y 0m 0w
1 CHR
2 AGE 0y 0m 0d
1 CHR
2 AGE 0y 0w 0d
1 CHR
2 AGE 0m 0w 0d
1 CHR
2 AGE 0y 0m 0w 0d
1 CHR
2 AGE
3 PHRASE Zero
1 NOTE Age payloads do not have range restrictions.
1 CHR
2 AGE 1y 30m
1 CHR
2 AGE 1y 100w
1 CHR
2 AGE 1y 400d
1 CHR
2 AGE 1m 40d
1 CHR
2 AGE 1m 10w
1 CHR
2 AGE 1w 30d
1 CHR
2 AGE 1y 30m 100w 400d
0 TRLR