ob-screen, use unpredictable temp file name
[org-mode.git] / testing / lisp / test-ob-header-arg-defaults.el
blob07b2beab1c27070f681779515b0ac29b7b58c6af
1 ;;; test-ob-header-arg-defaults.el --- tests for default header args from properties
3 ;; Copyright (c) 2013, 2014 Achim Gratz
4 ;; Authors: Achim Gratz
6 ;; This file is not part of GNU Emacs.
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ;;; Code:
23 (ert-deftest test-ob-header-arg-defaults/global/call ()
24 (org-test-at-id "3fdadb69-5d15-411e-aad0-f7860cdd7816"
25 (org-babel-next-src-block 1)
26 (forward-line -1)
27 (should (equal "ge1/gh2/go3/ge4/ge5/--6/--7/--8/--9"
28 (org-babel-lob-execute (org-babel-lob-get-info))))))
30 (ert-deftest test-ob-header-arg-defaults/global/noweb ()
31 (org-test-at-id "3fdadb69-5d15-411e-aad0-f7860cdd7816"
32 (org-babel-next-src-block 1)
33 (should (equal "ge1/gh2/go3/ge4/ge5/--6/--7"
34 (org-babel-execute-src-block)))))
36 (ert-deftest test-ob-header-arg-defaults/tree/overwrite/call ()
37 (org-test-at-id "a9cdfeda-9f31-4bb5-b694-2cf452f07dfd"
38 (org-babel-next-src-block 1)
39 (forward-line -1)
40 (should (equal "go1/go2/go3/--4/--5/--6/th7/te8/--9"
41 (org-babel-lob-execute (org-babel-lob-get-info))))))
43 (ert-deftest test-ob-header-arg-defaults/tree/overwrite/noweb ()
44 (org-test-at-id "a9cdfeda-9f31-4bb5-b694-2cf452f07dfd"
45 (org-babel-next-src-block 1)
46 (should (equal "--1/--2/--3/--4/--5/to6/th7/te8/--9"
47 (org-babel-execute-src-block)))))
49 (ert-deftest test-ob-header-arg-defaults/tree/accumulate/call ()
50 (org-test-at-id "1d97d258-fd50-4107-a095-e4625bffc57b"
51 (org-babel-next-src-block 1)
52 (forward-line -1)
53 (should (equal "ge1/th2/th3/ge4/te5/--6"
54 (org-babel-lob-execute (org-babel-lob-get-info))))))
56 (ert-deftest test-ob-header-arg-defaults/tree/accumulate/noweb ()
57 (org-test-at-id "1d97d258-fd50-4107-a095-e4625bffc57b"
58 (org-babel-next-src-block 1)
59 (should (equal "ge1/th2/th3/ge4/te5/to6/--7/--8"
60 (org-babel-execute-src-block)))))
62 (ert-deftest test-ob-header-arg-defaults/tree/complex/call ()
63 (org-test-at-id "fa0e912d-d9b4-47b0-9f9e-1cbb39f7cbc2"
64 (org-babel-next-src-block 1)
65 (forward-line -1)
66 (should (equal "gh1/th2/go3/gh4/te5/--6"
67 (org-babel-lob-execute (org-babel-lob-get-info))))))
69 (ert-deftest test-ob-header-arg-defaults/tree/complex/noweb ()
70 (org-test-at-id "fa0e912d-d9b4-47b0-9f9e-1cbb39f7cbc2"
71 (org-babel-next-src-block 1)
72 (should (equal "gh1/th2/--3/gh4/te5/to6/--7/--8/--9"
73 (org-babel-execute-src-block)))))
75 (provide 'test-ob-header-arg-defaults)
77 ;;; test-ob-header-arg-defaults.el ends here