#include "cetlib/include.h"
#include <cstdlib>
#include <fstream>
#include <regex>
Go to the source code of this file.
Definition at line 80 of file include_test.cc.
87 std::ifstream
a(file_a);
91 ensure(2, result == expected_string(contents_a));
93 std::ifstream
b(file_b);
97 ensure(4, result == expected_string(contents_b));
99 std::ifstream
c(file_c);
103 ensure(6, result == expected_string(contents_c));
108 std::ifstream i(file_i);
113 result == expected_string(
"begin\n") + expected_string(contents_a) +
114 expected_string(
"end\n"));
119 std::ifstream j(file_j);
124 result == expected_string(
"begin\n") + expected_string(contents_a) +
125 expected_string(contents_b) + expected_string(
"end\n"));
130 std::ifstream
k(file_k);
135 result == expected_string(
"begin\n") + expected_string(contents_a) +
136 expected_string(contents_b) +
137 expected_string(contents_c) + expected_string(
"end\n"));
void ensure(int which, bool claim)
void include(std::istream &in, std::string &result)