wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_TextContinuation.cpp File Reference

Tests for TextCell::SetTextContinuation(): a long line of plain text Maxima sends (a warning, an error, a status message) is split into one cell per piece wxm::SplitAtTextBreaks() returns, so the worksheet can break it into lines between them. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/log.h>
#include "CellPointers.h"
#include "Configuration.h"
#include "MathParser.h"
#include "TextBreaks.h"
#include "cells/CellIterators.h"
#include "cells/CellList.h"
#include "cells/GroupCell.h"
#include "cells/LabelCell.h"
#include "cells/TextCell.h"
#include <catch2/catch.hpp>
Include dependency graph for test_TextContinuation.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("A split line of text is as wide as the unsplit one")
 
 SCENARIO ("A split line of text is broken into lines in a narrow window")
 
 SCENARIO ("A split line of text survives saving and loading")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for TextCell::SetTextContinuation(): a long line of plain text Maxima sends (a warning, an error, a status message) is split into one cell per piece wxm::SplitAtTextBreaks() returns, so the worksheet can break it into lines between them.

As long as it fits, it has to look, copy, save and export exactly as the single cell it used to be.

The cells are built the way MaximaOutputAppender::DoRawConsoleAppend() builds them, and put into a real GroupCell – no live Maxima needed.