Skip to content

Commit

Permalink
Add test for disable no-space-fullwidth #193
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Jun 20, 2024
1 parent 5810aea commit d4fa70a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autocorrect/src/rule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d4fa70a

Please sign in to comment.