Unified line endings.

This commit is contained in:
Jesse Beder
2008-09-03 22:17:17 +00:00
parent 80db86e771
commit 5c0db0d21b
12 changed files with 60 additions and 60 deletions

View File

@@ -22,7 +22,7 @@ namespace Test
if(!Inout(files[i], verbose)) {
std::cout << "Inout test failed on " << files[i] << "\n";
passed = false;
} else
} else
std::cout << "Inout test passed: " << files[i] << "\n";
}
@@ -34,7 +34,7 @@ namespace Test
// outputs again, and makes sure that the two outputs are the same
bool Inout(const std::string& file, bool verbose)
{
std::ifstream fin(file.c_str());
std::ifstream fin(file.c_str());
try {
// read and output
@@ -71,14 +71,14 @@ namespace Test
fout << "---\n";
fout << secondTry << std::endl;
} catch(YAML::ParserException& e) {
std::cout << file << " (line " << e.line + 1 << ", col " << e.column + 1 << "): " << e.msg << std::endl;
if(verbose) {
std::cout << "Token queue:\n";
std::ifstream f(file.c_str());
YAML::Parser p(f);
p.PrintTokens(std::cout);
}
std::cout << file << " (line " << e.line + 1 << ", col " << e.column + 1 << "): " << e.msg << std::endl;
if(verbose) {
std::cout << "Token queue:\n";
std::ifstream f(file.c_str());
YAML::Parser p(f);
p.PrintTokens(std::cout);
}
return false;
}