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:
parent
ab842462cf
commit
9d25ad5fba
1 changed files with 11 additions and 0 deletions
11
test/euphtest.hs
Normal file
11
test/euphtest.hs
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue