Summary
At first glance the test scriptnum_tests/operators has some issues:
- It is not testing what it really want to test (I think).
- If
size(offsets) > size(values)the test program will crash.
I also took the opportunity to modernize the scriptnum_tests/creation code, but the semantics of the new code should be equivalent to that of the previous code.
Test Plan
- Build
./src/test/test_bitcoin -t scriptnum_tests/operators./src/test/test_bitcoin -t scriptnum_tests/creation