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

Tests for Configuration::GetAsciiArtColumns(), which tells Maxima's own ASCII-art 2D/1D printer ($linel, see MaximaEvaluator::LinelConfigCommand()) how many columns of the worksheet's monospace ASCII-math font (TS_ASCIIMATHS) currently fit into the window (#1608). More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/log.h>
#include "Configuration.h"
#include <catch2/catch.hpp>
Include dependency graph for test_AsciiArtLinel.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("GetAsciiArtColumns() reflects the worksheet's width")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for Configuration::GetAsciiArtColumns(), which tells Maxima's own ASCII-art 2D/1D printer ($linel, see MaximaEvaluator::LinelConfigCommand()) how many columns of the worksheet's monospace ASCII-math font (TS_ASCIIMATHS) currently fit into the window (#1608).

Windowless: a memory-DC Configuration, no Worksheet, no wxFrame - the test_EditorCellWrapping pattern. Assertions stay relative (narrower canvas -> fewer or equal columns) and bounds-based rather than pinning an exact column count, since the monospace font's rendered glyph width can differ a little across platforms/CI.