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

The directory-scanning half of the bash-like file-name completion: file arguments of openr()/read_matrix()/load()/demo()/... complete against the directory the partial file name currently points into, descending level by level as the partial acquires directory components (the popup calls AutoComplete::UpdateFiles() on every boundary change). More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/dir.h>
#include <wx/ffile.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <algorithm>
#include <vector>
#include "Autocomplete.h"
#include "Configuration.h"
#include "UnicodeNames.h"
#include <cstdlib>
#include <unistd.h>
#include <catch2/catch.hpp>
Include dependency graph for test_Autocomplete.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("General file completion lists the directory the partial points into")
 
 SCENARIO ("Load-file completion only offers loadable files")
 
 SCENARIO ("Only the file-name completion types complete files")
 
 SCENARIO ("A hex number typed after ESC names a code point (GH #2561)")
 
 SCENARIO ("Code points get their names from UnicodeData.txt")
 
 SCENARIO ("ESC completion offers the code point typed, not all of Unicode")
 
 SCENARIO ("Maxima's symbol list doesn't cut the startup symbol list short")
 
 SCENARIO ("The ESC popup shows each symbol next to its name")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

The directory-scanning half of the bash-like file-name completion: file arguments of openr()/read_matrix()/load()/demo()/... complete against the directory the partial file name currently points into, descending level by level as the partial acquires directory components (the popup calls AutoComplete::UpdateFiles() on every boundary change).

Runs against a temporary directory tree, no Maxima and no GUI needed.