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 sample file testing FILE payloads #153

Merged
merged 2 commits into from
Mar 28, 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
1 change: 1 addition & 0 deletions _pages/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The following files are provided for testing.
| [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. |
| [lang.ged](/testfiles/gedcom70/lang.ged) | This file contains many different `LANG` payloads. |
| [filename-1.ged](/testfiles/gedcom70/filename-1.ged) | This file contains many different `FILE` payloads. |
| [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 Down
34 changes: 34 additions & 0 deletions testfiles/gedcom70/filename-1.ged
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
0 HEAD
1 GEDC
2 VERS 7.0
0 @1@ OBJE
1 NOTE Traditional file URI for a local file with an empty authority, per RFC 8089.
1 FILE file:///unix/absolute
2 FORM image/bmp
1 NOTE Local file URI with a Windows drive letter, per RFC 8089.
1 FILE file:///c:/windows/absolute
2 FORM image/bmp
1 NOTE Non-local file URI, per RFC 8089.
1 FILE file://host.example.com/server
2 FORM image/bmp
1 NOTE URI reference for a local file, per RFC 3986.
2 CONT Using media/ as a directory prefix is recommended but not required.
1 FILE a/relative/path
2 FORM image/bmp
1 NOTE URI reference with percent escapes in a path segment, per RFC 3986.
1 FILE most/paths%3Fget%23escaped%5Blike%5Dthis
2 FORM image/bmp
1 NOTE Another URI reference with percent escapes that would be a URI if not escaped, per RFC 3986.
1 FILE https%3a//not.a.url/even-though-similar
2 FORM image/bmp
1 NOTE Web-accessible file with path and fragment components, per RFC 3986.
1 FILE https://host.example.com?with=args#and-frags
2 FORM image/bmp
1 NOTE It is recommended that gedcom.ged and MANIFEST.MF and any URL beginning with META-INF/ not be used, but they're not disallowed.
1 FILE gedcom.ged
2 FORM text/vnd.familysearch.gedcom
1 FILE MANIFEST.MF
2 FORM text/plain
1 FILE META-INF/example
2 FORM text/plain
0 TRLR