Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Merge branch 'master' into new-rules
Elijah Potter1719fd1a3f3d
diff --cc harper-core/src/linting/phrase_corrections.rsindex c7d258a8e,23dcaf972..4049283b6--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@@ -2286,53 -2274,21 +2298,71 @@@ mod tests);}+ #[test]+ fn corrects_dont_wan() {+ assert_suggestion_result(+ "I don't wan to pay for this.",+ lint_group(),+ "I don't want to pay for this.",+ );+ }++ #[test]+ fn correct_clients_side() {+ assert_suggestion_result(+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client's side.",+ lint_group(),+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client-side.",+ );+ }++ #[test]+ fn corrects_mixed_case() {+ assert_suggestion_result(+ "Don't Wan that option.",+ lint_group(),+ "Don't Want that option.",+ );+ }++ #[test]+ fn does_not_flag_already_correct() {+ assert_lint_count("I don't want to leave.", lint_group(), 0);+ }++ #[test]+ fn detect_cursing_through_veins_atomic() {+ assert_suggestion_result(+ "cursing through veins",+ lint_group(),+ "coursing through veins",+ );+ }++ #[test]+ fn detect_cursing_through_veins_real_world() {+ assert_suggestion_result(+ "It felt like the drugs were cursing through veins.",+ lint_group(),+ "It felt like the drugs were coursing through veins.",+ );+ }++ #[test]+ fn does_not_flag_other_contexts() {+ assert_lint_count(+ "He was cursing through the entire meeting.",+ lint_group(),+ 0,+ );+ }+++ #[test]+ fn correct_servers_side() {+ assert_suggestion_result(+ "A client-server model where the client can execute commands in a terminal on the server's side",+ lint_group(),+ "A client-server model where the client can execute commands in a terminal on the server-side",+ );+ }}