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
vidjil
vidjil
Commits
8e15fdc0
Commit
8e15fdc0
authored
Jan 03, 2017
by
Mikaël Salson
Browse files
test/QUnit: Test hasSeg()
See
2f117f42
parent
96fb032d
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/test/QUnit/testFiles/clone_test.js
View file @
8e15fdc0
...
...
@@ -183,6 +183,12 @@ test('clone: get info from seg', function() {
var
c3
=
new
Clone
(
json_clone3
,
m
,
2
)
m
.
initClones
()
ok
(
c1
.
hasSeg
(
'
cdr3
'
),
"
clone1 has CDR3
"
)
ok
(
c1
.
hasSeg
(
'
junction
'
),
"
clone1 has juction
"
)
ok
(
c1
.
hasSeg
(
'
cdr3
'
,
'
junction
'
),
"
clone1 has both CDR3 and junction
"
)
notOk
(
c1
.
hasSeg
(
'
toto
'
),
"
clone1 doesn't have toto
"
)
notOk
(
c1
.
hasSeg
(
'
junction
'
,
'
toto
'
),
"
clone1 has junction but doesn't have toto
"
)
equal
(
c1
.
getSegLength
(
'
cdr3
'
),
6
,
"
CDR3 length
"
);
equal
(
c2
.
getSegLength
(
'
cdr3
'
),
'
undefined
'
,
"
no cdr3 in c2
"
);
var
pos_cdr3
=
c1
.
getSegStartStop
(
'
cdr3
'
)
...
...
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