From f29c3ac63a7a45ca8d14f70df60483bd6b905d74 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 27 Jul 2011 12:29:42 +0200 Subject: [PATCH] Added two more tests I wrote while searching a bug that wasn't even there --- test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test.py b/test.py index 84df059..ee5fefb 100755 --- a/test.py +++ b/test.py @@ -2013,6 +2013,15 @@ class Anon_NoTrigger_AfterSpace(_AnonBase): keys = "abc " + EA wanted = "abc simple expand" +class Anon_NoTrigger_BeginningOfLine(_AnonBase): + args = r"':latex:\`$1\`$0'" + keys = EA + "Hello" + JF + "World" + wanted = ":latex:`Hello`World" +class Anon_NoTrigger_FirstCharOfLine(_AnonBase): + args = r"':latex:\`$1\`$0'" + keys = " " + EA + "Hello" + JF + "World" + wanted = " :latex:`Hello`World" + class Anon_NoTrigger_Multi(_AnonBase): args = '"simple $1 expand $1 $0"' keys = "abc" + EA + "123" + JF + "456"