Sha256: bb2dc7a6b9a0f1334cd69b1143b682b36a377e3aae174d01aac4cdc066e2d3da
Contents?: true
Size: 808 Bytes
Versions: 6
Compression:
Stored size: 808 Bytes
Contents
# -*- mode: org; mode: auto-fill; -*- #+TITLE: Expected results example #+runmode: spec Given a literate description of the run along with the expected results, we can try checking whether the contents from the code block are evaling into what is being documented in the results block. #+name: hello #+begin_src sh :results output code :exports both for i in `seq 20`; do echo "hello" done #+end_src ......... #+RESULTS: hello #+BEGIN_SRC sh hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello #+END_SRC Something else. #+name: hola #+begin_src ruby :results output code :exports both 10.times do puts "hola" end #+end_src #+RESULTS: hola #+BEGIN_SRC ruby hola hola hola hola hola hola hola hola hola hola #+END_SRC .........
Version data entries
6 entries across 6 versions & 1 rubygems