Beispiel #1
0
 def test_S_normal_3(self):
     last_action = 0
     np.random.seed(104)
     d = binary.single()
     result = d(0.23, last_action)
     correct_result = (1, collections.OrderedDict([(0, 0.77), (1, 0.23)]))
     assert result == correct_result
Beispiel #2
0
 def test_S_valid_2(self):
     np.random.seed(100)
     d = binary.single()
     result = d(0.23, trial_responses=[])
     correct_result = (None, collections.OrderedDict([(0, 0.77), (1, 0.23)]))
     assert result == correct_result
Beispiel #3
0
 def test_S_normal(self):
     np.random.seed(100)
     d = binary.single()
     result = d(0.23)
     correct_result = (0, collections.OrderedDict([(0, 0.77), (1, 0.23)]))
     assert result == correct_result