|
wxMaxima
|
Tests for WxMaximaManualAnchors: the keywords context-sensitive help looks up in wxMaxima's own manual, and that every manual really has their anchors. More...
#include "WxMaximaManualAnchors.cpp"#include <catch2/catch.hpp>#include <wx/dir.h>#include <wx/ffile.h>#include <wx/init.h>Functions | |
| SCENARIO ("wxMaxima's own commands are found, Maxima's are not") | |
| SCENARIO ("HtmlHasAnchor finds exactly the anchor it is asked for") | |
| SCENARIO ("Every manual has an anchor for every keyword") | |
| SCENARIO ("The English HTML manual shipped for builds without pandoc has every anchor") | |
| int | main (int argc, char *argv[]) |
Tests for WxMaximaManualAnchors: the keywords context-sensitive help looks up in wxMaxima's own manual, and that every manual really has their anchors.
The anchors are hand-written <div id="..."></div> lines in the manuals in info/, and the keyword list is in the code, so nothing else would notice if a manual edit dropped one, or if a keyword was added to the list but not to a manual: Help would then silently open the top of the manual.