[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] wx_test_validate_output.cpp
From: |
Greg Chicares |
Subject: |
[lmi] wx_test_validate_output.cpp |
Date: |
Sun, 25 Jan 2015 01:02:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
// ERASE THIS BLOCK COMMENT WHEN IMPLEMENTATION COMPLETE. The block
// comment below changes the original specification, and does not
// yet describe the present code. Desired changes:
// - Remove code corresponding to B and D above.
// - Then remove the entire /*...*/ comment block above (its
// remaining contents are incorporated in the first two
// paragraphs below).
// - Code the other tests specified below.
// Consider renaming this file to 'wx_test_spreadsheet_output.cpp'
// e.g., because its purpose is to test *spreadsheet* output only.
// To us at least, to "validate" a file suggests checking its
// contents, while "MEC output" suggests a '.mec.xml' file and
// "illustration output" most likely means a PDF file, so names like
// validate_output_illustration
// validate_output_mec
// suggest something quite different from what those functions do.
/// Test creation and naming of spreadsheet output files.
///
/// For simplicity, this description uses extension '.tsv' for
/// "spreadsheet" output; the actual tests use the configured
/// spreadsheet_file_extension().
///
/// File | New | Illustration
/// Comments: "idiosyncrasyZ"
/// OK
/// Verify that this file was created:
/// unnamed.monthly_trace.tsv
///
/// File | New | MEC testing
/// OK
/// Verify that this file was created:
/// unnamed.mec.tsv
///
/// File | New | Census
/// Census | Edit case defaults
/// Comments: "idiosyncrasyZ"
/// Corporation name: "ABC Inc."
/// OK
/// Yes (apply to all)
/// Census | Edit cell
/// Insured name: John Brown
/// OK
/// Census | Add cell
/// File | Save as "ABC" [used in output file names]
/// Use this census for the tests below.
///
/// Census | Run case
/// Verify that these files were created:
/// ABC.John_Brown.000000001.monthly_trace.tsv
/// ABC.000000002.monthly_trace.tsv
/// ...and delete them both now.
///
/// Census | Print case to spreadsheet
/// Verify that these files were created:
/// ABC.John_Brown.000000001.monthly_trace.tsv
/// ABC.000000002.monthly_trace.tsv
/// ABC.cns.tsv
/// ...and delete all three now.
///
/// Census | Print roster to spreadsheet
/// Verify that these files were created:
/// ABC.John_Brown.000000001.monthly_trace.tsv
/// ABC.000000002.monthly_trace.tsv
// ABC.cns.roster.tsv
/// ...and delete all three now.
///
/// Census | Edit case defaults
/// Comments: replace contents with "idiosyncrasy_spreadsheet"
/// OK
/// Yes (apply to all)
/// Census | Print case to PDF
/// Verify that this file was created:
/// values.tsv
///
/// Finally, delete all files created directly or indirectly above
/// that happen not to have been deleted already.