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:
parent
8ea4967643
commit
3aa78cf4bd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue