labeled_ut.cpp 320 B

123456789101112
  1. #include "str.h"
  2. #include <library/cpp/testing/unittest/registar.h>
  3. Y_UNIT_TEST_SUITE(TLabeledOutputTest) {
  4. Y_UNIT_TEST(TBasicTest) {
  5. TStringStream out;
  6. int x = 3;
  7. out << LabeledOutput(x, 1, 2, 3 + 4);
  8. UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "x = 3, 1 = 1, 2 = 2, 3 + 4 = 7");
  9. }
  10. }