aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/labeled_ut.cpp
blob: f30fdebe8bbaf7f515e68ef26840aed7ea0f413b (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");
    }
}