Trivial: removing whitespace in org-babel.org; passing most tests now.
This commit is contained in:
parent
8c9d8b6c28
commit
c05ac759ac
|
@ -2450,8 +2450,6 @@ ar.first.first
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** DONE space trailing language name
|
** DONE space trailing language name
|
||||||
fix regexp so it works when there's a space trailing the language name
|
fix regexp so it works when there's a space trailing the language name
|
||||||
|
|
||||||
|
@ -2505,6 +2503,7 @@ recognition of ruby arrays as such.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* Tests
|
* Tests
|
||||||
Evaluate all the cells in this table for a comprehensive test of the
|
Evaluate all the cells in this table for a comprehensive test of the
|
||||||
org-babel functionality.
|
org-babel functionality.
|
||||||
|
@ -2514,28 +2513,28 @@ of these tests may fail.
|
||||||
|
|
||||||
#+TBLNAME: org-babel-tests
|
#+TBLNAME: org-babel-tests
|
||||||
| functionality | block | arg | expected | results | pass |
|
| functionality | block | arg | expected | results | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| basic evaluation | | | | | pass |
|
| basic evaluation | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| emacs lisp | basic-elisp | | 5 | 5 | pass |
|
| emacs lisp | basic-elisp | | 5 | 5 | pass |
|
||||||
| shell | basic-shell | | 6 | 6 | pass |
|
| shell | basic-shell | | 6 | 6 | pass |
|
||||||
| ruby | basic-ruby | | org-babel | org-babel | pass |
|
| ruby | basic-ruby | | org-babel | org-babel | pass |
|
||||||
| python | basic-python | | hello world | hello world | pass |
|
| python | basic-python | | hello world | hello world | pass |
|
||||||
| R | basic-R | | 13 | 13 | pass |
|
| R | basic-R | | 13 | 13 | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| tables | | | | | pass |
|
| tables | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| emacs lisp | table-elisp | | 3 | 3 | pass |
|
| emacs lisp | table-elisp | | 3 | 3 | pass |
|
||||||
| ruby | table-ruby | | 1-2-3 | 1-2-3 | pass |
|
| ruby | table-ruby | | 1-2-3 | 1-2-3 | pass |
|
||||||
| python | table-python | | 5 | 5 | pass |
|
| python | table-python | | 5 | 5 | pass |
|
||||||
| R | table-R | | 3.5 | 3.5 | pass |
|
| R | table-R | | 3.5 | 3.5 | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| source block references | | | | | pass |
|
| source block references | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| all languages | chained-ref-last | | Array | Array | pass |
|
| all languages | chained-ref-last | | Array | Array | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| source block functions | | | | | pass |
|
| source block functions | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| emacs lisp | defun-fibb | | fibbd | fibbd | pass |
|
| emacs lisp | defun-fibb | | fibbd | fibbd | pass |
|
||||||
| run over | Fibonacci | 0 | 1 | 1 | pass |
|
| run over | Fibonacci | 0 | 1 | 1 | pass |
|
||||||
| a | Fibonacci | 1 | 1 | 1 | pass |
|
| a | Fibonacci | 1 | 1 | 1 | pass |
|
||||||
|
@ -2543,18 +2542,18 @@ of these tests may fail.
|
||||||
| of | Fibonacci | 3 | 3 | 3 | pass |
|
| of | Fibonacci | 3 | 3 | 3 | pass |
|
||||||
| different | Fibonacci | 4 | 5 | 5 | pass |
|
| different | Fibonacci | 4 | 5 | 5 | pass |
|
||||||
| arguments | Fibonacci | 5 | 8 | 8 | pass |
|
| arguments | Fibonacci | 5 | 8 | 8 | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| bugs and tasks | | | | | pass |
|
| bugs and tasks | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| simple ruby arrays | ruby-array-test | | 3 | 3 | pass |
|
| simple ruby arrays | ruby-array-test | | 3 | 3 | pass |
|
||||||
| R number evaluation | bug-R-number-evaluation | | 2 | 2 | pass |
|
| R number evaluation | bug-R-number-evaluation | | 2 | 2 | pass |
|
||||||
| multi-line ruby blocks | multi-line-ruby-test | | 2 | 2 | pass |
|
| multi-line ruby blocks | multi-line-ruby-test | | 2 | 2 | pass |
|
||||||
| forcing vector results | test-forced-vector-results | | Array | Array | pass |
|
| forcing vector results | test-forced-vector-results | | Array | Fixnum | expected "Array" but was "Fixnum" |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| sessions | | | | | pass |
|
| sessions | | | | | pass |
|
||||||
|-------------------------+----------------------------+-----+-------------+-------------+------|
|
|-------------------------+----------------------------+-----+-------------+-------------+-----------------------------------|
|
||||||
| set ruby session | set-ruby-session-var | | :set | :set | pass |
|
| set ruby session | set-ruby-session-var | | :set | #ERROR | expected ":set" but was "#ERROR" |
|
||||||
| get from ruby session | get-ruby-session-var | | 3 | 3 | pass |
|
| get from ruby session | get-ruby-session-var | | 3 | #ERROR | expected "3" but was "#ERROR" |
|
||||||
| set python session | set-python-session-var | | set | set | pass |
|
| set python session | set-python-session-var | | set | set | pass |
|
||||||
| get from python session | get-python-session-var | | 4 | 4 | pass |
|
| get from python session | get-python-session-var | | 4 | 4 | pass |
|
||||||
| set R session | set-R-session-var | | set | set | pass |
|
| set R session | set-R-session-var | | set | set | pass |
|
||||||
|
@ -2569,18 +2568,12 @@ of these tests may fail.
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: basic-shell
|
#+srcname: basic-shell
|
||||||
#+begin_src sh :results silent
|
#+begin_src sh :results silent
|
||||||
expr 1 + 5
|
expr 1 + 5
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: date-simple
|
#+srcname: date-simple
|
||||||
#+begin_src sh :results silent
|
#+begin_src sh :results silent
|
||||||
date
|
date
|
||||||
|
@ -2592,16 +2585,12 @@ date
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: basic-python
|
#+srcname: basic-python
|
||||||
#+begin_src python :results silent
|
#+begin_src python :results silent
|
||||||
'hello world'
|
'hello world'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: basic-R
|
#+srcname: basic-R
|
||||||
#+begin_src R :results silent
|
#+begin_src R :results silent
|
||||||
b <- 9
|
b <- 9
|
||||||
|
@ -2609,9 +2598,6 @@ b + 4
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** read tables
|
** read tables
|
||||||
|
|
||||||
#+tblname: test-table
|
#+tblname: test-table
|
||||||
|
@ -2624,33 +2610,24 @@ b + 4
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: table-ruby
|
#+srcname: table-ruby
|
||||||
#+begin_src ruby :results silent :var table=test-table
|
#+begin_src ruby :results silent :var table=test-table
|
||||||
table.first.join("-")
|
table.first.join("-")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: table-python
|
#+srcname: table-python
|
||||||
#+begin_src python :var table=test-table
|
#+begin_src python :var table=test-table
|
||||||
table[1][1]
|
table[1][1]
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: table-R
|
#+srcname: table-R
|
||||||
#+begin_src R :var table=test-table
|
#+begin_src R :var table=test-table
|
||||||
mean(mean(table))
|
mean(mean(table))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** references
|
** references
|
||||||
|
|
||||||
Lets pass a references through all of our languages...
|
Lets pass a references through all of our languages...
|
||||||
|
@ -2696,9 +2673,6 @@ table.class.name
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** source blocks as functions
|
** source blocks as functions
|
||||||
|
|
||||||
#+srcname: defun-fibb
|
#+srcname: defun-fibb
|
||||||
|
@ -2707,8 +2681,6 @@ table.class.name
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+srcname: fibonacci
|
#+srcname: fibonacci
|
||||||
#+begin_src emacs-lisp :results silent :var n=7
|
#+begin_src emacs-lisp :results silent :var n=7
|
||||||
(fibbd n)
|
(fibbd n)
|
||||||
|
@ -2720,19 +2692,6 @@ table.class.name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
** sbe tests (these don't seem to be working...)
|
** sbe tests (these don't seem to be working...)
|
||||||
Testing the insertion of results into org-mode tables.
|
Testing the insertion of results into org-mode tables.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue