Skip to content

Commit 8c805d6

Browse files
committed
update tests
1 parent fb94e80 commit 8c805d6

File tree

4 files changed

+14
-55
lines changed

4 files changed

+14
-55
lines changed

tests/runTests.m

Lines changed: 0 additions & 53 deletions
This file was deleted.

tests/test_computeRadialMotionDirection.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function test_computeRadialMotionDirectionBasic()
1111
%% set up
1212

1313
cfg.design.motionType = 'radial';
14+
cfg.dot.matrixWidth = 50; % in pixels
1415
cfg.screen.winWidth = 100; % in pixels
1516
direction = 666;
1617

tests/test_initDots.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function test_initDotsBasic()
2626
cfg.dot.number = 10;
2727
cfg.dot.coherence = 1; % proportion
2828
cfg.dot.lifeTime = 0.250; % in seconds
29+
cfg.dot.matrixWidth = 50; % in pixels
2930
cfg.screen.winWidth = 2000; % in pixels
3031
cfg.eventDuration = 1; % in seconds
3132
cfg.screen.ifi = 0.01; % in seconds
@@ -61,6 +62,7 @@ function test_initDotsStatic()
6162
cfg.dot.number = 10;
6263
cfg.dot.coherence = 1; % proportion
6364
cfg.dot.lifeTime = 0.250; % in seconds
65+
cfg.dot.matrixWidth = 50; % in pixels
6466
cfg.screen.winWidth = 2000; % in pixels
6567
cfg.eventDuration = 1; % in seconds
6668
cfg.screen.ifi = 0.01; % in seconds
@@ -90,6 +92,7 @@ function test_initDotsRadial()
9092
cfg.dot.number = 10;
9193
cfg.dot.coherence = 1; % proportion
9294
cfg.dot.lifeTime = 0.250; % in seconds
95+
cfg.dot.matrixWidth = 50; % in pixels
9396
cfg.screen.winWidth = 2000; % in pixels
9497
cfg.eventDuration = 1; % in seconds
9598
cfg.screen.ifi = 0.01; % in seconds

tests/test_reseedDots.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,24 @@
88

99
function test_reseedDotsBasic()
1010

11-
dots.lifeTime = 100;
1211
cfg.screen.winWidth = 2000;
12+
13+
cfg.design.motionType = 'radial';
14+
15+
cfg.dot.matrixWidth = 50; % in pixels
1316
cfg.dot.number = 5;
1417
cfg.dot.sizePix = 20;
1518
cfg.dot.proportionKilledPerFrame = 0;
1619

1720
cfg.fixation.widthPix = 20;
21+
22+
dots.lifeTime = 100;
23+
dots.speedPixPerFrame = 3;
24+
dots.direction = 90;
25+
dots.isSignal = true(5, 1);
1826

1927
dots.positions = [ ...
20-
694, 100; % OK
28+
49, 1; % OK
2129
490, 2043; % out of frame
2230
-104, 392; % out of frame
2331
492, 402; % OK

0 commit comments

Comments
 (0)