mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Added regression test for simple use-case documented in Advanced F&R manual.
findadv-re-05 with ignore format fails, whilst findadv-re-06 not ignoring format succeeds, as of now.
This commit is contained in:
parent
52ce610a26
commit
712e1871ca
9
development/autotests/findadv-re-05-in.txt
Normal file
9
development/autotests/findadv-re-05-in.txt
Normal file
@ -0,0 +1,9 @@
|
||||
# Finding regexps within \frac{}
|
||||
|
||||
Lang it_IT.utf8
|
||||
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
|
||||
KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home]
|
||||
KK: \CF
|
||||
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return]
|
||||
TestEnd
|
||||
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
|
11
development/autotests/findadv-re-06-in.txt
Normal file
11
development/autotests/findadv-re-06-in.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# Finding regexps within \frac{}
|
||||
|
||||
Lang it_IT.utf8
|
||||
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
|
||||
KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home]
|
||||
KK: \CF
|
||||
# Uncheck ignore format (depends on IT language)
|
||||
KK: \Az\Ag\Ae
|
||||
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return]
|
||||
TestEnd
|
||||
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
|
Loading…
Reference in New Issue
Block a user