mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 22:47:28 +01:00
refactor(editor): the self-test commands in a file per group instead of one file of 4200 lines
editormodeselftest.cpp keeps the dispatch, the list of the commands and the step; the groups go to
editormodeselftest{scene,sleepers,sweep,track,switch,join,signal,terrain,rails}.cpp, the sleeper commands (beams,
sharedzones, sleepersbg, beamsnear, sleepercheck) in a group of their own; the frame count and one_line shared through
editormodeselftest.h. The output of geomhash, sleepercheck, wings, space, guards, crossings and switches is the same on the
seven sceneries of the regression.
This commit is contained in:
@@ -2052,6 +2052,7 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
pause
|
||||
};
|
||||
selftest_result selftest_scene(std::string const &command, std::istringstream &words);
|
||||
selftest_result selftest_sleepers(std::string const &command, std::istringstream &words);
|
||||
selftest_result selftest_sweep(std::string const &command, std::istringstream &words);
|
||||
selftest_result selftest_track(std::string const &command, std::istringstream &words);
|
||||
selftest_result selftest_switch(std::string const &command, std::istringstream &words);
|
||||
|
||||
Reference in New Issue
Block a user