Skip to content

Commit

Permalink
TEst.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jul 31, 2019
1 parent aa935ec commit 4452484
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions test/unit/apps/TranslateTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,15 @@ TEST(TranslateTest, t2)
std::string in = Support::datapath("las/autzen_trim.las");
std::string out = Support::temppath("out.las");

std::string json = R"(
[
{
\"type\": \"filters.stats\"
},
{
\"type\": \"filters.range\",
\"limits\": \"Z[0:100]\"
}
]
std::string json = R"([\
{\
\"type\": \"filters.stats\"\
},\
{\
\"type\": \"filters.range\",\
\"limits\": \"Z[0:100]\"\
}\
]\
)";

std::cerr << "Json input = " << json << "!\n";
Expand Down Expand Up @@ -123,11 +122,11 @@ std::cerr << "Json input = " << json << "!\n";
output), 0);

// Check that we work with an input and an output.
json = R"(\
[\
\"badinput.las\",\
\"badoutput.las\"\
]\
json = R"(
[
\"badinput.las\",
\"badoutput.las\"
]
)";
EXPECT_EQ(runTranslate(in + " " + out + " --json=\"" + json + "\"",
output), 0);
Expand Down

0 comments on commit 4452484

Please sign in to comment.