Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
tests(typst): add test for issue #399
Grant Lemonsb1946d8ba05b
diff --git a/harper-typst/tests/run_tests.rs b/harper-typst/tests/run_tests.rsindex b6cba665c..814787ba9 100644--- a/harper-typst/tests/run_tests.rs+++ b/harper-typst/tests/run_tests.rs@@ -40,3 +40,4 @@ macro_rules! create_test {create_test!(complex_document.typ, 0);create_test!(simplified_document.typ, 0);create_test!(complex_document_with_spelling_mistakes.typ, 4);+create_test!(issue_399.typ, 0);diff --git a/harper-typst/tests/test_sources/issue_399.typ b/harper-typst/tests/test_sources/issue_399.typnew file mode 100644index 000000000..090b53fff--- /dev/null+++ b/harper-typst/tests/test_sources/issue_399.typ@@ -0,0 +1,18 @@+#problem[+ 4. Find all the $x$ values where the following function is discontinuous.+]++#solution[+ $x=-2,0,3$+]++#aside[+ at $x=-2$ jump discontinuity.+ // this "at" doesn't get flagged++ at $x=0$ infinite discontinuity.+ // this "at" does `This sentence doesn't start with a capital letter`++ at $x=3$ removable discontinuity. (can be removed via re-defining the domain to exclude that)+ // this "at" does `This sentence doesn't start with a capital letter`+]