|
wxMaxima
|
Regression test: the CSV import and export wizards remember the field separator the user chose last time. More...
#include <wx/app.h>#include <wx/bitmap.h>#include <wx/config.h>#include <wx/dcmemory.h>#include <wx/fileconf.h>#include <wx/frame.h>#include <wx/log.h>#include "Configuration.h"#include "wizards/CsvWiz.h"#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Functions | |
| wxDECLARE_APP (TestApp) | |
| SCENARIO ("The CSV wizards start with the separator that was saved") | |
| int | main (int argc, char **argv) |
Regression test: the CSV import and export wizards remember the field separator the user chose last time.
They called wxConfig::Read(key, choice) with a plain long, which is the overload that returns the value it read instead of storing it – so the result was thrown away and every wizard came up with "Semicolon", whatever had been saved. Coverity found it as dead code (CID 507037): the range checks after the read could never fire.