diff --git a/CHANGELOG.md b/CHANGELOG.md index 614fc77..da62c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Bugfixes: Other improvements: - Run `isLowerTests` in tests (#35 by @JordanMartinez) +- Added test for CJK characters for `isSpace` (#36 by @maxdeviant) ## [v5.0.0](https://github.com/purescript-contrib/purescript-unicode/releases/tag/v5.0.0) - 2021-02-26 diff --git a/test/Test/Data/CodePoint/Unicode.purs b/test/Test/Data/CodePoint/Unicode.purs index 6631618..a265f8a 100644 --- a/test/Test/Data/CodePoint/Unicode.purs +++ b/test/Test/Data/CodePoint/Unicode.purs @@ -238,6 +238,8 @@ isSpaceTests = describe "isSpace" do isSpace (codePointFromChar '\t') `shouldEqual` true it "'a' is not Space" $ isSpace (codePointFromChar 'a') `shouldEqual` false + it "'日' is not Space" $ + isSpace (codePointFromChar '日') `shouldEqual` false isUpperTests :: forall m. MonadReader Int m => MonadEffect m => m Unit isUpperTests = describe "isUpper" do