2011-02-06 22:48:54 +00:00
|
|
|
# Basic test for searching with regular expressions
|
|
|
|
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang sk_SK.utf8
|
2011-02-06 22:48:54 +00:00
|
|
|
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
|
|
|
|
KK: Nel mezzo del cammin di nostra vita\[Return]
|
|
|
|
KK: mi ritrovai per una selva oscura\C\[Home]
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \Axbuffer-write\[Return]
|
|
|
|
KK: \Axdialog-show findreplaceadv\[Return]
|
2011-02-14 20:41:46 +00:00
|
|
|
KK: o\Axregexp-mode\[Return].* a\[Return]
|
2011-02-06 22:48:54 +00:00
|
|
|
TestEnd
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang C
|
2011-02-06 22:48:54 +00:00
|
|
|
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' lyx-log.txt
|
|
|
|
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang sk_SK.utf8
|
2012-12-15 11:58:31 +00:00
|
|
|
TestBegin test.lyx -dbg find > lyx-log2.txt 2>&1
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
|
2017-04-16 21:43:56 +00:00
|
|
|
KK: o\Axregexp-mode\[Return][\\w]* a
|
|
|
|
KK: \Ac\Ac
|
2012-12-15 11:58:31 +00:00
|
|
|
KD: 500
|
2017-04-16 21:43:56 +00:00
|
|
|
KK: \Al
|
2011-02-10 22:33:23 +00:00
|
|
|
KD: 100
|
2011-02-06 22:48:54 +00:00
|
|
|
TestEnd
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang C
|
2012-12-15 11:58:31 +00:00
|
|
|
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6' lyx-log2.txt
|
2011-02-06 22:48:54 +00:00
|
|
|
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang sk_SK.utf8
|
2012-12-15 11:58:31 +00:00
|
|
|
TestBegin test.lyx -dbg find > lyx-log3.txt 2>&1
|
2015-03-09 08:41:34 +00:00
|
|
|
KK: \C\[Home]\Axdialog-show findreplaceadv\[Return]
|
2017-04-16 21:43:56 +00:00
|
|
|
KK: \Axregexp-mode\[Return].* \Ac\Ac\Al\Al\Al
|
2011-02-06 22:48:54 +00:00
|
|
|
TestEnd
|
2015-03-09 08:41:34 +00:00
|
|
|
Lang C
|
2012-12-15 11:58:31 +00:00
|
|
|
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' lyx-log3.txt
|