aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:25:25 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:25:25 +0000
commit0b766bb6f949ac583c7cbff90fc172c36795b231 (patch)
treebbe90badcc0350663e20938d1dffbf6402072e8b /test
parent8418e3bf8038a0ca866c81ce712a47bdcb4800cb (diff)
Fix test again
Diffstat (limited to 'test')
-rw-r--r--test/tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tests.el b/test/tests.el
index eca6ce4..15c8e8b 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -9,7 +9,7 @@
(defvar sx-test-data-dir
(expand-file-name
"data-samples/"
- (or (file-name-directory load-file-name) "./")))
+ (file-name-directory (or load-file-name "./"))))
(defun sx-test-sample-data (method &optional directory)
(let ((file (concat (when directory (concat directory "/"))
@@ -106,17 +106,17 @@
(goto-char (point-min))
(should (equal (buffer-name) "*question-list*"))
(line-should-match
- "^\\s-+1\\s-+0\\s-+Focus-hook: attenuate colours when losing focus [ 0-9]+\\(y\\|d\\|h\\|mo?|s\\) ago\\s-+\\[frames\\] \\[hooks\\] \\[focus\\]")
+ "^\\s-+1\\s-+0\\s-+Focus-hook: attenuate colours when losing focus [ 0-9]+\\(y\\|d\\|h\\|mo?\\|s\\) ago\\s-+\\[frames\\] \\[hooks\\] \\[focus\\]")
(sx-question-list-next 5)
(line-should-match
- "^\\s-+0\\s-+1\\s-+Babel doesn&#39;t wrap results in verbatim [ 0-9]+\\(y\\|d\\|h\\|mo?|s\\) ago\\s-+\\[org-mode\\]")
+ "^\\s-+0\\s-+1\\s-+Babel doesn&#39;t wrap results in verbatim [ 0-9]+\\(y\\|d\\|h\\|mo?\\|s\\) ago\\s-+\\[org-mode\\]")
;; ;; Use this when we have a real sx-question buffer.
;; (call-interactively 'sx-question-list-display-question)
;; (should (equal (buffer-name) "*sx-question*"))
(switch-to-buffer "*question-list*")
(sx-question-list-previous 4)
(line-should-match
- "^\\s-+2\\s-+1\\s-+&quot;Making tag completion table&quot; Freezes/Blocks -- how to disable [ 0-9]+\\(y\\|d\\|h\\|mo?|s\\) ago\\s-+\\[autocomplete\\]")))
+ "^\\s-+2\\s-+1\\s-+&quot;Making tag completion table&quot; Freezes/Blocks -- how to disable [ 0-9]+\\(y\\|d\\|h\\|mo?\\|s\\) ago\\s-+\\[autocomplete\\]")))
(ert-deftest macro-test--sx-assoc-let ()
"Tests macro expansion for `sx-assoc-let'"