66 initTestSuite ;
77end
88
9- function test_setFixationTargetsBasic ()
9+ function test_setFixationTargets_MT ()
1010
1111 isMT = true ;
1212 cfg = getMockConfig(isMT );
@@ -17,8 +17,7 @@ function test_setFixationTargetsBasic()
1717 assertTrue(~any(fixationTargets(: , 1 )));
1818 assertTrue(~any(fixationTargets(: , end )));
1919
20- % no target one after the other
21- % TODO
20+ % TODO no target one after the other
2221
2322 % at least one target for each allowed position
2423 assertTrue(all(sum(fixationTargets(: , 2 : end - 1 ))) > 0 );
@@ -28,6 +27,31 @@ function test_setFixationTargetsBasic()
2827
2928 fixationTargets = setFixationTargets(cfg );
3029
31- assertEqual(fixationTargets , zeros(24 , 12 ));
30+ assertEqual(fixationTargets , zeros(cfg .design .nbRepetitions * 2 , cfg .design .nbEventsPerBlock ));
31+
32+ end
33+
34+ function test_setFixationTargets_MST()
35+
36+ isMT = false ;
37+ cfg = getMockConfig(isMT );
38+
39+ fixationTargets = setFixationTargets(cfg );
40+
41+ % no target on first and last event of a block
42+ assertTrue(~any(fixationTargets(: , 1 )));
43+ assertTrue(~any(fixationTargets(: , end )));
44+
45+ % TODO no target one after the other
46+
47+ % TODO at least one target for each allowed position
48+ % assertTrue(all(sum(fixationTargets(:, 2:end - 1))) > 0);
49+
50+ % try when the target are just for the fixation cross
51+ cfg.target.type = {' speed' };
52+
53+ fixationTargets = setFixationTargets(cfg );
54+
55+ assertEqual(fixationTargets , zeros(cfg .design .nbRepetitions * 2 , cfg .design .nbEventsPerBlock ));
3256
3357end
0 commit comments