brando90 / MathNet-large-scale-Mathematics-Dataset-for-Machine-Learning

1 stars 0 forks source link

Improve the code for unit test for users #60

Open brando90 opened 7 years ago

brando90 commented 7 years ago

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

brando90 commented 7 years ago

it would also be nice to allow users to define their own unit tests and give them to the framework

brando90 commented 7 years ago

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,