Example #1
0
 def test_which_array(self):
     
     rea = Realism()
     x = np.array(['a','b','c'])
     idx = 1
     item = x[idx]
     
     assert idx == rea.which(x,item)[0]
Example #2
0
 def test_which_list(self):
     
     rea = Realism()
     x = ['a','b','c']
     idx = 1
     item = x[idx]
     
     assert idx == rea.which(x, item)[0]