Skip to content

057 — should handle decimal precision — verify rounding behavior

Description

Irrational calibration scale (1732 mm ≈ √3) on a 200×100 px rectangle ≈ 1,732 × 0,866 m = 1,50 m². Validates rounding/formatting.

Preconditions

  • Clean database and S3
  • User logged in with ADMIN and ACCOUNTING roles
  • Test PDF drawing file available

Steps

  1. Calibrate 1732 mm and draw 200×100 px rectangle — Expected: Shape on canvas
  2. Assert sides 1 732 / 866 mm; area 1,50 m² — Expected: Rounds to 1,50 despite irrational inputs
  • Spec: tests/e2e/tests/drawings.spec.ts