1
0
Fork 0

Fixed a graph unit test. It assumed a specific ordering which is not guaranteed

This commit is contained in:
Michael Hackstein 2015-08-28 10:14:07 +02:00
parent 876853dd9f
commit e909c79794
1 changed files with 7 additions and 3 deletions

View File

@ -2666,9 +2666,13 @@ function GeneralGraphCommonNeighborsSuite() {
testCommonPropertiesWithFilters: function () {
actual = testGraph._commonProperties({ageing : true} , {harald : 'meier'}, {});
assertEqual(actual[0][v5][0]._id , v6);
assertEqual(actual[1][v6][0]._id , v4);
assertEqual(actual[1][v6][1]._id , v8);
assertEqual(actual[1][v6][2]._id , v7);
var proV6 = actual[1][v6];
proV6.sort(function(a, b) {
return a._id < b._id;
});
assertEqual(proV6[0], v4);
assertEqual(proV6[1], v7);
assertEqual(proV6[2], v8);
actual = testGraph._countCommonProperties({ageing : true} , {harald : 'meier'}, {});
assertEqual(actual, [