Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Testing

Unit tests

cargo test

31 tests covering:

  • Mortgage calculation: standard and zero-rate scenarios
  • Area/layout extraction: parsing Sreality listing names
  • Czech tax: gross-to-net wage conversion
  • Savings calculator: various input combinations
  • Living expenses: regional lookup
  • Linear regression: statistical functions
  • Forecast: slope calculation and extrapolation
  • Scenario: input validation, computation, sorting, severity colors

Linting

cargo clippy -- -D warnings

Must pass clean (zero warnings as errors).

Formatting

cargo fmt --check

Uses project rustfmt.toml settings:

  • max_width = 100
  • use_small_heuristics = "Max"