emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
37cf3f93dc249d22287748d638551ff70fb7e0a5 blob 850 bytes (raw)

 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
 
#+Title: a collection of examples for ob-octave tests
#+OPTIONS: ^:nil

* Simple tests
  :PROPERTIES:
  :ID:       54dcd61d-cf6c-4d7a-b9e5-854953c8a753
  :END:
Number output
#+begin_src octave :exports results :results silent
ans = 10
#+end_src

Array output
#+begin_src octave :exports results :results silent
ans = 1:4'
#+end_src

* Input tests
  :PROPERTIES:
  :ID:       cc2d82bb-2ac0-45be-a0c8-d1463b86a3ba
  :END:
Input an integer variable
#+begin_src octave :exports results :results silent :var s=42
ans = s
#+end_src


Input an array
#+begin_src octave :exports results :results silent :var s='(1.0 2.0 3.0)
ans = s
#+end_src

Input a matrix
#+begin_src octave :exports results :results silent :var s='((1 2) (3 4))
ans = s
#+end_src

Input a string
#+begin_src octave :exports results :results silent :var s="test"
ans = s(1:2)
#+end_src


debug log:

solving 37cf3f9 ...
found 37cf3f9 in https://list.orgmode.org/orgmode/87r52xmuri.fsf@gmail.com/

applying [1/1] https://list.orgmode.org/orgmode/87r52xmuri.fsf@gmail.com/
diff --git a/testing/examples/ob-octave-test.org b/testing/examples/ob-octave-test.org
new file mode 100644
index 0000000..37cf3f9

Checking patch testing/examples/ob-octave-test.org...
1:48: new blank line at EOF.
+
Applied patch testing/examples/ob-octave-test.org cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 37cf3f93dc249d22287748d638551ff70fb7e0a5	testing/examples/ob-octave-test.org

Code repositories for project(s) associated with this 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).