forked from mpusz/mp-units
feat: qp.quantity_from(PO) added
This commit is contained in:
@@ -1105,6 +1105,17 @@ static_assert((ground_level + 42 * m) - other_ground_level == -39 * m);
|
||||
static_assert((other_ground_level + 42 * m) - tower_peak == 81 * m);
|
||||
static_assert((tower_peak + 42 * m) - other_ground_level == 3 * m);
|
||||
|
||||
static_assert((mean_sea_level + 42 * m).quantity_from(ground_level) == 0 * m);
|
||||
static_assert((ground_level + 42 * m).quantity_from(mean_sea_level) == 84 * m);
|
||||
static_assert((tower_peak + 42 * m).quantity_from(ground_level) == 84 * m);
|
||||
static_assert((ground_level + 42 * m).quantity_from(tower_peak) == 0 * m);
|
||||
static_assert((tower_peak + 42 * m).quantity_from(mean_sea_level) == 126 * m);
|
||||
static_assert((mean_sea_level + 42 * m).quantity_from(tower_peak) == -42 * m);
|
||||
static_assert((other_ground_level + 42 * m).quantity_from(ground_level) == 123 * m);
|
||||
static_assert((ground_level + 42 * m).quantity_from(other_ground_level) == -39 * m);
|
||||
static_assert((other_ground_level + 42 * m).quantity_from(tower_peak) == 81 * m);
|
||||
static_assert((tower_peak + 42 * m).quantity_from(other_ground_level) == 3 * m);
|
||||
|
||||
static_assert(mean_sea_level - (ground_level + 42 * m) == -84 * m);
|
||||
static_assert(ground_level - (mean_sea_level + 42 * m) == 0 * m);
|
||||
static_assert(tower_peak - (ground_level + 42 * m) == 0 * m);
|
||||
|
||||
Reference in New Issue
Block a user