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

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

[elpa] scratch/org-edna 6448307 30/72: Added test for empty argument lis


From: Ian Dunn
Subject: [elpa] scratch/org-edna 6448307 30/72: Added test for empty argument list
Date: Sun, 21 May 2017 21:11:23 -0400 (EDT)

branch: scratch/org-edna
commit 644830780b9b886393f00f90bf3080605b94ed45
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>

    Added test for empty argument list
---
 org-edna-tests.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/org-edna-tests.el b/org-edna-tests.el
index 0d2de3b..3444096 100644
--- a/org-edna-tests.el
+++ b/org-edna-tests.el
@@ -75,6 +75,14 @@
       (should (not modifier2))
       (should (= pos2 12)))))
 
+(ert-deftest org-edna-parse-form-empty-argument-list ()
+  (let ((input-string "test-string1()"))
+    (pcase-let* ((`(,token1 ,args1 ,modifier1 ,pos1) (org-edna-parse-form 
input-string)))
+      (should (eq token1 'test-string1))
+      (should (not args1))
+      (should (not modifier1))
+      (should (= pos1 (length input-string))))))
+
 (defconst org-edna-test-dir
   (expand-file-name (file-name-directory (or load-file-name 
buffer-file-name))))
 



reply via email to

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