checkedint.tests.contract.smartop

Precise and detailed description of the expected behaviour of checkedint.smartOp against which it can be automatically tested. 80+ bit floating-point is used to compute the expected value for each operation with many different combinations of inputs.

Note: These tests currently will not work on systems where is(real == double), because Precision!double < Precision!ulong.

Members

Aliases

binary
alias binary(N, M = void) = binary!(null, N, M)
Undocumented in source.
byPow2
alias byPow2(N, M = void) = byPow2!(null, N, M)
Undocumented in source.
cmp
alias cmp(N, M = void) = cmp!(null, N, M)
Undocumented in source.
unary
alias unary(N) = unary!(null, N)
Undocumented in source.

Functions

abs
void abs()
Undocumented in source. Be warned that the author may not have intended to support it.
all
void all()
Undocumented in source. Be warned that the author may not have intended to support it.
binary
void binary()
Undocumented in source. Be warned that the author may not have intended to support it.
byPow2
void byPow2()
Undocumented in source. Be warned that the author may not have intended to support it.
cmp
void cmp()
Undocumented in source. Be warned that the author may not have intended to support it.
ilogb
void ilogb()
Undocumented in source. Be warned that the author may not have intended to support it.
pow
void pow()
Undocumented in source. Be warned that the author may not have intended to support it.
unary
void unary()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

Authors

Thomas Stuart Bockman