|
wxMaxima
|
Safety net for the export/serialization cluster of Worksheet. More...
#include <wx/app.h>#include <wx/bitmap.h>#include <wx/dcmemory.h>#include <wx/dir.h>#include <wx/ffile.h>#include <wx/fileconf.h>#include <wx/filename.h>#include <wx/frame.h>#include <wx/image.h>#include <wx/log.h>#include <wx/mstream.h>#include <wx/wfstream.h>#include <wx/utils.h>#include <wx/xml/xml.h>#include <wx/zipstrm.h>#include "Configuration.h"#include "MathParser.h"#include "worksheet/Worksheet.h"#include "cells/GroupCell.h"#include "cells/AnimationCell.h"#include <algorithm>#include <cstdlib>#include <map>#include <string>#include <unistd.h>#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Macros | |
| #define | WXM_CORPUS_DIR "." |
| #define | CATCH_CONFIG_RUNNER |
Functions | |
| SCENARIO ("HTML export succeeds, is deterministic and contains the document") | |
| SCENARIO ("TeX export succeeds, is deterministic and contains the document") | |
| SCENARIO ("Batch (.mac) and .wxm export succeed, are deterministic and complete") | |
| SCENARIO ("The selection-to-string converters are deterministic and complete") | |
| SCENARIO ("Per-cell output export writes one image file per selected output") | |
| SCENARIO ("An animation exports to LaTeX as \\animategraphics and compiles") | |
| wxDECLARE_APP (TestApp) | |
| int | main (int argc, char **argv) |
Safety net for the export/serialization cluster of Worksheet.
ExportToHTML/ExportToTeX/ExportToMAC, the RTF header/footer and the selection-to-string converters form the document-serialization part of Worksheet (they read only the cell tree, the selection and the Configuration). This test pins their behavior down before that cluster is moved out of the Worksheet class:
Refactor harness: set WXM_EXPORT_DUMP_DIR=<dir> to keep the exported files. Run once at the old revision and once at the new one with different dirs and diff -r them - byte-identical trees mean the extraction preserved behavior.