emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex cf0ff70 16/42: Add test for infinite loop


From: Tassilo Horn
Subject: [elpa] externals/auctex cf0ff70 16/42: Add test for infinite loop
Date: Thu, 23 Nov 2017 06:06:10 -0500 (EST)

branch: externals/auctex
commit cf0ff7040f1f93556c0c91d7091ba4a057edbb02
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    Add test for infinite loop
    
    * tests/tex/utility.el: New file.
---
 tests/tex/utility.el | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/tests/tex/utility.el b/tests/tex/utility.el
new file mode 100644
index 0000000..843bd57
--- /dev/null
+++ b/tests/tex/utility.el
@@ -0,0 +1,32 @@
+;;; utility.el --- tests for AUCTeX utility functions
+
+;; Copyright (C) 2017 Free Software Foundation, Inc.
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Code:
+
+(require 'ert)
+(require 'tex)
+
+(ert-deftest TeX-infinite-loop ()
+  "Check whether functions don't fall into infinite loop."
+  (should (TeX-delete-duplicate-strings '("nil")))
+  (should (TeX-delete-dups-by-car '(("nil" . 1)))))
+
+;;; utility.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]