-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test] Mark more 'Integer's as interesting #6619
[Test] Mark more 'Integer's as interesting #6619
Conversation
Here's what the test shows now:
|
I've looked at that distribution and decided to tweak it a little, since it was generating "interesting" integers a bit too often leaving "uninteresting" ones not sufficiently covered. The new distribution:
The difference is just about 1%, so not very significant, but I like this distribution more. |
ad3d092
to
ede713d
Compare
/benchmark validation |
Click here to check the status of your benchmark. |
This one is very insignificant, so I'm gonna merge it without waiting for a review. Feel free to ignore it or if you review it and have some comments, I'll address them in another PR. |
This is what the test prints now: ``` distribution of 'Integer' constants: OK (0.05s) +++ OK, passed 10000 tests: 12.23% (1, 127) 12.00% (-1, -127) 11.56% (-128, -32767) 10.73% (128, 32767) 9.46% (-9223372036854775808, -147573952589676412912) 8.91% (9223372036854775808, 147573952589676412912) 8.84% (-2147483648, -9223372036854775807) 8.38% (2147483648, 9223372036854775807) 7.72% (-32768, -2147483647) 7.40% (32768, 2147483647) 2.77% 0 1.93% 1 1.78% 127 1.75% -127 1.72% -128 1.59% -1 1.59% -32767 1.55% 32767 1.40% 128 1.31% 9223372036854775808 1.30% 2147483648 1.27% -147573952589676412912 1.27% -9223372036854775808 1.26% -9223372036854775807 1.25% 147573952589676412912 1.24% -2147483648 1.11% 32768 1.05% -32768 1.05% 9223372036854775807 1.02% 2147483647 0.97% -2147483647 ```
This makes one of the distribution tests display more info about the distribution.