Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
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
Christian Merten
haskell-gargantext
Commits
f15d2fee
Commit
f15d2fee
authored
Jul 05, 2024
by
Loïc Chapron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix TSV import test
parent
9c1c0360
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TSV.hs
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
+2
-1
No files found.
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
View file @
f15d2fee
...
...
@@ -349,9 +349,10 @@ testCorrectFile bs =
----------Test headers added to ggt
-- use a map to remove \r that sometimes appear at the end of a line
testAllHeadersPresence
::
[
Text
]
->
Either
Text
[
Text
]
testAllHeadersPresence
headers
=
do
let
listHeaders
=
filter
(`
notElem
`
headers
)
[
"Publication Day"
,
"Publication Month"
,
"Publication Year"
,
"Authors"
,
"Title"
,
"Source"
,
"Abstract"
]
let
listHeaders
=
filter
(`
notElem
`
(
map
(
T
.
replace
(
T
.
pack
"
\r
"
)
(
T
.
pack
""
))
headers
)
)
[
"Publication Day"
,
"Publication Month"
,
"Publication Year"
,
"Authors"
,
"Title"
,
"Source"
,
"Abstract"
]
if
null
listHeaders
then
Right
headers
else
Left
((
pack
" Missing column : "
)
<>
T
.
intercalate
", "
listHeaders
)
...
...
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