Skip to content

Add Negative Amount Tests for Insurance create_policy #76

@Baskarayelu

Description

@Baskarayelu

Description:

Ensure create_policy rejects zero or negative monthly_premium and coverage_amount. Add explicit tests (even before full test suite) so these validations are not removed by mistake.

Test Cases

  • monthly_premium == 0 panics
  • monthly_premium < 0 panics
  • coverage_amount == 0 panics
  • coverage_amount < 0 panics

Acceptance Criteria

  • All four cases tested and passing

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions