This is question for multiplayer and contests.
I want to test my code using HUnit by writing separate test file
-- code.hs to submit to codingame
module Game where
main = do
...
-- test.hs for local test
import Game
import Test.HUnit
tests = ...
main = do
_ <- runTestTT tests
but when I change module name to anything other than Main
the code won’t run on codingame
Standard Error Stream:
/usr/bin/stdbuf: failed to run command `/tmp/Answer': No such file or directory
I have to comment/uncomment the line
module Game where
every time when switching between test locally and run remotely