Skip to content

Commit

Permalink
Add tests for Neorg and MDX
Browse files Browse the repository at this point in the history
  • Loading branch information
spitzerd committed Dec 30, 2024
1 parent 7e95fbf commit 49dd3c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class MarkdownFragmentizerTest {

assertFragmentizer("quarto", markdownSample)
assertFragmentizer("rmd", markdownSample)
assertFragmentizer("mdx", markdownSample)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ class OrgFragmentizerTest {
)
}

@Test
fun testNeorg() {
RestructuredtextFragmentizerTest.assertFragmentizer(
"neorg",
"""
Sentence 1
# ltex: language=de-DE
Sentence 2
# ltex: language=en-US
Sentence 3
""".trimIndent(),
)
}

@Test
fun testWrongSettings() {
val fragmentizer = OrgFragmentizer("org")
Expand Down

0 comments on commit 49dd3c3

Please sign in to comment.