trails/packages/gpx/fixtures/multi-track.gpx
Ullrich Schäfer 36c5a8beaa
test(gpx): fixture corpus + verification (groups 5–6)
Task groups 5 and 6 of gpx-parser-robustness.

Group 5 — packages/gpx/fixtures/*.gpx (synthetic, no personal data):
route-only, missing-coords, garbage-ele, timestamps-partial,
timestamps-mostly-invalid, multi-track, unicode-name,
namespaced-extensions, plus trimmed Komoot/Wahoo-style exports.
parse-node.test.ts gains a fixture table test that auto-discovers every
*.gpx from disk, asserts finite stats + per-fixture shape, and fails
loudly if a file has no EXPECTATIONS entry (the corpus is the regression
mechanism).

Group 6 — verification: GpxData shape unchanged; journal + planner
compile with no changes; gpx suite 98/98; full pnpm typecheck 13/13,
lint 13/13, test 11/11. Route-only + broken-file import behaviour is
covered by the fixtures + consumer compile; the browser leg rides e2e.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 00:30:46 +02:00

14 lines
596 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="test" xmlns="http://www.topografix.com/GPX/1/1">
<metadata><name>Two-part outing</name></metadata>
<trk><name>Morning</name><trkseg>
<trkpt lat="46.0000" lon="7.0000"><ele>1500</ele></trkpt>
<trkpt lat="46.0100" lon="7.0100"><ele>1600</ele></trkpt>
</trkseg></trk>
<trk><name>Afternoon</name><trkseg>
<trkpt lat="46.0200" lon="7.0200"><ele>1650</ele></trkpt>
<trkpt lat="46.0300" lon="7.0300"><ele>1700</ele></trkpt>
<trkpt lat="46.0400" lon="7.0400"><ele>1550</ele></trkpt>
</trkseg></trk>
</gpx>