Skip to content

Add unit tests for core business logic #45

@CrowdTypical

Description

@CrowdTypical

Description

The test file (test/widget_test.dart) is a placeholder with no real tests. Core business logic should be unit-tested.

Key functions to test

  • BillService.computeNetBalance() — core balance computation, edge cases with many bills
  • BillService.computeRunningBalances() — running totals in timeline
  • isNewerVersion() — version comparison (e.g. v1.0.3 vs v1.0.10, v2.0.0 vs v1.9.9)
  • Bill.fromMap() / Group.fromMap() — null/missing field handling, malformed data
  • AuthService.validatePassword() — boundary cases (exactly 8 chars, missing number, etc.)
  • isValidEmail() — malformed inputs, edge cases

Priority

High — these are untested paths that handle money and authentication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions