aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 00:04:27 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-20 16:20:41 +0000
commitfcd8650e2aaa5f5e3de0c867f34da2656a3524f3 (patch)
tree8be37ea0d8377ecd6069721ac8f2103f54dc68a8
parent703a04dc1c45affc6100710c4c36f2623968a2fa (diff)
downloadpaludis-fcd8650e2aaa5f5e3de0c867f34da2656a3524f3.tar.gz
paludis-fcd8650e2aaa5f5e3de0c867f34da2656a3524f3.tar.xz
Use ASSERT rather than EXPECT to avoid dereffing bad iter
-rw-r--r--paludis/util/enum_iterator_TEST.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/util/enum_iterator_TEST.cc b/paludis/util/enum_iterator_TEST.cc
index 851edc9..dc7b73f 100644
--- a/paludis/util/enum_iterator_TEST.cc
+++ b/paludis/util/enum_iterator_TEST.cc
@@ -38,19 +38,19 @@ TEST(EnumIterator, Works)
{
EnumIterator<Numbers> n, n_end(last_number);
- EXPECT_TRUE(n != n_end);
+ ASSERT_TRUE(n != n_end);
EXPECT_EQ(one, *n);
++n;
- EXPECT_TRUE(n != n_end);
+ ASSERT_TRUE(n != n_end);
EXPECT_EQ(two, *n);
++n;
- EXPECT_TRUE(n != n_end);
+ ASSERT_TRUE(n != n_end);
EXPECT_EQ(three, *n);
++n;
- EXPECT_TRUE(n == n_end);
+ ASSERT_TRUE(n == n_end);
EXPECT_EQ(last_number, *n);
}