aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/list_ut.cpp
blob: f9e6a5cb6b8b26c2b89441ebf6b53eeb866d7f7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "list.h"

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

Y_UNIT_TEST_SUITE(TYListSuite) {
    Y_UNIT_TEST(TestInitializerList) {
        TList<int> l = {3, 42, 6};
        TList<int> expected;
        expected.push_back(3);
        expected.push_back(42);
        expected.push_back(6);
        UNIT_ASSERT_VALUES_EQUAL(l, expected);
    }
} // Y_UNIT_TEST_SUITE(TYListSuite)