9#ifndef DRYCHEM_CPP_UNITS_TESTS_TESTOPERATORS_TESTSTREAMOPERATORS_HPP
10#define DRYCHEM_CPP_UNITS_TESTS_TESTOPERATORS_TESTSTREAMOPERATORS_HPP
15#include <gtest/gtest.h>
22GTEST_TEST(testStreamOperators, overloadedStreamOperatorPrintsMagnitudeToStandardOut)
24 testing::internal::CaptureStdout();
30 std::cout << length <<
" m / " << time <<
" s = " << vel <<
" m/s" << std::endl;
32 std::string output = testing::internal::GetCapturedStdout();
33 ASSERT_EQ(output,
"5 m / 2.5 s = 2 m/s\n");
Definition physicalQuantities.hpp:94
Definition basicMath.hpp:17
PhysicalQuantity< Dimensionality< 1, 0, -1 > > Velocity
Definition physicalQuantities.hpp:36
PhysicalQuantity< Dimensionality< 0, 0, 1 > > Time
Definition physicalQuantities.hpp:32
PhysicalQuantity< Dimensionality< 1, 0, 0 > > Length
Definition physicalQuantities.hpp:37
GTEST_TEST(testStreamOperators, overloadedStreamOperatorPrintsMagnitudeToStandardOut)
Definition testStreamOperators.hpp:22