blob: da3b99fdba4968bb77f220c7d15e568d74f06ed2 (
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");
}
}
|