Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
curry-packages
io-extra
Commits
721478e9
Commit
721478e9
authored
Nov 18, 2020
by
Michael Hanus
Browse files
Tests added
parent
3f510ab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
721478e9
...
...
@@ -18,6 +18,10 @@
"exportedModules"
:
[
"System.IOExts"
],
"testsuite"
:
{
"src-dir"
:
"test"
,
"modules"
:
[
"TestConnect"
]
},
"source"
:
{
"git"
:
"https://git.ps.informatik.uni-kiel.de/curry-packages/io-extra.git"
,
"tag"
:
"$version"
...
...
test/TestConnect.curry
0 → 100644
View file @
721478e9
-- Testing operations from library IOExts:
import System.IO
import System.IOExts
import Test.Prop
-- Execute shell command show the first output line of its execution:
getExec cmd = do
hdl <- connectToCommand cmd
s <- hGetLine hdl
hClose hdl
return s
testConnectToCommand = (getExec "echo abcde") `returns` "abcde"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment