00001 /* -*- C++ -*- (c) 2007 Petr Rockai <me@mornfall.net> 00002 (c) 2007 Enrico Zini <enrico@enricozini.org> */ 00003 00004 #include <wibble/test.h> 00005 #include <wibble/empty.h> 00006 00007 using namespace wibble; 00008 00009 struct TestEmpty { 00010 Test basic() { 00011 Empty<int> container; 00012 00013 assert_eq(container.size(), 0u); 00014 00015 Empty<int>::iterator i = container.begin(); 00016 assert(i == container.end()); 00017 assert(!(i != container.end())); 00018 } 00019 };