emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [PATCH 2/2] Updates to test cases


From: William V. Wishon
Subject: [O] [PATCH 2/2] Updates to test cases
Date: Tue, 25 Dec 2012 21:38:24 -0800

        * property-inheritance.org: Updated test cases to include expected 
outcomes.  Adjusted the numeric values to be in order.  Removed irrelevant 
addition tests.
---
 testing/examples/property-inheritance.org |   16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/testing/examples/property-inheritance.org 
b/testing/examples/property-inheritance.org
index 477e25f..f2c68e2 100644
--- a/testing/examples/property-inheritance.org
+++ b/testing/examples/property-inheritance.org
@@ -35,17 +35,19 @@
 #+end_src
 * hierarchy test
 :PROPERTIES:
-:var+: boo=2
+:var+: boo=2.5
 :END:
 ** appending to a parent property
   :PROPERTIES:
   :var+:      baz=3
   :END:
 
+The result should be 8.5
 #+begin_src emacs-lisp
   (+ foo bar boo baz)
 #+end_src
 
+The result should be "foo=1 bar=2 boo=2.5 baz=3"
 #+begin_src emacs-lisp
   (org-entry-get (point) "var" t)
 #+end_src
@@ -53,21 +55,15 @@
   :PROPERTIES:
   :var+:       nil
   :END:
-#+begin_src emacs-lisp
-  (+ foo bar baz)
-#+end_src
-
+The result should be "nil"
 #+begin_src emacs-lisp
   (org-entry-get (point) "var" t t)
 #+end_src
 *** setting a new property value
 :PROPERTIES:
-:var+: bat=5
+:var+: bat=4
 :END:
-#+begin_src emacs-lisp
-  (+ foo bar baz)
-#+end_src
-
+The result should be "bat=4"
 #+begin_src emacs-lisp
   (org-entry-get (point) "var" t)
 #+end_src
-- 
1.7.10.2 (Apple Git-33)




reply via email to

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