Skip to content

Optimized format number#712

Merged
SevereCloud merged 3 commits intoVKCOM:masterfrom
Connormiha:optimize-format-number
Jul 7, 2025
Merged

Optimized format number#712
SevereCloud merged 3 commits intoVKCOM:masterfrom
Connormiha:optimize-format-number

Conversation

@Connormiha
Copy link
Copy Markdown
Contributor

@Connormiha Connormiha commented Jul 3, 2025

Исправил не корректный формат у отрицательных чисел, когда -331999 форматируется как - 331 999. Так же оптимизировал алгоритм, путем избежания лишних массивов, slice, unshift.
Перед этим добавил тест, чтобы убедиться, что не сломал ничего.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.38%. Comparing base (77eee28) to head (2640e02).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #712      +/-   ##
==========================================
+ Coverage   44.60%   45.38%   +0.78%     
==========================================
  Files          36       36              
  Lines         686      683       -3     
  Branches      143      143              
==========================================
+ Hits          306      310       +4     
+ Misses        373      366       -7     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@SevereCloud SevereCloud merged commit d5baaba into VKCOM:master Jul 7, 2025
3 checks passed
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.

3 participants