Skip to content

Commit

Permalink
Adding multi-row and dual-orbit test cases. #10
Browse files Browse the repository at this point in the history
  • Loading branch information
pisi committed Nov 4, 2011
1 parent 2a87818 commit 09d07ef
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion test/unit/computation.js
Expand Up @@ -77,7 +77,7 @@
});

test( 'Default `$.reel.math.spread`', function(){
expect(11);
expect(14);
var
probes= {
10: {
Expand Down Expand Up @@ -161,6 +161,36 @@
frame: 27
},
ordered: '27,14, 7,21, 3,17,10,24, 2,16,9,23,5,19,12,26, 1,15,8,22,4,18,11,25,6,20,13'.split(/, ?/)
},

// Multi-rows
'2x10': {
options: {
images: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],
frames: 10,
frame: 1,
rows: 2
},
ordered: '1,6, 4,9, 2,7,5,10, 3,8, 11,16, 14,19, 12,17,15,20, 13,18'.split(/, ?/)
},
'4x10': {
options: {
images: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],
frames: 10,
frame: 1,
rows: 4,
row: 2
},
ordered: '11,16, 14,19, 12,17,15,20, 13,18, 1,6,21,26,31,36, 4,9,24,29,34,39, 2,7,22,27,32,37,5,25,30,35,40, 3,8,23,28,33,38'.split(/, ?/)
},
'orbital': {
options: {
images: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],
footage: 9,
frame: 1,
orbital: 3
},
ordered: '1,6, 3,8, 2,7,4,9, 5, 10,15, 12,17, 11,16,13,18, 14'.split(/, ?/)
}
}

Expand Down

0 comments on commit 09d07ef

Please sign in to comment.