Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
23a787d6
Commit
23a787d6
authored
Jul 26, 2016
by
Mathieu Giraud
Browse files
tests: update tests, cdr3 were already 1-based before
parent
2c335e08
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/test/QUnit/testFiles/clone_test.js
View file @
23a787d6
...
...
@@ -13,13 +13,13 @@
"
3start
"
:
15
,
"
5
"
:
{
'
start
'
:
1
,
'
end
'
:
5
},
"
cdr3
"
:
{
"
start
"
:
1
0
,
"
end
"
:
1
5
,
"
start
"
:
1
1
,
"
stop
"
:
1
6
,
"
aa
"
:
"
ABCDE
"
},
"
junction
"
:
{
"
start
"
:
9
,
"
stop
"
:
1
1
,
"
start
"
:
10
,
"
stop
"
:
1
2
,
"
productive
"
:
true
}
}
...
...
@@ -50,8 +50,8 @@
"
3start
"
:
15
,
"
5end
"
:
5
,
"
junction
"
:
{
"
start
"
:
2
,
"
stop
"
:
1
3
,
"
start
"
:
3
,
"
stop
"
:
1
4
,
"
productive
"
:
false
}
}
...
...
browser/test/QUnit/testFiles/model_test.js
View file @
23a787d6
...
...
@@ -3,23 +3,24 @@
test
(
"
model: convert
"
,
function
()
{
var
m
=
new
Model
();
var
seg
=
{
"
4start
"
:
1
,
"
4start
"
:
1
,
// old format, 0-based
"
4end
"
:
2
,
"
3start
"
:
3
,
"
3
"
:
"
J
"
,
"
4
"
:
"
D
"
,
"
score
"
:
42
,
"
5
"
:
{
"
name
"
:
"
V
"
,
"
stop
"
:
0
},
"
cdr3
"
:
{
"
start
"
:
0
,
"
end
"
:
3
}
"
cdr3
"
:
{
"
start
"
:
1
,
"
end
"
:
4
},
// 1-based
"
foo
"
:
{
"
start
"
:
18
,
"
stop
"
:
43
}
};
equal
(
m
.
getConvertedBoundary
(
json_clone3
.
seg
,
"
5
"
,
"
end
"
),
5
,
"
getConvertedBoundary existant: Ok
"
);
equal
(
typeof
m
.
getConvertedBoundary
(
json_clone3
.
seg
,
"
5
"
,
"
start
"
),
'
undefined
'
,
"
getConvertedBoundary non existant: Ok
"
);
deepEqual
(
m
.
getConvertedSegNames
(
seg
[
'
cdr3
'
]),
{
"
start
"
:
0
,
"
stop
"
:
3
},
"
getConvertedSegNames
: ok
"
)
deepEqual
(
m
.
getConvertedSegNames
(
seg
[
'
cdr3
'
]),
{
"
start
"
:
1
,
"
stop
"
:
4
},
"
getConvertedSegNames
(before 0-based conversion)
"
)
deepEqual
(
m
.
getConvertedSeg
(
seg
,
"
3
"
),
{
"
name
"
:
"
J
"
,
"
start
"
:
3
},
"
getConvertedSeg: Ok
"
);
deepEqual
(
m
.
convertSeg
(
json_clone3
.
seg
),
{
"
5
"
:
{
"
stop
"
:
5
},
"
4
"
:
{
"
name
"
:
"
IGHD2*03
"
},
"
3
"
:
{
"
name
"
:
"
IGHV4*01
"
,
"
start
"
:
15
},
"
junction
"
:
{
"
productive
"
:
false
,
"
start
"
:
2
,
"
stop
"
:
13
}},
"
convertSeg: Ok
"
);
deepEqual
(
m
.
convertSeg
(
seg
),
{
"
3
"
:
{
"
name
"
:
"
J
"
,
"
start
"
:
3
},
"
4
"
:
{
"
name
"
:
"
D
"
,
"
start
"
:
1
,
"
stop
"
:
2
},
"
5
"
:
{
"
name
"
:
"
V
"
,
"
stop
"
:
0
},
"
score
"
:
{
"
val
"
:
42
},
"
cdr3
"
:
{
"
start
"
:
0
,
"
stop
"
:
3
}},
"
convertSeg: Ok
"
);
deepEqual
(
m
.
convertSeg
(
seg
),
{
"
3
"
:
{
"
name
"
:
"
J
"
,
"
start
"
:
3
},
"
4
"
:
{
"
name
"
:
"
D
"
,
"
start
"
:
1
,
"
stop
"
:
2
},
"
5
"
:
{
"
name
"
:
"
V
"
,
"
stop
"
:
0
},
"
score
"
:
{
"
val
"
:
42
},
"
cdr3
"
:
{
"
start
"
:
0
,
"
stop
"
:
3
}
,
"
foo
"
:
{
"
start
"
:
17
,
"
stop
"
:
42
}
},
"
convertSeg: Ok
"
);
});
test
(
"
model : load
"
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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