mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
test: {fmt} dependency check added in test_package
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
|
#include <units/format.h>
|
||||||
#include <units/physical/si/derived/speed.h>
|
#include <units/physical/si/derived/speed.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@@ -33,5 +34,5 @@ constexpr Speed auto avg_speed(Length auto d, Time auto t)
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using namespace units::physical::si::literals;
|
using namespace units::physical::si::literals;
|
||||||
std::cout << "Average speed = " << avg_speed(240._q_km, 2_q_h) << '\n';
|
std::cout << fmt::format("Average speed = {}", avg_speed(240._q_km, 2_q_h)) << '\n';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user