Update comment displayed in property-based testing
This commit is contained in:
parent
40f33238d9
commit
0a1129b36a
|
@ -14,9 +14,13 @@ const itercount = 1000
|
||||||
suite "Property-based testing (testing with random inputs) - uint64 on 64-bit / uint32 on 32-bit":
|
suite "Property-based testing (testing with random inputs) - uint64 on 64-bit / uint32 on 32-bit":
|
||||||
|
|
||||||
when defined(release):
|
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:
|
else:
|
||||||
echo "Testing in debug mode " & $itercount & " random tests for each proc. (StUint[64] = 2x uint32)"
|
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)
|
let hi = 1'u shl (sizeof(uint)*7)
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,18 @@
|
||||||
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason
|
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason
|
||||||
import ../src/stint, unittest, quicktest, ttmath_compat
|
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":
|
suite "Property-based testing (testing with random inputs) of Uint256":
|
||||||
|
|
||||||
when defined(release):
|
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:
|
else:
|
||||||
echo "Testing in debug mode " & $itercount & " random tests for each proc. (StUint[64] = 2x uint32)"
|
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)
|
let hi = 1'u shl (sizeof(uint)*7)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue