summaryrefslogtreecommitdiffstats
path: root/src/util/list-container-test.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2008-12-08 20:29:12 +0000
committertweenk <tweenk@users.sourceforge.net>2008-12-08 20:29:12 +0000
commit28ecf041ee20b4455b68ecfa31e988640d7230ab (patch)
tree68923c1ed78d7d0c4f5b5d38441bb9bfe9298e08 /src/util/list-container-test.h
parentMakes page-sizer be a little less eager to change the orientation of pages au... (diff)
downloadinkscape-28ecf041ee20b4455b68ecfa31e988640d7230ab.tar.gz
inkscape-28ecf041ee20b4455b68ecfa31e988640d7230ab.zip
"make check" now compiles and runs on Linux.
(bzr r6973)
Diffstat (limited to 'src/util/list-container-test.h')
-rw-r--r--src/util/list-container-test.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/list-container-test.h b/src/util/list-container-test.h
index c2db79fee..7765352eb 100644
--- a/src/util/list-container-test.h
+++ b/src/util/list-container-test.h
@@ -115,15 +115,16 @@ public:
void testContainerSize()
{
+ // max_size() and size() return ListContainer<>::size_type which is unsigned int
Inkscape::Util::ListContainer<int> empty;
TS_ASSERT(empty.empty());
- TS_ASSERT_EQUALS(static_cast<int>(empty.size()), 0);
+ TS_ASSERT_EQUALS(empty.size(), 0u);
int const a[] = { 1, 2, 3 };
Inkscape::Util::ListContainer<int> c_a(ARRAY_RANGE(a));
TS_ASSERT(!c_a.empty());
- TS_ASSERT_EQUALS(static_cast<int>(c_a.size()), 3);
+ TS_ASSERT_EQUALS(c_a.size(), 3u);
- TS_ASSERT_LESS_THAN(0, static_cast<int>(empty.max_size()));
+ TS_ASSERT_LESS_THAN(0u, empty.max_size());
}
void testAppending()