Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
bdf80561
Commit
bdf80561
authored
Mar 28, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collapse dataset test
parent
9b90c125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
jasmine/SpecRunner.html
jasmine/SpecRunner.html
+1
-0
jasmine/spec/collapse_tool_test.js
jasmine/spec/collapse_tool_test.js
+33
-0
No files found.
jasmine/SpecRunner.html
View file @
bdf80561
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<script
src=
"spec/set_test.js"
></script>
<script
src=
"spec/set_test.js"
></script>
<script
src=
"spec/ranking_test.js"
></script>
<script
src=
"spec/ranking_test.js"
></script>
<script
src=
"spec/adjust_tool_test.js"
></script>
<script
src=
"spec/adjust_tool_test.js"
></script>
<script
src=
"spec/collapse_tool_test.js"
></script>
</head>
</head>
<body>
<body>
</body>
</body>
...
...
jasmine/spec/collapse_tool_test.js
0 → 100644
View file @
bdf80561
describe
(
"
collapse_tool_test
"
,
function
()
{
it
(
"
mean
"
,
function
()
{
var
heatmap
=
new
morpheus
.
HeatMap
({
dataset
:
new
morpheus
.
Dataset
({
array
:
[
[
1
,
2
],
[
3
,
4
],
[
5
,
6
]
],
rows
:
3
,
columns
:
2
})
});
heatmap
.
getProject
().
getFullDataset
().
getRowMetadata
()
.
add
(
'
id
'
).
array
=
[
'
a
'
,
'
b
'
,
'
a
'
];
new
morpheus
.
CollapseDatasetTool
().
execute
({
controller
:
heatmap
,
project
:
heatmap
.
getProject
(),
input
:
{
collapse_method
:
'
Mean
'
,
collapse
:
'
Rows
'
,
collapse_to_fields
:
[
'
id
'
]
}
});
expect
(
heatmap
.
getProject
().
getFullDataset
())
.
toBeDatasetValues
(
new
morpheus
.
Dataset
({
array
:
[
[
3
,
4
],
[
3
,
4
]
],
rows
:
2
,
columns
:
2
}),
0.00001
);
});
});
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