[go: up one dir, main page]

Tezt/Sapling: do not use floats

Context

I got this line

  assert (balance_alice_tz1_after = balance_alice_tz1_before +. 10. -. fees) ;

failing on !5261 (merged). After printing the values, they look equal so I suspect a precision loss due to using floats. Let's get rid of floats!

Manually testing the MR

dune exec tezt/tests/main.exe -- --verbose --file sapling.ml --title 'Alpha: successful_roundtrip'

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Mehdi Bouaziz

Merge request reports

Loading