Skip to content

Commit dc27afb

Browse files
author
Jimmy Jia
committed
Test construction of variants from vectors
For #58
1 parent 4ae7596 commit dc27afb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/varianttestvector.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ void checkVec(const std::vector<T>& vector, bool convertible = true)
5555
v = std::move(vec);
5656
CHECK( v == expected );
5757
}
58+
59+
{
60+
Variant v(vector);
61+
CHECK( v == expected );
62+
}
5863
}
5964

6065
template <typename T>

0 commit comments

Comments
 (0)