Add test script for connecting to euphoria

I know this is not how tests are meant to work, but hey :)
This commit is contained in:
Joscha 2018-02-08 20:47:08 +00:00
parent ab842462cf
commit 9d25ad5fba

11
test/euphtest.hs Normal file
View file

@ -0,0 +1,11 @@
import qualified EuphApi.Connection as E
main = do
con <- E.startEuphConnection "euphoria.io" "test"
printEvents con
where
printEvents con = do
event <- E.getEvent con
case event of
Just e -> print e >> putStrLn "" >> printEvents con
Nothing -> putStrLn "[] end of events"