Update comment displayed in property-based testing

This commit is contained in:
mratsim 2018-05-04 00:20:32 +02:00
parent 40f33238d9
commit 0a1129b36a
2 changed files with 11 additions and 3 deletions

View File

@ -14,9 +14,13 @@ const itercount = 1000
suite "Property-based testing (testing with random inputs) - uint64 on 64-bit / uint32 on 32-bit":
when defined(release):
echo "Testing in release mode with " & $itercount & " random tests for each proc. (StUint[64] = uint64)"
echo "Testing in release mode with " & $itercount & " random tests for each proc."
else:
echo "Testing in debug mode " & $itercount & " random tests for each proc. (StUint[64] = 2x uint32)"
when defined(mpint_test):
echo "(StUint[64] = 2x uint32)"
else:
echo "(StUint[64] = uint64)"
let hi = 1'u shl (sizeof(uint)*7)

View File

@ -12,14 +12,18 @@
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason
import ../src/stint, unittest, quicktest, ttmath_compat
const itercount = 10000
const itercount = 10_000_000_000
suite "Property-based testing (testing with random inputs) of Uint256":
when defined(release):
echo "Testing in release mode with " & $itercount & " random tests for each proc. (StUint[64] = uint64)"
echo "Testing in release mode with " & $itercount & " random tests for each proc."
else:
echo "Testing in debug mode " & $itercount & " random tests for each proc. (StUint[64] = 2x uint32)"
when defined(mpint_test):
echo "(StUint[64] = 2x uint32)"
else:
echo "(StUint[64] = uint64)"
let hi = 1'u shl (sizeof(uint)*7)