DescriptionExpand memoized_unittest and clarify error message.
Specifically:
- Improve style in memoized_unittest
- Make test methods clearer
- Make error message clearer if a non-hashable type is passed to a memoized function
- Add unit test for this
The purpose of this change is just to clarify the code.
Committed: https://crrev.com/550547d0385f1cb8a905d4322a7ae7452a0d3e7b
Cr-Commit-Position: refs/heads/master@{#401337}
Patch Set 1 #Patch Set 2 : Changed the way TypeError is raised #
Messages
Total messages: 8 (3 generated)
|