We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781e5b1 commit 364dda6Copy full SHA for 364dda6
tests/directory.cpp
@@ -113,17 +113,18 @@ TEST(directory, destructor) {
113
/// Tests directory move constructor
114
TEST(directory, move_constructor) {
115
directory fst = directory();
116
- directory snd = directory(std::move(fst));
+ fs::path path = fst;
117
118
- fst.~directory();
+ directory snd = directory(std::move(fst));
119
120
- EXPECT_FALSE(snd.path().empty());
+ EXPECT_TRUE(fs::equivalent(path, snd));
121
EXPECT_TRUE(fs::exists(snd));
122
}
123
124
/// Tests directory move assignment operator
125
TEST(directory, move_assignment) {
126
127
+
128
{
129
directory snd = directory();
130
0 commit comments