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
8a1b23a7
Commit
8a1b23a7
authored
Mar 03, 2016
by
Sander Bollen
Browse files
contains ipv endswith
parent
ec759bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-tools-extensions/src/test/scala/VcfFilterTest.scala
View file @
8a1b23a7
...
...
@@ -92,7 +92,7 @@ class VcfFilterTest extends TestNGSuite with Matchers {
case
_
=>
throw
new
IllegalArgumentException
})
cmd
(
filterer
.
cmdLine
).
endsWith
(
cmdString
)
shouldBe
true
cmd
(
filterer
.
cmdLine
).
contains
(
cmdString
)
shouldBe
true
}
@Test
(
dataProvider
=
"stringArguments"
)
...
...
@@ -113,7 +113,7 @@ class VcfFilterTest extends TestNGSuite with Matchers {
case
_
=>
throw
new
IllegalArgumentException
})
cmd
(
filterer
.
cmdLine
).
endsWith
(
cmdString
)
shouldBe
true
cmd
(
filterer
.
cmdLine
).
contains
(
cmdString
)
shouldBe
true
}
@Test
(
dataProvider
=
"listArguments"
)
...
...
@@ -130,8 +130,10 @@ class VcfFilterTest extends TestNGSuite with Matchers {
case
_
=>
throw
new
IllegalArgumentException
}
val
cmdString
=
value
.
foldLeft
(
""
)((
acc
,
x
)
=>
acc
+
"--"
+
attr
+
" "
+
x
+
" "
).
stripSuffix
(
" "
)
cmd
(
filterer
.
cmdLine
).
endsWith
(
cmdString
)
shouldBe
true
value
.
foreach
{
x
=>
val
cmdString
=
"--"
+
attr
+
" "
+
x
cmd
(
filterer
.
cmdLine
).
contains
(
cmdString
)
shouldBe
true
}
}
@Test
(
dataProvider
=
"fileArguments"
)
...
...
@@ -149,7 +151,7 @@ class VcfFilterTest extends TestNGSuite with Matchers {
case
_
=>
throw
new
IllegalArgumentException
})
cmd
(
filterer
.
cmdLine
).
endsWith
(
cmdString
)
shouldBe
true
cmd
(
filterer
.
cmdLine
).
contains
(
cmdString
)
shouldBe
true
}
/**
...
...
@@ -160,7 +162,7 @@ class VcfFilterTest extends TestNGSuite with Matchers {
val
filterer
=
createFilterer
filterer
.
minQualScore
=
Option
(
50
)
cmd
(
filterer
.
cmdLine
).
endsWith
(
"--minQualScore 50.0"
)
shouldBe
true
cmd
(
filterer
.
cmdLine
).
contains
(
"--minQualScore 50.0"
)
shouldBe
true
}
@Test
...
...
@@ -168,7 +170,7 @@ class VcfFilterTest extends TestNGSuite with Matchers {
val
filterer
=
createFilterer
filterer
.
filterRefCalls
=
true
cmd
(
filterer
.
cmdLine
).
endsWith
(
"--filterRefCalls"
)
shouldBe
true
cmd
(
filterer
.
cmdLine
).
contains
(
"--filterRefCalls"
)
shouldBe
true
}
@Test
...
...
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