diff --git a/test/test_Transformation.py b/test/test_Transformation.py index 0b5ee20..433750e 100644 --- a/test/test_Transformation.py +++ b/test/test_Transformation.py @@ -251,4 +251,19 @@ class Transformation_TestKill_InsertEnd_Kill(_VimTest): keys = 'hallo test' + EX + 'AUCH' + ESC + \ 'ehihi' + ESC + 'bb' + 'ino' + JF + 'end' wanted = 'hallo noAUCH auchauchih_end' + +class Transformation_ConditionalWithEscapedDelimiter(_VimTest): + snippets = 'test', r"$1 ${1/(aa)|.*/(?1:yes\:no\))/}" + keys = 'test' + EX + 'aa' + wanted = 'aa yes:no)' + +class Transformation_ConditionalWithBackslashBeforeDelimiter(_VimTest): + snippets = 'test', r"$1 ${1/(aa)|.*/(?1:yes\\:no)/}" + keys = 'test' + EX + 'aa' + wanted = 'aa yes\\' + +class Transformation_ConditionalWithBackslashBeforeDelimiter1(_VimTest): + snippets = 'test', r"$1 ${1/(aa)|.*/(?1:yes:no\\)/}" + keys = 'test' + EX + 'ab' + wanted = 'ab no\\' # End: Transformations #}}}