test: {fmt} dependency check added in test_package

This commit is contained in:
Mateusz Pusz
2020-12-22 00:20:23 +01:00
parent 707f1816a4
commit 310f344598

View File

@@ -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';
} }