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 7 months ago

lkeegan commented 11 months 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 7 months ago

resolved by #266