ssciwr / vstt

Visuomotor Serial Targeting Task (VSTT)
https://vstt.readthedocs.io
MIT License
0 stars 0 forks source link

improve tests: more robust floating point comparisons #251

Closed lkeegan closed 9 months ago

lkeegan commented 1 year ago

Currently we compare floats directly in some of out tests:

https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=INTENTIONAL&resolved=false&softwareQualities=RELIABILITY&id=ssciwr_vstt

Would be better to use e.g. a == pytest.approx(b) in these cases

lkeegan commented 9 months ago

resolved by #266