Files
pangu.hs/test/Main.hs
2026-01-02 18:50:01 +08:00

13 lines
405 B
Haskell

{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import MyLib
import Test.Hspec
main :: IO ()
main = hspec $ do
describe "MyLib.cjksymcjk" $ do
it "converts symbols between CJK characters to fullwidth" $ do
applyRules myRules "你 : 好" `shouldBe` "你:好"
applyRules myRules "你.好" `shouldBe` "你。好"
applyRules myRules "你 ? 好" `shouldBe` "你?好"