emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob 2bf153400adfd8752046b786ff9e03831dcb953b 2173 bytes (raw)
name: testing/lisp/test-org-plot.el 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
;;; test-org-plot.el --- Tests for Org Plot library    -*- lexical-binding: t; -*-

;; Copyright (C) 2020  Mario Frasca

;; Author: Mario Frasca <mario at anche dot no>

;; This file is not part of GNU Emacs.

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <https://www.gnu.org/licenses/>.

;;; Code:

(require 'org-test)
(require 'org-plot)

\f
;; General auxiliaries

(ert-deftest test-org-plot/zip-deps-with ()
  "Test `org-plot/zip-deps-with' specifications."
  ;; no deps, no with. defaults to all except ind, and "lines"
  (should
   (equal (org-plot/zip-deps-with 3 1 nil nil)
	  '((2 . "lines") (3 . "lines"))))
  ;; no deps, single with. defaults to all except ind, and repeated with
  (should
   (equal (org-plot/zip-deps-with 3 1 nil "hist")
	  '((2 . "hist") (3 . "hist"))))
  ;; no deps, explicit with
  (should
   (equal (org-plot/zip-deps-with 3 1 nil '("points" "hist"))
	  '((2 . "points") (3 . "hist"))))
  ;; explicit with, same length as deps
  (should
   (equal (org-plot/zip-deps-with 5 1 '(2 4) '("points" "hist"))
	  '((2 . "points") (4 . "hist"))))
  ;; same as above, but different order
  (should
   (equal (org-plot/zip-deps-with 5 1 '(4 2) '("points" "hist"))
	  '((4 . "points") (2 . "hist"))))
  ;; if with exceeds deps, trailing elements are discarded
  (should
   (equal (org-plot/zip-deps-with 5 1 '(4 2) '("points" "hist" "lines"))
	  '((4 . "points") (2 . "hist"))))
  ;; fills in with "lines"
  (should
   (equal (org-plot/zip-deps-with 5 1 '(4 2 3) '("points"))
	  '((4 . "points") (2 . "lines") (3 . "lines")))))


\f
(provide 'test-org-plot)
;;; test-org-plot.el end here

debug log:

solving 2bf153400 ...
found 2bf153400 in https://list.orgmode.org/orgmode/43f4eda9-627d-4b36-7226-37b5458193e8@anche.no/ ||
	https://list.orgmode.org/orgmode/d21148b7-8305-80a9-f198-b87f2825488f@anche.no/ ||
	https://list.orgmode.org/orgmode/0539744e-21e4-f8d8-14af-3a409a289161@anche.no/

applying [1/1] https://list.orgmode.org/orgmode/43f4eda9-627d-4b36-7226-37b5458193e8@anche.no/
diff --git a/testing/lisp/test-org-plot.el b/testing/lisp/test-org-plot.el
new file mode 100644
index 000000000..2bf153400

1:7: trailing whitespace.
;;; test-org-plot.el --- Tests for Org Plot library    -*- 
error: corrupt patch at line 8

git apply error:; exit status=128
trying https://list.orgmode.org/orgmode/d21148b7-8305-80a9-f198-b87f2825488f@anche.no/

applying [2/1] https://list.orgmode.org/orgmode/d21148b7-8305-80a9-f198-b87f2825488f@anche.no/
diff --git a/testing/lisp/test-org-plot.el b/testing/lisp/test-org-plot.el
new file mode 100644
index 000000000..2bf153400

Checking patch testing/lisp/test-org-plot.el...
Applied patch testing/lisp/test-org-plot.el cleanly.

skipping https://list.orgmode.org/orgmode/0539744e-21e4-f8d8-14af-3a409a289161@anche.no/ for 2bf153400
index at:
100644 2bf153400adfd8752046b786ff9e03831dcb953b	testing/lisp/test-org-plot.el

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).