FudanSELab/ClassEval

ClassEval 5 improper assertion in tests

doomspec opened this issue · 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.