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