Refactor initializer_list tests to avoid code duplication and add some missing initializer_list overload tests

This commit is contained in:
Ion Gaztañaga
2015-02-27 19:24:46 +01:00
parent 90b3af4229
commit 7239c8e262
9 changed files with 132 additions and 105 deletions
+6 -1
View File
@@ -121,7 +121,12 @@ bool test_support_for_initializer_list()
if(sl != expected_list)
return false;
}
{
slist<int> sl({ 1, 2 }, slist<int>::allocator_type());
sl = il;
if (sl != expected_list)
return false;
}
{
slist<int> sl = {4, 5};
sl.assign(il);