You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got the basics of the context version down; if you call unit_test without any tests, then it just returns the with context manager object. The only part that needs additional work is handling the each_score[test_index] logic.
The text was updated successfully, but these errors were encountered:
Writing up the SIGCSE slides, I realized that unit_test is a bit ugly in its current form. It's also a lot less flexible than it could be.
I've dealt with it for years on my own, but for other people, I think the following syntax would be nice:
I've got the basics of the context version down; if you call unit_test without any
tests
, then it just returns thewith
context manager object. The only part that needs additional work is handling theeach_score[test_index]
logic.The text was updated successfully, but these errors were encountered: