From d4fa70ab7d951e52b3e09b2c8dc523fc9b0a038f Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 20 Jun 2024 21:55:02 +0800 Subject: [PATCH] Add test for disable `no-space-fullwidth` #193 --- autocorrect/src/rule/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autocorrect/src/rule/mod.rs b/autocorrect/src/rule/mod.rs index bd1352c..513ba57 100644 --- a/autocorrect/src/rule/mod.rs +++ b/autocorrect/src/rule/mod.rs @@ -285,6 +285,8 @@ mod tests { "2你好[世界]" => (map!{ "space-bracket" => true }, "2 你好[世界]"), "代码`code`例子1" => (map!{}, "代码 `code` 例子 1"), "代码`code`例子2" => (map!{ "space-backticks" => true }, "代码`code`例子 2"), + "测试 ," => (map!{}, "测试,"), + "测试 ," => (map!{"no-space-fullwidth"=>true}, "测试 ,"), }; for (input, (disable_rules, expect)) in cases {