Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
a575c747
Commit
a575c747
authored
Jan 06, 2014
by
Eyal Dechter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup whitespace.
parent
704ac8cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Hspec.hs
src/Hspec.hs
+5
-5
No files found.
src/Hspec.hs
View file @
a575c747
...
...
@@ -77,7 +77,7 @@ completes string expected = completionTarget newString cursorloc `shouldBe` expe
completionHas_
wrap
string
expected
=
do
(
matched
,
completions
)
<-
doGhc
$
do
wrap
$
do
initCompleter
wrap
$
do
initCompleter
complete
newString
cursorloc
let
existsInCompletion
=
(`
elem
`
completions
)
unmatched
=
filter
(
not
.
existsInCompletion
)
expected
...
...
@@ -167,15 +167,15 @@ completionTests = do
withHsDirectory
$
\
dirPath
->
let
loading
xs
=
":load "
++
encodeString
xs
paths
xs
=
map
encodeString
xs
completionHas'
=
completionHas_
fun
completionHas'
=
completionHas_
fun
fun
action
=
do
pwd
<-
Eval
.
liftIO
getCurrentDirectory
Eval
.
evaluate
defaultKernelState
(
":! cd "
++
dirPath
)
(
\
b
d
->
return
()
)
out
<-
action
(
\
b
d
->
return
()
)
out
<-
action
Eval
.
evaluate
defaultKernelState
(
":! cd "
++
pwd
)
(
\
b
d
->
return
()
)
(
\
b
d
->
return
()
)
return
out
in
liftIO
$
do
loading
(
"dir"
</>
"file!"
)
`
completionHas'
`
paths
[
"dir"
</>
"file2.hs"
,
...
...
Write
Preview
Markdown
is supported
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