Skip to content

Fix NOT_LTE locale messages reusing NOT_GTE's wording - #286

Merged
cinar merged 2 commits into
mainfrom
fix-284-not-lte-message
Sep 7, 2026
Merged

Fix NOT_LTE locale messages reusing NOT_GTE's wording#286
cinar merged 2 commits into
mainfrom
fix-284-not-lte-message

Conversation

@cinar

@cinar cinar commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • NOT_LTE was a copy-paste of NOT_GTE in every one of the 23 shipped locale files, so a failing lte:n check rendered as "cannot be less than n" (the opposite of what happened) instead of "cannot be greater than n"
  • Each locale's NOT_LTE message now borrows that same locale's existing NOT_MAX_LEN phrasing (which already correctly distinguishes greater-than from less-than)
  • Updated lte_test.go's message assertion to match

Fixes #284

Test plan

  • go test -cover ./... at root — 100% coverage maintained
  • go test ./locales/... — locale placeholder/coverage consistency test passes
  • task lint (gosec) — 0 issues

🤖 Generated with Claude Code

https://claude.ai/code/session_01CgPf2eG8h9xHh7kHFJ4eCs

The lte checker's NOT_LTE error message was copy-pasted from NOT_GTE
in every one of the 23 shipped locales, so a failing lte:n check
rendered as "cannot be less than n" instead of "cannot be greater
than n" -- describing the opposite failure. Each locale's NOT_LTE now
borrows that locale's existing NOT_MAX_LEN phrasing.

Fixes #284

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CgPf2eG8h9xHh7kHFJ4eCs
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ae20ebb) to head (9d4a890).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #286   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           86        86           
  Lines         1807      1807           
=========================================
  Hits          1807      1807           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cinar
cinar merged commit 685109c into main Sep 7, 2026
14 checks passed
@cinar
cinar deleted the fix-284-not-lte-message branch September 7, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

locales: en-US NOT_LTE message reuses NOT_GTE's text ("cannot be less than" for a <= check)

1 participant