From 712e1871cacc208b09bf8d68748b519aa4a26cf1 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Mon, 29 Apr 2013 00:48:43 +0100 Subject: [PATCH] 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. --- development/autotests/findadv-re-05-in.txt | 9 +++++++++ development/autotests/findadv-re-06-in.txt | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 development/autotests/findadv-re-05-in.txt create mode 100644 development/autotests/findadv-re-06-in.txt diff --git a/development/autotests/findadv-re-05-in.txt b/development/autotests/findadv-re-05-in.txt new file mode 100644 index 0000000000..d1293bac17 --- /dev/null +++ b/development/autotests/findadv-re-05-in.txt @@ -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 diff --git a/development/autotests/findadv-re-06-in.txt b/development/autotests/findadv-re-06-in.txt new file mode 100644 index 0000000000..779df3724b --- /dev/null +++ b/development/autotests/findadv-re-06-in.txt @@ -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