-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathorg_test.exs
More file actions
61 lines (57 loc) · 786 Bytes
/
org_test.exs
File metadata and controls
61 lines (57 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
defmodule OrgTest do
use ExUnit.Case
doctest Org
@document ~S"""
#+TITLE: Hello World
* Hello
** World
| X | Y |
|---+---|
| 0 | 4 |
| 1 | 7 |
| 2 | 5 |
| 3 | 6 |
** Universe
Something something...
* Also
1
** another
2
*** thing
:PROPERTIES:
:Title: Goldberg Variations
:Composer: J.S. Bach
:Artist: Glenn Gould
:Publisher: Deutsche Grammophon
:NDisks: 1
:END:
3
**** is nesting
4
***** stuff
5
** at
6
*** different
7
**** levels
8
*** and
9
*** next
10
*** to
11
*** one
12
*** another
13
#+BEGIN_SRC sql
SELECT * FROM products;
#+END_SRC
"""
# Used by Org.LexerTest and Org.ParserTest
def example_document do
@document
end
end