Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1213: org mode highlight testing #1349

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions tests/syntax-tests/highlighted/orgmode/test.org
Original file line number Diff line number Diff line change
@@ -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

38 changes: 38 additions & 0 deletions tests/syntax-tests/source/orgmode/test.org
Original file line number Diff line number Diff line change
@@ -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