Added a (recursive) ordering, so we have a canonical output that we can compare.

This commit is contained in:
beder
2008-07-06 00:06:36 +00:00
parent 3cad5a2ed0
commit 1acc0e4982
15 changed files with 217 additions and 51 deletions

View File

@@ -15,6 +15,7 @@ namespace YAML
std::vector <std::string> files;
files.push_back("tests/simple.yaml");
files.push_back("tests/mixed.yaml");
files.push_back("tests/scalars.yaml");
bool passed = true;
for(unsigned i=0;i<files.size();i++) {
@@ -63,7 +64,7 @@ namespace YAML
if(firstTry == secondTry)
return true;
std::ofstream fout("out.yaml");
std::ofstream fout("tests/out.yaml");
fout << "---\n";
fout << firstTry << std::endl;
fout << "---\n";