I've just uploaded an updated version of my HW02. All tests pass but I was surprised when it reported that it executed in ~9ms, to say the least.
For that reason I looked at the efficiency tab in the "Results" page and saw that nearly all tests failed the efficiency check because of an error raised by an expression that I also used in the previous version of my program in a similar, but not equal, context. The efficiency of the previous program computed fine.
Here is the same test as reported by the "Correctness" tab and the "Efficiency" tab:
Correctness tab
==Test==test_emoji_10_10_50_00001_test_emoji_10_10_50 PASSED
Efficiency tab
test_emoji_10_10_50_00001_test_emoji_10_10_50 (test_01.Test) test_emoji_10_10_50_00001_test_emoji_10_10_50 ... ok
then, later in the efficiency tab
test_emoji_10_10_50_00001_test_emoji_10_10_50 (test_01.Test) test_emoji_10_10_50_00001_test_emoji_10_10_50 ... ERROR
then, later in the efficiency tab
====================================================================== ERROR= test_emoji_10_10_50_00001_test_emoji_10_10_50 (test_01.Test) test_emoji_10_10_50_00001_test_emoji_10_10_50 ---------------------------------------------------------------------- Traceback (most recent call last)= File "/usr/lib/python3/dist-packages/ddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/home/andrea/AA21/repo/AA21-HW2-req-en/students/1983278/homework02/./test_01.py", line 90, in test_emoji_10_10_50 return self.do_test(matches, k, expected) File "/home/andrea/AA21/repo/AA21-HW2-req-en/students/1983278/homework02/./test_01.py", line 32, in do_test result = program.ex(matches, k) File "/home/andrea/AA21/repo/AA21-HW2-req-en/students/1983278/homework02/./program01.py", line 86, in ex my_expression = foo.method() AttributeError= 'list' object has no attribute 'method'
Is my program okay to deliver or should I find a fix?