Обсуждения
What is unittest in Python?
10 голосов
3 ответовWhat is unittest in python?
6 голосов
2 ответовWhat is unittest in Python?
3 голосов
1 ответWhat do code?
1 голос
4 ответовWhy does unitest have to use a class?
0 голосов
1 ответWat is doing deze python code
0 голосов
1 ответWhy Should the following Test Pass
0 голосов
1 ответdef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
return
else:
for i in n:
if i>=0:
positives.append(i)
if i<0
negatives.append(i)
new=[len(positives,sum(negatives)]
return new.
please the unittest is still telling me that my code failed the "only lists" allowed test.what do I do.
0 голосов
7 ответовКак пользоваться unittest?
0 голосов
1 ответguys this code I wrote passed all the unittest specifications in an oop lab. but they told me that I failed a hidden test. that my code can still be improved upon. I've tried my best but I don't know how to improve the code again. please give me ideas. am I using WET in any block. any unnecessary repetitions or redundancy? this is the code below:
http://www.sololearn.com/app/python/playground/cG5UEvIEkuHd/
0 голосов
4 ответовАктуальное сегодня
Still confused
2 Votes
Code bits
1 Votes
Programm for creating
0 Votes
Servo motor ! HELP !!!
0 Votes
Generative AI
0 Votes
❗❗❗HELP❗❗❗
1 Votes