aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog4
-rw-r--r--test/automated/tildify-tests.el12
2 files changed, 16 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index db32aae578b..93ef0980c9a 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,9 @@
12014-06-05 Michal Nazarewicz <mina86@mina86.com> 12014-06-05 Michal Nazarewicz <mina86@mina86.com>
2 2
3 * automated/tildify-tests.el (tildify-test-find-env-group-index-bug):
4 New test checking end-regex building when multiple environment pairs
5 use integers to refer to capture groups.
6
3 * automated/tildify-tests.el (tildify-test-find-env-end-re-bug): New 7 * automated/tildify-tests.el (tildify-test-find-env-end-re-bug): New
4 test checking end-regex building in `tildify-find-env' function when 8 test checking end-regex building in `tildify-find-env' function when
5 integers (denoting capture groups) and strings are mixed together. 9 integers (denoting capture groups) and strings are mixed together.
diff --git a/test/automated/tildify-tests.el b/test/automated/tildify-tests.el
index 25e9f22adf3..6fee28b3862 100644
--- a/test/automated/tildify-tests.el
+++ b/test/automated/tildify-tests.el
@@ -112,6 +112,18 @@ latter is missing, SENTENCE will be used in all placeholder positions."
112 (should (string-equal "end-foo" (tildify-find-env "foo\\|bar")))))) 112 (should (string-equal "end-foo" (tildify-find-env "foo\\|bar"))))))
113 113
114 114
115(ert-deftest tildify-test-find-env-group-index-bug ()
116 "Tests generation of match-string indexes"
117 (with-temp-buffer
118 (let ((tildify-ignored-environments-alist
119 `((,major-mode ("start-\\(foo\\|bar\\)" . ("end-" 1))
120 ("open-\\(foo\\|bar\\)" . ("close-" 1)))))
121 (beg-re "start-\\(foo\\|bar\\)\\|open-\\(foo\\|bar\\)"))
122 (insert "open-foo whatever close-foo")
123 (goto-char (point-min))
124 (should (string-equal "close-foo" (tildify-find-env beg-re))))))
125
126
115(provide 'tildify-tests) 127(provide 'tildify-tests)
116 128
117;;; tildify-tests.el ends here 129;;; tildify-tests.el ends here