Commit 7d53ed0c authored by Davis King's avatar Davis King

The any unit test was broken in a way which prevented it from actually running.

This has been fixed.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404121
parent c547e7bc
......@@ -63,14 +63,14 @@ namespace
DLIB_TEST(a.contains<double>() == false);
DLIB_TEST(any_cast<int>(a) == 4);
bool error = true;
bool error = false;
try
{
any_cast<double>(a);
}
catch (bad_any_cast&)
{
error = false;
error = true;
}
DLIB_TEST(error);
......@@ -93,14 +93,14 @@ namespace
a.clear();
DLIB_TEST(a.is_empty());
error = true;
error = false;
try
{
any_cast<string>(a);
}
catch (bad_any_cast&)
{
error = false;
error = true;
}
DLIB_TEST(error);
......@@ -120,7 +120,7 @@ namespace
void perform_test (
)
{
void run_test();
run_test();
}
} a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment