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

Pins the worksheet's find/replace behavior before the search engine is extracted into WorksheetSearch. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/frame.h>
#include <wx/log.h>
#include "Configuration.h"
#include "worksheet/Worksheet.h"
#include "cells/EditorCell.h"
#include "cells/GroupCell.h"
#include "cells/TextCell.h"
#include <cstdlib>
#include <unistd.h>
#include <catch2/catch.hpp>
Include dependency graph for test_WorksheetFind.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("Searching down finds a match in an editor cell and selects it")
 
 SCENARIO ("Searching finds a match in an output cell and selects the cell")
 
 SCENARIO ("Searching finds a match in a prompt")
 
 SCENARIO ("A repeated search advances past a prompt match")
 
 SCENARIO ("A search continues in the current group after the active cursor")
 
 SCENARIO ("A search down from the h-caret starts at the group below it")
 
 SCENARIO ("A selected cell is the search start and is itself skipped")
 
 SCENARIO ("A search wraps around the end of the document")
 
 SCENARIO ("Searching up checks the output before the editor")
 
 SCENARIO ("Searching up finds editor matches in reverse document order")
 
 SCENARIO ("Case sensitivity is honored")
 
 SCENARIO ("The input/output filters restrict where matches are found")
 
 SCENARIO ("Repeated searches cycle through the matches inside one editor")
 
 SCENARIO ("A regex search finds matches in editors and outputs")
 
 SCENARIO ("Replace replaces the current match in the active editor")
 
 SCENARIO ("ReplaceAll replaces every occurrence in all inputs")
 
 SCENARIO ("Searching an empty worksheet finds nothing")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Pins the worksheet's find/replace behavior before the search engine is extracted into WorksheetSearch.

Worksheet::FindNext walks the group cells in a wrap-around loop, checking each group's prompt, editor and output (in reverse order when searching upwards), with skip rules in the start group so a search continues from the cursor or the previous match. These scenarios pin that behavior - including its quirks - so the extraction cannot change it.