[Liblas-commits] hg-main-tree: a cut-and-paste error and an off-by-one error at t...

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Mar 25 11:59:19 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f3bcb01c42a5
changeset: 445:f3bcb01c42a5
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Fri Mar 25 08:59:12 2011 -0700
description:
a cut-and-paste error and an off-by-one error at the same time :-)

diffstat:

 test/unit/FauxReaderTest.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8ba6c2f564e0 -r f3bcb01c42a5 test/unit/FauxReaderTest.cpp
--- a/test/unit/FauxReaderTest.cpp	Fri Mar 25 09:55:29 2011 -0500
+++ b/test/unit/FauxReaderTest.cpp	Fri Mar 25 08:59:12 2011 -0700
@@ -74,7 +74,7 @@
         double z = data.getField<double>(i, offsetZ);
         boost::uint64_t t = data.getField<boost::uint64_t>(i, offsetT);
 
-        BOOST_CHECK_CLOSE(x, 2.0, (std::numeric_limits<double>::min)());
+        BOOST_CHECK_CLOSE(x, 1.0, (std::numeric_limits<double>::min)());
         BOOST_CHECK_CLOSE(y, 2.0, (std::numeric_limits<double>::min)());
         BOOST_CHECK_CLOSE(z, 3.0, (std::numeric_limits<double>::min)());
         BOOST_CHECK_EQUAL(t, i);


More information about the Liblas-commits mailing list