| changeset 17 | 563aea5eba06 |
| parent 11 | cfe800908837 |
1.1 --- a/tests/test-inlinelist.cpp Thu Aug 29 23:51:30 2013 -0700 1.2 +++ b/tests/test-inlinelist.cpp Sat Aug 31 19:52:41 2013 -0700 1.3 @@ -117,6 +117,13 @@ 1.4 iter++; 1.5 if (!check(iter == list.end(), "iterator should have ended")) 1.6 return false; 1.7 + 1.8 + iter = list.begin(); 1.9 + while (iter != list.end()) 1.10 + iter = list.erase(iter); 1.11 + 1.12 + if (!check(list.begin() == list.end(), "list should be empty")) 1.13 + return false; 1.14 } 1.15 1.16 return true;