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

Tests for MaximaItemQueue: how Maxima's output gets from the socket thread to the GUI without ever keeping the GUI from handling input (GH #2594). More...

#include "MaximaItemQueue.h"
#include <wx/hashmap.h>
#include <chrono>
#include <thread>
#include <unordered_map>
#include <catch2/catch.hpp>
Include dependency graph for test_MaximaItemQueue.cpp:

Typedefs

using Item = MaximaItemQueue::Item
 

Functions

 SCENARIO ("Maxima's output is split into tags and the text between them")
 
 SCENARIO ("The GUI is told about new items only when it ran out of them")
 
 SCENARIO ("Consecutive pieces of text are taken as one")
 
 SCENARIO ("The socket thread pauses while the GUI has a big backlog")
 
 SCENARIO ("Draining the queue returns to the event loop when the time is up")
 
int main (int argc, char *argv[])
 

Detailed Description

Tests for MaximaItemQueue: how Maxima's output gets from the socket thread to the GUI without ever keeping the GUI from handling input (GH #2594).

GUI-free, so tested directly.