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

Tests for the pure Maxima-protocol helpers (MaximaProtocol): classifying the <PROMPT> labels Maxima sends, and detecting commands that would put nothing but a bare newline on the wire. More...

#include "MaximaProtocol.cpp"
#include <catch2/catch.hpp>
Include dependency graph for test_MaximaProtocol.cpp:

Functions

 SCENARIO ("Normal numbered input prompts are recognized")
 
 SCENARIO ("Questions are not mistaken for main prompts")
 
 SCENARIO ("The Lisp REPL prompt (after to_lisp()) is recognized")
 
 SCENARIO ("The Maxima debugger prompt is recognized")
 
 SCENARIO ("A debugger prompt is always a question, regardless of Lisp mode")
 
 SCENARIO ("A blank command would transmit only a bare newline")
 
int main (int argc, char *argv[])
 

Detailed Description

Tests for the pure Maxima-protocol helpers (MaximaProtocol): classifying the <PROMPT> labels Maxima sends, and detecting commands that would put nothing but a bare newline on the wire.

No GUI, no Maxima - the helpers are fed captured prompt/command strings.