olena: olena-2.0-849-g119d678 Milena: Simplify tests/pw/value.cc.

* tests/pw/value.cc: Here. --- milena/ChangeLog | 6 ++++++ milena/tests/pw/value.cc | 17 ++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index c0e8e2b..5280cb8 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,3 +1,9 @@ +2014-04-02 Roland Levillain <roland@lrde.epita.fr> + + Milena: Simplify tests/pw/value.cc. + + * tests/pw/value.cc: Here. + 2014-02-24 Roland Levillain <roland@lrde.epita.fr> Simplify the implementation of mln::fun::vv2v::algebra::vec. diff --git a/milena/tests/pw/value.cc b/milena/tests/pw/value.cc index 82ca1fa..375fee7 100644 --- a/milena/tests/pw/value.cc +++ b/milena/tests/pw/value.cc @@ -1,4 +1,5 @@ -// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE) +// Copyright (C) 2007, 2008, 2009, 2014 EPITA Research and Development +// Laboratory (LRDE). // // This file is part of Olena. // @@ -23,11 +24,12 @@ // exception does not however invalidate any other reasons why the // executable file might be covered by the GNU General Public License. +/// \brief Exercise mln::pw::value. + #include <mln/core/image/image2d.hh> #include <mln/data/fill.hh> #include <mln/pw/all.hh> - int main() { using namespace mln; @@ -37,13 +39,6 @@ int main() point2d p(1, 1); ima(p) = 51; - mln_assertion( (pw::value(ima) == pw::cst(51))(p) == true ); - mln_assertion( (pw::value(ima) == 51)(p) == true ); - -// { -// image2d<float> imaf(3,3); -// imaf(p) = 51; -// mln_assertion(((pw::value(ima) + pw::value(imaf))(p) / 20) - 5.1 < 0.00001); -// } - + mln_assertion((pw::value(ima) == pw::cst(51))(p)); + mln_assertion((pw::value(ima) == 51)(p)); } -- 1.7.10.4
participants (1)
-
Roland Levillain