graphix icon indicating copy to clipboard operation
graphix copied to clipboard

Avoid using random numbers for tests

Open king-p3nguin opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. The use of random numbers in testing can be cited as a reason why transpiler bugs were not found until recently. A simple way to avoid this is to fix the seed value, but the best approach is to increase the number of deterministic test cases that cover various scenarios without relying on random numbers.

Describe the feature you'd like Create as many test cases as possible to cover various scenarios in tests/test_pattern.py and tests/test_transpiler.py.

Additional context

  • #54
  • #62

king-p3nguin avatar Jun 26 '23 03:06 king-p3nguin