Open brando90 opened 7 years ago
it would also be nice to allow users to define their own unit tests and give them to the framework
These are the unit tests we want:
Seeding should guarantee that it does change the random state of their code (even if the code did it by itself). Here we want to guarantee that variation is given no matter what.
if their variable initializers, Q, A dont return deterministic stuff given a seed, then they have a bug and warn them. Here we want that A always solves the same question correctly given the question,
in https://github.com/brando90/eit_proj1/blob/master/main_proj_lib/qagen/unit_test_for_user.py we have to define test objects. Can we just have one single object and if they start with test_ that the tests runs? Lets try to not hack things though just using unittest