コード例 #1
0
ファイル: test_realism.py プロジェクト: jaybee84/absehrd
 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]
コード例 #2
0
ファイル: test_realism.py プロジェクト: jaybee84/absehrd
 def test_which_list(self):
     
     rea = Realism()
     x = ['a','b','c']
     idx = 1
     item = x[idx]
     
     assert idx == rea.which(x, item)[0]