我在使用Test-Framework和HUnit设置单元测试时遇到了问题。:import Test.Framework.Providers.QuickCheck2test/MainTestSuite.hs:3:8:
Could not find module ‘Test.Framework.Providers.HUnit根据已安装的cabal test-fra
我正在尝试为我用Haskell编写的一个简单的tic tac toe程序设置一系列测试,但我无法通过我的第一个测试,因为抛出了一个奇怪的错误: * Couldn't match expected type `Int' with actual type `IO Int' `(test_user_value x)'
In the first argument of `Tes
在新安装的Haskell Platform for Max OSX上,当使用runghc解释器运行时,以下代码在import Test.HUnit上失败。{-- -}
main = (runTestTT tests) >>= (\x -> putStrLn $ show x)
但是,在使用ghci时,执行一个简单的impo