Refactor quote handling and add new rules for possessive quotes
This commit is contained in:
@@ -15,7 +15,8 @@ main = hspec $ do
|
||||
applyRules myRules "你…好" `shouldBe` "你… 好"
|
||||
applyRules myRules "你...好" `shouldBe` "你... 好"
|
||||
applyRules myRules "你:0" `shouldBe` "你:0"
|
||||
applyRules myRules "我说:\" 他说:\'你好\'\"" `shouldBe` "我说:\"他说:\'你好\'\""
|
||||
it "adds spaces" $ do
|
||||
applyRules myRules "\'你好\'" `shouldBe` "\'你好\'"
|
||||
applyRules myRules "你\'hello\'" `shouldBe` "你 \'hello\'"
|
||||
it "fixes quotes" $ do
|
||||
applyRules myRules "我说:\" 他说:'你好'\"" `shouldBe` "我说:\"他说:' 你好 '\""
|
||||
-- applyRules myRules "'你好'" `shouldBe` "' 你好'" -- strange behavior
|
||||
applyRules myRules "你'hello'" `shouldBe` "你 'hello'"
|
||||
applyRules myRules "我 's " `shouldBe` "我's "
|
||||
Reference in New Issue
Block a user