wibble
1.1
wibble
empty.test.h
Go to the documentation of this file.
1
/* -*- C++ -*- (c) 2007 Petr Rockai <me@mornfall.net>
2
(c) 2007 Enrico Zini <enrico@enricozini.org> */
3
4
#include <
wibble/test.h
>
5
#include <
wibble/empty.h
>
6
7
using namespace
wibble
;
8
9
struct
TestEmpty
{
10
Test
basic
() {
11
Empty<int>
container
;
12
13
assert_eq
(
container
.size(), 0
u
);
14
15
Empty<int>::iterator
i =
container
.begin();
16
assert
(i ==
container
.end());
17
assert
(!(i !=
container
.end()));
18
}
19
};
wibble::Empty::iterator
Definition
empty.h:47
empty.h
wibble
Definition
amorph.h:17
TestEmpty
Definition
empty.test.h:9
TestEmpty::basic
Test basic()
Definition
empty.test.h:10
wibble::SanitizeReturn
Definition
amorph.h:30
test.h
assert_eq
#define assert_eq(x, y)
Definition
test.h:33
assert
#define assert(x)
Definition
test.h:30
Generated by
1.9.8