Skip to content

Refactor unit traits in mass, power, and time headers; add comprehens…#4

Merged
VPRamon merged 3 commits intomainfrom
impl-formating
Feb 26, 2026
Merged

Refactor unit traits in mass, power, and time headers; add comprehens…#4
VPRamon merged 3 commits intomainfrom
impl-formating

Conversation

@VPRamon
Copy link
Member

@VPRamon VPRamon commented Feb 26, 2026

…ive formatting tests

  • Removed redundant comments and improved formatting consistency in mass.hpp, power.hpp, and time.hpp.
  • Updated UnitTraits specializations to follow a consistent style.
  • Introduced a new test file test_formatting.cpp to validate quantity string formatting, covering various scenarios including default, fixed, and scientific formats.
  • Ensured that formatting tests mirror Rust's formatting capabilities, enhancing the robustness of the quantity representation.

…ive formatting tests

- Removed redundant comments and improved formatting consistency in `mass.hpp`, `power.hpp`, and `time.hpp`.
- Updated `UnitTraits` specializations to follow a consistent style.
- Introduced a new test file `test_formatting.cpp` to validate quantity string formatting, covering various scenarios including default, fixed, and scientific formats.
- Ensured that formatting tests mirror Rust's formatting capabilities, enhancing the robustness of the quantity representation.
@VPRamon VPRamon self-assigned this Feb 26, 2026
VPRamon added 2 commits February 26, 2026 14:57
- Added SPDX license identifier and copyright notice to power.hpp and time.hpp files.
- Reformatted UnitTraits specializations for various power and time units for consistency.
- Introduced a new script run-ci-locally.sh to facilitate local CI testing, mirroring GitHub Actions workflow.
- Updated test_formatting.cpp to improve comment formatting and maintain consistency in code style.
@VPRamon VPRamon merged commit a5821e1 into main Feb 26, 2026
3 checks passed
@VPRamon VPRamon deleted the impl-formating branch February 26, 2026 15:56
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.

1 participant