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

Tests for SyntaxErrorLocation: finding the spot in a code cell Maxima's "incorrect syntax" message points at (GH #289). More...

#include "SyntaxErrorLocation.h"
#include <catch2/catch.hpp>
Include dependency graph for test_SyntaxErrorLocation.cpp:

Functions

 SCENARIO ("The echoed line is read from Maxima's syntax error message")
 
 SCENARIO ("A syntax error is located in its statement")
 
int main (int argc, char *argv[])
 

Detailed Description

Tests for SyntaxErrorLocation: finding the spot in a code cell Maxima's "incorrect syntax" message points at (GH #289).

GUI-free, so tested directly.

The Maxima outputs below are copied from real Maxima runs: the ones with "Space" in them from Maxima 5.46, which spells blanks out that way, the others in the form current Maxima (nparse.lisp's mread-synerr) prints.