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:
Tommaso Cucinotta 2013-04-29 00:48:43 +01:00
parent 52ce610a26
commit 712e1871ca
2 changed files with 20 additions and 0 deletions

View 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

View 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