I'd like to know how to test Japanese on Haskell's doctor test
module Main where
-- | Displayed in Japanese
-- >> hoge
-- "Japanese"
hoge::String
hoge="Japanese"
main ::IO()
main = print hoge
Testing the above content
expected:"Japanese"
butgot: "\26085\26412\35486"
Examples:1 Tried:1 Errors:0 Failures:1
It will be
File and system character codes are consistent with UTF8
doctorest version 0.9.11.1
Please let me know if there is a solution.
Thank you for your cooperation.
It's a remedy, but how about using putStr?
As far as doctest Usage is concerned, it seems to work as you typed in ghci.
Example:
--| Display in Japanese
-- >> putStrhoge
-- Japanese
hoge::String
hoge="Japanese"
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
914 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.