aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/labeled_ut.cpp
blob: 12d0dc50040c7053062e854afe74b2b206fee675 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "str.h"

#include <library/cpp/testing/unittest/registar.h>

Y_UNIT_TEST_SUITE(TLabeledOutputTest) {
    Y_UNIT_TEST(TBasicTest) {
        TStringStream out;
        int x = 3;
        out << LabeledOutput(x, 1, 2, 3 + 4);
        UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "x = 3, 1 = 1, 2 = 2, 3 + 4 = 7");
    }
}