wxMaxima
Loading...
Searching...
No Matches
Macros | Functions
test_WxMaximaManualAnchors.cpp File Reference

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>
Include dependency graph for test_WxMaximaManualAnchors.cpp:

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[])
 

Detailed Description

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.