From: "William V. Wishon" <bill@wishon.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH 2/2] Updates to test cases
Date: Tue, 25 Dec 2012 21:38:24 -0800 [thread overview]
Message-ID: <1356500304-4525-2-git-send-email-bill@wishon.org> (raw)
In-Reply-To: <1356500304-4525-1-git-send-email-bill@wishon.org>
* 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)
prev parent reply other threads:[~2012-12-26 5:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-26 5:38 [PATCH 1/2] Fix Property Inheritance William V. Wishon
2012-12-26 5:38 ` William V. Wishon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1356500304-4525-2-git-send-email-bill@wishon.org \
--to=bill@wishon.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).