Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
effbd38f
Commit
effbd38f
authored
Oct 26, 2020
by
Louis Duchemin
Browse files
Failing test on site indices for Gemma workflow
parent
ddc1b8c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lib/toolbox/gemma.ml
lib/toolbox/gemma.ml
+8
-0
No files found.
lib/toolbox/gemma.ml
View file @
effbd38f
...
...
@@ -157,6 +157,14 @@ module Result_file = struct
let
%
test
"gemma output parsing"
=
Result
.
is_ok
@@
of_file
"../../tests/data/gemma_output.tsv"
let
%
test
"gemma output parsing preserves indices"
=
match
of_file
"../../tests/data/gemma_output.tsv"
with
|
Error
_
->
false
|
Ok
table
->
(
range_find
0
103
~
f
:
(
fun
i
->
not
@@
List
.
exists
table
~
f
:
(
fun
item
->
item
.
index
=
i
))
|>
function
None
->
true
|
Some
i
->
failwithf
"%d is missing"
i
()
)
let
%
test
"gemma output aggregation"
=
match
of_file
"../../tests/data/gemma_output.tsv"
with
|
Error
_
->
false
...
...
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