empty.test.h
Go to the documentation of this file.
/* -*- C++ -*- (c) 2007 Petr Rockai <me@mornfall.net>
(c) 2007 Enrico Zini <enrico@enricozini.org> */
#include <wibble/test.h>
#include <wibble/empty.h>
using namespace wibble;
struct TestEmpty {
Test basic() {
Empty<int> container;
assert_eq(container.size(), 0u);
Empty<int>::iterator i = container.begin();
assert(i == container.end());
assert(!(i != container.end()));
}
};
TestEmpty::basic
Test basic()
Definition: empty.test.h:10
wibble::Empty::size
size_t size() const
Definition: empty.h:57
Test
void Test
Definition: test.h:178
wibble::Empty
Definition: empty.h:31
TestEmpty
Definition: empty.test.h:9
test.h
assert_eq
#define assert_eq(x, y)
Definition: test.h:33
assert
#define assert(x)
Definition: test.h:30
wibble::Empty::iterator
Definition: empty.h:46
wibble::Empty::begin
iterator begin()
Definition: empty.h:59
wibble::Empty::end
iterator end()
Definition: empty.h:60
wibble
Definition: amorph.h:17
empty.h