Skip to content

Commit

Permalink
Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 27, 2019
1 parent 4c40892 commit 02e34a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions io/Ilvis2Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ std::cerr << ".. read metadata!\n";
std::string line;

m_lineNum = 0;
std::cerr << "Filename = " << m_filename << "!\n";
m_stream.open(m_filename);
if (!m_stream)
throwError("Couldn't open file '" + filename + "'.");
m_layout = table.layout();
m_resample = false;
std::cerr << ".. reading lines -- header = " << HeaderSize << "!\n";
Expand Down
10 changes: 5 additions & 5 deletions test/unit/filters/MergeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ TEST(MergeTest, test5)
}

/**
**/
TEST(MergeTest, test6)
{
using namespace pdal;
Expand All @@ -82,17 +83,16 @@ TEST(MergeTest, test6)

std::ostringstream oss;
std::ostream& o = std::clog;
auto ctx = Utils::redirect(o, oss);
// auto ctx = Utils::redirect(o, oss);

mgr.execute();
std::string s = oss.str();
EXPECT_TRUE(s.find("inconsistent spatial references") != s.npos);
Utils::restore(o, ctx);
// std::string s = oss.str();
// EXPECT_TRUE(s.find("inconsistent spatial references") != s.npos);
// Utils::restore(o, ctx);

PointViewSet viewSet = mgr.views();

EXPECT_EQ(1u, viewSet.size());
PointViewPtr view = *viewSet.begin();
EXPECT_EQ(2130u, view->size());
}
**/

0 comments on commit 02e34a9

Please sign in to comment.