diff options
author | Hans Nilsson <[email protected]> | 2017-01-19 19:56:55 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-01-19 19:56:55 +0100 |
commit | d4f04425dbf98ee6ef97b4cbfaea0d62bd2fd28d (patch) | |
tree | b07a8e787b8f212fa2e38de26d67f3a2719d9603 /lib/ssh/test | |
parent | 973d79eae0ff8f00ae284d4457717176e6746695 (diff) | |
download | otp-d4f04425dbf98ee6ef97b4cbfaea0d62bd2fd28d.tar.gz otp-d4f04425dbf98ee6ef97b4cbfaea0d62bd2fd28d.tar.bz2 otp-d4f04425dbf98ee6ef97b4cbfaea0d62bd2fd28d.zip |
ssh: fix mpint-bug in property tests
Diffstat (limited to 'lib/ssh/test')
-rw-r--r-- | lib/ssh/test/property_test/ssh_eqc_encode_decode.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ssh/test/property_test/ssh_eqc_encode_decode.erl b/lib/ssh/test/property_test/ssh_eqc_encode_decode.erl index 0f8a838f97..8ca29b9399 100644 --- a/lib/ssh/test/property_test/ssh_eqc_encode_decode.erl +++ b/lib/ssh/test/property_test/ssh_eqc_encode_decode.erl @@ -184,10 +184,7 @@ gen_byte(N) when N>0 -> [gen_byte() || _ <- lists:seq(1,N)]. gen_char() -> choose($a,$z). -gen_mpint() -> ?LET(Size, choose(1,20), - ?LET(Str, vector(Size, gen_byte()), - gen_string( strip_0s(Str) ) - )). +gen_mpint() -> ?LET(I, largeint(), ssh_bits:mpint(I)). strip_0s([0|T]) -> strip_0s(T); strip_0s(X) -> X. |