test-ob-perl: improve test coverage

testing/lisp/test-ob-perl.el (test-ob-perl/table-passthrough-colnames-nil),
  (test-ob-perl/table-passthrough-colnames-no):
  Make some table entries numbers for better test coverage.
This commit is contained in:
Achim Gratz 2013-04-07 11:28:57 +02:00
parent 8ea4967643
commit 3aa78cf4bd
1 changed files with 6 additions and 6 deletions

View File

@ -47,30 +47,30 @@
(org-test-with-temp-text "#+name: eg
| col1 | col2 |
|------+------|
| a | c |
| b | d |
| a | 1 |
| b | 2.0 |
#+header: :colnames nil
#+header: :var x = eg
#+begin_src perl
#+end_src"
(org-babel-next-src-block)
(should (equal '(("col1" "col2") hline ("a" "c") ("b" "d"))
(should (equal '(("col1" "col2") hline ("a" 1) ("b" 2.0))
(org-babel-execute-src-block)))))
(ert-deftest test-ob-perl/table-passthrough-colnames-no ()
(org-test-with-temp-text "#+name: eg
| col1 | col2 |
|------+------|
| a | c |
| b | d |
| a | 1 |
| b | 2.0 |
#+header: :colnames no
#+header: :var x = eg
#+begin_src perl
#+end_src"
(org-babel-next-src-block)
(should (equal '(("col1" "col2") ("a" "c") ("b" "d"))
(should (equal '(("col1" "col2") ("a" 1) ("b" 2.0))
(org-babel-execute-src-block)))))
(provide 'test-ob-perl)