Sha256: 6f9e49e890c672bdbc090f6b24f3f37582d3eebc050c3228662cdaaf522eb906

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

# -*- mode: org; mode: auto-fill; -*-
#+TITLE:   Expected results example

#+name: hello_test
#+begin_src ruby :results output
10.times do 
  puts "hola"
end
#+end_src

#+RESULTS: hello_test
#+begin_example
hola
hola
hola
hola
hola
hola
hola
hola
hola
hola
#+end_example

This one would fail near christmas, outside of Japan,
when the site is down, or there is a change in the rss.xml being provided.

#+name: christmas_check
#+begin_src sh :results output
curl https://isitchristmas.com/rss.xml 2> /dev/null | grep title
# curl isitchristmastyet.com 2> /dev/null
#+end_src

#+RESULTS: christmas_check
#+begin_example
    <title>Is It Christmas?</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
#+end_example

#+RESULTS: fetch_google
#+begin_example
    <title>Is It Christmas?</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
          <title>いいえ</title>
#+end_example

Version data entries

2 entries across 2 versions & 1 rubygems

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