From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William V. Wishon" Subject: [PATCH 2/2] Updates to test cases Date: Tue, 25 Dec 2012 21:38:24 -0800 Message-ID: <1356500304-4525-2-git-send-email-bill@wishon.org> References: <1356500304-4525-1-git-send-email-bill@wishon.org> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnjhJ-0001TW-Vf for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 00:38:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnjhI-0006mq-S4 for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 00:38:33 -0500 Received: from mail-pb0-f42.google.com ([209.85.160.42]:58487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnjhI-0006mj-LJ for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 00:38:32 -0500 Received: by mail-pb0-f42.google.com with SMTP id rp2so4608582pbb.15 for ; Tue, 25 Dec 2012 21:38:31 -0800 (PST) In-Reply-To: <1356500304-4525-1-git-send-email-bill@wishon.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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)