Skip to content
Snippets Groups Projects
Commit e2a486ef authored by Michal Petrovič's avatar Michal Petrovič
Browse files

fix tests

parent 4f2807ea
1 merge request!14Resolve "Job Failed #648600"
Pipeline #181241 passed with stages
in 4 minutes and 58 seconds
...@@ -15,7 +15,7 @@ class ZdnaTest extends Specification { ...@@ -15,7 +15,7 @@ class ZdnaTest extends Specification {
int minSequenceSize = 10 int minSequenceSize = 10
float threshold = 0 float threshold = 0
when: when:
def result = zdna.getResults(window, minSequenceSize, threshold) def result = zdna.getResults(window, minSequenceSize, threshold, 25, 3, 3, 0)
then: then:
result[0].position == 6 result[0].position == 6
result[0].length == 27 result[0].length == 27
...@@ -31,7 +31,7 @@ class ZdnaTest extends Specification { ...@@ -31,7 +31,7 @@ class ZdnaTest extends Specification {
int minSequenceSize = 10 int minSequenceSize = 10
float threshold = 0 float threshold = 0
when: when:
def result = zdna.getResults(window, minSequenceSize, threshold) def result = zdna.getResults(window, minSequenceSize, threshold, 25, 3, 3, 0)
then: then:
result[1].position == 37 result[1].position == 37
result[1].length == 16 result[1].length == 16
...@@ -47,7 +47,7 @@ class ZdnaTest extends Specification { ...@@ -47,7 +47,7 @@ class ZdnaTest extends Specification {
int minSequenceSize = 10 int minSequenceSize = 10
float threshold = 40 float threshold = 40
when: when:
def result = zdna.getResults(window, minSequenceSize, threshold) def result = zdna.getResults(window, minSequenceSize, threshold, 25, 3, 3, 0)
then: then:
result[0].position == 37 result[0].position == 37
result[0].length == 16 result[0].length == 16
...@@ -61,7 +61,7 @@ class ZdnaTest extends Specification { ...@@ -61,7 +61,7 @@ class ZdnaTest extends Specification {
int minSequenceSize = 10 int minSequenceSize = 10
float threshold = 200 float threshold = 200
when: when:
def result = zdna.getResults(window, minSequenceSize, threshold) def result = zdna.getResults(window, minSequenceSize, threshold, 25, 3, 3, 0)
then: then:
result == [] result == []
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment