pursuedpybear icon indicating copy to clipboard operation
pursuedpybear copied to clipboard

Improve range of camera transformation tests

Open AstraLuma opened this issue 5 years ago • 1 comments

test_transfromation_roundtrip (#275) are currently limited to camera position of 1e15, unlike the usual 1e75 of most of our tests. This is to make sure that the generated frame actually has a size discernible to python floats. (that is, if the frame size is 2 and the camera position is 1e20, frame left will exactly equal frame right because 2 is below its precision).

Expert suggestion:

07:42:57 <DRMacIver> AstraLuma: You could generate one parameter as a multiple of the other using data() or composite() to generate a pair at once. Generate a single value and then the other as a st.floats(0.5, 2) multiple of that 07:43:01 <DRMacIver> (or some other suitable range)

AstraLuma avatar May 25 '19 15:05 AstraLuma