teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2019/08/26 09:16

投稿

sequelanonymous
sequelanonymous

スコア123

title CHANGED
File without changes
body CHANGED
@@ -20,10 +20,10 @@
20
20
 
21
21
  def test_make_params():
22
22
  graph_id = 'Test'
23
- gtz = ["S1", "S2", "S3", "A1", "A2", "A3", "B1",
23
+ ability = ["Z1", "Z2", "Z3", "A1", "A2", "A3", "B1",
24
- "B2", "B3", "C1", "C2", "C3", "D1", "D2", "D3"]
24
+ "B2", "B3", "C1", "C2", "C3", "DD1", "DD2", "DD3"]
25
25
 
26
- lists = [['Question'+str(random.randint(1, 10)), random.choice(gtz),
26
+ lists = [['Question'+str(random.randint(1, 10)), random.choice(ability),
27
27
  random.randint(0, 1)] for j in range(100)]
28
28
  two_arrays = np.array(lists)
29
29
  > assert len(make_params(graph_id, two_arrays)) == 10