Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 077c485

Browse filesBrowse files
committed
update calc_data tests
1 parent dce5ff3 commit 077c485
Copy full SHA for 077c485

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎test/jasmine/tests/calcdata_test.js

Copy file name to clipboardExpand all lines: test/jasmine/tests/calcdata_test.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,9 @@ describe('calculated data and points', function() {
11641164
var expectedAgg = [['a', Math.sqrt(data[0] * data2[0])], ['b', Math.sqrt(data[1] * data2[1])], ['c', Math.sqrt(data[2] * data2[2])]];
11651165
// TODO: how to actually calc these? what do these even mean?
11661166
if(type === 'histogram') expectedAgg = [['a', 2], ['b', 1], ['c', 1]];
1167-
if(type === 'histogram2d') expectedAgg = [['a', 2 / 3], ['b', 1 / 3], ['c', 1 / 3]];
1168-
if(type === 'contour' || type === 'heatmap') expectedAgg = [['a', Math.pow(expectedAgg[0][1], 1 / 3)], ['b', Math.pow(expectedAgg[1][1], 1 / 3)], ['c', Math.pow(expectedAgg[2][1], 1 / 3)]];
1169-
if(type === 'histogram2dcontour') expectedAgg = [['a', 2 / 4], ['b', 1 / 4], ['c', 1 / 4]];
1167+
if(type === 'histogram2d') expectedAgg = [['a', 0], ['b', 0], ['c', 0]];
1168+
if(type === 'contour' || type === 'heatmap') expectedAgg = [['a', 0], ['b', 0], ['c', 0]];
1169+
if(type === 'histogram2dcontour') expectedAgg = [['a', 0], ['b', 0], ['c', 0]];
11701170

11711171
checkAggregatedValue(baseMock, expectedAgg, false, done);
11721172
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.