Stabilize beta release with warning cleanup and edge-case fixes

This commit is contained in:
Trey t
2026-02-22 13:18:14 -06:00
parent fddea81e36
commit ec2bbb4764
55 changed files with 712 additions and 315 deletions

View File

@@ -48,6 +48,14 @@ struct PollErrorTests {
#expect(error.errorDescription!.lowercased().contains("owner"))
}
/// - Expected Behavior: notVoteOwner explains vote ownership requirement
@Test("errorDescription: notVoteOwner mentions owner")
func errorDescription_notVoteOwner() {
let error = PollError.notVoteOwner
#expect(error.errorDescription != nil)
#expect(error.errorDescription!.lowercased().contains("owner"))
}
/// - Expected Behavior: networkUnavailable explains connection issue
@Test("errorDescription: networkUnavailable mentions connection")
func errorDescription_networkUnavailable() {
@@ -83,6 +91,7 @@ struct PollErrorTests {
.pollNotFound,
.alreadyVoted,
.notPollOwner,
.notVoteOwner,
.networkUnavailable,
.encodingError,
.unknown(NSError(domain: "", code: 0))
@@ -102,6 +111,7 @@ struct PollErrorTests {
.pollNotFound,
.alreadyVoted,
.notPollOwner,
.notVoteOwner,
.networkUnavailable,
.encodingError
]