Skip to content

Commit e613c49

Browse files
committed
Move issue-9 to regular test
1 parent d253771 commit e613c49

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

test/any.t.cpp

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,17 @@ CASE( "any: Allows to copy-assign from literal value" )
339339
CASE( "any: Allows to copy-assign from value" )
340340
{
341341
const int i = 7;
342+
std::string s = "42";
343+
342344
any a;
343345

344346
a = i;
345347

346348
EXPECT( any_cast<int>( a ) == i );
349+
350+
a = s;
351+
352+
EXPECT( any_cast<std::string>( a ) == s );
347353
}
348354

349355
CASE( "any: Allows to move-assign from value (C++11)" )
@@ -673,18 +679,4 @@ CASE( "tweak header: reads tweak header if supported " "[tweak]" )
673679

674680
// Issues:
675681

676-
CASE( "any: operator=( T && value ) " "[.issue-9]" )
677-
{
678-
#if any_CPP11_OR_GREATER
679-
any var;
680-
std::string s = "42";
681-
682-
var = s;
683-
684-
EXPECT( any_cast<std::string>( var ) == s );
685-
#else
686-
EXPECT( !!"any: issue-9 only occurs with C++11 and later (no C++11)" );
687-
#endif
688-
}
689-
690682
// end of file

0 commit comments

Comments
 (0)