list_ut.cpp 356 B

1234567891011121314
  1. #include "list.h"
  2. #include <library/cpp/testing/unittest/registar.h>
  3. Y_UNIT_TEST_SUITE(TYListSuite) {
  4. Y_UNIT_TEST(TestInitializerList) {
  5. TList<int> l = {3, 42, 6};
  6. TList<int> expected;
  7. expected.push_back(3);
  8. expected.push_back(42);
  9. expected.push_back(6);
  10. UNIT_ASSERT_VALUES_EQUAL(l, expected);
  11. }
  12. }