Sha256: c40f6cac7204f93877ced4a84198931d124345d4881c7b40f4ad8cc9a541b2a0

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 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

2 entries across 2 versions & 1 rubygems

Version Path
org-converge-0.0.9 spec/converge_examples/expected_results/spec.org
org-converge-0.0.8 spec/converge_examples/expected_results/spec.org