summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHorki <ivanzvonimirhorvat@gmail.com>2020-10-27 16:41:12 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-29 19:21:46 +0100
commitcc6cf482563327957e09c1792e018d4862b08c5e (patch)
treeef434197a7b3be84dba675e9638f333da38b14cf
parente571cb553b5dcdbb032e84a5d7a404cd35b5b934 (diff)
1213: org mode highlight testing
-rw-r--r--tests/syntax-tests/highlighted/orgmode/test.org38
-rw-r--r--tests/syntax-tests/source/orgmode/test.org38
2 files changed, 76 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/orgmode/test.org b/tests/syntax-tests/highlighted/orgmode/test.org
new file mode 100644
index 00000000..82a9041f
--- /dev/null
+++ b/tests/syntax-tests/highlighted/orgmode/test.org
@@ -0,0 +1,38 @@
+* This is header
+** sub header
+*** sub sub header
+**** sub sub sub header
+
+* Table representation
+| Name | Age |
+|---------+-----|
+| Milli | 23 |
+| Vanilli | 22 |
+
+* Spreadsheets
+| n | n + 2 | n ^ 2 |
+|---+-------+-------|
+| 1 | 3 | 1 |
+| 2 | 4 | 4 |
+| 3 | 5 | 9 |
+#+TBLFM: $2=$1+2::$3=$1*$1
+
+* Source Code
+
+#+BEGIN_SRC rust
+ # recursive fibonacci
+ fn fib(n: u32) -> u32 {
+ match n {
+ 0 | 1 => 1,
+ _ => fib(n - 1) + fib(n - 2),
+ }
+ }
+#+END_SRC
+
+* ToDo and Checkboxes Example
+** DONE Write source example
+** TODO Generate highlighted example [1/3]
+ - [X] run update script
+ - [-] get code review
+ - [ ] merge into master
+
diff --git a/tests/syntax-tests/source/orgmode/test.org b/tests/syntax-tests/source/orgmode/test.org
new file mode 100644
index 00000000..2e1c8e63
--- /dev/null
+++ b/tests/syntax-tests/source/orgmode/test.org
@@ -0,0 +1,38 @@
+* This is header
+** sub header
+*** sub sub header
+**** sub sub sub header
+
+* Table representation
+| Name | Age |
+|---------+-----|
+| Milli | 23 |
+| Vanilli | 22 |
+
+* Spreadsheets
+| n | n + 2 | n ^ 2 |
+|---+-------+-------|
+| 1 | 3 | 1 |
+| 2 | 4 | 4 |
+| 3 | 5 | 9 |
+#+TBLFM: $2=$1+2::$3=$1*$1
+
+* Source Code
+
+#+BEGIN_SRC rust
+ # recursive fibonacci
+ fn fib(n: u32) -> u32 {
+ match n {
+ 0 | 1 => 1,
+ _ => fib(n - 1) + fib(n - 2),
+ }
+ }
+#+END_SRC
+
+* ToDo and Checkboxes Example
+** DONE Write source example
+** TODO Generate highlighted example [1/3]
+ - [X] run update script
+ - [-] get code review
+ - [ ] merge into master
+