Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
76b770a7
Commit
76b770a7
authored
Mar 07, 2016
by
Peter van 't Hof
Browse files
Fixed unit tests
parent
c22fdf5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-tools/src/test/scala/nl/lumc/sasc/biopet/tools/ValidateFastqTest.scala
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"
,
""
,
"!! !!"
))
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment