ClassEval icon indicating copy to clipboard operation
ClassEval copied to clipboard

ClassEval 5 improper assertion in tests

Open doomspec opened this issue 7 months ago • 0 comments

def test_interpret_6(self):
    context = AutomaticGuitarSimulator(" ")
    play_list = context.interpret()
    self.assertEqual(play_list, [{'Chord': '', 'Tune': ''}, {'Chord': '', 'Tune': ''}]) # better to remove this test
def test_interpret_9(self):
    context = AutomaticGuitarSimulator("")
    play_list = context.interpret()
    self.assertIsNone(play_list) # better to be []

These behaviours are not described in the function docstring.

doomspec avatar Jul 05 '24 18:07 doomspec