Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
76b770a7
Commit
76b770a7
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Fixed unit tests
parent
c22fdf5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-tools/src/test/scala/nl/lumc/sasc/biopet/tools/ValidateFastqTest.scala
+16
-13
16 additions, 13 deletions
...t/scala/nl/lumc/sasc/biopet/tools/ValidateFastqTest.scala
with
16 additions
and
13 deletions
public/biopet-tools/src/test/scala/nl/lumc/sasc/biopet/tools/ValidateFastqTest.scala
+
16
−
13
View file @
76b770a7
...
...
@@ -59,11 +59,9 @@ class ValidateFastqTest extends TestNGSuite with Matchers {
@Test
def
testGetPossibleEncodingsFail
:
Unit
=
{
intercept
[
IllegalStateException
]
{
ValidateFastq
.
minQual
=
Some
(
'!'
)
ValidateFastq
.
maxQual
=
Some
(
'h'
)
ValidateFastq
.
getPossibleEncodings
}
ValidateFastq
.
minQual
=
Some
(
'!'
)
ValidateFastq
.
maxQual
=
Some
(
'h'
)
ValidateFastq
.
getPossibleEncodings
shouldBe
Nil
}
@Test
...
...
@@ -71,20 +69,25 @@ class ValidateFastqTest extends TestNGSuite with Matchers {
ValidateFastq
.
minQual
=
None
ValidateFastq
.
maxQual
=
None
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"AAAA"
))
ValidateFastq
.
getPossibleEncodings
should
not
be
Nil
intercept
[
IllegalStateException
]
{
ValidateFastq
.
minQual
=
None
ValidateFastq
.
maxQual
=
None
ValidateFastq
.
minQual
=
None
ValidateFastq
.
maxQual
=
None
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"A!hA"
))
}
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"A!hA"
))
ValidateFastq
.
getPossibleEncodings
shouldBe
Nil
ValidateFastq
.
minQual
=
None
ValidateFastq
.
maxQual
=
None
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"hhhh"
))
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"!!!!"
))
ValidateFastq
.
getPossibleEncodings
shouldBe
Nil
intercept
[
IllegalStateException
]
{
ValidateFastq
.
minQual
=
None
ValidateFastq
.
maxQual
=
None
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"hhhh"
))
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"!!!!"
))
ValidateFastq
.
checkQualEncoding
(
new
FastqRecord
(
"read_1"
,
"ATCG"
,
""
,
"!! !!"
))
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment