[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 5d6839e 36/42: Add test for the recent change ab
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 5d6839e 36/42: Add test for the recent change about `TeX-kpathsea-path-delimiter' |
Date: |
Thu, 23 Nov 2017 06:06:14 -0500 (EST) |
branch: externals/auctex
commit 5d6839e9b5cab6e555c80a482fd0cd945e16bf93
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Add test for the recent change about `TeX-kpathsea-path-delimiter'
* tests/tex/path-expansion.el (TeX-kpathsea-delimiter-w32): New test.
---
tests/tex/path-expansion.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tests/tex/path-expansion.el b/tests/tex/path-expansion.el
index 4b9b5c0..149cbab 100644
--- a/tests/tex/path-expansion.el
+++ b/tests/tex/path-expansion.el
@@ -33,4 +33,27 @@
(TeX-search-files-by-type 'abc 'global)
(should (equal var '("str1" "str2")))))
+(ert-deftest TeX-kpathsea-delimiter-w32 ()
+ "Check whether `TeX-kpathsea-path-delimiter' is set to \";\" on w32
platform."
+ ;; This test is meaningful only on w32 platform.
+ (skip-unless (eq system-type 'windows-nt))
+ ;; Provide `TeX-tree-expand' with output which doesn't begin with
+ ;; dos drive letter.
+ (let ((TeX-kpathsea-path-delimiter
+ (eval (car (get 'TeX-kpathsea-path-delimiter 'standard-value)))))
+ (TeX-tree-expand '(".") nil)
+ (should (equal TeX-kpathsea-path-delimiter ";")))
+ ;; Provide `TeX-search-files-kpathsea' with output of only one
+ ;; component (thus without a separator ";".)
+ (let ((TeX-kpathsea-path-delimiter
+ (eval (car (get 'TeX-kpathsea-path-delimiter 'standard-value))))
+ ;; Let's hope that no other files in the temp directory have
+ ;; such a bizarre extension.
+ (temp-file (make-temp-file "TeX-path-expansion" nil ".xxyyzz")))
+ (unwind-protect
+ (TeX-search-files-kpathsea (file-name-directory temp-file)
+ '("xxyyzz") nil nil nil)
+ (delete-file temp-file))
+ (should (equal TeX-kpathsea-path-delimiter ";"))))
+
;;; command-expansion.el ends here
- [elpa] externals/auctex 5d8ac95 25/42: Cosmetic Change, (continued)
- [elpa] externals/auctex 5d8ac95 25/42: Cosmetic Change, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operator, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f362325 28/42: ; * latex.el (LaTeX-document-style-hook): Fix a typo., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ea7ff48 29/42: * tex.el (TeX-math-input-method-off-regexp): Turn defvar into defcustom., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b2571b6 40/42: Don't set company-minimum-prefix-length in tex mode buffers, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 0d8e6c6 34/42: Document `TeX-math-input-method-off-regexp' properly., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f0145f4 30/42: Add new function `LaTeX-env-longtable', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 213b705 33/42: Mention the necessity of GNU make, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 842471c 37/42: Give proper argument to `TeX-command-expand', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b69d894 39/42: * doc/changes.texi: Mention compatibility of preview with GS 9.22., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d6839e 36/42: Add test for the recent change about `TeX-kpathsea-path-delimiter',
Tassilo Horn <=
- [elpa] externals/auctex 5f007f1 42/42: Regenerate tex-site.el and docs, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b20eea0 26/42: Fix Copyright year, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 463ead7 35/42: Document `TeX-view-evince-keep-focus', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 420ec0e 32/42: Bug fix and code refactoring related to kpathsea, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ee4cc54 31/42: Add new style/xltabular.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex c03ca2c 38/42: Improve style/epigraph.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 800064f 41/42: Merge branch 'master' into externals/auctex, Tassilo Horn, 2017/11/23