org-footnote: fix xhtml export
[org-mode.git] / testing / lisp / test-ob-awk.el
blob018dec4c7089f2e4c05ac45a3f6175e4dc59ee5d
1 (require 'ob-awk)
3 (ert-deftest ob-awk/input-none ()
4 "Test with no input file"
5 (org-test-at-id "9e998b2a-3581-43fe-b26d-07d3c507b86a"
6 (org-babel-next-src-block)
7 (should (= 42 (org-babel-execute-src-block)))))
9 (ert-deftest ob-awk/input-src-block ()
10 "Test a code block as an input"
11 (org-test-at-id "9e998b2a-3581-43fe-b26d-07d3c507b86a"
12 (org-babel-next-src-block 2)
13 (should (= 43 (org-babel-execute-src-block)))))
15 (ert-deftest ob-awk/input-src-block ()
16 "Test a code block as an input"
17 (org-test-at-id "9e998b2a-3581-43fe-b26d-07d3c507b86a"
18 (org-babel-next-src-block 3)
19 (should (= 150 (org-babel-execute-src-block)))))