Skip to content

🧪 Add comprehensive tests for NMEA GGA and ZDA decoders - #35

Merged
schwehr merged 1 commit into
mainfrom
tests/add-gga-decoder-tests-9172776886316595645
Sep 19, 2026
Merged

schwehr merged 1 commit into
mainfrom
tests/add-gga-decoder-tests-9172776886316595645

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

🎯 What: Added a missing test suite for src/nmea/gga.py and fixed an overly strict string length assertion in ggaDecode validation.

📊 Coverage:

  • zdaDecode (Valid / Invalid formats)
  • zdaEpochSeconds (Timestamp generation)
  • zdaDict2TIMESTAMP (Formatting)
  • ggaDecode (Valid formats across different hemispheres, age of differentials, Invalid formats)

✨ Result: Enhanced test coverage for the NMEA decoding module ensuring decoding accuracy for critical coordinates and timestamp data. In doing so, we spotted an edge-case bug with long GGA messages (NMEA 0183 spec allows up to 82 characters), which was promptly fixed.


PR created automatically by Jules for task 9172776886316595645 started by @schwehr

- Added `tests/test_nmea/test_gga.py` file.
- Included robust tests for `zdaDecode`, `ggaDecode`, `zdaEpochSeconds`, and `zdaDict2TIMESTAMP`.
- Verified latitude/longitude calculations and exception handling.
- Corrected strict length assertion (from 78 to 82) in `src/nmea/gga.py` to allow valid GGA strings with differentials.
- Formatted with `ruff`.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@schwehr
schwehr merged commit f6e88ef into main Sep 19, 2026
2 checks passed
@schwehr
schwehr deleted the tests/add-gga-decoder-tests-9172776886316595645 branch September 19, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant