From 49dd3c3b87535d6bf916192ab0e6fe69ee384a8c Mon Sep 17 00:00:00 2001 From: Daniel Spitzer <157745807+spitzerd@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:54:14 +0100 Subject: [PATCH] Add tests for Neorg and MDX --- .../markdown/MarkdownFragmentizerTest.kt | 1 + .../ltexls/parsing/org/OrgFragmentizerTest.kt | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/test/kotlin/org/bsplines/ltexls/parsing/markdown/MarkdownFragmentizerTest.kt b/src/test/kotlin/org/bsplines/ltexls/parsing/markdown/MarkdownFragmentizerTest.kt index 901439e..3f19221 100644 --- a/src/test/kotlin/org/bsplines/ltexls/parsing/markdown/MarkdownFragmentizerTest.kt +++ b/src/test/kotlin/org/bsplines/ltexls/parsing/markdown/MarkdownFragmentizerTest.kt @@ -129,6 +129,7 @@ class MarkdownFragmentizerTest { assertFragmentizer("quarto", markdownSample) assertFragmentizer("rmd", markdownSample) + assertFragmentizer("mdx", markdownSample) } @Test diff --git a/src/test/kotlin/org/bsplines/ltexls/parsing/org/OrgFragmentizerTest.kt b/src/test/kotlin/org/bsplines/ltexls/parsing/org/OrgFragmentizerTest.kt index 0def390..97daafd 100644 --- a/src/test/kotlin/org/bsplines/ltexls/parsing/org/OrgFragmentizerTest.kt +++ b/src/test/kotlin/org/bsplines/ltexls/parsing/org/OrgFragmentizerTest.kt @@ -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")