Skip to content

tests and refactorings for drifting_ships - #1158

Merged
ennorehling merged 6 commits into
developfrom
drifting
Aug 25, 2026
Merged

tests and refactorings for drifting_ships#1158
ennorehling merged 6 commits into
developfrom
drifting

Conversation

@ennorehling

Copy link
Copy Markdown
Member

This function had little to no test coverage, adding some.

export drifting_ships() so it can be tested
upgrade code style forand rename old drift_target test
add new test, not doing much yet.
drifting sets the SF_DRIFTING flag
drifting sets the SF_FISHING flag
Added MIN and MAX macro needed for testing
@ennorehling ennorehling self-assigned this Aug 25, 2026
@ennorehling ennorehling changed the title Tests and Refacorings for drifting_ships Tests and Refactorings for drifting_ships Aug 25, 2026
@ennorehling ennorehling changed the title Tests and Refactorings for drifting_ships tests and refactorings for drifting_ships Aug 25, 2026
@ennorehling
ennorehling merged commit 4512280 into develop Aug 25, 2026
1 check passed
@ennorehling
ennorehling deleted the drifting branch August 25, 2026 13:22
ennorehling added a commit that referenced this pull request Sep 4, 2026
* refactor drifting ships
export drifting_ships() so it can be tested
upgrade code style forand rename old drift_target test
add new test, not doing much yet.

* test: drifting ships cannot fish
drifting sets the SF_DRIFTING flag
drifting sets the SF_FISHING flag

* test: ships drift to nearby region

* test: under-crewed ship gets correct message

* delete old debug tests

* refactor: extract drift_reason
Added MIN and MAX macro needed for testing
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