Skip to content

Commit

Permalink
Add sample file testing FILE payloads (#153)
Browse files Browse the repository at this point in the history
* Add sample file testing FILE payloads

Derived from file in https://github.com/gedcom7code/test-files/tree/main/7

Addresses part of issue #132

Signed-off-by: Dave Thaler <[email protected]>

* Add explanatory NOTEs

Signed-off-by: Dave Thaler <[email protected]>

---------

Signed-off-by: Dave Thaler <[email protected]>
Co-authored-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler and dthaler2 authored Mar 28, 2024
1 parent f43ab8f commit 1249ad6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
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

0 comments on commit 1249ad6

Please sign in to comment.