yairchu / quartic

Solve Quartic equations. Implementations in C, Haskell, and Python
Other
9 stars 4 forks source link

Tests for C implementation #3

Open yairchu opened 6 years ago

yairchu commented 6 years ago

Currently the Haskell implementation has tests in quartic_tests.hs in the form of QuickCheck properties that verify that solutions to random polynomials are indeed roots.

It is necessary to also test the C implementation to comfortably maintain it and to fix bugs in it.

yairchu commented 6 years ago

https://github.com/yairchu/quartic/commit/963eb68fdc7745d43687755c94f545d993e83245

Translated the Haskell tests to C++ using rapidcheck (a property testing library for C++), and still need to finish the task as the tests currently fail! Should see if there's a problem in the new tests or if those indicate a real bug in the C implementation..