| 44 | using namespace pdal; |
| 45 | |
| 46 | TEST(TextWriterTest, t1) |
| 47 | { |
| 48 | std::string outfile(Support::temppath("utm17.txt")); |
| 49 | std::string infile(Support::datapath("text/utm17_1.txt")); |
| 50 | |
| 51 | FileUtils::deleteFile(outfile); |
| 52 | |
| 53 | TextReader r; |
| 54 | Options ro; |
| 55 | |
| 56 | ro.add("filename", infile); |
| 57 | r.setOptions(ro); |
| 58 | |
| 59 | TextWriter w; |
| 60 | Options wo; |
| 61 | |
| 62 | wo.add("filename", outfile); |
| 63 | wo.add("order", "X,Y,Z"); |
| 64 | wo.add("quote_header", false); |
| 65 | wo.add("precision", 2); |
| 66 | w.setOptions(wo); |
| 67 | w.setInput(r); |
| 68 | |
| 69 | PointTable t; |
| 70 | |
| 71 | w.prepare(t); |
| 72 | w.execute(t); |
| 73 | |
| 74 | EXPECT_EQ(Support::compare_text_files(infile, outfile), true); |
| 75 | } |
| 76 | |
| 77 | TEST(TextWriterTest, t2) |
| 78 | { |
nothing calls this directly
no test coverage detected