diff options
author | Roland <rk@rkuhn.info> | 2012-09-18 15:00:48 +0200 |
---|---|---|
committer | Roland <rk@rkuhn.info> | 2012-09-18 15:00:48 +0200 |
commit | c555ff56db737bc65097add317946ee6d6166cd8 (patch) | |
tree | 844d6e5db4d95e91f2626966e12975c958a8f440 /test/files/scalacheck | |
parent | 66603a2c003852d39faec20a9763fb0e25049cf4 (diff) | |
download | scala-c555ff56db737bc65097add317946ee6d6166cd8.tar.gz scala-c555ff56db737bc65097add317946ee6d6166cd8.tar.bz2 scala-c555ff56db737bc65097add317946ee6d6166cd8.zip |
enable integer multiplication/divison on FiniteDuration, see SI-6389
- without this "2.seconds * 2" will not return FiniteDuration but
Duration
- added test case verifying this behavior
- matches normal arithmetics: integers throw on div-by-zero while
doubles yield infinity; extended here to include overflow protection
on integer multiplication
Diffstat (limited to 'test/files/scalacheck')
0 files changed, 0 insertions, 0 deletions