summaryrefslogtreecommitdiffstats
path: root/util/folder/tempdir_ut.cpp
blob: 46330b760a2c97c4e833ad3a2a79b097f41bba8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "tempdir.h"

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

#include <util/generic/maybe.h>

Y_UNIT_TEST_SUITE(TTempDirTests) {
    Y_UNIT_TEST(TestMoveCtor) {
        TMaybe<TTempDir> dir{TTempDir::NewTempDir(GetWorkPath())};
        UNIT_ASSERT_NO_EXCEPTION(dir.Clear());
    }
} // Y_UNIT_TEST_SUITE(TTempDirTests)