[Liblas-commits] hg-main-tree: turn on file-compare tests
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Apr 27 14:15:43 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/c1b03f8ef183
changeset: 679:c1b03f8ef183
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Apr 27 11:15:35 2011 -0700
description:
turn on file-compare tests
diffstat:
test/data/1.0_0.las | 0
test/data/1.0_0_nosrs.las | 0
test/data/1.0_1.las | 0
test/data/1.0_1_nosrs.las | 0
test/data/1.1_0.las | 0
test/data/1.1_0_nosrs.las | 0
test/data/1.1_1.las | 0
test/data/1.1_1_nosrs.las | 0
test/data/1.2_0.las | 0
test/data/1.2_0_nosrs.las | 0
test/data/1.2_1.las | 0
test/data/1.2_1_nosrs.las | 0
test/data/1.2_2.las | 0
test/data/1.2_2_nosrs.las | 0
test/data/1.2_3.las | 0
test/data/1.2_3_nosrs.las | 0
test/unit/LasWriterTest.cpp | 6 +++---
test/unit/LiblasWriterTest.cpp | 22 +++++++++++-----------
18 files changed, 14 insertions(+), 14 deletions(-)
diffs (91 lines):
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.0_0.las
Binary file test/data/1.0_0.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.0_0_nosrs.las
Binary file test/data/1.0_0_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.0_1.las
Binary file test/data/1.0_1.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.0_1_nosrs.las
Binary file test/data/1.0_1_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.1_0.las
Binary file test/data/1.1_0.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.1_0_nosrs.las
Binary file test/data/1.1_0_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.1_1.las
Binary file test/data/1.1_1.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.1_1_nosrs.las
Binary file test/data/1.1_1_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_0.las
Binary file test/data/1.2_0.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_0_nosrs.las
Binary file test/data/1.2_0_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_1.las
Binary file test/data/1.2_1.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_1_nosrs.las
Binary file test/data/1.2_1_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_2.las
Binary file test/data/1.2_2.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_2_nosrs.las
Binary file test/data/1.2_2_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_3.las
Binary file test/data/1.2_3.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/data/1.2_3_nosrs.las
Binary file test/data/1.2_3_nosrs.las has changed
diff -r f51e325cf656 -r c1b03f8ef183 test/unit/LasWriterTest.cpp
--- a/test/unit/LasWriterTest.cpp Wed Apr 27 11:15:17 2011 -0700
+++ b/test/unit/LasWriterTest.cpp Wed Apr 27 11:15:35 2011 -0700
@@ -160,10 +160,10 @@
Utils::closeFile(ofs);
- bool filesSame = Support::compare_files("temp.las", Support::datapath(refFile));
- //BOOST_CHECK(filesSame);
+ const bool filesSame = Support::compare_files("temp.las", Support::datapath(refFile));
+ BOOST_CHECK(filesSame);
- //if (filesSame)
+ if (filesSame)
{
Utils::deleteFile("temp.las");
}
diff -r f51e325cf656 -r c1b03f8ef183 test/unit/LiblasWriterTest.cpp
--- a/test/unit/LiblasWriterTest.cpp Wed Apr 27 11:15:17 2011 -0700
+++ b/test/unit/LiblasWriterTest.cpp Wed Apr 27 11:15:35 2011 -0700
@@ -156,10 +156,10 @@
Utils::closeFile(ofs);
- bool filesSame = Support::compare_files("temp.las", Support::datapath(refFile));
- //BOOST_CHECK(filesSame);
+ const bool filesSame = Support::compare_files("temp.las", Support::datapath(refFile));
+ BOOST_CHECK(filesSame);
- //if (filesSame)
+ if (filesSame)
{
Utils::deleteFile("temp.las");
}
@@ -169,16 +169,16 @@
BOOST_AUTO_TEST_CASE(test_different_formats)
{
- test_a_format("1.0_0.las", 1, 0, 0);
- test_a_format("1.0_1.las", 1, 0, 1);
+ test_a_format("1.0_0_nosrs.las", 1, 0, 0);
+ test_a_format("1.0_1_nosrs.las", 1, 0, 1);
- test_a_format("1.1_0.las", 1, 1, 0);
- test_a_format("1.1_1.las", 1, 1, 1);
+ test_a_format("1.1_0_nosrs.las", 1, 1, 0);
+ test_a_format("1.1_1_nosrs.las", 1, 1, 1);
- test_a_format("1.2_0.las", 1, 2, 0);
- test_a_format("1.2_1.las", 1, 2, 1);
- test_a_format("1.2_2.las", 1, 2, 2);
- test_a_format("1.2_3.las", 1, 2, 3);
+ test_a_format("1.2_0_nosrs.las", 1, 2, 0);
+ test_a_format("1.2_1_nosrs.las", 1, 2, 1);
+ test_a_format("1.2_2_nosrs.las", 1, 2, 2);
+ test_a_format("1.2_3_nosrs.las", 1, 2, 3);
return;
}
More information about the Liblas-commits
mailing list