* tests/core/other/box_runstart_piter.cc,
* tests/geom/translate.cc: Fix test.
---
milena/ChangeLog | 7 +++++++
milena/tests/core/other/box_runstart_piter.cc | 5 +++--
milena/tests/geom/translate.cc | 5 +++--
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 5f01108..4a45ec9 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2010-07-01 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Fix a few tests.
+
+ * tests/core/other/box_runstart_piter.cc,
+ * tests/geom/translate.cc: Fix test.
+
+2010-07-01 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Update generated images included in the doc.
* doc/figures/fill-subdomain-3.ppm,
diff --git a/milena/tests/core/other/box_runstart_piter.cc
b/milena/tests/core/other/box_runstart_piter.cc
index d4662fc..d3009df 100644
--- a/milena/tests/core/other/box_runstart_piter.cc
+++ b/milena/tests/core/other/box_runstart_piter.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -35,7 +36,7 @@ int main()
box_runstart_piter<point2d> p(b);
unsigned i = 0;
for_all(p)
- mln_assertion(p == point2d(i, 0));
+ mln_assertion(p == point2d(i++, 0));
mln_assertion(p.run_length() == 3);
}
diff --git a/milena/tests/geom/translate.cc b/milena/tests/geom/translate.cc
index 2efd753..f2abd14 100644
--- a/milena/tests/geom/translate.cc
+++ b/milena/tests/geom/translate.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -45,7 +46,7 @@ int main()
box2d b = make::box2d(-2, -2, 2, 2);
image2d<bool>
ima_rot = geom::translate(ima,
- -1 * ima.domain().center().to_vec(),
+ -1 * ima.domain().pcenter().to_vec(),
literal::zero, b);
mln_piter_(image2d<bool>)
--
1.5.6.5
Show replies by date