diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-06-30 18:45:07 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-06-30 18:45:07 +0000 |
| commit | 32c98f8ae06f2ceb8fc020d5a63662a07c2d63fb (patch) | |
| tree | 806d827f52e538ab0ef67d4aa7ede062554cdaff /android-app/app/src/test/kotlin/org/terst | |
| parent | 23163f67deb71f4cc4e53d670254a45b59fd4f6b (diff) | |
feat(fishing): FishingModeManager with target zone computation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/test/kotlin/org/terst')
| -rw-r--r-- | android-app/app/src/test/kotlin/org/terst/nav/ui/fishing/FishingModeManagerTest.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/android-app/app/src/test/kotlin/org/terst/nav/ui/fishing/FishingModeManagerTest.kt b/android-app/app/src/test/kotlin/org/terst/nav/ui/fishing/FishingModeManagerTest.kt new file mode 100644 index 0000000..7840b52 --- /dev/null +++ b/android-app/app/src/test/kotlin/org/terst/nav/ui/fishing/FishingModeManagerTest.kt @@ -0,0 +1,16 @@ +package org.terst.nav.ui.fishing + +import org.junit.Assert.* +import org.junit.Test + +class FishingModeManagerTest { + @Test fun `target zone computed from current bearing and temp break`() { + val mgr = FishingModeManager() + val target = mgr.computeTarget( + boatLat = 19.5, boatLon = -156.0, boatCogDeg = 270.0, + tempC = 25.0, currentKt = 1.2, currentDirDeg = 180.0 + ) + assertNotNull(target) + assertTrue(target!!.distanceNm in 0.5..20.0) + } +} |
