Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

test(core): examples from #1902 (#1916)

Elijah Potter2c49c33a4523
diff --git a/harper-core/src/linting/to_two_too/mod.rs b/harper-core/src/linting/to_two_too/mod.rs
index 7eadbfbfa..1763a6b15 100644
--- a/harper-core/src/linting/to_two_too/mod.rs
+++ b/harper-core/src/linting/to_two_too/mod.rs
@@ -393,4 +393,20 @@ mod tests {
ToTwoToo::default(),
);
}
+
+ #[test]
+ fn no_lint_to_quickly_find_a_factory() {
+ assert_no_lints(
+ "To quickly find a factory, look for a map.",
+ ToTwoToo::default(),
+ );
+ }
+
+ #[test]
+ fn no_lint_llm_as_judge_to_automatically_score() {
+ assert_no_lints(
+ "We used an LLM-as-judge to automatically score agent trajectories.",
+ ToTwoToo::default(),
+ );
+ }
}