diff options
Diffstat (limited to 'src/tests/mmftest.cpp')
| -rw-r--r-- | src/tests/mmftest.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tests/mmftest.cpp b/src/tests/mmftest.cpp index a534721..b45a9c4 100644 --- a/src/tests/mmftest.cpp +++ b/src/tests/mmftest.cpp @@ -118,7 +118,6 @@ main(int argc, char *argv[]) ing7.groupID = 1; ing7.group = "Fat & Liquids"; recipe.ingList.append( ing7 ); - check( importer, recipe ); RecipeList recipeList; @@ -127,16 +126,16 @@ main(int argc, char *argv[]) printf("Creating MMFExporter.\n"); MMFExporter exporter("not needed",".mmf"); - check( exporter, recipeList ); + const char *outfile = "mmftest_output.txt"; + check( outfile, exporter, recipeList ); printf("Successfully exported recipes to test.txt.\n"); printf("Creating MMFImporter to test exported recipes.\n"); MMFImporter importer2; - printf("Parsing test.txt.\n"); - TQStringList files2; files2 << "test.txt"; + printf("Parsing %s.\n", outfile); + TQStringList files2; files2 << TQString(outfile); importer2.parseFiles(files2); - TQFile::remove("test.txt"); check( importer2, recipe ); printf("Recipe export successful.\n"); |
