Mateusz Pusz
dd5854a965
refactor(test): drop the legacy character enum from the test suite
...
Replace `using enum quantity_character_legacy` plus bare character names in the ISQ/HEP
tests with local `quantity_character` constants (`scalar`, `complex_scalar`, `vector`,
`tensor`) built from `quantity_tensor_order` / `quantity_field`, and switch the
`RepresentationOf` / `QUANTITY_SPEC_` character arguments in the concept and quantity-spec
tests to the bare-axis spelling. `real_scalar` is renamed to `scalar` for consistency with
the order-named constants. `apparent_power` (derived from the complex `complex_power`)
pins `quantity_field::real`, matching the library definition.
This removes the final legacy-enum usage from the repository.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-25 00:10:20 +02:00
Mateusz Pusz
cffde42bbd
feat: quantity_spec conversions improved
2026-05-24 21:55:39 +02:00
Mateusz Pusz
f0a0b977c0
test: non_negative tests extended
2026-05-14 11:37:49 +02:00
Mateusz Pusz
4731d5711d
test: newtonian_gravitational_potential_energy tests added
2026-05-14 11:01:26 +02:00
Mateusz Pusz
150f96e94a
style: pre-commit
2026-05-01 13:16:42 +02:00
Mateusz Pusz
83035c1a8a
feat: enhance conversion checks for named quantities with equations
2026-05-01 11:42:13 +02:00
Mateusz Pusz
b12fe30925
feat: non-negativity can't be determined from the equation
2026-05-01 11:41:12 +02:00
Mateusz Pusz
a1e1e7cb21
feat: non-negative quantities support added
...
Resolves #468
2026-04-06 22:51:42 +02:00
Mateusz Pusz
16cdd23e04
style: pre-commit rules updated
2026-03-27 22:49:05 +00:00
Mateusz Pusz
84c773b82e
test: unused work object removed
2026-01-29 17:45:57 +01:00
Mateusz Pusz
89070f79c6
test: gravitational_potential_energy definition in tests no match ISQ
2026-01-28 22:37:51 +01:00
Mateusz Pusz
2d2b92aae9
test: additional concepts tests for quantity spec added
2025-12-20 12:46:28 +01:00
Mateusz Pusz
e99cab98c9
test: duplicated dimensionless tests removed
2025-12-20 12:44:50 +01:00
Mateusz Pusz
7a010619fe
style: clang-format-20
2025-08-23 17:45:07 +02:00
Mateusz Pusz
47a82f466c
refactor: scalar and complex renamed to real_scalar and complex_scalar respectively + concepts refactoring + electromagnetism fixes
2025-02-11 17:26:19 +01:00
Mateusz Pusz
06cbfae3b3
feat: quantity_spec conversions improved
2024-12-28 14:02:03 +01:00
Mateusz Pusz
623930ccee
refactor: convertible_impl refactored to convertible + results caching
2024-11-16 22:11:59 +01:00
Mateusz Pusz
6896d8e086
fix: velocity is now defined in terms of displacement instead of position_vector
2024-11-06 18:46:01 +01:00
Mateusz Pusz
2892fd83b0
test: more get_common_quantity_spec tests added
2024-11-05 08:06:45 +01:00
Mateusz Pusz
cc25f9b0de
refactor: get_complexity refactored to returned maximum complexity of an element (instead of the sum of elements)
2024-11-04 19:13:48 +01:00
Mateusz Pusz
467d9a5558
refactor: get_complexity refactored to be 0-based and not account for a number of arguments in a list
2024-11-04 18:04:01 +01:00
Mateusz Pusz
73a003d0ef
test: additional kind to quantity spec convertibility test added
2024-11-04 18:02:37 +01:00
Mateusz Pusz
dcab80525d
refactor: 💥 common_XXX() functions renamed to get_common_XXX()
...
This is needed to release a name for `common_unit` type that is coming soon.
2024-09-24 09:36:59 +02:00
Mateusz Pusz
45013f6752
fix: inline restored for non-template constexpr global variables
2024-09-05 10:06:43 +02:00
Mateusz Pusz
2e840cfdb4
refactor: Repetitive inline constexpr removed as no longer needed
...
Not needed anymore as stated in cplusplus/draft#4601
2024-09-05 08:43:36 +02:00
Mateusz Pusz
b870b85c25
feat: import std; support added
...
Resolves #595
2024-07-16 17:36:00 +02:00
Mateusz Pusz
5f67523a8a
feat: 💥 from now on quantity specifications have to be marked as final
2024-06-13 12:05:16 +02:00
Mateusz Pusz
6aa848a456
feat: 💥 from now on dimnensions have to be marked as final
2024-06-12 14:17:32 +02:00
Mateusz Pusz
c69bd140b2
refactor: all units made final
2024-06-06 13:18:45 +02:00
Mateusz Pusz
1ea2df9209
refactor: most std::remove_const_t removed and some replaced with the GCC-specific workaround
2024-06-01 09:12:16 +02:00
Mateusz Pusz
c066104af7
refactor: 💥 framework.h introduced + IWYU
2024-04-24 21:09:29 +02:00
Mateusz Pusz
5ca9168381
feat: proper exports implemented for C++ modules
2024-02-23 21:09:17 +01:00
Mateusz Pusz
1afb3d5c18
Merge branch 'master' of github.com:mpusz/units
2024-02-20 19:59:53 +01:00
Mateusz Pusz
cd61e077b7
test: a few quantity_spec tests added
2024-02-20 19:59:46 +01:00
Mateusz Pusz
f81e9bdcfe
refactor: kind_of_ refactored to take a type to improve error messages
2024-02-20 19:49:22 +01:00
Mateusz Pusz
2e609d9d6d
fix: add missing unit test changes
2024-02-13 21:14:00 +01:00
Mateusz Pusz
0eaf6e2e56
refactor: modules support redesigned
2024-01-06 08:51:01 +01:00